/*!
 * Cheapsnatch Main Stylesheet
 * Version: 1.1
 * Date: 2025-08-08
 */

/*--------------------------------------------------------------
# Variables
--------------------------------------------------------------*/
:root {
  /* Fonts */
  --default-font: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --heading-font: "Montserrat", sans-serif;
  --nav-font: "Roboto Condensed", sans-serif;

  /* Primary Colors */
  --primary: #FF6B00;        /* Cheapsnatch orange */
  --primary-dark: #CC5600;
  --primary-light: #FF8C33;
  --primary-extra-light: #FFF1E8;
  
  /* Secondary Colors */
  --secondary: #003366;      /* Deep blue */
  --secondary-dark: #002244;
  --secondary-light: #335C85;
  
  /* Status Colors */
  --success: #28A745;
  --warning: #FFC107;
  --danger: #DC3545;
  --info: #17A2B8;
  
  /* Grayscale */
  --black: #000000;
  --gray-90: #212529;
  --gray-80: #343A40;
  --gray-70: #495057;
  --gray-60: #6C757D;
  --gray-50: #ADB5BD;
  --gray-40: #CED4DA;
  --gray-30: #DEE2E6;
  --gray-20: #E9ECEF;
  --gray-10: #F8F9FA;
  --white: #FFFFFF;

  /* Backgrounds */
  --body-bg: var(--white);
  --surface-bg: var(--gray-10);
  --contrast-bg: var(--gray-90);

  /* Text */
  --text-primary: var(--gray-90);
  --text-secondary: var(--gray-70);
  --text-muted: var(--gray-60);
  --text-contrast: var(--white);

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-xxl: 3rem;

  /* Borders */
  --border-radius-sm: 0.25rem;
  --border-radius-md: 0.5rem;
  --border-radius-lg: 1rem;
  --border-radius-xl: 2rem;
  --border-radius-pill: 50rem;
  --border-color: var(--gray-30);
  --border-color-dark: var(--gray-50);

  /* Shadows */
  --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
  --shadow-primary: 0 0.5rem 1rem rgba(255, 107, 0, 0.2);
  --shadow-inset: inset 0 1px 2px rgba(0, 0, 0, 0.075);

  /* Transitions */
  --transition-fast: 0.15s ease-in-out;
  --transition-medium: 0.3s ease-in-out;
  --transition-slow: 0.5s ease-in-out;

  /* Z-index */
  --z-index-dropdown: 1000;
  --z-index-sticky: 1020;
  --z-index-fixed: 1030;
  --z-index-modal-backdrop: 1040;
  --z-index-modal: 1050;
  --z-index-popover: 1060;
  --z-index-tooltip: 1070;
  --z-index-toast: 1080;
}

/*--------------------------------------------------------------
# Base Styles
--------------------------------------------------------------*/
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  width: 100%;
}

body {
  margin: 0;
  font-family: var(--default-font);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-primary);
  background-color: var(--body-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: var(--spacing-md);
  font-family: var(--heading-font);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-top: 0;
  margin-bottom: var(--spacing-md);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  border-style: none;
}

/* Lists */
ul, ol {
  padding-left: 2rem;
  margin-top: 0;
  margin-bottom: var(--spacing-md);
}

/*--------------------------------------------------------------
# Layout Components
--------------------------------------------------------------*/
.container {
    width: 100%;
    padding-right: var(--spacing-md);
    padding-left: var(--spacing-md);
    margin-right: auto;
    margin-left: auto;
}

.container--full {
    max-width: 100%;
    padding: 0;
}

@media (min-width: 576px) {
    .container:not(.container--full) {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container:not(.container--full) {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container:not(.container--full) {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container:not(.container--full) {
        max-width: 1140px;
    }
}

/* Grid System */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: calc(var(--spacing-md) * -0.5);
  margin-left: calc(var(--spacing-md) * -0.5);
}

.col {
  flex: 1 0 0%;
  padding-right: calc(var(--spacing-md) * 0.5);
  padding-left: calc(var(--spacing-md) * 0.5);
}

/* Spacing Utilities */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: var(--spacing-xs) !important; }
.mt-2 { margin-top: var(--spacing-sm) !important; }
.mt-3 { margin-top: var(--spacing-md) !important; }
.mt-4 { margin-top: var(--spacing-lg) !important; }
.mt-5 { margin-top: var(--spacing-xl) !important; }

/* Similar classes for mb-, ml-, mr-, mx-, my-, p- etc. */

/* Header Styles */
header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    width: 100%;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

/* Logo */
.logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: #FF6B00;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    align-items: center;
}

.logo span {
    color: #003366;
}

/* Desktop Navigation */
.desktop-nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
}

.nav-links li a {
    color: #003366;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #FF6B00;
    transition: width 0.3s ease;
}

.nav-links li a:hover {
    color: #FF6B00;
}

.nav-links li a:hover::after {
    width: 100%;
}

/* User Actions */
.user-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.login-link, .register-link {
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.3s ease;
}

.login-link {
    color: #003366;
}

.login-link:hover {
    color: #FF6B00;
}

.register-link {
    background-color: #FF6B00;
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    transition: background-color 0.3s ease;
}

.register-link:hover {
    background-color: #CC5600;
    color: white;
}

/* Cart Link */
.cart-link {
    position: relative;
    color: #003366;
    font-size: 1.25rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.cart-link:hover {
    color: #FF6B00;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -12px;
    background-color: #FF6B00;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.cart-count.hidden {
    display: none;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    color: #003366;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.dropdown-toggle:hover {
    color: #FF6B00;
}

.dropdown-toggle i {
    font-size: 1.1rem;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 0.75rem 0;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 0.5rem 1.25rem;
    color: #003366;
    text-decoration: none;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
}

.dropdown-menu a:hover {
    background-color: #FFF1E8;
    color: #FF6B00;
}

/* Mobile Menu Button */
.mobile-menu-button {
    display: none;
    background: none;
    border: none;
    color: #003366;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    background-color: white;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav li {
    margin-bottom: 1rem;
}

.mobile-nav li:last-child {
    margin-bottom: 0;
}

.mobile-nav a {
    display: block;
    padding: 0.75rem 1rem;
    color: #003366;
    text-decoration: none;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.mobile-nav a:hover {
    background-color: #FFF1E8;
    color: #FF6B00;
}

.hidden {
    display: none !important;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #003366;
    color: white;
    padding: 0.5rem 1rem;
    z-index: 100;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-button {
        display: block;
    }
    
    .mobile-nav {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
    }
    
    .user-actions {
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .header-container {
        padding: 0 1rem;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .user-actions {
        gap: 0.75rem;
    }
    
    .register-link {
        padding: 0.4rem 1rem;
        font-size: 0.875rem;
    }
}

/* Fullscreen Hero Section */
.full-width-section {
    width: 100%;
    position: relative;
    margin: 0;
    padding: 0;
}

.fullscreen-hero {
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.1)),
                url('https://images.unsplash.com/photo-1555529669-e69e7aa0ba9a?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80') no-repeat center center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    width: 100%;
    padding: 0 var(--spacing-md);
}

/* Hero Search */
.hero-search-container {
    position: absolute;
    top: 2rem;
    width: 100%;
    max-width: 800px;
    padding: 0 var(--spacing-md);
    z-index: 10;
}

.hero-search-form {
    display: flex;
    width: 100%;
    background: white;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.search-input {
    flex: 1;
    padding: 1.2rem 2rem;
    border: none;
    outline: none;
    font-size: 1.1rem;
    color: #333;
}

.search-input::placeholder {
    color: #999;
}

.search-button {
    padding: 0 2rem;
    background: #FF6B00;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-button:hover {
    background: #E05D00;
}

/* Hero Content */
.hero-content {
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
    transform: translateY(5%);
    padding: 0 var(--spacing-md);
    width: 100%;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    font-weight: 300;
    opacity: 0.9;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

/* Hero Buttons */
.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

.btn-primary {
    display: inline-block;
    background-color: #FF6B00;
    color: white;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.3);
    text-transform: uppercase;
}

.btn-primary:hover {
    background-color: #E05D00;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 107, 0, 0.4);
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: white;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 1.1rem;
    text-decoration: none;
    text-transform: uppercase;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    border-color: white;
}

/* Hero Scroller */
.hero-scroller {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    opacity: 0.8;
    animation: bounce 2s infinite;
    cursor: pointer;
}

.hero-scroller span {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.scroller-icon {
    width: 40px;
    height: 40px;
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(5%);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .fullscreen-hero {
        min-height: 500px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }
    
    .hero-search-form {
        flex-direction: column;
        border-radius: 12px;
    }
    
    .search-input {
        padding: 1rem 1.5rem;
    }
    
    .search-button {
        padding: 1rem;
        justify-content: center;
        border-radius: 0 0 12px 12px;
    }
    
    .btn-primary, .btn-secondary {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }
}

/* Compact Categories Section */
.compact-categories {
    padding: 1.5rem 0;
    margin: 2rem auto;
    max-width: 1200px;
    width: 100%;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 0 var(--spacing-md);
}

.section-header h2 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin: 0;
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    color: #3498db;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-view-all:hover {
    background: #e3f2fd;
    transform: translateX(4px);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    padding: 0 var(--spacing-md);
}

.category-card-container {
    position: relative;
}

.category-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    height: 100%;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.category-image {
    height: 100px;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.05);
}

.category-card h3 {
    padding: 0.75rem 0.5rem;
    margin: 0;
    font-size: 0.9rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.subcategory-indicator {
    display: block;
    padding: 0.5rem;
    background-color: #f1f1f1;
    text-align: center;
    font-size: 0.75rem;
    color: #666;
    border-top: 1px solid #eee;
}

/* Subcategory Dropdown */
.subcategory-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 100;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.category-card-container:hover .subcategory-dropdown {
    max-height: 400px;
}

.subcategory-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    padding: 0.75rem;
}

.subcategory-item {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    color: #333;
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.2s ease;
    border-radius: 4px;
}

.subcategory-item:hover {
    background-color: #f8f9fa;
    color: #3498db;
}

.subcategory-image {
    width: 25px;
    height: 25px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 0.5rem;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-image {
        height: 80px;
    }
}

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
}

/* Featured Products */
.featured-products {
    margin: 4rem 0;
    width: 100%;
}

.featured-products h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #003366;
    position: relative;
    padding-bottom: 1rem;
}

.featured-products h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #FF6B00;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 0 var(--spacing-md);
}

.product-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.product-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #FF6B00;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 2;
}

.product-details {
    padding: 1.5rem;
}

.product-details h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    color: #212529;
    font-weight: 600;
    line-height: 1.4;
}

.price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #FF6B00;
    margin-bottom: 0.25rem;
}

.compare-price {
    font-size: 0.875rem;
    color: #6c757d;
    text-decoration: line-through;
    margin-bottom: 0.5rem;
}

.product-rating {
    margin: 0.75rem 0;
    display: flex;
    align-items: center;
}

.product-rating i {
    margin-right: 2px;
    font-size: 0.9rem;
}

.rating-count {
    color: #6c757d;
    font-size: 0.8rem;
    margin-left: 5px;
}

.btn-add-to-cart {
    display: block;
    width: calc(100% - 3rem);
    margin: 0 1.5rem 1.5rem;
    background-color: #003366;
    color: white;
    padding: 0.75rem;
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-add-to-cart:hover {
    background-color: #002244;
    transform: translateY(-2px);
}

.btn-add-to-cart i {
    font-size: 0.9rem;
}

.view-all-container {
    text-align: center;
    margin-top: 3rem;
}

.btn-outline {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: transparent;
    color: #003366;
    border: 2px solid #003366;
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.875rem;
}

.btn-outline:hover {
    background: #003366;
    color: white;
    transform: translateY(-2px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-banner {
        height: 400px;
    }
    
    .hero-banner h1 {
        font-size: 2.25rem;
    }
    
    .hero-banner p {
        font-size: 1.1rem;
    }
    
    .category-grid, .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .subcategory-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-banner {
        height: 300px;
    }
    
    .hero-banner h1 {
        font-size: 1.75rem;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .category-grid, .product-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .btn-primary, .btn-add-to-cart {
        padding: 0.6rem 1.5rem;
        font-size: 0.875rem;
    }
    
    .featured-categories, .featured-products {
        margin: 3rem 0;
    }
    
    .featured-categories h2, .featured-products h2 {
        font-size: 1.75rem;
    }
}

/*--------------------------------------------------------------
# Buttons
--------------------------------------------------------------*/
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.5rem 1.25rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: var(--border-radius-md);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.btn-primary {
  color: var(--text-contrast);
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover {
  color: var(--text-contrast);
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-outline-primary {
  color: var(--primary);
  background-color: transparent;
  border-color: var(--primary);
}

.btn-outline-primary:hover {
  color: var(--text-contrast);
  background-color: var(--primary);
  border-color: var(--primary);
}

/*--------------------------------------------------------------
# Product Cards
--------------------------------------------------------------*/
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background-color: var(--surface-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.product-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.product-badge {
  position: absolute;
  top: var(--spacing-sm);
  right: var(--spacing-sm);
  background-color: var(--danger);
  color: var(--text-contrast);
  padding: 0.25rem 0.5rem;
  border-radius: var(--border-radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
}

.product-body {
  flex: 1 1 auto;
  padding: var(--spacing-md);
}

.product-title {
  font-size: 1.125rem;
  margin-bottom: var(--spacing-sm);
}

.product-price {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.25rem;
}

.product-old-price {
  text-decoration: line-through;
  color: var(--gray-60);
  font-size: 0.875rem;
  margin-left: var(--spacing-xs);
}

.product-rating {
  color: var(--warning);
  margin-bottom: var(--spacing-sm);
}

/*--------------------------------------------------------------
# Forms
--------------------------------------------------------------*/
.form-control {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-primary);
  background-color: var(--white);
  background-clip: padding-box;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
  color: var(--text-primary);
  background-color: var(--white);
  border-color: var(--primary-light);
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(255, 107, 0, 0.25);
}

/*--------------------------------------------------------------
# Responsive Utilities
--------------------------------------------------------------*/
@media (max-width: 767.98px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .nav-menu {
    flex-direction: column;
    width: 100%;
    margin-top: var(--spacing-md);
  }
  
  .nav-item {
    margin-left: 0;
    margin-bottom: var(--spacing-sm);
  }
}

/*--------------------------------------------------------------
# Animations
--------------------------------------------------------------*/
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in {
  animation: fadeIn var(--transition-medium);
}

/*--------------------------------------------------------------
# Print Styles
--------------------------------------------------------------*/
@media print {
  .no-print {
    display: none !important;
  }
  
  body {
    background-color: var(--white) !important;
    color: var(--black) !important;
  }
  
  a[href]::after {
    content: " (" attr(href) ")";
  }
}

/* Cheapsnatch Dashboard Styles */
.account-dashboard {
    padding: 2rem 0;
    background-color: #f8f9fa;
    min-height: calc(100vh - 120px);
    width: 100%;
}

.account-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eaeaea;
}

.account-header h1 {
    color: #FF6B00;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.account-header p {
    color: #6c757d;
    font-size: 1rem;
}

.account-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.account-sidebar {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    height: fit-content;
}

.account-main {
    display: grid;
    gap: 1.5rem;
    width: 100%;
}

/* Profile Section */
.account-profile {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.profile-image {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: #003366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    overflow: hidden;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-initials {
    font-size: 1.5rem;
    font-weight: bold;
}

.profile-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
    color: #212529;
}

.profile-info p {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

/* Login Section Styles */
.account-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    background: #f7f8fa;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    width: 100%;
}

.account-section .container {
    max-width: 400px;
    width: 100%;
}

.account-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    width: 100%;
}

.account-card h1 {
    margin-bottom: 25px;
    font-size: 24px;
    text-align: center;
    color: #333;
}

.alert.alert-error {
    background: #ffdddd;
    color: #a94442;
    border-left: 5px solid #f44336;
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Form Styling */
.account-form .form-group {
    margin-bottom: 20px;
}

.account-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #444;
}

.account-form input[type="email"],
.account-form input[type="password"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s ease;
}

.account-form input:focus {
    border-color: #f37021;
    outline: none;
}

/* Forgot Password Link */
.forgot-password {
    text-align: right;
    margin-top: 5px;
}

.forgot-password a {
    color: #f37021;
    font-size: 13px;
    text-decoration: none;
}

.forgot-password a:hover {
    text-decoration: underline;
}

/* Remember Me Checkbox */
.account-form .checkbox {
    display: flex;
    align-items: center;
}

.account-form .checkbox input {
    margin-right: 10px;
    transform: scale(1.1);
}

.account-form .checkbox label {
    font-size: 14px;
    color: #444;
}

/* Submit Button */
.btn.btn-primary {
    display: block;
    width: 100%;
    padding: 12px;
    background: #f37021;
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn.btn-primary:hover {
    background: #d95d17;
}

/* Footer Links */
.form-footer {
    text-align: center;
    margin-top: 25px;
}

.form-footer p {
    font-size: 14px;
    color: #555;
}

.form-footer a {
    color: #f37021;
    text-decoration: none;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* Responsive Tweak */
@media (max-width: 480px) {
    .account-card {
        padding: 30px 20px;
    }

    .account-card h1 {
        font-size: 20px;
    }
}

/* Reuse login styles for consistency */
.account-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    background: #f7f8fa;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.account-section .container {
    max-width: 500px;
    width: 100%;
}

.account-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

.account-card h1 {
    margin-bottom: 25px;
    font-size: 24px;
    text-align: center;
    color: #333;
}

.alert.alert-error {
    background: #ffdddd;
    color: #a94442;
    border-left: 5px solid #f44336;
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Form Styling */
.account-form .form-group {
    margin-bottom: 20px;
}

.account-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #444;
}

.account-form input[type="text"],
.account-form input[type="email"],
.account-form input[type="tel"],
.account-form input[type="password"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s ease;
}

.account-form input:focus {
    border-color: #f37021;
    outline: none;
}

/* Error States */
.has-error input {
    border-color: #f44336;
}

.error-message {
    color: #f44336;
    font-size: 13px;
    margin-top: 4px;
    display: block;
}

/* First + Last name side by side */
.account-form .form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.account-form .form-row .form-group {
    flex: 1;
    min-width: 48%;
}

/* Submit Button */
.btn.btn-primary {
    display: block;
    width: 100%;
    padding: 12px;
    background: #f37021;
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn.btn-primary:hover {
    background: #d95d17;
}

/* Footer Links */
.form-footer {
    text-align: center;
    margin-top: 25px;
}

.form-footer p {
    font-size: 14px;
    color: #555;
}

.form-footer a {
    color: #f37021;
    text-decoration: none;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* Responsive Tweaks */
@media (max-width: 500px) {
    .account-form .form-row {
        flex-direction: column;
    }

    .account-form .form-row .form-group {
        min-width: 100%;
    }

    .account-card {
        padding: 30px 20px;
    }

    .account-card h1 {
        font-size: 20px;
    }
}

/* Account Menu */
.account-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.account-menu li {
    margin-bottom: 0.5rem;
}

.account-menu a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #495057;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.account-menu a:hover {
    background-color: #FFF1E8;
    color: #FF6B00;
    text-decoration: none;
}

.account-menu a i {
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
}

.account-menu .active a {
    background-color: #FF6B00;
    color: white;
    font-weight: 500;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.dashboard-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    width: 100%;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f0f0f0;
}

.card-header h2 {
    font-size: 1.25rem;
    margin: 0;
    color: #212529;
}

.card-header a {
    color: #FF6B00;
    font-size: 0.875rem;
    font-weight: 500;
}

.card-header a:hover {
    text-decoration: underline;
}

/* Orders List */
.orders-list {
    display: grid;
    gap: 1rem;
    width: 100%;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 6px;
    width: 100%;
}

.order-info {
    flex: 1;
}

.order-number a {
    color: #003366;
    font-weight: 500;
    text-decoration: none;
}

.order-number a:hover {
    text-decoration: underline;
    color: #FF6B00;
}

.order-date, .order-items {
    font-size: 0.875rem;
    color: #6c757d;
    margin: 0.25rem 0;
}

.order-status {
    text-align: right;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: capitalize;
}

.status-badge.pending {
    background-color: #FFF3CD;
    color: #856404;
}

.status-badge.processing {
    background-color: #CCE5FF;
    color: #004085;
}

.status-badge.shipped {
    background-color: #D4EDDA;
    color: #155724;
}

.status-badge.delivered {
    background-color: #D1ECF1;
    color: #0C5460;
}

.status-badge.cancelled {
    background-color: #F8D7DA;
    color: #721C24;
}

.order-total {
    font-weight: 600;
    color: #212529;
    margin-top: 0.5rem;
}

/* Details List */
.details-list {
    display: grid;
    gap: 1rem;
    width: 100%;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed #eaeaea;
    width: 100%;
}

.detail-label {
    font-weight: 500;
    color: #6c757d;
}

.detail-value {
    color: #212529;
}

/* Address Details */
.address-details p {
    margin: 0.5rem 0;
    color: #495057;
}

/* Loyalty Points */
.loyalty-points {
    text-align: center;
    width: 100%;
}

.points-display {
    margin-bottom: 1rem;
}

.points-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #FF6B00;
    display: block;
    line-height: 1;
}

.points-label {
    font-size: 1rem;
    color: #6c757d;
}

.loyalty-points p {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 2rem 0;
    width: 100%;
}

.empty-state p {
    color: #6c757d;
    margin-bottom: 1rem;
}

.empty-state .btn {
    background-color: #FF6B00;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    display: inline-block;
}

.empty-state .btn:hover {
    background-color: #CC5600;
    text-decoration: none;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .account-content {
        grid-template-columns: 1fr;
    }
    
    .account-sidebar {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .order-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .order-status {
        margin-top: 1rem;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}

/* Footer Styles */
footer {
    background-color: #003366;
    color: #ffffff;
    padding: 3rem 0 0;
    margin-top: auto;
    font-family: var(--default-font);
    width: 100%;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md) 2rem;
    width: 100%;
}

.footer-column {
    margin-bottom: 1.5rem;
}

.footer-column h3 {
    color: #ffffff;
    font-size: 1.125rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: #FF6B00;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9375rem;
}

.footer-column ul li a:hover {
    color: #FF6B00;
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: #FF6B00;
    transform: translateY(-3px);
}

.footer-column p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 4px;
    font-size: 0.9375rem;
    background-color: rgba(255, 255, 255, 0.9);
}

.newsletter-form input:focus {
    outline: 2px solid #FF6B00;
    background-color: #ffffff;
}

.newsletter-form button {
    background-color: #FF6B00;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 0 1.25rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
    background-color: #CC5600;
}

.copyright {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem var(--spacing-md);
    width: 100%;
}

.copyright p {
    margin: 0.5rem 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

.legal-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: #FF6B00;
}

/* Responsive Adjustments */
@media (min-width: 768px) {
    .copyright {
        flex-direction: row;
        text-align: left;
    }
    
    .legal-links {
        margin-top: 0;
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form button {
        padding: 0.75rem;
    }
    
    .legal-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
}