/*
=========================================================
  MIDOFY THEME - Inspired by noon.com & Shopify
  OpenCart 3.x Extension Theme
  Modern, Clean, Professional Design
=========================================================
*/

/* ==================== CSS VARIABLES ==================== */
:root {
  /* Primary Colors - noon.com inspired */
  --primary: #FFC220;
  --primary-hover: #e6ae00;
  --primary-dark: #cc9900;
  
  /* Secondary Colors - Shopify inspired */
  --secondary: #008060;
  --secondary-hover: #006b4f;
  
  /* Neutral Colors */
  --dark: #1a1a1a;
  --gray-dark: #333333;
  --gray: #666666;
  --gray-light: #999999;
  --light: #f5f5f5;
  --white: #ffffff;
  
  /* Status Colors */
  --success: #00a650;
  --danger: #e74c3c;
  --warning: #f39c12;
  --info: #3498db;
  
  /* Border & Shadow */
  --border-color: #e0e0e0;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 25px rgba(0,0,0,0.15);
  
  /* Spacing */
  --spacing-xs: 5px;
  --spacing-sm: 10px;
  --spacing-md: 15px;
  --spacing-lg: 20px;
  --spacing-xl: 30px;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-round: 50%;
  
  /* Transitions */
  --transition: all 0.3s ease;
}

/* ==================== GLOBAL RESET ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.mobile-theme {
  --mobile-grid-columns: 2;
  --mobile-bottom-bg: #ffffff;
  --mobile-bottom-text: #333333;
  --mobile-bottom-active: #d32f2f;
  --mobile-bottom-icon: #333333;
  --mobile-bottom-icon-active: #d32f2f;
  --mobile-bottom-icon-size: 22px;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: var(--gray-dark);
  margin-bottom: var(--spacing-md);
}

h1 { font-size: 32px; line-height: 1.2; }
h2 { font-size: 28px; line-height: 1.3; }
h3 { font-size: 24px; line-height: 1.4; }
h4 { font-size: 20px; line-height: 1.5; }
h5 { font-size: 16px; line-height: 1.5; }
h6 { font-size: 14px; line-height: 1.5; }

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

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

img {
  max-width: 100%;
  height: auto;
}

/* ==================== TOP BAR ==================== */
#top {
  background: var(--light);
  border-bottom: 1px solid var(--border-color);
  padding: 8px 0;
  font-size: 13px;
}

#top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#top-links ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 15px;
}

#top-links li a {
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

#top-links li a:hover {
  color: var(--secondary);
  background: var(--white);
}

#top-links .fa {
  font-size: 14px;
}

/* ==================== HEADER ==================== */
#header {
  background: var(--white);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 15px 0;
}

#header .container {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

#logo {
  flex-shrink: 0;
  min-width: 150px;
}

#logo img {
  max-height: 50px;
  width: auto;
}

#logo h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: var(--secondary);
}

/* Search Bar - noon.com style */
#search {
  flex-grow: 1;
  max-width: 600px;
}

#search .input-group {
  position: relative;
  width: 100%;
}

#search input.form-control {
  height: 48px;
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 0 50px 0 20px;
  font-size: 15px;
  transition: var(--transition);
}

#search input.form-control:focus {
  outline: none;
  border-color: var(--primary-hover);
  box-shadow: 0 0 0 3px rgba(255, 194, 32, 0.1);
}

#search .input-group-btn {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

#search .btn-default {
  background: var(--primary);
  border: none;
  color: var(--dark);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

#search .btn-default:hover {
  background: var(--primary-hover);
  transform: scale(1.05);
}

/* Cart Button */
#cart {
  position: relative;
}

#cart .btn {
  background: var(--light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  font-weight: 500;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
}

#cart .btn:hover {
  background: var(--white);
  border-color: var(--primary);
  color: var(--primary-dark);
}

#cart .badge {
  background: var(--danger);
  color: var(--white);
  border-radius: var(--radius-round);
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 600;
  position: absolute;
  top: -5px;
  right: -5px;
}

/* ==================== MAIN MENU ==================== */
#main-menu {
  background: var(--secondary);
  box-shadow: var(--shadow);
}

#menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

#menu > li {
  position: relative;
}

#menu > li > a {
  color: var(--white);
  padding: 15px 20px;
  display: block;
  font-weight: 500;
  font-size: 15px;
  transition: var(--transition);
}

#menu > li > a:hover,
#menu > li.active > a {
  background: var(--secondary-hover);
  color: var(--primary);
}

/* Dropdown Menu */
#menu .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  box-shadow: var(--shadow-hover);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  min-width: 200px;
  padding: 10px 0;
  z-index: 999;
  display: none;
}

#menu li:hover > .dropdown-menu {
  display: block;
}

#menu .dropdown-menu li a {
  color: var(--gray-dark);
  padding: 10px 20px;
  display: block;
  transition: var(--transition);
}

#menu .dropdown-menu li a:hover {
  background: var(--light);
  color: var(--secondary);
  padding-left: 25px;
}

/* ==================== BREADCRUMB ==================== */
.breadcrumb {
  background: transparent;
  padding: 15px 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  font-size: 13px;
}

.breadcrumb li::after {
  content: '/';
  margin: 0 8px;
  color: var(--gray-light);
}

.breadcrumb li:last-child::after {
  display: none;
}

.breadcrumb a {
  color: var(--gray);
}

.breadcrumb a:hover {
  color: var(--secondary);
}

/* ==================== PRODUCT GRID ==================== */
.product-layout {
  margin-bottom: var(--spacing-lg);
}

.product-thumb {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.product-thumb:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-5px);
  border-color: var(--primary);
}

.product-thumb .image {
  position: relative;
  margin-bottom: var(--spacing-md);
  overflow: hidden;
  border-radius: var(--radius-md);
}

.product-thumb .image img {
  width: 100%;
  height: auto;
  transition: var(--transition);
}

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

/* Product Badges */
.product-label-special,
.product-label-list {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--danger);
  color: var(--white);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  z-index: 10;
  text-transform: uppercase;
}

.product-label-new {
  background: var(--success);
}

.product-label-hot {
  background: var(--warning);
}

/* Product Caption */
.caption {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.caption h4 {
  font-size: 16px;
  margin-bottom: var(--spacing-sm);
  min-height: 45px;
  line-height: 1.4;
}

.caption h4 a {
  color: var(--gray-dark);
  transition: var(--transition);
}

.caption h4 a:hover {
  color: var(--secondary);
}

.caption p {
  color: var(--gray);
  font-size: 13px;
  margin-bottom: var(--spacing-sm);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Product Price */
.price {
  font-size: 18px;
  font-weight: 700;
  color: var(--secondary);
  margin: var(--spacing-md) 0;
}

.price-new {
  color: var(--danger);
  margin-right: var(--spacing-sm);
}

.price-old {
  color: var(--gray-light);
  text-decoration: line-through;
  font-size: 15px;
  font-weight: 400;
}

/* Product Rating */
.rating {
  display: flex;
  gap: 3px;
  margin-bottom: var(--spacing-sm);
}

.fa-star,
.fa-star-o {
  color: var(--primary);
  font-size: 13px;
}

.fa-star-o {
  color: var(--gray-light);
}

/* Product Buttons */
.button-group {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  margin-top: 15px;
}

.btn-cart-add {
  background: var(--primary);
  color: var(--dark);
  border: none;
  padding: 0 16px;
  min-height: 48px;
  height: 48px;
  min-width: 120px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1;
  box-sizing: border-box;
  outline: none;
  box-shadow: none;
  text-align: center;
}

.btn-cart-add:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 194, 32, 0.3);
}

.btn-action-icon {
  background: var(--light);
  border: 1px solid var(--border-color);
  color: var(--gray);
  min-width: 48px;
  width: 48px;
  min-height: 48px;
  height: 48px;
  padding: 0;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-sizing: border-box;
  outline: none;
}

.btn-action-icon:hover {
  background: var(--secondary);
  color: var(--white);
  border-color: var(--secondary);
  transform: translateY(-2px);
}

/* ==================== HERO BANNER ==================== */
.hero-banner {
  margin: var(--spacing-xl) 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}

.hero-banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* ==================== SECTION TITLES ==================== */
.section-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--gray-dark);
  margin: var(--spacing-xl) 0 var(--spacing-lg);
  position: relative;
  padding-bottom: var(--spacing-md);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}

/* ==================== CATEGORY CARDS ==================== */
.category-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  text-align: center;
  transition: var(--transition);
  margin-bottom: var(--spacing-lg);
}

.category-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-5px);
  border-color: var(--primary);
}

.category-card img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-md);
}

.category-card h5 {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-dark);
  margin: 0;
}

/* ==================== FOOTER ==================== */
/* 
   ⚠️ تنبيه: ألوان Footer يتم التحكم بها من لوحة التحكم
   الألوان الديناميكية موجودة في: dynamic-colors.php
   لا تعدل هذا القسم يدوياً!
*/

footer {
  margin-top: var(--spacing-xl);
}

footer h5 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: var(--spacing-md);
}

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

footer ul li {
  margin-bottom: var(--spacing-sm);
}

footer a {
  transition: var(--transition);
  text-decoration: none;
}

.footer-bottom {
  padding: var(--spacing-lg) 0;
  text-align: center;
  font-size: 13px;
  margin-top: var(--spacing-xl);
}

/* ==================== BUTTONS ==================== */
.btn {
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.btn-primary {
  background: var(--primary);
  color: var(--dark);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 194, 32, 0.3);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--white);
}

.btn-secondary:hover {
  background: var(--secondary-hover);
}

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

.btn-outline:hover {
  background: var(--primary);
  color: var(--dark);
}

/* ==================== FORMS ==================== */
.form-control {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 14px;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(0, 128, 96, 0.1);
}

.form-group {
  margin-bottom: var(--spacing-md);
}

label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 500;
  color: var(--gray-dark);
}

/* ==================== ALERTS ==================== */
.alert {
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-lg);
  border-left: 4px solid;
}

.alert-success {
  background: #d4edda;
  border-color: var(--success);
  color: #155724;
}

.alert-danger {
  background: #f8d7da;
  border-color: var(--danger);
  color: #721c24;
}

.alert-warning {
  background: #fff3cd;
  border-color: var(--warning);
  color: #856404;
}

.alert-info {
  background: #d1ecf1;
  border-color: var(--info);
  color: #0c5460;
}

.mobile-bottom-bar,
.mobile-filter-backdrop,
.mobile-filter-drawer,
.mobile-categories-backdrop,
.mobile-categories-panel {
  display: none;
}

@media (min-width: 768px) {
  body.mobile-bottom-enabled {
    padding-bottom: 0;
  }

  .mobile-bottom-bar,
  .mobile-filter-backdrop,
  .mobile-filter-drawer,
  .mobile-categories-backdrop,
  .mobile-categories-panel {
    display: none !important;
  }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 991px) {
  #header .container {
    flex-wrap: wrap;
  }
  
  #search {
    order: 3;
    width: 100%;
    max-width: 100%;
    margin-top: var(--spacing-md);
  }
  
  #main-menu {
    display: none;
  }
}

@media (max-width: 767px) {
  body.mobile-theme {
    background: #f7f7f7;
  }

  body.mobile-theme h1 { font-size: 24px; }
  body.mobile-theme h2 { font-size: 22px; }
  body.mobile-theme h3 { font-size: 20px; }

  body.mobile-theme .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  body.mobile-theme .section-title {
    font-size: 22px;
  }

  body.mobile-theme #top {
    padding: 6px 0;
    font-size: 12px;
    border-bottom: none;
    background: transparent;
  }

  body.mobile-theme.mobile-hide-topbar #top {
    display: none !important;
  }

  body.mobile-theme #top .topbar-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  body.mobile-theme #top .topbar-left {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  body.mobile-theme #top .topbar-left > * {
    font-size: 12px;
  }

  body.mobile-theme #top-links ul {
    width: 100%;
    gap: 8px;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  body.mobile-theme #top-links li {
    flex: 1 1 calc(50% - 8px);
    min-width: 120px;
  }

  body.mobile-theme #top-links li a {
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: #ffffff;
    padding: 8px 10px !important;
    text-decoration: none;
  }

  body.mobile-theme #header {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 12px 0 !important;
  }

  body.mobile-theme #header .container {
    padding-left: 0;
    padding-right: 0;
  }

  body.mobile-theme #header .header-inner {
    flex-direction: column;
    align-items: stretch !important;
    gap: 8px;
    background: #ffffff;
    border-radius: 18px;
    padding: 18px 16px 20px;
    box-shadow: var(--shadow);
  }

  body.mobile-theme.mobile-hide-topbar #header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 8px 0 !important;
    background: var(--content-bg, #ffffff);
    border: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    z-index: 1100;
  }

  body.mobile-theme.mobile-hide-topbar #header .header-inner {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    gap: 0;
  }

  body.mobile-theme.mobile-hide-topbar #header .header-logo {
    display: none !important;
  }

  body.mobile-theme.mobile-hide-topbar #header .header-search {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0;
  }

  body.mobile-theme.mobile-hide-topbar #header .header-search #search {
    margin: 0;
  }

  body.mobile-theme.mobile-hide-topbar #header .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  body.mobile-theme.mobile-hide-topbar #header .header-search #search form {
    width: 100%;
  }

  body.mobile-theme.mobile-hide-topbar #header .header-search #search .input-group {
    width: 100%;
  }

  body.mobile-theme.mobile-hide-topbar #header .header-search #search input {
    border-radius: 14px;
    border-width: 2px;
  }

  body.mobile-theme.mobile-hide-topbar #header .header-search #search .input-group-btn {
    left: 8px;
  }

  body.mobile-theme.mobile-hide-topbar {
    padding-top: 78px;
  }

  body.mobile-theme.mobile-card-shadow-off #header .header-inner {
    box-shadow: none;
    border: 1px solid rgba(0, 0, 0, 0.05);
  }

  body.mobile-theme #header .header-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 6px;
  }

  body.mobile-theme #header .header-logo img {
    max-height: 44px !important;
  }

  body.mobile-theme #header .header-search {
    order: 2;
    width: 100% !important;
    max-width: 100% !important;
    min-width: auto !important;
  }

  body.mobile-theme #header .header-actions {
    display: none !important;
  }

  body.mobile-theme #header .header-actions *,
  body.mobile-theme #header #wishlist-total,
  body.mobile-theme #header #cart {
    display: none !important;
  }

  body.mobile-theme #main-menu,
  body.mobile-theme .mobile-menu-toggle {
    display: none !important;
  }

  body.mobile-theme.mobile-hide-topbar #header .container {
    padding-left: 0;
    padding-right: 0;
  }

  body.mobile-theme.mobile-hide-topbar #header .header-search {
    padding: 0;
  }

  body.mobile-theme.mobile-hide-topbar #header .header-search #search {
    margin: 0;
  }

  body.mobile-theme.mobile-hide-topbar #header .header-search #search .input-group {
    width: 100%;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: none;
  }

  body.mobile-theme.mobile-hide-topbar #header .header-search #search input {
    border-radius: 0;
    border-width: 0;
    height: 48px;
    padding-right: 52px;
    padding-left: 18px;
  }

  body.mobile-theme.mobile-hide-topbar #header .header-search #search .input-group-btn {
    left: 12px;
  }

  body.mobile-theme #header .header-search #search {
    width: 100%;
  }

  body.mobile-theme.mobile-search-pill #header .header-search #search .input-group {
    width: 100%;
    background: #f2f2f2;
    border-radius: 999px;
    padding: 4px;
    border: none;
  }

  body.mobile-theme.mobile-search-pill #header .header-search #search input.form-control {
    height: 44px;
    border: none;
    border-radius: 999px;
    padding: 0 52px 0 16px;
    background: transparent;
    font-size: 14px;
  }

  body.mobile-theme.mobile-search-pill #header .header-search #search .input-group-btn {
    right: 10px;
  }

  body.mobile-theme.mobile-search-pill #header .header-search #search .btn-default {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    border: none;
  }

  body.mobile-theme.mobile-search-classic #header .header-search #search .input-group {
    width: 100%;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 0;
  }

  body.mobile-theme.mobile-search-classic #header .header-search #search input.form-control {
    height: 44px;
    border: none;
    border-radius: 12px;
    padding: 0 52px 0 12px;
    font-size: 14px;
  }

  body.mobile-theme.mobile-search-classic #header .header-search #search .input-group-btn {
    right: 6px;
  }

  body.mobile-theme.mobile-search-classic #header .header-search #search .btn-default {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--primary);
    border: none;
  }

  body.mobile-theme #header .header-actions {
    order: 3;
    width: 100%;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  body.mobile-theme #header .header-actions #wishlist-total {
    width: 100%;
    flex-direction: row;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: #ffffff;
    padding: 10px 0;
    text-decoration: none;
  }

  body.mobile-theme #header .header-actions #wishlist-total span {
    font-size: 12px;
  }

  body.mobile-theme #header .header-actions #cart {
    width: 100%;
  }

  body.mobile-theme #header .header-actions #cart .btn {
    width: 100%;
    justify-content: center;
    border-radius: 12px;
    background: var(--secondary);
    color: #ffffff;
    border: none;
    padding: 12px 15px;
    font-size: 14px;
  }

  body.mobile-theme #header .header-actions #cart .btn:hover {
    background: var(--secondary-hover);
  }

  body.mobile-theme .breadcrumb {
    padding: 10px 0;
    font-size: 12px;
  }

  body.mobile-theme .product-layout {
    width: calc(100% / var(--mobile-grid-columns));
    float: left;
    padding: 0 8px;
    margin-bottom: 16px;
  }

  body.mobile-theme .product-layout:nth-child(n) {
    clear: none !important;
  }

  body.mobile-theme .product-thumb {
    padding: 16px;
    border-radius: 18px;
    border: none;
    background: #ffffff;
  }

  body.mobile-theme.mobile-card-shadow-on .product-thumb {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  }

  body.mobile-theme.mobile-card-shadow-off .product-thumb {
    box-shadow: none;
  }

  body.mobile-theme .product-thumb .image {
    margin-bottom: 12px;
    border-radius: 14px;
  }

  body.mobile-theme .product-thumb .caption h4 {
    font-size: 14px;
    min-height: auto;
  }

  body.mobile-theme .product-thumb .price {
    font-size: 16px;
    margin: 10px 0;
  }

  body.mobile-theme .product-thumb .button-group {
    flex-direction: column;
    gap: 8px;
  }

  body.mobile-theme .product-thumb .button-group button {
    width: 100%;
    border-radius: 12px;
    padding: 12px;
  }

  body.mobile-theme .product-label-special,
  body.mobile-theme .product-label-list {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  }

  body.mobile-theme #column-left [id^="module-filter"],
  body.mobile-theme #column-left .module-filter {
    display: none !important;
  }

  body.mobile-filter-behavior-modal .mobile-filter-drawer {
    border-radius: 0;
    max-height: 100vh;
  }

  body.mobile-theme .btn {
    padding: 10px 16px;
    font-size: 13px;
  }

  .mobile-bottom-bar,
  .mobile-filter-backdrop,
  .mobile-filter-drawer,
  .mobile-categories-backdrop,
  .mobile-categories-panel {
    display: none;
  }

  body.mobile-bottom-enabled {
    padding-bottom: 80px;
  }

  body.mobile-bottom-enabled .mobile-bottom-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1050;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    background: var(--mobile-bottom-bg);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 -12px 25px rgba(0, 0, 0, 0.1);
    padding: 6px 0;
  }

  body.mobile-bottom-enabled .mobile-bottom-bar__item {
    flex: 1;
    text-align: center;
    color: var(--mobile-bottom-text);
    font-size: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    position: relative;
    text-decoration: none;
  }

  body.mobile-bottom-enabled .mobile-bottom-bar__icon {
    font-size: var(--mobile-bottom-icon-size);
    color: var(--mobile-bottom-icon);
    transition: color 0.3s ease, transform 0.3s ease;
  }

  body.mobile-bottom-enabled .mobile-bottom-bar__label {
    line-height: 1.2;
  }

  body.mobile-bottom-enabled .mobile-bottom-bar__item--active,
  body.mobile-bottom-enabled .mobile-bottom-bar__item:hover,
  body.mobile-bottom-enabled .mobile-bottom-bar__item:focus {
    color: var(--mobile-bottom-active);
  }

  body.mobile-bottom-enabled .mobile-bottom-bar__item--active .mobile-bottom-bar__icon {
    color: var(--mobile-bottom-icon-active);
    transform: translateY(-2px);
  }

  body.mobile-bottom-enabled .mobile-bottom-bar__badge {
    position: absolute;
    top: 2px;
    right: 24%;
    background: var(--mobile-bottom-active);
    color: #ffffff;
    border-radius: 999px;
    padding: 0 6px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.6;
  }

  body.mobile-bottom-hide-labels .mobile-bottom-bar__label {
    display: none;
  }

  body.mobile-theme .mobile-filter-backdrop,
  body.mobile-theme .mobile-categories-backdrop,
  body.mobile-theme .mobile-filter-drawer,
  body.mobile-theme .mobile-categories-panel {
    display: block;
  }

  body.mobile-theme .mobile-language-switcher {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 16px;
    margin-bottom: 18px;
  }

  body.mobile-theme .mobile-language-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 10px;
    font-size: 14px;
  }

  body.mobile-theme .mobile-language-switcher .btn-group,
  body.mobile-theme .mobile-language-switcher form {
    width: 100%;
  }

  body.mobile-theme .mobile-language-switcher button,
  body.mobile-theme .mobile-language-switcher .dropdown-menu {
    width: 100%;
  }

  .mobile-filter-backdrop,
  .mobile-categories-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1095;
  }

  .mobile-filter-drawer,
  .mobile-categories-panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    border-top-left-radius: 22px;
    border-top-right-radius: 22px;
    box-shadow: 0 -16px 32px rgba(0, 0, 0, 0.2);
    transform: translateY(100%);
    transition: transform 0.35s ease;
    z-index: 1100;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
  }

  .mobile-filter-drawer__header,
  .mobile-categories-panel__header {
    padding: 14px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .mobile-filter-drawer__content,
  .mobile-categories-panel__content {
    overflow-y: auto;
    padding: 15px 20px 25px;
  }

  body.mobile-filter-open .mobile-filter-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  body.mobile-filter-open .mobile-filter-drawer {
    transform: translateY(0);
  }

  body.mobile-menu-open .mobile-categories-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  body.mobile-menu-open .mobile-categories-panel {
    transform: translateY(0);
  }
}

/* ==================== UTILITY CLASSES ==================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-0 { margin-bottom: 0; }
.mb-10 { margin-bottom: var(--spacing-sm); }
.mb-20 { margin-bottom: var(--spacing-lg); }
.mt-20 { margin-top: var(--spacing-lg); }
.p-20 { padding: var(--spacing-lg); }

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease-out;
}

/* ==================== DARK MODE SUPPORT (Optional) ==================== */
@media (prefers-color-scheme: dark) {
  /* Add dark mode styles if needed */
}




