@import url('https://fonts.googleapis.com/css2?family=Share+Tech&display=swap');
/* Fix for language switching and RTL layout */
body {
  direction: ltr; /* Default LTR direction */
  text-align: left; /* Default text alignment */
  unicode-bidi: plaintext; /* Better handling of mixed direction text */
}

/* RTL specific styles */
[dir='rtl'] {
  direction: rtl;
  text-align: right;
}

/* Prevent layout shifts when switching languages */
.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0.5rem 1rem;
  transition: none !important; /* Disable transitions that might cause layout shifts */
}

/* Ensure consistent navbar height */
.site-header {
  min-height: 60px; /* Fixed height to prevent shifts */
  display: flex;
  align-items: center;
}

/* Language switcher styles */
.language-switcher {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  padding: 3px;
  height: 40px;
  margin: 0 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.language-switcher:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

.language-switcher:active {
  transform: translateY(0);
}

.language-switcher button {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.9);
  padding: 0 1.5rem;
  height: 100%;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  z-index: 2;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50px;
  min-width: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  touch-action: manipulation;
}

.language-switcher button:hover {
  color: rgba(255, 255, 255, 1);
  transform: scale(1.05);
}

.language-switcher button:active {
  transform: scale(0.98);
}

.language-switcher {
  position: relative;
  display: flex;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  padding: 3px;
  height: 40px;
  margin: 0 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.language-switcher .indicator {
  position: absolute;
  top: 3px;
  left: 3px;
  height: calc(100% - 6px);
  background: linear-gradient(135deg, var(--primary-color), #ffd700);
  border-radius: 50px;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
  width: calc(50% - 3px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  will-change: transform;
  transform: translateX(0);
}

.language-switcher[data-lang='fa'] .indicator {
  transform: translateX(calc(100% + 2px));
}

.language-switcher button[data-lang='fa'],
.language-switcher button[data-lang='en'] {
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.2s ease, transform 0.2s ease;
}

.language-switcher button[data-lang='fa'].active,
.language-switcher button[data-lang='en'].active {
  color: #000;
  font-weight: 600;
}

.language-switcher button:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
  border-radius: 50px;
}

/* RTL adjustments */
[dir='rtl'] .language-switcher {
  margin-left: 0.75rem;
  margin-right: 0.75rem;
}

[dir='rtl'] .language-switcher .indicator {
  left: auto;
  right: 3px;
}

[dir='rtl'] .language-switcher .indicator {
  left: auto;
  right: 3px;
  transform: translateX(0);
}

[dir='rtl'] .language-switcher[data-lang='en'] .indicator {
  transform: translateX(calc(-100% - 2px));
}

[dir='rtl'] .language-switcher[data-lang='fa'] .indicator {
  transform: translateX(0);
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
  .language-switcher {
    height: 44px;
    margin: 0.75rem auto;
    width: 160px;
    max-width: 180px;
    padding: 3px;
    border-radius: 24px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.1);
    -webkit-tap-highlight-color: transparent;
  }
  
  .language-switcher .indicator {
    top: 3px;
    left: 3px;
    height: calc(100% - 6px);
    width: calc(50% - 3px);
    border-radius: 20px;
  }
  
  .language-switcher button {
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0 1rem;
    min-width: 44px; /* Minimum touch target size */
    letter-spacing: 0.4px;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.2s ease;
    position: relative;
    z-index: 2;
  }
  
  .language-switcher .indicator {
    top: 3px;
    left: 3px;
    height: calc(100% - 6px);
    width: calc(50% - 3px);
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary-color), #ffd700);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .language-switcher[data-lang='fa'] .indicator {
    transform: translateX(calc(100% + 2px));
  }
  
  [dir='rtl'] .language-switcher .indicator {
    right: 3px;
    left: auto;
  }
  
  [dir='rtl'] .language-switcher .indicator {
    left: auto;
    right: 3px;
  }
  
  [dir='rtl'] .language-switcher[data-lang='en'] .indicator {
    transform: translateX(calc(-100% - 2px));
  }
  
  [dir='rtl'] .language-switcher[data-lang='fa'] .indicator {
    transform: translateX(0);
  }
  
  /* Active state for better feedback */
  .language-switcher button:active {
    transform: scale(0.96);
  }
  
  /* Ensure proper text contrast */
  .language-switcher button[data-lang].active {
    color: #000;
    font-weight: 600;
  }
}

/* Admin menu toggle button */
.admin-menu-toggle {
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: none !important; /* Disable transitions */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ensure consistent spacing for RTL */
[dir='rtl'] .site-nav {
  flex-direction: row-reverse;
}

/* Fix for RTL navigation menu */
[dir='rtl'] .nav-menu {
  margin-right: 0;
  margin-left: auto;
}

/* Ensure consistent button alignment */
.user-options {
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: none !important;
}

/* Fix for RTL user options */
[dir='rtl'] .user-options {
  flex-direction: row-reverse;
}

/* Ensure consistent admin link display */
.admin-link {
  white-space: nowrap;
  padding: 0.5rem 1rem;
  display: none; /* Hidden by default, shown via JS for admins */
}

/* Mobile menu styles */
.menu-toggle {
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  display: none; /* Hidden by default, shown on mobile */
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .menu-toggle {
    display: block; /* Show on mobile */
  }
  
  .site-nav {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  
  .site-header .site-nav {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: var(--background-color);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 1rem 1rem 1rem;
    transition: right 0.3s ease-in-out;
    z-index: 1000;
    opacity: 1;
    visibility: visible;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  [dir='rtl'] .nav-menu {
    left: -300px;
    right: auto;
  }
  
  [dir='rtl'] .nav-menu.active {
    left: 0;
    right: auto;
  }
  
  .nav-menu li {
    width: 100%;
    margin: 0.5rem 0;
    text-align: left;
  }
  
  .nav-menu a {
    display: block;
    text-align: left;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  [dir='rtl'] .nav-menu li {
    text-align: right;
  }
  
  [dir='rtl'] .nav-menu a {
    text-align: right;
  }
  
  .user-options {
    margin-left: auto;
  }
}

/* Ensure consistent spacing for admin elements */
.admin-section {
  padding: 1rem;
  margin: 1rem 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
}

/* Fix for RTL forms */
[dir='rtl'] .form-control,
[dir='rtl'] .form-select,
[dir='rtl'] .btn {
  text-align: right;
}

/* Ensure consistent button icons */
.btn i {
  margin-right: 0.5rem;
}

[dir='rtl'] .btn i {
  margin-right: 0;
  margin-left: 0.5rem;
}

:root {
    --primary-color: #ffd700;
    --secondary-color: #1a1a1a;
    --text-color: #ffffff;
    --background-color: #000000;
    --container-padding: 1rem;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* Base styles and mobile-first approach */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Share Tech', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden;
}

/* Responsive container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Responsive images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Homepage Brands & Products browser */
.home-brand-browser {
    margin: 0 auto 2rem;
    max-width: 1200px;
    padding: 0 var(--container-padding);
    direction: ltr;
}

.home-brand-row {
    margin-bottom: 8px;
}

/* Homepage-specific overrides for brand folders */
.home-brand-browser .brand-folder-row {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 1rem;
    padding: 1rem;
    background: #ffd640;
    color: #000;
    border: 1px solid #ffd640;
    border-radius: var(--border-radius);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* هاور روی ردیف برند در صفحه اصلی: زرد کمی ملایم‌تر، نه مشکی */
.home-brand-browser .brand-folder-row:hover {
	background: #ffe980;
	color: #000;
}

.home-brand-browser .brand-folder-row .icon,
.home-brand-browser .brand-folder-row .count {
    color: #000;
}

.home-brand-browser .brand-folder-row .brand-logo img {
	width: 28px;
	height: 28px;
	object-fit: contain;
	border-radius: 50%;
}

.home-brand-browser .brand-folder-row .label {
    font-size: 1.35rem; /* حدوداً ۱.۵ برابر اندازه پیش‌فرض */
}

/* Smooth expand/collapse for products under each brand on homepage */
.home-brand-browser .brand-products {
    width: 60%;
    margin: 4px auto 0 auto;  /* هم‌تراز با برند، وسط */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.35s ease;
}

.home-brand-browser .brand-products.open {
    max-height: 420px; /* enough to show a few items */
    opacity: 1;
}

/* حالت فعال برای برند کلیک‌شده روی صفحه اصلی */
.home-brand-browser .brand-folder-row.active {
    background: #ffe980;              /* کمی کم‌رنگ‌تر برای حالت کلیک‌شده */
    color: #000;
    box-shadow: 0 0 0 2px #000, 0 6px 18px rgba(0,0,0,0.7);
}

/* Light mode removed: site is always dark theme */

html {
    scroll-behavior: smooth;
}

/* Rounded custom scrollbar (WebKit) and themed scrollbar (Firefox) */
* {
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: var(--primary-color) #111; /* Firefox */
}
*::-webkit-scrollbar { width: 14px; height: 14px; }
*::-webkit-scrollbar-track { background: #0b0b0b; border-radius: 999px; }
*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ffe34d, #ffd700);
  border-radius: 999px;
}
*::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ffe34d, var(--primary-color));
}

body {
    font-family: 'Share Tech', system-ui, -apple-system, Segoe UI, Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
}

/* Global rounded buttons */
button { border-radius: 999px; }

/* Carousel Styles */
.banner-carousel, .new-products {
    position: relative;
    overflow: hidden;
}

/* Make banner full-bleed across the viewport width */
.banner-carousel {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: 100vw;
    padding: 0;
}

.carousel-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100vw;
}

.banner-slide {
    min-width: 100%;
    /* Height: match hero height for big full banner */
    height: 100%;
    min-height: clamp(520px, 82vh, 900px);
    background-size: contain; /* show full image */
    background-position: center;
    background-repeat: no-repeat;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.new-products .carousel-wrapper {
    overflow: hidden;
}

.new-products .product-item {
    min-width: 260px; /* کمی کوچکتر از قبل */
    max-width: 280px;
    margin: 0 8px;
}

.new-product-info {
    margin-top: 0.4rem;
}

.new-product-info .product-name {
    font-size: 1rem;
}

.new-product-meta {
    font-size: 0.9rem;
    color: #ccc;
    text-align: right;
}

[dir='rtl'] {
    direction: rtl;
    text-align: right;
}

/* RTL Navigation */
[dir='rtl'] .site-nav {
    flex-direction: row-reverse;
    justify-content: space-between;
}

[dir='rtl'] .site-header .logo {
    margin-left: 1.5rem;
    margin-right: auto;
}

[dir='rtl'] .user-options {
    margin-left: 0;
    margin-right: auto;
    flex-direction: row;
}

/* Position menu toggle on the left in RTL */
[dir='rtl'] .menu-toggle {
    margin-right: 0.5rem;
    margin-left: 0;
    order: -1;
}

[dir='rtl'] .language-switcher {
    margin-left: 0;
    margin-right: 0.5rem;
}

[dir='rtl'] .site-nav > ul {
    padding: 0;
    margin: 0;
    text-align: right;
}

/* Mobile menu in RTL */
[dir='rtl'] .nav-menu {
    right: auto;
    left: 0;
    text-align: right;
}

[dir='rtl'] .nav-menu li {
    text-align: right;
}

/* Ensure proper spacing in RTL */
[dir='rtl'] .user-options > *:not(:last-child) {
    margin-left: 1rem;
    margin-right: 0;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 1rem;
    cursor: pointer;
    z-index: 100;
    border-radius: 999px;
}

.carousel-nav.prev {
    left: 10px;
}

.carousel-nav.next {
    right: 10px;
}

/* General Animation */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Navigation */
.site-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    background: var(--secondary-color);
    min-height: 70px; /* Fixed height to prevent layout shift */
}

/* Center navigation items in English mode */
[dir='ltr'] .nav-menu {
    margin: 0 auto;
    padding-left: 0;
    justify-content: center;
    flex: 1;
    padding-right: 1rem;
}

/* Adjust for RTL */
[dir='rtl'] .nav-menu {
    margin: 0 auto;
    padding-right: 0;
    justify-content: center;
    flex: 1;
    padding-left: 1rem;
}

/* Search bar styles */
.search-container {
    position: relative;
    width: 300px;
    margin: 1rem auto;
}

.search-container.centered-search {
    width: 100%;
    max-width: 400px;
    margin: 1rem 0;
    flex: 1;
}

.search-container input[type="search"] {
    width: 100%;
    padding: 0.3rem 1.8rem 0.3rem 0.8rem;
    border-radius: 16px;
    border: 1px solid var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.85rem;
    height: 32px;
    transition: all 0.3s ease;
}

.search-container input[type="search"]:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.3);
}

.search-container button {
    position: absolute;
    right: 0.6rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0;
    font-size: 1rem;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.search-container button:hover {
    opacity: 1;
}

/* Mobile Navigation */
.site-header {
    position: relative;
    z-index: 1000;
}

/* Mobile menu toggle button */
.menu-toggle {
    display: none; /* Hidden by default, shown on mobile */
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.5rem;
    margin: 0 0.5rem;
    z-index: 1001;
    width: 30px;
    height: 24px;
    position: relative;
}

/* Three lines for the menu icon - MOBILE VERSION ONLY */
.menu-toggle i {
    display: block;
    position: absolute;
    width: 100%;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: all 0.3s ease;
    top: 50%;
    transform: translateY(-50%);
}

/* Create the 3 lines */
.menu-toggle i::before,
.menu-toggle i::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Position the lines */
.menu-toggle i::before {
    top: -8px;
}

.menu-toggle i::after {
    bottom: -8px;
}

/* Active state (when menu is open) */
.menu-toggle.active i {
    background: transparent;
}

.menu-toggle.active i::before {
    top: 0;
    transform: rotate(45deg);
}

.menu-toggle.active i::after {
    bottom: 0;
    transform: rotate(-45deg);
}

/* Navigation Menu */
.site-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: var(--secondary-color);
    position: relative;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    min-width: 300px; /* Fixed width to prevent layout shift */
    justify-content: center;
    transition: transform 0.3s ease-in-out;
}

.nav-menu li {
    margin: 0 0.5rem;
}

.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    display: block;
    transition: color 0.2s ease;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

/* Responsive adjustments */
/* Laptop view (992px and above) - Modified layout */
@media (min-width: 992px) {
    .site-nav {
        padding: 1rem 2rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .nav-menu {
        display: flex;
        align-items: center;
        gap: 3rem; /* Increased gap for better spacing */
        margin: 0 auto;
        padding: 0 1rem;
        max-width: 50%;
        justify-content: center;
    }
    
    /* Hide profile link from main nav */
    .nav-menu li a[href*='profile'],
    .nav-menu li a[href*='پروفایل'] {
        display: none !important;
    }
    
    .menu-toggle {
        display: none;
    }
    
    /* User options in header */
    .user-options {
        margin-left: auto;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    /* Language switcher in desktop view */
    .language-switcher {
        margin: 0 0.5rem;
    }
}

/* Mobile language switcher styles */
@media (max-width: 991.98px) {
  .language-switcher {
    margin: 0.5rem auto;
    width: 200px;
    height: 40px;
  }
  
  .language-switcher button {
    flex: 1;
    font-size: 1rem;
  }
}

/* Tablet and below */
@media (max-width: 991.98px) {
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        transition: transform 0.3s ease;
        order: 1;
    }
    
    [dir='rtl'] .menu-toggle {
        order: -1;
        margin-right: 0.5rem;
        margin-left: 0;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--secondary-color);
        flex-direction: column;
        padding: 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: max-height 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    }
    
    .nav-menu.active {
        max-height: 500px; /* Adjust based on your content */
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        transition: all 0.5s ease-in-out, opacity 0.3s ease-in-out;
    }
    
    .nav-menu li {
        margin: 0.5rem 0;
        width: 100%;
    }
    
    .nav-menu a {
        padding: 0.8rem 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .menu-toggle {
        position: relative;
        z-index: 1001;
    }
    
    /* RTL adjustments */
    [dir='rtl'] .menu-toggle {
        margin-left: 0.5rem;
        margin-right: auto;
    }
    
    /* Overlay when menu is open */
    .menu-overlay {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.7);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0s linear 0.3s;
        backdrop-filter: blur(2px);
    }
    
    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
        transition: opacity 0.3s ease;
    }
    
    /* Hide user options in mobile menu */
    .user-options {
        display: none;
    }
    
    /* Show mobile-specific menu items */
    .hide-on-desktop {
        display: block !important;
    }
    
    /* Admin link visibility */
    .admin-link {
        display: none !important;
    }

    /* Show admin link when user is admin */
    body.admin-logged-in .admin-link,
    body.admin-logged-in .hide-on-desktop.admin-link {
        display: inline-block !important;
    }

    /* Show admin link in mobile menu when logged in */
    body.admin-logged-in .nav-menu .admin-link {
        display: block !important;
    }
    
    /* Ensure proper spacing for admin link */
    .nav-menu .admin-link {
        margin-top: 0.5rem;
        padding: 0.8rem 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    /* Adjust logo position */
    .logo {
        margin-right: auto;
    }
}

/* WhatsApp Button Styles */
.footer-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    background: #25D366;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    margin-top: 0.5rem;
    transition: background-color 0.3s ease;
}

.footer-whatsapp-btn:hover {
    background: #128C7E;
}

.footer-whatsapp-btn i {
    margin-left: 0.5rem;
    font-size: 1.2rem;
}

/* Search and filter container */
.search-filter-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    max-width: 1200px;
    margin: 1rem auto 2rem;
    padding: 0 1rem;
    flex-wrap: wrap;
}

/* Laptop Footer */
.laptop-footer {
    display: none;
}

@media (min-width: 992px) {
    .laptop-footer {
        display: block;
        background-color: #1a1a1a;
        color: #fff;
        padding: 3rem 2rem;
    }
    
    .laptop-footer-container {
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .laptop-footer-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        align-items: flex-start;
    }
    
    .laptop-footer-address, 
    .laptop-footer-contact {
        padding: 1.5rem;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 10px;
        height: 100%;
    }
    
    .laptop-footer-address {
        display: flex;
        gap: 1.5rem;
    }
    
    .footer-logo i {
        font-size: 3rem;
        color: var(--primary-color);
    }
    
    .footer-address-content h3 {
        margin: 0 0 1rem 0;
        font-size: 1.5rem;
        color: #fff;
    }
    
    .address-line {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin: 0.5rem 0;
        color: #ccc;
    }
    
    .address-line i {
        color: var(--primary-color);
    }
    
    .rating {
        margin-top: 1rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    .rating i {
        color: #ffc107;
    }
    
    .laptop-footer-contact h3 {
        margin: 0 0 1.5rem 0;
        font-size: 1.5rem;
        color: #fff;
        text-align: right;
    }
    
    .contact-info p {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin: 1rem 0;
        color: #ccc;
    }
    
    .contact-info i {
        color: var(--primary-color);
        font-size: 1.2rem;
    }
    
    .whatsapp-button {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        background: #25D366;
        color: white;
        padding: 0.75rem 1.5rem;
        border-radius: 50px;
        text-decoration: none;
        margin-top: 1rem;
        font-weight: 500;
        transition: all 0.3s ease;
    }
    
    .whatsapp-button:hover {
        background: #128C7E;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }
    
    /* Hide the mobile footer on desktop */
    .footer-modern {
        display: none;
    }
}

/* Mobile footer styles remain unchanged */
@media (max-width: 991.98px) {
    .laptop-footer {
        display: none !important;
    }
    
    .footer-modern {
        display: block;
    }
}

/* ... */
.product-card {
    background: #1a1a1a;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background-color: var(--primary-color);
    color: #000;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    html {
        font-size: 15px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .site-nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--secondary-color);
        flex-direction: column;
        padding: 1rem 0;
        gap: 0;
    }
    
    .site-nav ul.active {
        display: flex;
    }
    
    .site-nav ul li {
        width: 100%;
        text-align: center;
        padding: 0.5rem 0;
    }
    
    .site-nav ul li a {
        display: block;
        padding: 0.5rem 1rem;
    }
    
    .hero {
        height: 50vh;
        min-height: 300px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    /* Navbar: keep horizontal on small screens, just reduce gap/size */
    nav ul {
        gap: 0.8rem;
    }
    nav ul li a {
        font-size: 1.05rem;
    }
    .user-options {
        gap: 0.5rem;
    }

    main {
        padding: 1.2rem 1rem;
    }

    .hero {
        min-height: clamp(360px, 70vh, 640px);
    }

    .new-products, .product-list-section {
        margin-bottom: 1.5rem;
    }

    .home-brand-browser .brand-folder-row,
    .home-brand-browser .brand-products {
        width: 100%;
        margin: 4px 0;
    }

    .product-list {
        grid-template-columns: 1fr;
    }

    #product-details-container {
        padding: 1.5rem 1rem;
    }

    .product-details-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .floating-share-buttons {
        bottom: 1rem;
        right: 1rem;
    }

    .auth-page, .profile-page {
        padding: 1.5rem 1rem;
    }

    .auth-container, .profile-container {
        padding: 1.5rem 1.8rem;
    }
}

@media (min-width: 769px) and (max-width: 1100px) {
    .product-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-brand-browser .brand-folder-row,
    .home-brand-browser .brand-products {
        width: 80%;
    }
}

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

header {
    background-color: var(--secondary-color);
    padding: 1rem 2rem;
    border-bottom: 2px solid var(--primary-color);
}

/* Scroll-responsive header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(26,26,26,0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,215,0,0.25);
  transition: height .25s ease, transform .25s ease, background .25s ease, box-shadow .25s ease;
}
.site-header.expanded { height: 84px; transform: translateY(0); box-shadow: 0 6px 24px rgba(0,0,0,.25); }
.site-header.compact  { height: 64px; transform: translateY(0); background: rgba(20,20,20,0.9); box-shadow: 0 4px 16px rgba(0,0,0,.2); }
.site-header.hidden   { height: 64px; transform: translateY(-110%); box-shadow: none; }

.site-nav { display:flex; align-items:center; justify-content:space-between; height:100%; max-width:1200px; margin:0 auto; padding:0 16px; }
.site-header .logo { transition: transform .25s ease, opacity .25s ease; }
.site-header.expanded .logo { transform: scale(1.08); opacity: 1; }
.site-header.compact  .logo { transform: scale(0.98); opacity: .95; }

.site-header ul { display:flex; gap:1.5rem; transition: opacity .2s ease, visibility .2s ease; }
.site-header.compact ul { display:none; }
.site-header.hidden  ul { display:none; }

body.has-fixed-header main { padding-top: 96px; }

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
}

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

nav ul li a {
    color: var(--text-color);
    font-size: 1.25rem;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--primary-color);
}

.user-options {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-options button, .user-options a {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    border-radius: 999px;
}

.user-options button:hover, .user-options a:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

main {
    padding: 2rem;
}

.banner {
    background-color: var(--secondary-color);
    padding: 4rem 2rem;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.banner h1 {
    font-size: 3rem;
    color: var(--primary-color);
}

.new-products, .product-list-section {
    margin-bottom: 2rem;
}

/* New Products Carousel Cards */
.new-products .carousel-wrapper {
    overflow: hidden;
    position: relative;
    padding: 1rem 0;
}

.new-products #new-products-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 1rem;
    padding: 0 1rem;
}

.new-product-card {
    flex: 0 0 280px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.new-product-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.new-product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    background: rgba(0, 0, 0, 0.2);
}

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

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

.new-product-info {
    padding: 1rem;
    text-align: center;
}

.new-product-brand {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.new-product-name {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.new-product-size {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

/* New Products Section Header */
.new-products h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    position: relative;
}

.new-products h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color, #4CAF50), var(--accent-color, #2196F3));
    border-radius: 2px;
}

/* Carousel Navigation Buttons for New Products */
.new-products .carousel-nav {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
    z-index: 10;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.new-products .carousel-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.new-products .carousel-nav.prev {
    left: 20px;
}

.new-products .carousel-nav.next {
    right: 20px;
}

/* Mobile Banner Carousel Optimizations - Updated: 2025-01-02 */
@media (max-width: 768px) {
    .banner-carousel-section {
        margin: 0;
        padding: 0;
    }
    
    .banner-carousel {
        width: 100%;
        max-width: 400px;
        height: 300px;
        margin: 0 auto 0 auto;
        border-radius: 12px;
        overflow: hidden;
        position: relative;
        left: 50%;
        transform: translateX(-50%);
        top: 0;
    }
    
    .banner-carousel .carousel-inner {
        width: 100%;
        height: 100%;
        position: relative;
    }
    
    .banner-carousel .banner-slide {
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        opacity: 0;
        transition: opacity 0.3s ease-in-out;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .banner-carousel .banner-slide.active {
        opacity: 1;
    }
    
    .banner-carousel .banner-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
    
    .banner-carousel .carousel-btn {
        width: 40px;
        height: 40px;
        background: rgba(0, 0, 0, 0.8);
        border: none;
        border-radius: 50%;
        color: white;
        font-size: 18px;
        cursor: pointer;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
    
    .banner-carousel .carousel-btn:hover {
        background: rgba(0, 0, 0, 0.9);
        transform: translateY(-50%) scale(1.1);
    }
    
    .banner-carousel .carousel-btn:active {
        transform: translateY(-50%) scale(0.95);
    }
    
    .banner-carousel .carousel-btn.prev {
        left: 10px;
    }
    
    .banner-carousel .carousel-btn.next {
        right: 10px;
    }
    
    /* Prevent zoom on double tap */
    .banner-carousel {
        touch-action: pan-y;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
    }
    
    /* Hero section mobile adjustments */
    .hero {
        width: 90%;
        max-width: 400px;
        height: 300px;
        min-height: 300px;
        margin: 0 auto;
        border-radius: 12px;
        position: relative;
        left: 50%;
        transform: translateX(-50%);
        overflow: hidden;
    }
    
    .hero .carousel-container {
        width: 100%;
        height: 100%;
    }
    
    .hero .banner-slide {
        width: 100%;
        height: 100%;
        min-height: 300px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero .banner-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
    
    .hero .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 18px;
        background: rgba(0, 0, 0, 0.8);
        border: none;
        border-radius: 50%;
        color: white;
        cursor: pointer;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
        transition: all 0.3s ease;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
    
    .hero .carousel-nav.prev {
        left: 10px;
    }
    
    .hero .carousel-nav.next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .banner-carousel {
        width: 100%;
        max-width: 350px;
        height: 250px;
    }
    
    .hero {
        width: 100%;
        max-width: 350px;
        height: 250px;
        min-height: 250px;
    }
    
    .banner-carousel .carousel-btn,
    .hero .carousel-nav {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .banner-carousel .carousel-btn.prev,
    .hero .carousel-nav.prev {
        left: 8px;
    }
    
    .banner-carousel .carousel-btn.next,
    .hero .carousel-nav.next {
        right: 8px;
    }
}

/* Responsive Design for New Products */
@media (max-width: 768px) {
    .new-products #new-products-container {
        padding: 0 0.5rem;
        gap: 0.75rem;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x;
    }
    
    .new-product-card {
        flex: 0 0 240px;
    }
    
    .new-product-image {
        height: 160px;
    }
    
    .new-products .carousel-nav {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        background: rgba(0, 0, 0, 0.7);
        border: none;
        border-radius: 50%;
        color: white;
        cursor: pointer;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
        transition: all 0.3s ease;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    .new-products .carousel-nav.prev {
        left: 10px;
    }
    
    .new-products .carousel-nav.next {
        right: 10px;
    }
    
    .new-products h2 {
        font-size: 1.5rem;
    }
    
    /* New products container mobile optimizations */
    .new-products .carousel-wrapper {
        overflow: hidden;
        position: relative;
        touch-action: pan-x;
    }
    
    .new-products #new-products-container {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
    }
    
    .new-products #new-products-container::-webkit-scrollbar {
        display: none; /* Chrome/Safari/Opera */
    }
    
    .new-product-card {
        scroll-snap-align: start;
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .new-product-card {
        flex: 0 0 200px;
    }
    
    .new-product-image {
        height: 140px;
    }
    
    .new-product-info {
        padding: 0.75rem;
    }
    
    .new-product-brand {
        font-size: 1rem;
    }
    
    .new-product-name {
        font-size: 0.85rem;
    }
    
    .new-product-size {
        font-size: 0.8rem;
    }
}

/* Product Folder Structure Styles */
.product-folders-container {
    margin-top: 2rem;
}

.brand-folder, .tire-folder {
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
}

.folder-header {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 0.75rem;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.folder-header:hover {
    background: rgba(255, 255, 255, 0.15);
}

.folder-icon {
    font-size: 1.2rem;
    min-width: 24px;
}

.folder-name {
    font-weight: 600;
    color: #fff;
    flex: 1;
}

.folder-details {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.folder-count {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.folder-content {
    display: none;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
}

.tire-folder {
    margin-left: 1rem;
    border-left: 3px solid rgba(255, 255, 255, 0.3);
}

.products-list {
    background: rgba(0, 0, 0, 0.3);
}

.product-item {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
}

.product-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-code {
    font-weight: 600;
    color: #fff;
    font-size: 0.9rem;
}

.product-specs {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.spec-item {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.product-status {
    margin-top: 0.5rem;
}

.status-indicator.new {
    background: #4CAF50;
    color: #fff;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

.no-products {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    padding: 2rem;
    font-style: italic;
}

/* Responsive design for folders */
@media (max-width: 768px) {
    .folder-header {
        padding: 0.75rem;
        gap: 0.5rem;
    }
    
    .folder-icon {
        font-size: 1rem;
    }
    
    .folder-name {
        font-size: 0.9rem;
    }
    
    .folder-details {
        font-size: 0.8rem;
    }
    
    .tire-folder {
        margin-left: 0.5rem;
    }
    
    .product-specs {
        gap: 0.5rem;
    }
    
    .spec-item {
        font-size: 0.7rem;
    }
}

h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 1rem;
}

.tabs-container {
    display: flex;
    justify-content: center;
    margin: 1rem auto;
    max-width: 100%;
    width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
}

.tabs {
    display: inline-flex;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem;
    border-radius: 50px;
}

.tab-button {
    padding: 0.5rem 1.5rem;
    border: none;
    background: transparent;
    color: var(--text-color);
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    border-radius: 50px;
}

.tab-button.active, .tab-button:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    font-weight: 500;
}

.search-filter-container {
    display: none;
}

.search-and-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin: 0.5rem auto 1.5rem;
    max-width: 800px;
    padding: 0 1rem;
}

#search-bar {
    flex: 2;
    min-width: 200px;
    padding: 0.4rem 1rem;
    height: 36px;
    font-size: 0.9rem;
    background-color: var(--secondary-color);
    border: 1px solid var(--primary-color);
    color: var(--text-color);
    border-radius: 4px;
}

.filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    flex: 3;
}

.filters select {
    padding: 0.4rem 0.8rem;
    height: 36px;
    font-size: 0.9rem;
    background-color: var(--secondary-color);
    border: 1px solid var(--primary-color);
    color: var(--text-color);
    border-radius: 4px;
    min-width: 120px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .search-and-filter {
        flex-direction: column;
        align-items: stretch;
    }
    
    #search-bar, .filters, .filters select {
        width: 100%;
    }
    
    .filters {
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

/* Responsive tables */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Laptop view adjustments */
@media (min-width: 992px) {
    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 15px;
    }
    
    .site-header {
        padding: 0 2rem;
    }
    
    .nav-menu {
        display: flex;
        gap: 2rem;
    }
    
    .user-options {
        margin-left: auto;
    }
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

th, td {
    padding: 0.75rem;
    text-align: right;
    border-bottom: 1px solid #333;
}

/* Utility classes */
.hide-on-mobile {
    display: block;
}

.hide-on-desktop {
    display: none;
}

@media (max-width: 768px) {
    .hide-on-mobile {
        display: none;
    }
    
    .hide-on-desktop {
        display: block;
    }
    
    .filters {
        flex-direction: column;
    }
    
    .filters > * {
        width: 100%;
    }
}

/* Loading animation */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

/* Modern multi-column footer */
.footer-modern {
  background: #000000;
  border-top: 2px solid var(--primary-color);
  padding: 3rem 1.8rem 1.5rem;
  color: #ecf0f1;
  font-family: 'Tahoma', 'Segoe UI', sans-serif;
}

.footer-modern .footer-grid {
  max-width: 1200px;
  margin: 0 auto 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

/* Address Card Styles */
.footer-address-container {
  width: 100%;
}

.footer-address-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  gap: 1.5rem;
  height: 100%;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footer-address-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.footer-logo {
  font-size: 2.5rem;
  color: #f39c12;
  min-width: 60px;
  text-align: center;
  padding-top: 0.5rem;
}

.footer-address-content {
  flex: 1;
}

.footer-company-name {
  color: #f39c12;
  margin: 0 0 1rem 0;
  font-size: 1.4rem;
  font-weight: 600;
}

.address-section {
  margin-bottom: 1rem;
}

.address-line {
  margin: 0.3rem 0;
  color: #bdc3c7;
  font-size: 0.95rem;
  line-height: 1.5;
}

.rating-section {
  margin-top: 1.2rem;
}

.stars {
  color: #f1c40f;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rating-text {
  color: #bdc3c7;
  font-size: 0.9rem;
  margin-left: 0.5rem;
}

/* Contact Card Styles */
.footer-contact {
  width: 100%;
}

.contact-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.5rem;
  height: 100%;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.contact-heading {
  color: #f39c12;
  margin: 0 0 1.5rem 0;
  font-size: 1.4rem;
  text-align: right;
  font-weight: 600;
}

.contact-info {
  margin-bottom: 1.5rem;
}

.contact-phone,
.contact-whatsapp,
.contact-email {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0.8rem 0;
  color: #ecf0f1;
  font-size: 1rem;
  direction: ltr;
  text-align: right;
}

.contact-phone i,
.contact-whatsapp i,
.contact-email i {
  color: #f39c12;
  font-size: 1.2rem;
  min-width: 24px;
  text-align: center;
}

.whatsapp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background-color: #25D366;
  color: white;
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  margin-top: 0.5rem;
  width: auto;
  min-width: 140px;
  text-align: center;
  font-size: 0.85rem;
  border: none;
  box-shadow: 0 2px 6px rgba(37, 211, 102, 0.3);
}

.whatsapp-button:hover {
  background-color: #128C7E;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(18, 140, 126, 0.4);
}

.whatsapp-button i {
  font-size: 1.1rem;
  color: white;
  transition: transform 0.2s ease;
}

.whatsapp-button:hover i {
  transform: scale(1.1);
}

.foot-bottom {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #95a5a6;
  font-size: 0.9rem;
}

/* RTL Support */
[dir='rtl'] .footer-address-card,
[dir='rtl'] .contact-card {
  text-align: right;
}

[dir='rtl'] .footer-logo {
  margin-left: 1rem;
  margin-right: 0;
}

[dir='rtl'] .whatsapp-button {
  direction: rtl;
}

@media (min-width: 768px) {
  .footer-modern .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    gap: 2rem;
  }
  
  .footer-address-container,
  .footer-contact {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .footer-address-card,
  .contact-card {
    padding: 1.2rem;
  }
  
  .footer-company-name,
  .contact-heading {
    font-size: 1.2rem;
  }
  
  .address-line,
  .contact-phone,
  .contact-whatsapp,
  .contact-email {
    font-size: 0.9rem;
  }
  
  .whatsapp-button {
    padding: 0.7rem 1.2rem;
    font-size: 0.95rem;
  }
}
.footer-modern h4 { color: var(--text-color); margin: 0 0 .8rem 0; font-size: 1.1rem; }
.footer-modern p, .footer-modern li { color: #d7d7d7; margin: .2rem 0; list-style: none; }
.footer-modern .brand-card { display:flex; gap:.8rem; align-items:flex-start; background: rgba(255,255,255,0.03); border:1px solid rgba(255,255,255,0.06); padding:1rem; border-radius:12px }
.footer-modern .pill { display:block; background:#0f1220; border:1px solid rgba(255,255,255,0.08); padding:.6rem .8rem; border-radius:10px; margin:.4rem 0; color:#e6e6e6 }
.footer-modern .sub { opacity:.7; font-size:.9rem }
.footer-modern .note { background:#0f1220; border:1px solid rgba(255,255,255,0.08); padding:.8rem; border-radius:10px; color:#e6e6e6 }
.footer-modern .foot-bottom { text-align:center; opacity:.8; margin-top:1.2rem; font-size:.95rem }

/* Loader */
.site-loader{position:fixed;inset:0;background:#000;display:flex;align-items:center;justify-content:center;z-index:9999;transition:opacity .4s ease,visibility .4s ease}
.site-loader.hidden{opacity:0;visibility:hidden}
.loader-center{position:relative;width:min(60vmin,360px);height:min(60vmin,360px);display:grid;place-items:center}
.loader-text{position:absolute;z-index:2;font-family:Oswald,system-ui,sans-serif;letter-spacing:.08em;color:#111;background:#ffd700;padding:.3rem .6rem;border-radius:8px;mix-blend-mode:exclusion}
.loader-bw{grid-area:1/1/2/2;width:100%;height:100%;border-radius:50%;background:conic-gradient(#ffd700 0deg 180deg,#000 180.001deg 360deg);animation:spin 2.4s linear infinite}
@keyframes spin{to{transform:rotate(1turn)}}

/* Hero: simple large banner image without glass blur or text */
.hero {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    margin-bottom: 2rem;
    min-height: clamp(520px, 82vh, 900px);
}

.hero-banner-image {
    width: 100%;
    height: 100%;
    max-height: 720px;
    object-fit: cover;
    display: block;
    transition: opacity 0.6s ease;
}

/* Pill Toggle (generic) */
.pill-toggle{position:relative;display:inline-flex;border:1px solid #333;border-radius:999px;background:#0b0b0b;overflow:hidden}
.pill-toggle button{position:relative;z-index:1;background:transparent;border:0;color:#fff;padding:.5rem 1rem;cursor:pointer}
.pill-toggle .indicator{position:absolute;inset:0;width:50%;background:linear-gradient(135deg,var(--primary-color) 50%,#333 50%);border-radius:999px;transform:translateX(0);transition:transform .25s ease}
.pill-right .indicator{transform:translateX(100%)}

/* Small rounded general polish */
.product-item, .auth-container, .profile-container, .banner, .selection-area { border-radius:16px }

/* Product List Styles */
.product-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.product-item {
  display: flex;
  flex-direction: column;
  background-color: var(--secondary-color);
  border: 1px solid #333;
  border-radius: 12px;
  padding: 1rem;
  cursor: pointer;
  transition: background-color 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
}

.product-item:hover {
    background-color: #2a2a2a;
    border-color: var(--primary-color);
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.2);
}

.product-image {
    width: 100%;
    aspect-ratio: 1 / 1.1; /* more squarish but not perfect square */
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 0.8rem;
}

.product-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.product-name {
    font-size: 1.2rem;
    color: var(--text-color);
}

.product-code {
    font-size: 1rem;
    color: #aaa;
}

.product-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-icon {
    width: 24px;
    height: 24px;
}

.no-results {
    text-align: center;
    font-size: 1.2rem;
    color: var(--primary-color);
    grid-column: 1 / -1;
}

/* Product Details Page Styles */
#product-details-container {
    padding: 2rem 5%;
}

.product-details-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: flex-start;
}

.product-gallery .cover-image img {
    width: 100%;
    border-radius: 8px;
    border: 2px solid var(--primary-color);
}

.brand-folders-container {
    width: 100%;
    overflow: visible;
    position: relative;
}

.brand-folders-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    width: 100%;
    overflow: visible;
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.thumbnail-grid img {
    width: 100%;
    border-radius: 4px;
    border: 1px solid #444;
}

.product-information h1 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.product-code-details {
    font-size: 1.2rem;
    color: #aaa;
    margin-bottom: 2rem;
}

.specifications h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    border-bottom: 1px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.specifications ul {
    list-style: none;
    padding: 0;
    font-size: 1.1rem;
    line-height: 1.8;
}

.selection-area {
    margin-top: 2rem;
    background-color: var(--secondary-color);
    padding: 1.5rem;
    border-radius: 8px;
}

.selection-area h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 0;
}

.image-selection-list label {
    display: block;
    margin-bottom: 0.5rem;
}

#select-all {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 1rem;
    transition: background-color 0.3s;
    border-radius: 999px;
}

#select-all:hover {
    background-color: #ffd700b3; /* Lighter yellow */
}

/* Floating Share Buttons */
.floating-share-buttons {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 1000;
}

.floating-share-buttons button {
    background-color: var(--primary-color);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, background-color 0.3s;
}

.floating-share-buttons button:hover {
    transform: scale(1.1);
    background-color: #fff;
}

.floating-share-buttons img {
    width: 30px;
    height: 30px;
}

/* Auth & Profile Page Styles */
.auth-page, .profile-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 2rem;
}

.auth-container, .profile-container {
    background-color: var(--secondary-color);
    padding: 2rem 3rem;
    border-radius: 8px;
    border: 1px solid var(--primary-color);
    width: 100%;
    max-width: 500px;
    text-align: center;
}

/* Remove light-mode variants for auth/profile to keep consistent dark UI */

.auth-container h1, .profile-container h1 {
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    background-color: var(--background-color);
    border: 1px solid var(--primary-color);
    color: var(--text-color);
    border-radius: 4px;
}

.auth-container button, .profile-container button {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s;
    border-radius: 999px;
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    text-align: left;
}

.profile-picture img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    object-fit: cover;
}

#profile-pic-upload {
    display: none;
}

.profile-picture label {
    display: block;
    margin-top: 0.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Laptop Footer Styles */
.laptop-footer {
    display: none; /* Hidden by default, shown only on larger screens */
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 100;
}

.laptop-footer-copyright {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Tahoma', 'Segoe UI', sans-serif;
    direction: ltr;
    display: block;
}

.laptop-footer-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}

.laptop-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    gap: 2rem;
    align-items: flex-start;
}

.laptop-footer-address,
.laptop-footer-contact {
    padding: 1.5rem;
    background: #1a1a1a;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Address Section */
.laptop-footer-address {
    display: flex;
    gap: 1.5rem;
}

.footer-logo i {
    font-size: 2.5rem;
    color: #f39c12;
}

.footer-address-content {
    flex: 1;
}

.footer-company-name {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-family: 'Tahoma', 'Segoe UI', sans-serif;
}

.address-section {
    margin-bottom: 1.5rem;
}

.address-line {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.8rem;
    color: #ecf0f1;
    line-height: 1.6;
    font-family: 'Tahoma', 'Segoe UI', sans-serif;
}

.address-line i {
    color: #f39c12;
    margin-left: 0.5rem;
    font-size: 1.2rem;
    min-width: 24px;
    text-align: center;
    margin-top: 2px;
}

.rating {
    color: #f1c40f;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.rating .rating-text {
    color: #95a5a6;
    font-size: 0.9rem;
    display: block;
    font-family: 'Tahoma', 'Segoe UI', sans-serif;
}

/* Contact Section */
.laptop-footer-contact {
    display: flex;
    flex-direction: column;
}

.footer-contact-heading {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-family: 'Tahoma', 'Segoe UI', sans-serif;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-phone,
.contact-whatsapp {
    display: flex;
    align-items: center;
    color: #ecf0f1;
    font-family: 'Tahoma', 'Segoe UI', sans-serif;
}

.contact-phone i,
.contact-whatsapp i {
    color: #f39c12;
    margin-left: 0.5rem;
    font-size: 1.2rem;
    min-width: 24px;
    text-align: center;
}

.whatsapp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background-color: #25D366;
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
    width: fit-content;
    font-size: 0.9rem;
    border: none;
    box-shadow: 0 2px 6px rgba(37, 211, 102, 0.3);
    font-family: 'Tahoma', 'Segoe UI', sans-serif;
}

.whatsapp-button:hover {
    background-color: #128C7E;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(18, 140, 126, 0.4);
}

.whatsapp-button i {
    font-size: 1.1rem;
    color: white;
    transition: transform 0.2s ease;
}

.whatsapp-button:hover i {
    transform: scale(1.1);
}

/* Show laptop footer only on larger screens */
@media (min-width: 1024px) {
    .laptop-footer {
        display: block;
    }
    
    /* Hide the regular footer on desktop */
    .footer-modern {
        display: none;
    }
}

/* Hide laptop footer on mobile/tablet */
@media (max-width: 1023px) {
    .laptop-footer {
        display: none;
    }
    
    /* Show the regular footer on mobile/tablet */
    .footer-modern {
        display: block;
    }
}