:root {
  --font-primary: 'Avenir LT Pro', 'Avenir Next', 'Avenir', 'Nunito Sans', 'Open Sans', sans-serif;
  --font-secondary: 'Avenir LT Pro', 'Avenir Next', 'Avenir', 'Nunito Sans', 'Open Sans', sans-serif;
  --font-accent: 'Avenir LT Pro', 'Avenir Next', 'Avenir', 'Nunito Sans', 'Open Sans', sans-serif;
  
  /* Halistores Color Palette */
  --color-primary: #ee7e21;
  --color-primary-hover: #d8721c;
  --color-primary-light: #fff1e6;
  --color-accent-gold: #ee7e21;
  --color-dark: #202020;
  --color-dark-muted: #666666;
  --color-light: #ffffff;
  --color-light-bg: #ffffff;  /* Halistores body: white */
  --color-border: #e5e5e5;
  --color-border-dark: #cccccc;
  
  --text-main: rgb(32, 32, 32);  /* Halistores exact */
  --text-muted: #666666;
  --text-white: #ffffff;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --radius-sm: 0px;
  --radius-md: 0px;
  --radius-lg: 0px;
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-primary);
  font-size: 13px;               /* Halistores: 13px */
  font-weight: 500;               /* Halistores: 500 */
  background-color: #ffffff;      /* Halistores: white */
  color: rgb(32, 32, 32);         /* Halistores exact */
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

button, input, select {
  font-family: inherit;
  outline: none;
  border: none;
  background: none;
}

/* Layout Utilities */
.container {
  max-width: 1240px;     /* Halistores: ~1240px */
  margin: 0 auto;
  padding: 0 10px;       /* Halistores: 10px yanlara */
}

.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.grid { display: grid; }

/* Sticky Header - Halistores style: solid white, no blur */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid #e5e5e5;
  transition: var(--transition-fast);
}

.header-inner {
  height: 60px;          /* Halistores: ~60px */
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-accent);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--color-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span {
  color: var(--color-primary);
}

/* Nav Menu & Mega Menu */
.nav-menu {
  display: flex;
  gap: 32px;
}

.nav-item {
  font-size: 15px;
  font-weight: 500;
  position: relative;
  padding: 28px 0; /* Expanded padding for hover area */
  cursor: pointer;
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: var(--transition-fast);
}

.nav-item:hover::after,
.nav-item.active::after {
  width: 100%;
}

.nav-item:hover {
  color: var(--color-primary);
}

/* Mega Menu Dropdown */
.mega-menu {
  position: fixed;
  top: 80px; /* Header height is 80px */
  left: 0;
  width: 100vw;
  background-color: var(--color-light);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  transform: translateY(10px);
  z-index: 1050;
  padding: 40px 0;
}

.nav-item:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Header Nav Bar */
.header-nav-bar {
  background-color: var(--color-white);
  border-top: 1px solid #f2f2f2;
  border-bottom: 1px solid #f2f2f2;
  position: relative;
  width: 100%;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.header-nav-bar .container {
  display: flex;
  align-items: center;
  position: relative; /* Anchor for full-width mega menu */
}

.nav-menu {
  display: flex;
  width: 100%;
}

.nav-item {
  padding: 16px 20px;
  font-weight: 600;
  color: #333;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.5px;
  cursor: pointer;
  position: static;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
  border-radius: 0;
}

.nav-item:hover, .nav-item.active {
  color: #333;
  background-color: #f4f4f4;
}

.nav-item a {
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Mega Menu Update */
.tabbed-mega-menu {
  position: absolute;
  top: 100%;
  left: 10px;
  right: 10px;
  width: auto;
  max-width: none;
  background-color: #ffffff;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
  border-top: 3px solid var(--color-primary);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 1050;
  overflow: hidden;
  padding: 0;
}

.nav-item:hover .tabbed-mega-menu {
  opacity: 1;
  visibility: visible;
}

/* Simple Dropdown Menu for Ev Tekstili */
.simple-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 240px;
  background-color: #ffffff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  border-top: 3px solid var(--color-primary);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  z-index: 1050;
  padding: 8px 0;
  margin: 0;
  list-style: none;
  border-radius: 0 0 8px 8px;
}

.nav-item:hover .simple-dropdown-menu {
  opacity: 1;
  visibility: visible;
}

.simple-dropdown-menu li {
  width: 100%;
  display: block;
}

.simple-dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  color: #333333;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  text-transform: none;
  border-bottom: none;
  width: 100%;
  box-sizing: border-box;
}

.simple-dropdown-menu li a:hover {
  background-color: #f5f5f5;
  color: var(--color-primary) !important;
  padding-left: 25px;
}

.tabbed-mega-inner {
  display: flex;
  min-height: 350px;
}

.mega-sidebar {
  width: 220px;
  background-color: #f9f9f9;
  border-right: 1px solid #eee;
  padding: 0;
}

.mega-tab {
  padding: 12px 25px;
  cursor: pointer;
  font-weight: 500;
  color: var(--color-dark);
  transition: all 0.2s;
  border-left: 3px solid transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mega-tab:hover {
  background-color: #f0f0f0;
}

.mega-tab.active {
  background-color: var(--color-white);
  border-left-color: var(--color-primary);
  font-weight: 600;
  margin-right: -1px;
}

.mega-tab.active::after {
  content: '\ebcc'; /* bx-chevron-right */
  font-family: 'boxicons';
  color: var(--color-primary);
}

.mega-content {
  flex: 1;
  padding: 10px 30px 20px 30px;
  background-color: #ffffff;
}

.mega-panel {
  display: none;
  animation: fadeIn 0.2s ease;
}

.mega-panel.active {
  display: block;
}

.mega-panel-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.mega-panel-grid a {
  color: #333333;
  font-size: 14px;
  padding: 4px 0;
  display: inline-block;
  transition: color 0.2s;
  text-transform: none;
}

.mega-panel-grid a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.color-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  text-align: center;
}
.color-swatch-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--color-dark);
  font-size: 13px;
  transition: transform 0.2s;
  text-transform: none;
}

.color-swatch-item:hover {
  transform: translateY(-3px);
  color: var(--color-primary);
}

/* Subcategory Pills */
.subcat-pill {
  padding: 8px 18px;
  background-color: #f5f5f5;
  color: var(--color-dark);
  border-radius: 0px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid transparent;
}
.subcat-pill:hover {
  background-color: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(176, 142, 89, 0.2);
}

/* Pure CSS Rectangular Rug Icon with Fringes */
.css-rug-icon {
  width: 70px;
  height: 88px;
  position: relative;
  border-radius: 2px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.12);
  border: 1px solid rgba(0,0,0,0.06);
}

/* Top fringe - SVG hanging threads */
.css-rug-icon::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 3px;
  right: 3px;
  height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='12'%3E%3Cg stroke='%23b0a898' stroke-width='0.8' fill='none' stroke-linecap='round'%3E%3Cpath d='M2,12 Q2.5,6 2,0'/%3E%3Cpath d='M6,12 Q5.5,5 6.5,0'/%3E%3Cpath d='M10,12 Q10.5,7 10,0'/%3E%3Cpath d='M14,12 Q13.5,5 14.5,0'/%3E%3Cpath d='M18,12 Q18.5,6 18,0'/%3E%3Cpath d='M22,12 Q21.5,7 22.5,0'/%3E%3Cpath d='M26,12 Q26.5,5 26,0'/%3E%3Cpath d='M30,12 Q29.5,6 30.5,0'/%3E%3Cpath d='M34,12 Q34.5,7 34,0'/%3E%3Cpath d='M38,12 Q37.5,5 38.5,0'/%3E%3Cpath d='M42,12 Q42.5,6 42,0'/%3E%3Cpath d='M46,12 Q45.5,7 46.5,0'/%3E%3Cpath d='M50,12 Q50.5,5 50,0'/%3E%3Cpath d='M54,12 Q53.5,6 54.5,0'/%3E%3Cpath d='M58,12 Q58.5,7 58,0'/%3E%3Cpath d='M62,12 Q61.5,5 62.5,0'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

/* Bottom fringe - SVG hanging threads */
.css-rug-icon::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 3px;
  right: 3px;
  height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='12'%3E%3Cg stroke='%23b0a898' stroke-width='0.8' fill='none' stroke-linecap='round'%3E%3Cpath d='M2,0 Q2.5,6 2,12'/%3E%3Cpath d='M6,0 Q5.5,7 6.5,12'/%3E%3Cpath d='M10,0 Q10.5,5 10,12'/%3E%3Cpath d='M14,0 Q13.5,7 14.5,12'/%3E%3Cpath d='M18,0 Q18.5,6 18,12'/%3E%3Cpath d='M22,0 Q21.5,5 22.5,12'/%3E%3Cpath d='M26,0 Q26.5,7 26,12'/%3E%3Cpath d='M30,0 Q29.5,6 30.5,12'/%3E%3Cpath d='M34,0 Q34.5,5 34,12'/%3E%3Cpath d='M38,0 Q37.5,7 38.5,12'/%3E%3Cpath d='M42,0 Q42.5,6 42,12'/%3E%3Cpath d='M46,0 Q45.5,5 46.5,12'/%3E%3Cpath d='M50,0 Q50.5,7 50,12'/%3E%3Cpath d='M54,0 Q53.5,6 54.5,12'/%3E%3Cpath d='M58,0 Q58.5,5 58,12'/%3E%3Cpath d='M62,0 Q61.5,7 62.5,12'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

/* Small Rug Icon for List View */
.css-rug-icon-small {
  width: 14px;
  height: 18px;
  position: relative;
  border-radius: 1px;
  border: 1px solid rgba(0,0,0,0.1);
}

.css-rug-icon-small::before,
.css-rug-icon-small::after {
  content: '';
  position: absolute;
  left: 1px;
  right: 1px;
  height: 3px;
  background: repeating-linear-gradient(to right, transparent 0px, transparent 1px, rgba(160,150,135,0.6) 1px, rgba(160,150,135,0.6) 2px, transparent 2px, transparent 3px);
}

.css-rug-icon-small::before { top: -3px; }
.css-rug-icon-small::after { bottom: -3px; }

/* Mobile Color Grid */
.mobile-color-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 15px 20px;
  background-color: transparent;
}

/* Mobile Sub-menu Accordion */
.mobile-menu-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: block;
  }

.mobile-menu-links > li {
    border-bottom: 1px solid #e5e7eb;
    background-color: #ffffff;
  }

.mobile-menu-links > li > a {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  color: #333;
  text-decoration: none;
  width: 100% !important;
}

.mobile-sub-menu {
  display: none; /* Reverting to classic display none/block for maximum compatibility */
  padding: 0;
  margin: 0;
  background-color: #f9fafb;
  border-radius: 0;
  border-top: 1px solid #f3f4f6;
}
.mobile-sub-menu > * {
  min-height: 0;
  overflow: hidden;
}
.mobile-sub-menu > * {
  min-height: 0;
  overflow: hidden;
}
.mobile-sub-menu > * {
  min-height: 0;
  overflow: hidden;
}

.mobile-sub-menu.active {
  display: block;
  margin-top: 0;
  margin-bottom: 0;
  padding: 0;
}

.mobile-sub-menu > li {
  border-bottom: 1px solid #f3f4f6;
  background-color: #f9fafb;
}

.mobile-sub-menu > li > a {
  display: block;
  padding: 12px 20px 12px 36px !important;
  font-size: 14px !important;
  color: #4b5563 !important;
  text-decoration: none;
  font-weight: 400;
}
.mobile-sub-menu > li > a:hover {
  background: #f3f4f6;
  color: #111827 !important;
}
.mobile-sub-menu > li > a:hover {
  background: transparent;
  color: #111827 !important;
}
.mobile-sub-menu > li > a:hover {
  background: transparent;
  color: #111827 !important;
}
.mobile-sub-menu > li > a:hover {
  background: rgba(0,0,0,0.02);
}

.mobile-sub-menu > li:last-child {
  border-bottom: none;
}

.submenu-toggle {
    position: absolute;
    right: 0;
    top: 0;
    width: 50px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #9ca3af;
    cursor: pointer;
    background: transparent;
    z-index: 2;
    transition: transform 0.2s ease;
    padding: 0;
  }
  .submenu-toggle:hover {
    color: #4b5563;
  }
  .submenu-toggle:hover {
    color: var(--color-primary);
  }

.submenu-toggle::before {
  content: '\ebcc'; /* bx-chevron-right */
  font-family: 'boxicons';
}

.submenu-toggle.rotated {
  transform: rotate(90deg);
  color: var(--color-primary);
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Search Bar */
.search-wrapper {
  position: relative;
  width: 500px;
  max-width: 100%;
}

.search-input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  background-color: rgba(0, 0, 0, 0.03);
  border: 1px solid transparent;
  border-radius: 0px;
  font-size: 14px;
  transition: var(--transition-fast);
}

.search-input:focus {
  background-color: var(--color-light);
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(176, 142, 89, 0.1);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

/* Search Suggestions Dropdown */
.search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--color-light);
  border: 1px solid var(--color-border);
  border-radius: 0px;
  box-shadow: var(--shadow-md);
  margin-top: 8px;
  z-index: 1100;
  max-height: 380px;
  overflow-y: auto;
  transition: var(--transition-fast);
}

.search-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  transition: var(--transition-fast);
  border-bottom: 1px solid var(--color-border);
}

.search-dropdown-item:last-child {
  border-bottom: none;
}

.search-dropdown-item:hover {
  background-color: var(--color-light-bg);
}

.search-dropdown-item img {
  width: 44px;
  height: 55px;
  object-fit: cover;
  border-radius: 0px;
  border: 1px solid var(--color-border);
}

.search-dropdown-info {
  flex-grow: 1;
  overflow: hidden;
}

.search-dropdown-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-dropdown-price {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-primary);
  margin-top: 2px;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  align-items: center;
  gap: 20px;
}

.icon-btn {
  position: relative;
  font-size: 20px;
  color: var(--color-dark);
  cursor: pointer;
  transition: var(--transition-fast);
}

.icon-btn:hover {
  color: var(--color-primary);
  transform: translateY(-2px);
}

.badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background-color: var(--color-primary);
  color: var(--text-white);
  font-size: 10px;
  font-weight: 600;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-light);
}

/* Hero Slider Section */
.hero-slider-section {
  position: relative;
  overflow: hidden;
  height: 550px;
  background-color: var(--color-dark);
}

.hero-slider-container {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease-in-out;
  will-change: transform;
}

.hero-slide {
  min-width: 100vw;
  height: 100%;
  position: relative;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.5);
  border: none;
  font-size: 32px;
  color: var(--color-dark);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition-fast);
}

.slider-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-primary);
}

.slider-btn.prev {
  left: 20px;
}

.slider-btn.next {
  right: 20px;
}

@media (max-width: 768px) {
  .hero-slider-section {
    height: 450px;
  }
  .hero-slide {
    display: block !important;
  }
  /* İmaj konteyneri tam arkaplan olsun */
  .hero-slide > div:first-child {
    position: absolute !important;
    top: 0; left: 0;
    width: 100% !important;
    height: 100% !important;
  }
  /* Kavisli gradienti gizle veya alta al */
  .hero-slide > div:first-child > div {
    width: 100% !important;
    height: 60% !important;
    top: auto !important;
    bottom: 0 !important;
    background: linear-gradient(to top, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.8) 50%, transparent 100%) !important;
  }
  /* Metin konteyneri alta hizalansın */
  .hero-slide > div:last-child {
    position: absolute !important;
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 60% !important;
    padding: 20px !important;
    align-items: center !important;
    text-align: center !important;
    background: transparent !important;
  }
  .hero-slide h3 {
    font-size: 1rem !important;
    margin-bottom: 5px !important;
  }
  .hero-slide h2 {
    font-size: 1.8rem !important;
    line-height: 1.2 !important;
  }
  .hero-slide span:not(.btn) {
    font-size: 1.3rem !important;
  }
  .hero-slide .btn {
    padding: 10px 30px !important;
    font-size: 1rem !important;
  }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-subtitle {
  font-family: var(--font-accent);
  color: var(--color-primary);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
  animation: fadeInUp 0.8s ease;
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease 0.1s;
  animation-fill-mode: both;
}

.hero-btn {
  display: inline-block;
  background-color: var(--color-primary);
  color: var(--text-white);
  padding: 14px 32px;
  font-weight: 500;
  border-radius: 0px;
  transition: var(--transition-fast);
  animation: fadeInUp 0.8s ease 0.2s;
  animation-fill-mode: both;
}

.hero-btn:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
}

/* Category Grid Section */
.section-title-wrap {
  margin-top: 60px;
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.section-title {
  font-size: 28px;
  font-weight: 600;
  color: var(--color-dark);
}

.section-link {
  font-weight: 500;
  color: var(--color-primary);
  font-size: 15px;
  border-bottom: 1px solid transparent;
}

.section-link:hover {
  border-bottom-color: var(--color-primary);
}

.category-grid {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.category-card {
  background-color: var(--color-light);
  border: 1px solid var(--color-border);
  border-radius: 0px;
  padding: 30px 20px;
  text-align: center;
  transition: var(--transition-normal);
  cursor: pointer;
}

.category-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.category-icon {
  width: 60px;
  height: 60px;
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
  font-size: 24px;
}

.category-name {
  font-weight: 500;
  font-size: 15px;
  color: var(--color-dark);
}

/* Product Grid - Halistores: 4 col desktop, 2 col mobile */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 10px;
  margin-bottom: 30px;
}

.product-card {
  background-color: transparent;
  border: none;
  overflow: visible;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 0;
  cursor: pointer;
}

/* Halistores-style card wrapper */
.productItemWrap {
  border: 1px solid rgb(154, 154, 154);
  border-radius: 0px;
  overflow: hidden;
  background: #fff;
  width: 100%;
  transition: box-shadow 0.2s ease;
  padding: 0 0 10px 0;    /* Halistores: padding-bottom 10px */
  margin-bottom: 10px;    /* Halistores: margin-bottom 10px */
}

.productItemWrap:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.product-card:hover {
  transform: translateY(-2px);
}

/* Swiper / Slider inside Card */
.card-media {
  position: relative;
  padding-bottom: 100%; /* 1:1 aspect ratio to match halistores and prevent giant heights */
  overflow: hidden;
  background-color: #ffffff;
}

.card-images {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card-image-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  flex-shrink: 0;
}

.card-image-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Bullet Navigation on Hover */
.card-bullets {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
  opacity: 0;
  transition: var(--transition-fast);
}

.product-card:hover .card-bullets {
  opacity: 1;
}

.bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--transition-fast);
}

.bullet.active {
  background-color: var(--color-light);
  transform: scale(1.3);
}

/* Floating Actions */
.wishlist-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background-color: var(--color-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  color: var(--text-muted);
  cursor: pointer;
  z-index: 10;
  transition: var(--transition-fast);
}

.wishlist-btn:hover {
  color: #ef4444;
  transform: scale(1.1);
}

.wishlist-btn.active {
  color: #ef4444;
  background-color: #fee2e2;
}

/* Product Info */
.product-info {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-brand {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.product-name-title {
  font-size: 13px;
  font-weight: 400;
  color: var(--color-dark-muted);
  line-height: 1.4;
  height: 36px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 12px;
}

.proRowAct {
  margin-top: auto;
  border-top: 1px solid var(--color-light-bg);
  padding-top: 10px;
}

.productPrice {
  width: 100%;
}

.priceWrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.prices {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 2px 8px;
}

.productDiscount {
  grid-row: 1/3;
  background-color: var(--color-primary);
  color: var(--text-white);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 8px;
  border-radius: 0px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.discountedPrice {
  font-size: 12px;
  text-decoration: line-through;
  color: var(--text-muted);
  line-height: 1.1;
}

.currentPrice {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.1;
}

.icon-cargo {
  font-size: 10px;
  font-weight: 700;
  color: #059669;
  background-color: #ecfdf5;
  padding: 4px 8px;
  border-radius: 0px;
  text-align: center;
  line-height: 1.2;
  border: 1px solid rgba(5, 150, 105, 0.15);
}

/* Category Page Layout */
.category-page-layout {
  display: grid;
  grid-template-columns: 246px 1fr;  /* Halistores sidebar: 246px */
  gap: 20px;
  margin-top: 10px;
}

.category-products-area {
  min-width: 0;
  width: 100%;
}

/* Filters Sidebar */
.filters-sidebar {
  background-color: transparent;
  border: none;
  border-radius: 0;
  padding: 0 10px 0 0;
  align-self: start;
  overflow: visible;
}

.filter-section {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.filter-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.filter-block {
  padding: 0 0 16px 0;
  margin-bottom: 0;
  border-bottom: 1px solid var(--color-border);
}

.filter-block:last-child {
  border-bottom: none;
}

.filter-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-dark);
  text-transform: uppercase;
  margin: 14px 0 10px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  letter-spacing: 0.3px;
}

.filter-title .toggle-icon {
  font-size: 12px;
  color: #999;
  transition: transform 0.2s;
}

/* Colors Filter */
.color-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.color-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.color-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  position: relative;
  transition: var(--transition-fast);
}

.color-option:hover .color-circle {
  transform: scale(1.15);
}

.color-option.selected .color-circle {
  box-shadow: 0 0 0 2px var(--color-light-bg), 0 0 0 4px var(--color-primary);
}

.color-name {
  font-size: 10px;
  color: var(--text-muted);
}

/* Checkbox / Size List */
.filter-list {
  max-height: 200px;
  overflow-y: auto;
  padding-right: 8px;
}

.filter-list::-webkit-scrollbar {
  width: 4px;
}

.filter-list::-webkit-scrollbar-thumb {
  background-color: rgba(0,0,0,0.1);
  border-radius: 0px;
}

/* Modern Custom Checkbox */
.filter-checkbox-row {
  display: flex;
  align-items: center;
  height: 16px;
  border-radius: 0px;
  border: 1px solid var(--color-border);
  accent-color: var(--color-primary);
}

/* Price Range Inputs */
.price-inputs {
  display: flex;
  gap: 10px;
}

.price-inputs input {
  width: 50%;
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: 0px;
  font-size: 13px;
  background-color: var(--color-light-bg);
}

.filter-btn {
  width: 100%;
  background-color: var(--color-primary);
  color: var(--text-white);
  padding: 10px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 0px;
  margin-top: 14px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-btn:hover {
  background-color: var(--color-primary-hover);
}

/* Product Detail Page Layout */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  margin-top: 10px;
  margin-bottom: 80px;
}

/* Product Gallery */
.gallery-wrapper {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.gallery-thumbs {
  width: 100%;
  display: flex;
  flex-direction: row;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 5px;
}
.gallery-thumbs::-webkit-scrollbar {
  height: 6px;
}
.gallery-thumbs::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 0px;
}

.gallery-thumb {
  border: 1px solid #e5e5e5;
  border-radius: 0px;
  width: 80px;
  aspect-ratio: 4/5;
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
  background-color: #ffffff;
  overflow: hidden;
}

.gallery-thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.gallery-thumb.active {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(176, 142, 89, 0.1);
}

.gallery-main {
  width: 100%;
  background-color: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 0px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-main img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
  transition: opacity var(--transition-normal);
}

/* Product Buy Controls */
.detail-brand {
  font-family: var(--font-accent);
  color: var(--color-primary);
  text-transform: uppercase;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}

.detail-title {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-dark);
  margin-bottom: 16px;
}

.detail-price-box {
  background-color: transparent;
  border: none;
  border-top: 1px dashed var(--color-border);
  padding: 20px 0 0 0;
  border-radius: 0;
  margin-top: 15px;
  margin-bottom: 30px;
}

.option-selector {
  margin-bottom: 24px;
}

.option-label {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 12px;
  color: var(--color-dark);
}

.size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.size-pill {
  padding: 10px 18px;
  border: 1px solid var(--color-border);
  border-radius: 0px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
  background-color: var(--color-light);
}

.size-pill:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.size-pill.selected {
  border-color: var(--color-primary);
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  font-weight: 600;
}

.buy-actions {
  display: flex;
  gap: 16px;
}

.qty-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: 0px;
  overflow: hidden;
  background-color: var(--color-light);
}

.qty-btn {
  width: 44px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 600;
}

.qty-btn:hover {
  background-color: var(--color-light-bg);
}

.qty-input {
  width: 44px;
  text-align: center;
  font-weight: 600;
  font-size: 15px;
}

.add-cart-btn {
  flex-grow: 1;
  background-color: var(--color-primary);
  color: var(--text-white);
  height: 48px;
  border-radius: 0px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition-fast);
}

.add-cart-btn:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-1px);
}

/* Side Drawer (Cart) */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.drawer {
  position: fixed;
  top: 0;
  right: -450px;
  width: 85%;
  max-width: 400px;
  height: 100%;
  background-color: #ffffff;
  z-index: 1002;
  box-shadow: -5px 0 15px rgba(0,0,0,0.1);
  border-radius: 0;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}

.drawer.active {
  right: 0;
}

/* Custom Bottom Sheet Drawer for mobile sorting */
.drawer.bottom-sheet {
  top: auto;
  bottom: -100%;
  right: 0;
  width: 100%;
  height: auto;
  max-height: 80%;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  transition: bottom 0.3s ease;
}

.drawer.bottom-sheet.active {
  bottom: 0;
}

.sort-options-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sort-options-list li {
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  border-bottom: 1px solid #f1f2f4;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.15s;
}

.sort-options-list li:hover,
.sort-options-list li.active {
  background-color: #fafbfc;
  color: var(--color-primary);
  font-weight: 600;
}

.sort-options-list li:last-child {
  border-bottom: none;
}

.drawer-header {
  padding: 20px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
}

.drawer-title {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  margin: 0;
}

.close-drawer {
  font-size: 28px;
  cursor: pointer;
  color: #6b7280;
  background: transparent;
  width: auto;
  height: auto;
  display: block;
  border-radius: 0;
  transition: color 0.2s;
}
.close-drawer:hover {
  background: transparent;
  color: #111827;
  transform: none;
}
.close-drawer:hover {
  background: #e5e7eb;
  transform: rotate(90deg);
}
.close-drawer:hover {
  background: #e0e0e0;
  transform: scale(1.05);
}

.drawer-content {
  flex-grow: 1;
  overflow-y: auto;
  padding: 24px;
}

.cart-item {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 20px;
}

.cart-item-img {
  width: 80px;
  height: 80px;
  border-radius: 0px;
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.cart-item-title {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}

.cart-item-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.cart-item-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.drawer-footer {
  padding: 24px;
  border-top: 1px solid var(--color-border);
  background-color: var(--color-light-bg);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 14px;
}

.summary-total {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-dark);
  margin-top: 10px;
  border-top: 1px dashed var(--color-border);
  padding-top: 10px;
}

.checkout-btn {
  width: 100%;
  background-color: var(--color-primary);
  color: var(--text-white);
  padding: 14px;
  border-radius: 0px;
  font-weight: 600;
  font-size: 15px;
  margin-top: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.checkout-btn:hover {
  background-color: var(--color-primary-hover);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .category-page-layout {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 0;
  }
  .filters-sidebar {
    display: none;
  }
  .hide-on-mobile {
    display: none !important;
  }
  .product-detail-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .mobile-filter-trigger {
    display: flex !important;
    align-items: center;
    gap: 8px;
    background-color: var(--color-light);
    border: 1px solid var(--color-border);
    padding: 8px 16px;
    border-radius: 0px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
  }
  .mobile-filter-trigger:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
  }
  /* On mobile pills are compact */
  .subcategory-wrapper {
    margin-bottom: 5px !important;
  }
  #subcat-pills-container {
    padding: 8px 0 !important;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  .search-wrapper {
    display: none;
  }
  .hero-title {
    font-size: 36px;
  }
  .drawer {
    width: 100%;
  }
  
  /* Mobile Navigation Category Links */
  .mobile-menu-links {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .mobile-menu-links li {
    border-bottom: 1px solid #e5e7eb;
    background-color: #ffffff;
  }

  .mobile-menu-links li:last-child {
    border-bottom: none;
  }

  .mobile-menu-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    background: transparent;
    border-radius: 0;
    text-decoration: none;
  }

  .mobile-menu-links a i {
    font-size: 20px;
    color: #6b7280;
    background: transparent;
    width: auto;
    height: auto;
    display: block;
    border-radius: 0;
  }

  .mobile-menu-links a:hover {
    background-color: #f9fafb;
    color: #111827;
    transform: none;
  }
}

/* Mobile Navigation Bar (Bottom fixed) */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-light);
  border-top: 1px solid var(--color-border);
  z-index: 1000;
  padding: 10px 0;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}
.mobile-nav .container {
  display: flex;
  justify-content: space-around;
  align-items: center;
}
.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
}
.mobile-nav-item i {
  font-size: 22px;
}
.mobile-nav-item.active, .mobile-nav-item:hover {
  color: var(--color-primary);
}
@media (max-width: 768px) {
  .mobile-nav {
    display: block;
  }
  body {
    padding-bottom: 58px !important;
  }
}

/* Banner Grid styles */
.banner-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}
@media (max-width: 768px) {
  .banner-grid {
    grid-template-columns: 1fr;
  }
}
.banner-item {
  display: block;
  border-radius: 0px;
  overflow: hidden;
  position: relative;
}
.banner-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--transition-normal);
}
.banner-item:hover img {
  transform: scale(1.03);
}

/* Modal Checkout Overlay & Forms */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none; /* Controlled by app.js (flex/none) */
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-box {
  background-color: var(--color-light);
  width: 500px;
  max-width: 100%;
  border-radius: 0px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-dark);
}

.modal-close {
  font-size: 24px;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.modal-close:hover {
  color: var(--color-primary);
}

.modal-body {
  padding: 24px;
}

/* Form Groups styling */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-dark);
  text-align: left;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: 0px;
  font-size: 14px;
  color: var(--color-dark);
  background-color: var(--color-light);
  transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(242, 110, 89, 0.1);
  outline: none;
}

.form-group textarea {
  height: 80px;
  resize: vertical;
}

.whatsapp-submit-btn {
  width: 100%;
  background-color: #25d366; /* WhatsApp Green */
  color: var(--text-white);
  padding: 14px;
  border-radius: 0px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-fast);
  margin-top: 10px;
}

.whatsapp-submit-btn:hover {
  background-color: #128c7e;
  transform: translateY(-1px);
}

/* Floating WhatsApp Support Button */
.whatsapp-floating-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: var(--text-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
  font-size: 36px;
  z-index: 999;
  transition: var(--transition-normal);
  text-decoration: none;
}

.whatsapp-floating-btn:hover {
  background-color: #128c7e;
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-floating-btn .tooltip-text {
  visibility: hidden;
  width: 100px;
  background-color: var(--color-dark);
  color: var(--text-white);
  text-align: center;
  border-radius: 0px;
  padding: 6px 0;
  position: absolute;
  right: 75px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.whatsapp-floating-btn:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* Adjust for mobile screens so it doesn't block critical buttons */
@media (max-width: 768px) {
  .whatsapp-floating-btn {
    bottom: 80px; /* Elevated to sit above the mobile footer nav bar */
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 30px;
  }
  .whatsapp-floating-btn .tooltip-text {
    display: none; /* Hide tooltip on mobile to avoid clutter */
  }
  }
}

/* Advanced Filter Checkboxes & Search */
.filter-search-input {
  width: 100%;
  padding: 8px 10px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 0px;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}

.filter-search-input:focus {
  border-color: var(--color-primary);
}

.filter-checkbox-list {
  max-height: 220px;
  overflow-y: auto;
  padding-right: 5px;
}

/* Custom scrollbar for filter list */
.filter-checkbox-list::-webkit-scrollbar {
  width: 4px;
}
.filter-checkbox-list::-webkit-scrollbar-track {
  background: #f1f1f1; 
}
.filter-checkbox-list::-webkit-scrollbar-thumb {
  background: #ccc; 
  border-radius: 0px;
}
.filter-checkbox-list::-webkit-scrollbar-thumb:hover {
  background: #999; 
}

/* --- MOBILE HEADER REDESIGN --- */
.hide-on-desktop {
  display: none !important;
}
.icon-label {
  display: none;
}

@media (max-width: 768px) {
  .hide-on-desktop {
    display: flex !important;
  }
  
  .top-bar {
    background-color: #f8f8f8;
    border-bottom: 1px solid #eee;
    padding: 6px 0;
  }
  .top-bar-left {
    width: 100%;
    text-align: center;
    font-size: 11px;
    font-weight: 500;
  }
  .top-bar-right {
    display: none !important;
  }
  
  .header-inner {
    display: grid !important;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: 
      "menu logo actions"
      "search search search";
    gap: 12px;
    padding: 12px 15px !important;
    height: auto !important;
    align-items: center;
  }
  
  .mobile-menu-trigger {
    grid-area: menu;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--color-dark);
    cursor: pointer;
  }
  .mobile-menu-trigger i {
    font-size: 26px;
  }
  
  .logo {
    grid-area: logo;
    justify-content: center;
  }
  .logo img {
    max-height: 40px !important;
  }
  
  .action-buttons {
    grid-area: actions;
    gap: 15px !important;
  }
  
  .icon-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }
  .icon-btn i {
    font-size: 22px !important;
  }
  .icon-label {
    display: block !important;
    font-size: 10px;
    font-weight: 500;
    color: #555;
  }
  
  .search-wrapper {
    grid-area: search;
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    position: relative;
  }
  
  .search-input {
    width: 100%;
    background-color: #f4f4f4 !important;
    border: none !important;
    border-radius: 0px !important;
    padding: 14px 45px 14px 16px !important;
    font-size: 14px !important;
    color: #333 !important;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.02);
  }
  
  .search-input::placeholder {
    color: #555 !important;
    font-weight: 400;
  }
  
  .search-icon {
    font-size: 24px !important;
    color: #999 !important;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
  }
  
  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1px !important;
  }
  
  .product-info {
    padding: 8px !important;
  }
  
  .product-title {
    font-size: 12px !important;
    height: 34px !important; /* clamp to 2 lines */
  }
  
  .product-price {
    font-size: 15px !important;
  }
  
  .product-old-price {
    font-size: 12px !important;
  }
}

/* Sidebar Filters Redesign */
.filter-accordion-block {
  margin-bottom: 2px;
}
.filter-accordion-header {
  background: #f5f5f5;
  height: 35px;
  padding: 0 15px;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 13px;
  color: #333;
  cursor: pointer;
  transition: background 0.2s;
  border-bottom: 1px solid #e5e5e5;
}
.filter-accordion-header:hover {
  background: #ebebeb;
}
.filter-accordion-content {
  padding: 15px;
  border: 1px solid #f5f5f5;
  border-top: none;
}
.filter-search-input {
  width: 100%;
  padding: 8px 30px 8px 10px;
  border: 1px solid #ddd;
  border-radius: 0px;
  font-size: 12px;
  margin-bottom: 10px;
  outline: none;
}
.filter-search-box {
  position: relative;
}
.filter-search-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
}
.filter-checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  font-size: 13px;
  color: #555;
}
.filter-checkbox-row input[type="checkbox"] {
  appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid #ccc;
  border-radius: 0px;
  outline: none;
  cursor: pointer;
  position: relative;
  background: #fff;
  flex-shrink: 0;
}
.filter-checkbox-row input[type="checkbox"]:checked {
  background: var(--color-primary);
  border-color: var(--color-primary);
}
.filter-checkbox-row input[type="checkbox"]:checked::after {
  content: '\2713';
  position: absolute;
  color: white;
  font-size: 12px;
  font-weight: bold;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.filter-checkbox-count {
  margin-left: auto;
  font-size: 12px;
  color: #999;
}
.filter-checkbox-list {
  max-height: 200px;
  overflow-y: auto;
}
.filter-checkbox-list::-webkit-scrollbar {
  width: 5px;
}
.filter-checkbox-list::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 0px;
}

/* Collapsed filter sections */
.filter-content.collapsed {
  display: none;
}

/* Checkbox rows - Halistores style */
.filter-checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  cursor: pointer;
  font-size: 13px;
  color: rgb(32, 32, 32);
  border-bottom: none;
}
.filter-checkbox-row:hover {
  color: var(--color-primary);
}
.filter-checkbox-row input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid #ccc;
  border-radius: 0px;
  outline: none;
  cursor: pointer;
  position: relative;
  background: #fff;
  flex-shrink: 0;
}
.filter-checkbox-row input[type="checkbox"]:checked {
  background: var(--color-primary);
  border-color: var(--color-primary);
}
.filter-checkbox-row input[type="checkbox"]:checked::after {
  content: '\2713';
  position: absolute;
  color: white;
  font-size: 11px;
  font-weight: bold;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.checkbox-label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.filter-checkbox-count {
  margin-left: auto;
  font-size: 11px;
  color: #aaa;
}


/* PAYTR TAKSİT TABLOSU CSS */

#paytr_taksit_tablosu {
    clear: both;
    font-size: 12px;
    max-width: 1200px;
    text-align: center;
    font-family: Arial, sans-serif;
}

#paytr_taksit_tablosu::before {
    display: table;
    content: " ";
}

#paytr_taksit_tablosu::after {
    content: "";
    clear: both;
    display: table;
}

.taksit-tablosu-wrapper {
    margin: 5px;
    width: 280px;
    padding: 12px;
    cursor: default;
    text-align: center;
    display: inline-block;
    border: 1px solid #e1e1e1;
}

.taksit-logo img {
    max-height: 28px;
    padding-bottom: 10px;
}

.taksit-tutari-text {
    float: left;
    width: 126px;
    color: #a2a2a2;
    margin-bottom: 5px;
}

.taksit-tutar-wrapper {
    display: inline-block;
    background-color: #f7f7f7;
}

.taksit-tutar-wrapper:hover {
    background-color: #e8e8e8;
}

.taksit-tutari {
    float: left;
    width: 126px;
    padding: 6px 0;
    color: #474747;
    border: 2px solid #ffffff;
}

.taksit-tutari-bold {
    font-weight: bold;
}

@media all and (max-width: 600px) {
    #paytr_taksit_tablosu {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    .taksit-tablosu-wrapper {
        width: 48%;
        margin: 5px 0;
        padding: 6px;
        box-sizing: border-box;
    }
    .taksit-logo img {
        max-height: 20px;
        padding-bottom: 5px;
    }
    .taksit-tutari-text, .taksit-tutari {
        width: 50%;
        float: left;
        font-size: 9px;
        padding: 4px 0;
        box-sizing: border-box;
        border: none;
    }
    .taksit-tutari-text {
        font-size: 8px;
        margin-bottom: 2px;
    }
    .taksit-tutar-wrapper {
        width: 100%;
        clear: both;
        overflow: hidden;
    }
    .taksit-baslik {
        width: 100%;
        clear: both;
        overflow: hidden;
    }
}


/* Product Accordion / Tabs */
.product-accordion-tabs {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    border-top: 1px solid #eee;
}

.product-accordion-tabs .acc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    border-bottom: 1px solid #eee;
    background: #fff;
    transition: 0.2s;
    order: 0;
}

.product-accordion-tabs .acc-content {
    padding: 15px 10px;
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    display: none;
    order: 0;
    border-bottom: 1px solid #eee;
}

.product-accordion-tabs .acc-header.active {
    color: var(--color-primary, #000);
}
.product-accordion-tabs .acc-header.active .acc-icon {
    transform: rotate(180deg);
}

.product-accordion-tabs .acc-content.active {
    display: block;
}

/* Desktop Tabs Layout (Modern Clean) */
@media all and (min-width: 768px) {
    .product-accordion-tabs {
        flex-direction: row;
        flex-wrap: wrap;
        border-top: none;
        border-bottom: none; 
        gap: 0;
        position: relative;
    }
    .product-accordion-tabs::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 2px;
        background-color: #f3f4f6; /* light gray track line */
        z-index: 0;
        display: none; /* Using border-bottom on a flex basis instead to avoid breaking content overlap */
    }
    /* Let's do standard border-bottom on container */
    .product-accordion-tabs {
        border-bottom: 2px solid #f3f4f6; 
    }
    .product-accordion-tabs .acc-header {
        order: 1;
        flex: none; /* do not stretch */
        justify-content: flex-start;
        border-bottom: 2px solid transparent; 
        background: transparent;
        margin-bottom: -2px; /* overlap track line */
        margin-right: 40px; /* space between tabs */
        padding: 15px 0; /* remove horizontal padding */
        font-size: 15px; /* slightly larger */
        font-weight: 700;
        color: #6b7280; /* inactive gray */
        letter-spacing: 0.5px;
    }
    .product-accordion-tabs .acc-header:hover {
        color: #374151;
    }
    .product-accordion-tabs .acc-header.active {
        border-bottom: 2px solid #111827; /* bold active line */
        color: #111827; /* dark active text */
    }
    .product-accordion-tabs .acc-header .acc-icon {
        display: none; /* hide chevron on desktop */
    }
    .product-accordion-tabs .acc-content {
        order: 2;
        width: 100%;
        border-bottom: none;
        padding: 40px 0; /* clean padding, aligned to edge */
        min-height: 200px;
        font-size: 14px;
        color: #4b5563;
        line-height: 1.7;
    }
}

@media (max-width: 991px) {
  .product-detail-layout {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
    margin-top: 20px !important;
  }
}

/* Modern Price Layout */
.price-modern-container {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 15px;
  margin-bottom: 25px;
  flex-wrap: nowrap;
  width: 100%;
}
.price-discount-badge {
  background-color: #f08127;
  color: #fff;
  padding: 12px 15px;
  border-radius: 0px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-width: 80px;
  flex-shrink: 0;
}
.price-discount-val {
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
}
.price-discount-text {
  font-size: 13px;
  font-weight: 500;
  margin-top: 4px;
}
.price-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-shrink: 0;
}
.price-old-val {
  font-size: 20px;
  color: #9ca3af;
  text-decoration: line-through;
  font-weight: 400;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
  white-space: nowrap;
}
.price-active-val {
  font-size: 32px;
  font-weight: 800;
  color: #111827;
  letter-spacing: -1px;
  line-height: 1;
  white-space: nowrap;
}
.price-divider {
  width: 1px;
  background-color: #e5e7eb;
  height: 50px;
  flex-shrink: 0;
}
.price-havale-title {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 6px;
  font-weight: 500;
  white-space: nowrap;
}
.price-havale-val {
  font-size: 24px;
  font-weight: 700;
  color: #6b7280;
  letter-spacing: -0.5px;
  line-height: 1;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .price-modern-container {
    gap: 10px;
  }
  .price-discount-badge {
    padding: 8px 10px;
    min-width: 55px;
  }
  .price-discount-val {
    font-size: 20px;
  }
  .price-discount-text {
    font-size: 10px;
    margin-top: 2px;
  }
  .price-old-val {
    font-size: 14px;
    margin-bottom: 2px;
  }
  .price-active-val {
    font-size: 20px;
  }
  .price-divider {
    height: 35px;
  }
  .price-havale-title {
    font-size: 10px;
    margin-bottom: 2px;
  }
  .price-havale-val {
    font-size: 16px;
  }
}

/* Auth Modal Styles */
.auth-modal-overlay {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.6); z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: 0.3s ease;
}
.auth-modal-overlay.active { opacity: 1; visibility: visible; }
.auth-modal-content {
  background: #fff; width: 400px; max-width: 90%; border-radius: 0px;
  padding: 30px; box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  transform: translateY(20px); transition: 0.3s ease; position: relative;
}
.auth-modal-overlay.active .auth-modal-content { transform: translateY(0); }
.auth-modal-close {
  position: absolute; top: 15px; right: 15px; font-size: 24px; color: #999;
  cursor: pointer; transition: 0.2s;
}
.auth-modal-close:hover { color: #333; }
.auth-tabs { display: flex; border-bottom: 2px solid #f0f0f0; margin-bottom: 20px; }
.auth-tab { flex: 1; text-align: center; padding: 10px; font-weight: 600; color: #999; cursor: pointer; transition: 0.2s; }
.auth-tab.active { color: #f08127; border-bottom: 2px solid #f08127; margin-bottom: -2px; }
.auth-form { display: none; }
.auth-form.active { display: block; }
.auth-form .form-group { margin-bottom: 15px; }
.auth-form label { display: block; font-size: 13px; font-weight: 600; color: #555; margin-bottom: 5px; }
.auth-form input { width: 100%; padding: 10px 15px; border: 1px solid #ddd; border-radius: 0px; font-size: 14px; font-family: inherit; }
.auth-form input:focus { border-color: #f08127; outline: none; }
.auth-btn { width: 100%; padding: 12px; background: #f08127; color: #fff; border: none; border-radius: 0px; font-size: 16px; font-weight: 700; cursor: pointer; margin-top: 10px; }
.auth-btn:hover { background: #e65c00; }
.auth-msg { margin-top: 15px; font-size: 13px; text-align: center; padding: 10px; border-radius: 0px; display: none; }
.auth-msg.error { background: #fee2e2; color: #991b1b; display: block; }
.auth-msg.success { background: #dcfce7; color: #166534; display: block; }

/* My Account Dashboard Styles */
.account-dashboard { display: flex; gap: 30px; margin-top: 30px; margin-bottom: 50px; flex-wrap: wrap; }
.account-sidebar { width: 250px; flex-shrink: 0; }
.account-menu { background: #fff; border: 1px solid #e5e7eb; border-radius: 0px; overflow: hidden; }
.account-menu-item { padding: 15px 20px; border-bottom: 1px solid #e5e7eb; cursor: pointer; color: #4b5563; font-weight: 600; transition: 0.2s; display: flex; align-items: center; gap: 10px; }
.account-menu-item:last-child { border-bottom: none; }
.account-menu-item:hover, .account-menu-item.active { background: #f9fafb; color: #f08127; }
.account-content { flex-grow: 1; background: #fff; border: 1px solid #e5e7eb; border-radius: 0px; padding: 30px; min-height: 400px; }
.account-section-title { font-size: 24px; font-weight: 800; color: #111827; margin-bottom: 20px; border-bottom: 2px solid #f3f4f6; padding-bottom: 10px; }
.account-card { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 0px; padding: 20px; margin-bottom: 20px; }
.account-card-title { font-size: 16px; font-weight: 700; margin-bottom: 15px; display: flex; align-items: center; justify-content: space-between; }
.order-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 14px; }
.order-table th, .order-table td { padding: 12px; text-align: left; border-bottom: 1px solid #e5e7eb; }
.order-table th { font-weight: 600; color: #6b7280; background: #f3f4f6; }
.order-status-badge { padding: 5px 10px; border-radius: 0px; font-size: 12px; font-weight: 600; color: #fff; }

@media (max-width: 768px) {
  .account-dashboard { flex-direction: column; gap: 20px; }
  .account-sidebar { width: 100%; }
  .account-content { padding: 20px; }
  .order-table { display: block; overflow-x: auto; }
}
/* Checkout New UI */
.cart-preview {
    background: #fff;
    border-radius: 0px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid #eee;
}
.cart-preview-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cart-preview-items {
    max-height: 250px;
    overflow-y: auto;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
    padding-bottom: 15px;
}
.preview-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}
.preview-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 0px;
    margin-right: 15px;
    border: 1px solid #f0f0f0;
}
.preview-item-info {
    flex-grow: 1;
}
.preview-item-title {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    margin-bottom: 3px;
}
.preview-item-meta {
    font-size: 12px;
    color: #777;
}
.preview-item-price {
    font-weight: 600;
    color: var(--primary);
}
.coupon-box {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}
.coupon-box input {
    flex-grow: 1;
    border: 1px solid #ddd;
    border-radius: 0px;
    padding: 10px 15px;
    outline: none;
}
.coupon-box button {
    background: var(--text-dark);
    color: #fff;
    border: none;
    border-radius: 0px;
    padding: 0 20px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
}
.coupon-box button:hover {
    background: #000;
}
.cart-preview-totals {
    font-size: 14px;
}
.cart-preview-totals div {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}
.cart-preview-totals .discount-row {
    color: var(--success);
}
.cart-preview-totals .grand-total {
    font-size: 18px;
    font-weight: 700;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #ccc;
    color: var(--primary);
}

.payment-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}
.payment-card {
    border: 2px solid #eee;
    border-radius: 0px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #fff;
    position: relative;
    overflow: hidden;
}
.payment-card:hover {
    border-color: #ddd;
    background: #fafafa;
}
.payment-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}
.payment-card.selected {
    border-color: var(--primary);
    background: #fffafa;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.1);
}
.payment-card i {
    font-size: 40px;
    color: #ccc;
    margin-bottom: 12px;
    transition: 0.2s;
}
.payment-card.selected i {
    color: var(--primary);
}
.payment-card-title {
    font-weight: 600;
    font-size: 15px;
    color: #333;
    margin-bottom: 5px;
}
.payment-card-desc {
    font-size: 12px;
    color: #777;
}

.saved-address-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}
.saved-address-card {
    border: 2px solid #eee;
    border-radius: 0px;
    padding: 15px;
    cursor: pointer;
    transition: 0.2s;
    background: #fff;
    position: relative;
}
.saved-address-card:hover {
    border-color: #ccc;
}
.saved-address-card.selected {
    border-color: var(--primary);
    background: #fffafa;
}
.saved-address-card input[type="radio"] {
    position: absolute;
    top: 15px;
    right: 15px;
}
.saved-address-title {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.saved-address-text {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}

/* Carrier Options */
.carrier-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}
.carrier-card {
    border: 1px solid #ddd;
    border-radius: 0px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: 0.2s;
}
.carrier-card:hover {
    background: #fafafa;
}
.carrier-card.selected {
    border-color: var(--primary);
    background: #fffafa;
}
.carrier-card i {
    font-size: 24px;
    color: var(--primary);
}
.carrier-info {
    flex-grow: 1;
}
.carrier-name {
    font-weight: 600;
    font-size: 15px;
}
.carrier-delay {
    font-size: 12px;
    color: #777;
}
.carrier-price {
    font-weight: 600;
}

.checkout-section {
    background: #fff;
    padding: 25px;
    border-radius: 0px;
    border: 1px solid #eee;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}
.checkout-section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
}
.checkout-section-title i {
    color: var(--primary);
}
/* Premium Checkout UI Overhaul */
body:has(.checkout-wrapper) {
    background-color: #f4f6f8;
}

.checkout-wrapper {
    max-width: 1100px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
    align-items: start;
}

@media (max-width: 900px) {
    .checkout-wrapper {
        grid-template-columns: 1fr;
    }
}

.checkout-main {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.checkout-sidebar {
    position: sticky;
    top: 20px;
}

/* Premium Section Cards */
.checkout-section {
    background: #fff;
    padding: 30px;
    border-radius: 0px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    border: none;
    position: relative;
    overflow: hidden;
}

.checkout-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
    opacity: 0.8;
}

.checkout-section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #1f2937;
    border-bottom: 2px solid #f3f4f6;
    padding-bottom: 15px;
}

.checkout-section-title i {
    color: var(--primary);
    background: #fff1f2;
    padding: 8px;
    border-radius: 0px;
    font-size: 22px;
}

/* Floating Label Inputs */
.floating-group {
    position: relative;
    margin-bottom: 20px;
    width: 100%;
}

.floating-input {
    width: 100%;
    padding: 18px 15px 10px 15px;
    font-size: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 0px;
    background: #fff;
    transition: all 0.2s ease;
    outline: none;
    color: #1f2937;
    font-weight: 500;
}

.floating-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.floating-label {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 14px;
    color: #6b7280;
    pointer-events: none;
    transition: all 0.2s ease;
    transform-origin: left top;
}

.floating-input:focus ~ .floating-label,
.floating-input:not(:placeholder-shown) ~ .floating-label,
.floating-select ~ .floating-label {
    transform: translateY(-9px) scale(0.85);
    color: var(--primary);
    font-weight: 600;
}

.floating-select {
    padding: 16px 15px 8px 15px;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 15px;
}

/* Checkbox Styling */
.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #4b5563;
    font-weight: 500;
    padding: 10px 0;
}

.custom-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 0px;
    cursor: pointer;
    accent-color: var(--primary);
}

/* Payment Cards Premium */
.payment-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.payment-card {
    border: 2px solid #e5e7eb;
    border-radius: 0px;
    padding: 25px 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #fff;
    position: relative;
}

.payment-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.payment-card.selected {
    border-color: var(--primary);
    background: #fff1f2;
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.15);
}

.payment-card.selected::after {
    content: '\eb81'; /* boxicons check-circle */
    font-family: 'boxicons';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    color: var(--primary);
}

.payment-card i.main-icon {
    font-size: 48px;
    color: #94a3b8;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.payment-card.selected i.main-icon {
    color: var(--primary);
    transform: scale(1.1);
}

/* Carrier Cards */
.carrier-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.carrier-card {
    border: 2px solid #e5e7eb;
    border-radius: 0px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
}

.carrier-card:hover {
    background: #f8fafc;
}

.carrier-card.selected {
    border-color: var(--primary);
    background: #fff1f2;
}

/* Cart Sidebar Premium */
.cart-preview {
    background: #fff;
    border-radius: 0px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    border: 1px solid #f3f4f6;
}

.cart-preview-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1f2937;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #f3f4f6;
    padding-bottom: 15px;
}

.preview-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    background: #f9fafb;
    padding: 10px;
    border-radius: 0px;
}

.preview-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 0px;
    margin-right: 15px;
    border: 1px solid #eee;
}

.preview-item-title {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Coupon Box */
.coupon-box {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    background: #f9fafb;
    padding: 15px;
    border-radius: 0px;
}

.coupon-box .floating-group {
    margin-bottom: 0;
}

.coupon-box button {
    background: #1f2937;
    color: #fff;
    border: none;
    border-radius: 0px;
    padding: 0 25px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    white-space: nowrap;
}

.coupon-box button:hover {
    background: #000;
}

/* Totals */
.cart-preview-totals {
    margin-top: 20px;
}

.cart-preview-totals div {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
    color: #4b5563;
    font-weight: 500;
}

.cart-preview-totals .grand-total {
    font-size: 22px;
    font-weight: 800;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px dashed #e5e7eb;
    color: var(--primary);
}

.submit-btn-premium {
    background: linear-gradient(135deg, var(--primary) 0%, #dc2626 100%);
    color: #fff;
    border: none;
    border-radius: 0px;
    padding: 20px;
    font-size: 18px;
    font-weight: 700;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.submit-btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(239, 68, 68, 0.3);
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
@media (max-width: 600px) {
    .two-col {
        grid-template-columns: 1fr;
    }
}
/* Marketplace Style Checkout UI */
body:has(.checkout-wrapper) {
    background-color: #fafafa;
}

.checkout-wrapper {
    max-width: 1150px;
    margin: 30px auto;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 20px;
    align-items: start;
    font-family: var(--font-primary) !important;
}

@media (max-width: 900px) {
    .checkout-wrapper {
        grid-template-columns: 1fr;
    }
}

.checkout-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.checkout-sidebar {
    position: sticky;
    top: 20px;
}

/* Marketplace Section Cards */
.checkout-section {
    background: #ffffff;
    padding: 24px;
    border-radius: 0px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.checkout-section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333333;
}

.checkout-section-title i {
    color: var(--primary, #f08127);
    font-size: 24px;
}

/* Clean Input Fields */
.floating-group {
    position: relative;
    margin-bottom: 20px;
    width: 100%;
}

.floating-input {
    width: 100%;
    padding: 22px 14px 10px 14px;
    font-size: 14px;
    border: 1px solid #d1d5db;
    border-radius: 0px;
    background: #fff;
    transition: all 0.2s;
    outline: none;
    color: #333;
}

.floating-input:focus {
    border-color: var(--primary, #f08127);
    box-shadow: inset 0 0 0 1px var(--primary, #f08127);
}

.floating-label {
    position: absolute;
    top: 17px;
    left: 14px;
    font-size: 14px;
    color: #9ca3af;
    pointer-events: none;
    transition: all 0.2s ease;
    transform-origin: left top;
}

.floating-input:focus ~ .floating-label,
.floating-input:not(:placeholder-shown) ~ .floating-label,
.floating-select ~ .floating-label {
    transform: translateY(-10px) scale(0.85);
    color: var(--primary, #f08127);
}

.floating-select {
    padding: 22px 14px 10px 14px;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px;
}

/* Checkboxes */
.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #4b5563;
}

.custom-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border: 1px solid #d1d5db;
    border-radius: 0px;
    accent-color: var(--primary, #f08127);
}

/* Cards (Payment/Carrier/Address) */
.saved-address-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}
@media (max-width: 600px) {
    .saved-address-grid { grid-template-columns: 1fr; }
}

.saved-address-card, .payment-card, .carrier-card {
    border: 1px solid #e2e8f0;
    border-radius: 0px;
    padding: 16px;
    cursor: pointer;
    background: #fff;
    transition: border-color 0.2s;
    position: relative;
}

.saved-address-card:hover, .payment-card:hover, .carrier-card:hover {
    border-color: #cbd5e1;
}

.saved-address-card.selected, .payment-card.selected, .carrier-card.selected {
    border-color: var(--primary, #f08127);
    background: #fffaf7; /* Very light orange tint */
}

/* Specific Card Styling */
.payment-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.payment-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 15px;
}

.payment-card i.main-icon {
    font-size: 36px;
    color: #94a3b8;
    margin-bottom: 12px;
}

.payment-card.selected i.main-icon {
    color: var(--primary, #f08127);
}

.payment-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.payment-card-desc {
    font-size: 12px;
    color: #6b7280;
}

.carrier-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.carrier-card {
    display: flex;
    align-items: center;
    gap: 16px;
}

.carrier-info {
    flex: 1;
}

.carrier-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.carrier-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary, #f08127);
}

/* Sidebar Box */
.cart-preview {
    background: #fff;
    border-radius: 0px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.cart-preview-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.preview-item {
    display: flex;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.preview-item img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border: 1px solid #f1f5f9;
    border-radius: 0px;
    margin-right: 12px;
}

.preview-item-info {
    flex: 1;
}

.preview-item-title {
    font-size: 13px;
    color: #333;
    line-height: 1.4;
    margin-bottom: 6px;
}

.preview-item-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary, #f08127);
}

.cart-preview-totals {
    margin-top: 15px;
}

.cart-preview-totals div {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    color: #4b5563;
}

.cart-preview-totals .grand-total {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    padding-top: 15px;
    margin-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.submit-btn-premium {
    background: var(--primary, #f08127);
    color: #fff;
    border: none;
    border-radius: 0px;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
}

.submit-btn-premium:hover {
    background: #d97423;
}

.coupon-box {
    display: flex;
    gap: 8px;
    margin: 20px 0;
}

.coupon-box button {
    background: #333;
    color: #fff;
    border: none;
    border-radius: 0px;
    padding: 0 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
@media (max-width: 600px) {
    .two-col {
        grid-template-columns: 1fr;
    }
}

/* Halistores Product Card Override */
.product-card {
  background: #ffffff !important;
  border: 1px solid #e5e5e5 !important;
  border-radius: 8px !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  position: relative !important;
  overflow: hidden !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
}

.product-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
}

.product-img-wrap {
  position: relative !important;
  padding-bottom: 133.33% !important; /* 3:4 aspect ratio to prevent top/bottom crop of rectangular rugs */
  overflow: hidden !important;
  background: #ffffff !important;
  width: 100% !important;
  border-top-left-radius: 8px !important;
  border-top-right-radius: 8px !important;
}

.product-img-wrap img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.3s ease !important;
}

.product-card:hover .product-img-wrap img {
  transform: scale(1.03) !important;
}

.product-card-body {
  padding: 12px 15px 15px 15px !important;
  background: #ffffff !important;
  flex-grow: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
}

.product-brand {
  font-size: 11px !important;
  color: #888888 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  margin-bottom: 4px !important;
  font-weight: 600 !important;
}

.product-name {
  font-size: 13px !important;
  color: #333333 !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  min-height: 36px !important;
  margin-bottom: 10px !important;
}

.product-price-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  margin-top: auto !important;
}

.product-price-box {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

.product-discount-percent {
  color: #ef4444 !important; /* Red discount text on left */
  font-weight: 700 !important;
  font-size: 13px !important;
}

.product-price {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #202020 !important; /* Bold black text for current price */
  line-height: 1.2 !important;
}

.product-old-price {
  font-size: 12px !important;
  color: #999999 !important;
  text-decoration: line-through !important;
  line-height: 1.2 !important;
}

.product-discount-badge {
  background: #fef2f2 !important; /* Light red badge on right instead of Kargo Bedava */
  color: #ef4444 !important;
  border: 1px solid #fee2e2 !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  padding: 3px 6px !important;
  border-radius: 4px !important;
  line-height: 1.2 !important;
  text-align: center !important;
}

/* Hover reveal add to cart */
.product-add-btn {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 38px !important;
  background: #f08127 !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 0 !important;
  transform: translateY(100%) !important;
  transition: all 0.25s ease !important;
  border: 0 !important;
  cursor: pointer !important;
  z-index: 3 !important;
  border-radius: 0px !important;
}

.product-card:hover .product-add-btn {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Category Page Grid 3 columns default */
.products-grid,
.category-products-area .products-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 20px !important; /* Spacing between cards */
  background: transparent !important;
  border: none !important;
  margin-bottom: 30px !important;
}

@media (max-width: 1024px) {
  .products-grid,
  .category-products-area .products-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 15px !important;
  }
}

@media (max-width: 768px) {
  .products-grid,
  .category-products-area .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
}

/* Style Slider dots as horizontal dash lines */
.bullet {
  width: 16px !important;
  height: 2px !important;
  border-radius: 0px !important;
  background-color: rgba(0, 0, 0, 0.2) !important;
  cursor: pointer !important;
  transition: background-color 0.2s !important;
}

.bullet.active {
  background-color: #000000 !important;
}

/* ==========================================================================
   HALISTORES HEADER STYLES (DESKTOP & MOBILE)
   ========================================================================== */

.top-bar {
  background: #f5f5f5 !important;
  border-bottom: 1px solid #e5e5e5 !important;
  height: 32px !important;
  font-size: 11px !important;
  color: #666666 !important;
  display: flex !important;
  align-items: center !important;
  font-family: var(--font-primary) !important;
  margin: 0 !important;
  padding: 0 !important;
}

.top-bar-center {
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}

.top-bar-link {
  color: #666666 !important;
  text-decoration: none !important;
  transition: color 0.2s !important;
}

.top-bar-link:hover {
  color: #f08127 !important;
}

.top-bar-sep {
  color: #cccccc !important;
  margin: 0 6px !important;
}

.top-bar-currency {
  cursor: pointer !important;
  gap: 4px !important;
  font-weight: 600 !important;
}

header {
  background: #ffffff !important;
  border-bottom: 1px solid #eeeeee !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
}

.header-inner {
  height: 70px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px !important;
}

.logo img {
  height: 42px !important;
  max-width: 170px !important;
  object-fit: contain !important;
}

.search-wrapper {
  flex: 1 !important;
  max-width: 480px !important;
  position: relative !important;
}

.search-wrapper form {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  background: #f2f2f2 !important;
  border-radius: 5px !important;
  height: 38px !important;
  padding: 0 15px !important;
  border: none !important;
  position: relative !important;
}

.search-input {
  flex: 1 !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  font-size: 12px !important;
  color: #333333 !important;
  font-weight: 500 !important;
  padding: 0 30px 0 0 !important;
}

.search-submit-btn {
  background: none !important;
  border: none !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  position: absolute !important;
  right: 12px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  margin: 0 !important;
}

.search-icon {
  font-size: 18px !important;
  color: #888888 !important;
  position: static !important;
  transform: none !important;
}

.action-buttons {
  display: flex !important;
  align-items: center !important;
  gap: 15px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #202020 !important;
}

.action-buttons .icon-btn {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  cursor: pointer !important;
  color: #202020 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

.action-buttons .icon-btn i {
  font-size: 20px !important;
  color: #202020 !important;
}

.action-sep {
  color: #dddddd !important;
  font-weight: 300 !important;
}

.icon-label {
  display: inline-block !important;
}

@media (max-width: 768px) {
  .top-bar-left, .top-bar-right {
    display: none !important;
  }
  .top-bar-center {
    width: 100% !important;
    text-align: center !important;
    font-size: 11px !important;
  }
  .header-inner {
    display: grid !important;
    grid-template-columns: auto 1fr auto !important;
    grid-template-areas: 
      "menu logo actions"
      "search search search" !important;
    gap: 12px !important;
    padding: 10px 15px !important;
    height: auto !important;
  }
  .logo {
    grid-area: logo !important;
    justify-self: center !important;
    display: flex !important;
    align-items: center !important;
  }
  .logo img {
    height: 32px !important;
  }
  .mobile-menu-trigger {
    grid-area: menu !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    color: #202020 !important;
    cursor: pointer !important;
  }
  .mobile-menu-trigger i {
    font-size: 24px !important;
  }
  .mobile-menu-trigger .icon-label {
    font-size: 9px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    display: block !important;
  }
  .action-buttons {
    grid-area: actions !important;
    gap: 8px !important;
  }
  .action-buttons .icon-btn .icon-label, .action-sep {
    display: none !important;
  }
  .search-wrapper {
    grid-area: search !important;
    max-width: 100% !important;
    margin-bottom: 5px !important;
  }
}

/* Flying Carpet Loader */
.flying-carpet-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
}

@keyframes flyingCarpet {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(10deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

@keyframes shadowPulse {
  0% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(0.75); opacity: 0.35; }
  100% { transform: scale(1); opacity: 0.8; }
}

.flying-carpet-loader {
  animation: flyingCarpet 2.2s infinite ease-in-out;
}

.carpet-shadow-anim {
  animation: shadowPulse 2.2s infinite ease-in-out;
  transform-origin: 50px 90px;
}

#carpet-loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(255, 255, 255, 0.55); /* semi-transparent white wash */
  backdrop-filter: none; /* remove blur to keep current page visible */
  -webkit-backdrop-filter: none;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#carpet-loader-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.loader-spinner-ring {
  position: absolute;
  width: 136px;
  height: 136px;
  border: 3px solid rgba(240, 129, 39, 0.08);
  border-top: 3px solid #f08127;
  border-radius: 50%;
  animation: spinRing 1.2s linear infinite;
  z-index: 1;
}

@keyframes spinRing {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Card Slider Left/Right Arrows style */
.card-arrow {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 28px !important;
  height: 28px !important;
  background: rgba(255, 255, 255, 0.9) !important;
  color: #333333 !important;
  border: 1px solid #e5e5e5 !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  z-index: 10 !important;
  font-size: 18px !important;
  opacity: 0 !important;
  transition: opacity 0.2s ease, background 0.2s ease !important;
}

.product-card:hover .card-arrow {
  opacity: 1 !important;
}

.card-arrow:hover {
  background: #ffffff !important;
  color: #f08127 !important;
}

.card-arrow-prev {
  left: 8px !important;
}

.card-arrow-next {
  right: 8px !important;
}

@media (max-width: 768px) {
  .card-arrow {
    opacity: 1 !important;
    width: 24px !important;
    height: 24px !important;
    font-size: 16px !important;
  }
}

/* ==========================================================================
   HALISTORES FOOTER REDESIGN
   ========================================================================== */

#footer {
  width: 100%;
  font-family: 'Open Sans', sans-serif;
  box-sizing: border-box;
}

#footer h3, #social strong, #footer h3 a {
  font-size: 19px;
  font-weight: 500;
  line-height: 20px;
  text-transform: uppercase;
  word-break: break-all;
  margin-top: 0;
  color: #151515;
  margin-bottom: 0;
}

#footerMiddle ul li h3 a {
  text-transform: uppercase;
  font-size: 15px;
  font-weight: 700;
}

#social strong {
  display: block;
  margin-bottom: 0;
}

#social ul {
  display: flex;
  justify-content: space-between;
  width: 95%;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

#social li, #social li a, #social li a i {
  float: left;
  height: 20px;
  padding-top: 0 !important;
}

#social li {
  padding-bottom: 10px;
}

#footerMiddle {
  padding-top: 30px;
  background-color: #F9F9F9;
  padding-bottom: 20px;
}

#footerMiddle ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#footerMiddle ul li {
  display: block;
}

#footerMiddle ul li a, #footerMiddle p {
  display: block;
  line-height: 14px;
  font-size: 12px;
  color: #000;
  text-decoration: none;
  transition: color 0.2s ease;
}

#footerMiddle ul li a:hover {
  color: #f08127;
}

#footerMiddle ul li div li a {
  font-weight: 500;
  color: #747474;
  line-height: 35px;
  font-size: 18px;
}

#footerBottom {
  background: #ffffff;
  padding: 15px 0;
  border-top: 1px solid #e5e5e5;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.footer-bottom-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.footer-logo {
  max-height: 28px;
  width: auto;
  display: block;
}

.footer-copyright {
  font-size: 11px;
  color: #747474;
  display: block;
  line-height: 1.4;
}

.footer-bottom-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.footer-etbis-link {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  text-decoration: none;
}

.footer-etbis-qr {
  width: 65px;
  height: auto;
  display: block;
}

.footer-etbis-text {
  font-size: 10px;
  color: #d92525;
  font-weight: 700;
  display: block;
  margin-top: 2px;
  white-space: nowrap;
}

#footerCardsBar {
  background: #F1F1F1;
  padding: 12px 0;
  border-top: 1px solid #DFDFDF;
  width: 100%;
}

#footerCards {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  width: 100%;
}

#footerCards::-webkit-scrollbar {
  display: none;
}

#footerCards img {
  vertical-align: middle;
  max-height: 22px;
  width: auto;
  flex-shrink: 0;
}

#footerCards::-webkit-scrollbar {
  display: none;
}

#footerCards img {
  padding-left: 10px;
}

#footerMiddle .innerLimited {
  display: flex;
  justify-content: space-between;
}

/* Footer Left Group: wraps first 2 cols + logo */
.footer-left-group {
  flex: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.footer-left-columns {
  display: flex;
}

.footer-left-columns .footer-menu-col {
  flex: 1;
}

.footer-logo-area {
  display: flex;
  align-items: center;
  padding-top: 15px;
  margin-top: auto;
}

/* Dijitall Site Info - Simple & Muted style */
.site_info {
  border-top: 1px solid #DFDFDF;
  border-bottom: 1px solid #DFDFDF;
  padding: 15px 10px;
  background: #ffffff;
}

.site_info .row {
  display: flex;
  justify-content: space-between;
}

.site_info .col {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 0px 20px;
  border-right: 1px solid #E5E5E5;
  flex: 1;
}

.site_info .col:last-child {
  border: 0;
}

.site_info .info_icon i,
.site_info .info_icon img {
  font-size: 28px;
  width: 28px;
  height: 28px;
  color: #777777; /* Muted gray icon */
  display: block;
}

.site_info .info_content {
  display: flex;
  flex-direction: column;
}

.site_info .title {
  font-weight: 600;
  color: #333333; /* Softer text than deep black */
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0 0 3px 0;
}

.site_info .mobile-title {
  display: none;
}

.site_info .text {
  line-height: 1.4;
  font-size: 11px;
  color: #888888; /* Soft description */
}

@media screen and (max-width: 768px) {
  .site_info {
    padding: 10px 5px;
  }
  .site_info .row {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-around;
    gap: 0;
  }
  .site_info .col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    flex: 1;
    padding: 0 4px;
    border-right: 1px solid #DFDFDF;
    gap: 6px;
  }
  .site_info .col:last-child {
    border-right: none;
  }
  .site_info .col:nth-child(odd) {
    border-right: 1px solid #DFDFDF;
  }
  .site_info .col:nth-child(even) {
    padding-left: 0;
  }
  .site_info .info_icon img {
    width: 22px;
    height: 22px;
    display: block;
    margin: 0 auto;
  }
  .site_info .title {
    font-size: 8px;
    line-height: 1.2;
    font-weight: 700;
    text-align: center;
    margin: 0;
  }
  .site_info .desktop-title {
    display: none;
  }
  .site_info .mobile-title {
    display: block;
  }
  .site_info .text {
    display: none; /* Hide description on mobile for simplicity */
  }
}

.musterihi div {
  font-size: 28px;
}

.musterihi {
  margin-top: 57px;
}

#ETBIS {
  margin-top: 15px;
  display: block;
}

#footerMiddle ul li div {
  margin-top: 42px;
}

@media screen and (max-width: 1365px) {
  #footer h3, #social strong, #footer h3 a {
    font-size: 14px;
  }
  #footerMiddle ul li div {
    margin-top: 15px;
  }
  .musterihi {
    margin-top: 25px;
  }
  .musterihi div {
    font-size: 16px;
  }
  #footerMiddle .innerLimited .col {
    flex: 1;
  }
  #footerMiddle {
    padding: 20px 10px;
  }
}

@media screen and (max-width: 1000px) {
  #footerMiddle {
    padding-top: 20px;
    padding-bottom: 20px;
  }
  #footerMiddle .col {
    padding-top: 10px;
    padding-bottom: 10px;
  }
}

@media screen and (min-width: 769px) {
  #footerMiddle ul li div {
    display: block !important;
    height: auto !important;
  }
  #footerBottom .col {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }
}

@media screen and (max-width: 768px) {
  .filter-accordion-block {
    margin-bottom: 0px !important;
  }
  #ETBIS {
    position: relative;
    margin-top: 20px;
    text-align: left;
  }
  .musterihi {
    margin: 0;
  }
  #footerMiddle .innerLimited {
    flex-direction: column;
  }

  #footerMiddle .innerLimited .col {
    width: 100% !important;
    padding: 0;
    margin-bottom: 0px;
  }
  #footerMiddle .innerLimited .col > ul,
  #footerMiddle .innerLimited .col > ul > li {
    margin: 0 !important;
    padding: 0 !important;
  }
  #footer .inner, #footer .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  #footer h3, #social strong {
    font-size: 14px;
    line-height: 35px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
    margin-bottom: 0;
  }
  #footerMiddle {
    padding-top: 10px;
    padding-bottom: 10px;
  }
  #footerMiddle ul li {
    float: none;
    width: 100%;
  }
  #social li {
    padding-top: 10px !important;
  }
  #social ul {
    justify-content: flex-start;
    gap: 12px;
  }
  #footerMiddle ul ul li {
    float: none;
    padding-left: 15px;
    padding-right: 15px;
  }
  #footerMiddle h3 {
    margin-bottom: 0px;
    padding-left: 15px;
    padding-right: 15px;
    line-height: 35px;
    background: #F9F9F9;
    cursor: pointer;
  }
  .musterihi div {
    padding: 10px 15px !important;
  }
  #footerMiddle h3 + div {
    display: none;
    margin-top: 0 !important;
    background: #FFF;
    padding: 5px 0;
  }
  #footerMiddle ul li div li a, #footerMiddle p {
    line-height: 22px;
    font-size: 12px;
  }
  #footerBottom .col {
    text-align: center;
    padding: 10px 0 !important;
    flex-direction: column;
    gap: 10px;
  }
  #footerBottom .col img {
    max-width: 120px;
  }
  #footerCards {
    flex-direction: row !important;
    justify-content: center !important;
    gap: 6px !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    width: 100% !important;
  }
  #footerCards img {
    padding-left: 0 !important;
  }
  #footer h3:after, #social strong:after {
    content: "\ea50";
    font-family: 'boxicons' !important;
    font-weight: normal;
    font-style: normal;
    font-size: 20px;
    line-height: 1;
    float: right;
    transition: transform 0.3s;
  }
  #footer h3.active:after, #social strong.active:after {
    transform: rotate(90deg);
  }
}

/* SEO Section Styles - Modern Accordion */
.footer_seo_section {
  padding: 30px 0 15px 0;
  background: #ffffff;
  border-top: 1px solid #eee;
}

.seo_banner_container {
  width: 100%;
  margin-bottom: 15px;
  text-align: center;
}

.seo_banner_img {
  width: 100%;
  max-width: 1200px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 4px;
}

.seo_text_divider {
  position: relative;
  height: 1px;
  background: #e5e5e5;
  margin: 20px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.seo_text_toggle {
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #dcdcdc;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  transition: all 0.25s ease;
  outline: none;
  padding: 0;
}

.seo_text_toggle:hover {
  border-color: #f08127;
  background: #fff9f5;
  box-shadow: 0 4px 8px rgba(240, 129, 39, 0.15);
}

.seo_text_toggle .toggle-icon {
  font-size: 20px;
  color: #666666;
  transition: transform 0.25s ease, color 0.25s ease;
}

.seo_text_toggle:hover .toggle-icon {
  color: #f08127;
}

.seo_text_toggle.active .toggle-icon {
  transform: rotate(180deg);
}

.seo_text_content {
  display: none;
  padding: 20px;
  background: #fafafa;
  border: 1px solid #eaeaea;
  border-radius: 4px;
  margin-top: 15px;
  font-size: 13px;
  color: #555555;
  line-height: 1.8;
  text-align: left;
}

.seo_text_content h1 {
  font-size: 16px;
  font-weight: 700;
  color: #151515;
  margin: 0 0 12px 0;
}

.seo_text_content h2 {
  font-size: 14px;
  font-weight: 700;
  color: #151515;
  margin: 20px 0 10px 0;
}

.seo_text_content p {
  margin-bottom: 12px;
}

.seo_text_content strong {
  font-weight: 600;
  color: #202020;
}

/* ==========================================================================
   CUSTOMER SERVICE PAGES (HALISTORES STYLE)
   ========================================================================== */

.info-page-layout {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  padding: 30px 0;
}

.info-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  padding: 20px;
}

.info-sidebar h3 {
  font-size: 13px;
  font-weight: 700;
  color: #202020;
  text-transform: uppercase;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid #ee7e21;
  letter-spacing: 0.05em;
}

.info-sidebar ul {
  display: flex;
  flex-direction: column;
}

.info-sidebar li {
  margin: 0;
}

.info-sidebar a {
  display: block;
  padding: 10px 12px;
  font-size: 13px;
  color: #555555;
  border-bottom: 1px solid #f5f5f5;
  transition: all 0.2s ease;
  font-weight: 500;
}

.info-sidebar li:last-child a {
  border-bottom: 0;
}

.info-sidebar a:hover,
.info-sidebar a.active {
  color: #ee7e21;
  background: #fff8f2;
  border-left: 3px solid #ee7e21;
  padding-left: 9px;
  font-weight: 600;
}

.info-content {
  flex: 1;
  min-width: 0;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  padding: 30px;
}

.info-content-title-bar {
  background: #f9f9f9;
  padding: 15px 20px;
  border-bottom: 1px solid #e5e5e5;
  margin: -30px -30px 25px -30px;
}

.info-content-title-bar h2 {
  font-size: 16px;
  font-weight: 700;
  color: #202020;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info-text-block {
  font-size: 13px;
  line-height: 1.7;
  color: #444444;
}

.info-text-block h3 {
  font-size: 14px;
  font-weight: 700;
  color: #202020;
  margin: 25px 0 12px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.info-text-block h3:first-of-type {
  margin-top: 0;
}

.info-text-block p {
  margin-bottom: 15px;
}

.info-text-block ul, 
.info-text-block ol {
  margin-bottom: 20px;
  padding-left: 20px;
}

.info-text-block li {
  margin-bottom: 8px;
  list-style-type: disc;
}

.info-text-block ol li {
  list-style-type: decimal;
}

/* FAQ Accordion Styles */
.faq-container {
  margin-top: 15px;
}

.faq-item {
  border: 1px solid #e5e5e5;
  margin-bottom: 12px;
}

.faq-question {
  padding: 16px 20px;
  background: #f9f9f9;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #202020;
  user-select: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.faq-question:hover {
  color: #ee7e21;
  background: #fff8f2;
}

.faq-question i {
  font-size: 18px;
  transition: transform 0.25s ease;
  color: #888;
}

.faq-question.active {
  color: #ee7e21;
  border-bottom: 1px solid #e5e5e5;
}

.faq-question.active i {
  transform: rotate(180deg);
  color: #ee7e21;
}

.faq-answer {
  padding: 20px;
  display: none;
  line-height: 1.7;
  color: #555555;
  background: #ffffff;
}

/* Contact Page Grid & Form */
.info-contact-grid {
  display: flex;
  gap: 30px;
}

.info-contact-info {
  flex: 0 0 45%;
  max-width: 45%;
}

.info-contact-form-wrapper {
  flex: 1;
}

.contact-card-box {
  background: #f9f9f9;
  border: 1px solid #e5e5e5;
  padding: 20px;
  margin-bottom: 20px;
}

.contact-card-box h4 {
  font-size: 14px;
  font-weight: 700;
  color: #202020;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.contact-card-box p {
  margin-bottom: 8px;
  font-size: 13px;
  color: #555;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.contact-card-box p i {
  font-size: 16px;
  color: #ee7e21;
  margin-top: 2px;
}

.contact-form {
  background: #ffffff;
}

.contact-form .form-row {
  display: flex;
  gap: 15px;
}

.contact-form .form-row .form-group {
  flex: 1;
}

.contact-form .form-group {
  margin-bottom: 15px;
}

.contact-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #333333;
}

.contact-form .form-control {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #e5e5e5;
  font-size: 13px;
  font-family: inherit;
  color: #333333;
  outline: none;
  transition: border-color 0.2s ease;
}

.contact-form .form-control:focus {
  border-color: #ee7e21;
}

.contact-form textarea.form-control {
  height: 120px;
  padding: 10px 12px;
  resize: vertical;
}

.contact-form button.btn-submit {
  background: #ee7e21;
  color: #ffffff;
  border: 0;
  height: 42px;
  padding: 0 30px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease;
  letter-spacing: 0.05em;
}

.contact-form button.btn-submit:hover {
  background: #d8721c;
}

.map-container {
  width: 100%;
  height: 300px;
  border: 1px solid #e5e5e5;
  margin-top: 25px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Bank Accounts Table */
.bank-table {
  width: 100%;
  border-collapse: collapse;
  margin: 15px 0 25px 0;
}

.bank-table th,
.bank-table td {
  border: 1px solid #e5e5e5;
  padding: 12px 15px;
  text-align: left;
}

.bank-table th {
  background: #f9f9f9;
  font-weight: 700;
  color: #202020;
  font-size: 12px;
  text-transform: uppercase;
}

.bank-table td {
  font-size: 13px;
  color: #555555;
}

/* Responsive Mobile Layouts */
@media (max-width: 768px) {
  .info-page-layout {
    flex-direction: column;
    gap: 20px;
    padding: 15px 0;
  }
  
  .info-sidebar {
    width: 100%;
    padding: 15px;
  }
  
  .info-content {
    width: 100%;
    padding: 20px;
  }
  
  .info-content-title-bar {
    margin: -20px -20px 20px -20px;
    padding: 12px 20px;
  }
  
  .info-contact-grid {
    flex-direction: column;
    gap: 25px;
  }
  
  .info-contact-info {
    flex: 1;
    max-width: 100%;
  }
  
  .contact-form .form-row {
    flex-direction: column;
    gap: 0;
  }
  
  .bank-table {
    display: block;
    overflow-x: auto;
  }
}

/* Breadcrumbs styles matching halistores.com */
.breadcrumb-wrap {
  width: 100%;
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
  background-color: #fafafa;
  margin-bottom: 15px;
}

.breadcrumb-container {
  display: flex;
  align-items: center;
  height: 40px;
  font-size: 12px;
  color: #777;
  margin: 0 auto;
}

.breadcrumb-item {
  color: #777;
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

.breadcrumb-item i {
  font-size: 14px;
}

.breadcrumb-item:hover {
  color: var(--color-primary);
}

.breadcrumb-item.active {
  color: #202020;
  font-weight: 600;
}

.breadcrumb-separator {
  margin: 0 8px;
  color: #ccc;
  font-size: 11px;
}

/* Product Detail Trust Badges */
.trust-badge-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #fafafa;
  border: 1px solid #f0f0f0;
  border-radius: 0px;
  transition: all 0.25s ease;
}

.trust-badge-card:hover {
  border-color: #ee7e21;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(238, 126, 33, 0.05);
  transform: translateY(-1px);
}

.badge-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff8f2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid #ffedd5;
  transition: all 0.25s ease;
}

.trust-badge-card:hover .badge-icon-wrapper {
  background: #ee7e21;
  border-color: #ee7e21;
}

.trust-badge-card:hover .badge-icon-wrapper i {
  color: #ffffff !important;
}

.trust-badge-title {
  font-weight: 700;
  font-size: 13px;
  color: #202020;
  line-height: 1.2;
}

.trust-badge-desc {
  font-size: 11px;
  color: #777;
  margin-top: 3px;
  line-height: 1.2;
}

@media (max-width: 768px) {
  .trust-badge-title {
    font-size: 11px;
  }
  .trust-badge-desc {
    font-size: 9.5px;
  }
}

@media (max-width: 480px) {
  .trust-badge-title {
    font-size: 9px;
  }
  .trust-badge-desc {
    font-size: 8px;
    margin-top: 1px;
  }
  .trust-badge-card {
    padding: 8px 4px;
    gap: 4px;
  }
  .badge-icon-wrapper {
    width: 26px;
    height: 26px;
  }
  .badge-icon-wrapper i {
    font-size: 13px !important;
  }
}


@media screen and (max-width: 768px) {
  .footer-left-group {
    flex: none;
    width: 100%;
  }
  .footer-left-columns {
    flex-direction: column;
  }
  .footer-logo-area {
    display: none !important;
  }
  .footer_seo_section {
    padding: 15px 0 10px 0 !important;
    border-top: none !important;
  }
  .site_info {
    padding: 10px 0 !important;
  }
  #footerCardsBar {
    margin-top: 0 !important;
    padding: 8px 0 !important;
  }
}

/* Custom Highlight Menu Style for Seri Sonu Halilar */
.nav-item.seri-sonu-nav-item {
  background-color: #ff6b00 !important;
  transition: background-color 0.2s ease;
  margin-left: auto; /* Push it to the far right side of the navbar */
}
.nav-item.seri-sonu-nav-item a {
  color: #ffffff !important;
  font-weight: 700 !important;
}
.nav-item.seri-sonu-nav-item:hover {
  background-color: #d95a00 !important;
}

.seri-sonu-mobile-item a:hover {
  background-color: #d95a00 !important;
}

/* Brands Page Styles */
.brands-page-container {
  padding: 40px 0;
  max-width: 1200px;
  margin: 0 auto;
}

.brands-header {
  text-align: center;
  margin-bottom: 40px;
}

.brands-header h1 {
  font-size: 32px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 8px;
}

.brands-header p {
  color: #6b7280;
  font-size: 16px;
}

.brands-search-filter-row {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #f9fafb;
  border: 1px solid #f3f4f6;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 40px;
}

.brands-search-wrapper {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}

.brands-search-wrapper input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 15px;
  color: #1f2937;
  transition: all 0.2s ease;
  background-color: #ffffff;
}

.brands-search-wrapper input:focus {
  border-color: #ff6b00;
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.15);
}

.brands-search-wrapper i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 20px;
}

.alphabet-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.alphabet-letter-btn {
  border: 1px solid #d1d5db;
  background-color: #ffffff;
  color: #4b5563;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.alphabet-letter-btn:hover {
  border-color: #ff6b00;
  color: #ff6b00;
  background-color: #fffaf0;
}

.alphabet-letter-btn.active {
  border-color: #ff6b00;
  background-color: #ff6b00;
  color: #ffffff;
}

.brands-grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.brand-index-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
  min-width: 0; /* Prevents nowrap text inside card from stretching columns */
}

.brand-index-card:hover {
  transform: translateY(-5px);
  border-color: #ff6b00;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
}

.brand-avatar-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.1);
}

.brand-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
  text-transform: uppercase;
  margin: 0;
}

.brand-card-subtitle {
  font-size: 13px;
  color: #ff6b00;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.brand-card-subtitle i {
  transition: transform 0.2s ease;
}

.brand-index-card:hover .brand-card-subtitle i {
  transform: translateX(4px);
}

@media screen and (max-width: 768px) {
  .brands-page-container {
    padding: 10px 0 !important;
  }
  .brands-header {
    margin-bottom: 12px !important;
    text-align: left !important;
    padding-left: 4px !important;
  }
  .brands-header h1 {
    font-size: 20px !important;
    margin-bottom: 0 !important;
  }
  .brands-header p {
    display: none !important;
  }
  .brands-search-filter-row {
    padding: 0 !important;
    gap: 8px !important;
    background: transparent !important;
    border: none !important;
    margin-bottom: 16px !important;
    box-shadow: none !important;
  }
  .brands-search-wrapper {
    margin: 0 !important;
    max-width: 100% !important;
  }
  .brands-search-wrapper input {
    padding: 8px 12px 8px 36px !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    height: 38px !important;
  }
  .brands-search-wrapper i {
    left: 12px !important;
    font-size: 16px !important;
  }
  .alphabet-filter-bar {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
    gap: 5px !important;
    padding: 2px 0 6px 0 !important;
    scrollbar-width: none !important;
  }
  .alphabet-filter-bar::-webkit-scrollbar {
    display: none !important;
  }
  .alphabet-letter-btn {
    padding: 5px 10px !important;
    font-size: 12px !important;
    border-radius: 4px !important;
    flex-shrink: 0 !important;
  }
  .brands-grid-layout {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
  }
  .brand-index-card {
    padding: 12px 4px !important;
    gap: 6px !important;
    border-radius: 8px !important;
    border-color: #eee !important;
    min-width: 0 !important;
  }
  .brand-logo-container {
    width: 60px !important;
    height: 60px !important;
    max-width: 100% !important;
  }
  .brand-avatar-circle {
    font-size: 20px !important;
  }
  .brand-card-title {
    font-size: 11px !important;
    line-height: 1.2 !important;
    font-weight: 600 !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
    padding: 0 2px;
    text-align: center;
  }
  .brand-card-subtitle {
    display: none !important;
  }
}

/* Tablet Layout (4 Columns) */
@media screen and (min-width: 481px) and (max-width: 768px) {
  .brands-grid-layout {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

/* Small Screen Mobile Layout (2 Columns) */
@media screen and (max-width: 359px) {
  .brands-grid-layout {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  .brand-logo-container {
    width: 64px !important;
    height: 64px !important;
  }
  .brand-avatar-circle {
    font-size: 22px !important;
  }
}

/* --- HOMEPAGE HERO SLIDER --- */
.home-hero-slider-wrap {
  width: 100%;
  max-width: 1200px;
  position: relative;
  overflow: hidden;
  margin: 15px auto;
  padding: 0 10px;
  box-sizing: border-box;
}
.hero-slider-container {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}
.hero-slide {
  min-width: 100%;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.home-hero-banner {
  width: 100%;
  display: block;
}
.home-hero-banner img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.2s ease;
}
.home-hero-banner img:hover {
  opacity: 0.95;
}
.desktop-only-banner {
  display: block !important;
}
.mobile-only-banner {
  display: none !important;
}
.slider-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.7);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  font-size: 24px;
  color: #333;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: all 0.2s ease;
}
.slider-nav-btn:hover {
  background: #ffffff;
  color: var(--color-primary);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.slider-nav-prev { left: 20px; }
.slider-nav-next { right: 20px; }

@media screen and (max-width: 768px) {
  .slider-nav-btn {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }
  .slider-nav-prev { left: 8px; }
  .slider-nav-next { right: 8px; }
  .home-hero-slider-wrap {
    margin: 0;
    padding: 0;
    max-width: 100%;
  }
  .hero-slide {
    border-radius: 0;
  }
  .desktop-only-banner {
    display: none !important;
  }
  .mobile-only-banner {
    display: block !important;
    height: auto !important;
  }
}

/* Home Color Swatch Rug Section */
.home-colors-section {
  padding: 30px 0;
  background-color: #ffffff;
}

.colors-outer-frame {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background-color: #ffffff;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.section-header-modern {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
  padding-bottom: 12px;
  border-bottom: 1px solid #edf2f7;
}

.section-title-premium {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}


.colors-grid-home {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 16px;
  justify-items: center;
}

.color-swatch-rug {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--color-dark);
  transition: transform 0.2s;
  width: 100%;
  box-sizing: border-box;
}

.color-swatch-rug:hover {
  transform: translateY(-3px);
}

.color-swatch-rug:hover span {
  color: var(--color-primary);
}

/* Rug Shape */
.rug-shape {
  position: relative;
  border-radius: 3px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.05);
  transition: all 0.2s;
  width: 64px;
  height: 80px;
}

.color-swatch-rug:hover .rug-shape {
  box-shadow: 0 5px 12px rgba(0,0,0,0.12);
  transform: scale(1.03);
}

/* Woven Texture */
.rug-shape::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 2px;
  background-image: 
    linear-gradient(to right, rgba(0,0,0,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 2px 2px;
  pointer-events: none;
}

/* Fringes (top and bottom) */
.rug-shape::before,
.rug-fringe-bottom {
  content: '';
  position: absolute;
  left: 2px;
  right: 2px;
  height: 8px;
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

.rug-shape::before {
  top: -8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='12'%3E%3Cg stroke='%23cbd5e1' stroke-width='1.2' fill='none' stroke-linecap='round'%3E%3Cpath d='M2,12 L2,0 M6,12 L6,0 M10,12 L10,0 M14,12 L14,0 M18,12 L18,0 M22,12 L22,0 M26,12 L26,0 M30,12 L30,0 M34,12 L34,0 M38,12 L38,0 M42,12 L42,0 M46,12 L46,0 M50,12 L50,0 M54,12 L54,0 M58,12 L58,0 M62,12 L62,0'/%3E%3C/g%3E%3C/svg%3E");
}

.rug-fringe-bottom {
  bottom: -8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='12'%3E%3Cg stroke='%23cbd5e1' stroke-width='1.2' fill='none' stroke-linecap='round'%3E%3Cpath d='M2,0 L2,12 M6,0 L6,12 M10,0 L10,12 M14,0 L14,12 M18,0 L18,12 M22,0 L22,12 M26,0 L26,12 M30,0 L30,12 M34,0 L34,12 M38,0 L38,12 M42,0 L42,12 M46,0 L46,12 M50,0 L50,12 M54,0 L54,12 M58,0 L58,12 M62,0 L62,12'/%3E%3C/g%3E%3C/svg%3E");
}

.color-swatch-rug span {
  margin-top: 12px;
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
  text-align: center;
  transition: color 0.2s;
}

/* Responsive Grid and Sizing for Mobile (5 per row) */
@media screen and (max-width: 768px) {
  .home-colors-section {
    padding: 15px 0;
  }
  .colors-outer-frame {
    padding: 15px 10px;
    border-radius: 10px;
    margin: 0;
  }
  .section-header-modern {
    margin-bottom: 18px;
    padding-bottom: 8px;
  }
  .section-title-premium {
    font-size: 13.5px;
    letter-spacing: 0.04em;
  }
  .colors-grid-home {
    grid-template-columns: repeat(5, 1fr);
    gap: 12px 6px;
  }
  .colors-grid-home .rug-shape {
    width: 40px;
    height: 50px;
  }
  .colors-grid-home .rug-shape::before {
    top: -5px;
    height: 5px;
  }
  .colors-grid-home .rug-fringe-bottom {
    bottom: -5px;
    height: 5px;
  }
  .colors-grid-home .color-swatch-rug span {
    margin-top: 8px;
    font-size: 9.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
}

/* Ebatlara Göre Halı Section */
.home-ebat-section {
  padding: 30px 0;
  background-color: #ffffff;
}

.ebat-outer-frame {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background-color: #ffffff;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.ebat-row-subtitle {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin: 25px 0 15px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ebat-row-subtitle:first-of-type {
  margin-top: 0;
}

.m2-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 15px;
}

.ebat-card {
  text-decoration: none;
  display: block;
}

/* m2 Woven Cards -> Top-down Floorplans */
.m2-visual {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.m2-card:hover .m2-visual {
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
  transform: translateY(-5px);
}

.m2-scene {
  width: 100%; height: 100%;
  background-color: #b08d6a;
  background-image: url('/img/wood_floor_texture.png');
  background-size: cover;
  background-position: center;
  position: relative;
}

.m2-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.05);
  z-index: 0;
}

.m2-label-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 40px 15px 15px 15px;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  text-align: center;
  z-index: 10;
  letter-spacing: 0.02em;
}

.m2-rug {
  position: absolute;
  background: #f4f1eb;
  border-radius: 2px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.25);
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
}

.m2-armchair, .m2-table, .m2-sofa {
  position: absolute;
  z-index: 2;
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}

.m2-armchair {
  background: #dcd3c6;
  border-radius: 50% 50% 12px 12px;
  border-top: 6px solid #eae3d8;
}

.m2-table {
  background: #cd9a5b;
  border-radius: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.table-book {
  width: 14px; height: 20px;
  background: #f8f9fa;
  border-radius: 2px;
  box-shadow: 1px 1px 4px rgba(0,0,0,0.3);
}

.table-cup {
  width: 8px; height: 8px;
  background: #111;
  border-radius: 50%;
  box-shadow: 1px 1px 4px rgba(0,0,0,0.3);
}

.m2-sofa {
  background: #dcd3c6;
  border-radius: 8px;
  display: flex;
  padding: 5px;
  gap: 3px;
  box-sizing: border-box;
}

.sofa-cushion {
  flex: 1;
  background: #eae3d8;
  border-radius: 4px;
  box-shadow: inset 0 -2px 5px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.1);
}

.sofa-l-part {
  position: absolute;
  right: 0; bottom: 0;
  width: 30%; height: 280%;
  background: #dcd3c6;
  border-radius: 8px;
  padding: 5px;
  box-sizing: border-box;
  z-index: -1;
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}
.sofa-l-part .sofa-cushion {
  width: 100%; height: 100%;
}

/* 1m2 */
.rug-1m2 { width: 30%; height: 45%; top: 25%; left: 50%; transform: translateX(-50%); }
.armchair-pos-1 { width: 20%; height: 18%; top: 10%; left: 50%; transform: translateX(-50%) rotate(180deg); }
.table-pos-1 { width: 20%; height: 32%; top: 35%; left: 50%; transform: translateX(-50%); border-radius: 20px; }

/* 2m2 */
.rug-2m2 { width: 45%; height: 60%; top: 15%; left: 50%; transform: translateX(-50%); }
.sofa-pos-2 { width: 60%; height: 20%; bottom: 15%; left: 50%; transform: translateX(-50%); }
.table-pos-2 { width: 28%; height: 16%; top: 40%; left: 50%; transform: translateX(-50%); }
.armchair-pos-2 { width: 18%; height: 16%; top: 5%; left: 50%; transform: translateX(-50%) rotate(180deg); }

/* 3m2 */
.rug-3m2 { width: 70%; height: 60%; top: 15%; left: 50%; transform: translateX(-50%); }
.sofa-pos-3 { width: 75%; height: 20%; bottom: 15%; left: 50%; transform: translateX(-50%); }
.table-pos-3 { width: 28%; height: 16%; top: 40%; left: 50%; transform: translateX(-50%); }
.armchair-pos-3 { width: 18%; height: 16%; top: 5%; left: 50%; transform: translateX(-50%) rotate(180deg); }

/* 4m2 */
.rug-4m2 { width: 80%; height: 65%; top: 12%; left: 50%; transform: translateX(-50%); }
.sofa-pos-4 { width: 80%; height: 20%; bottom: 15%; left: 50%; transform: translateX(-50%); }
.table-pos-4 { width: 28%; height: 16%; top: 40%; left: 50%; transform: translateX(-50%); }
.armchair-pos-4 { width: 18%; height: 16%; top: 5%; left: 35%; transform: translateX(-50%) rotate(180deg); }

/* 5m2 */
.rug-5m2 { width: 80%; height: 75%; top: 10%; left: 50%; transform: translateX(-50%); }
.sofa-pos-5 { width: 75%; height: 20%; bottom: 8%; right: 12.5%; }
.table-pos-5 { width: 28%; height: 16%; top: 40%; left: 45%; transform: translateX(-50%); }
.armchair-pos-5 { width: 18%; height: 16%; top: 5%; left: 45%; transform: translateX(-50%) rotate(180deg); }

/* 6m2 */
.rug-6m2 { width: 90%; height: 80%; top: 5%; left: 50%; transform: translateX(-50%); }
.sofa-pos-6 { width: 85%; height: 20%; bottom: 8%; right: 5%; }
.table-pos-6 { width: 28%; height: 16%; top: 40%; left: 45%; transform: translateX(-50%); }
.armchair-pos-6a { width: 18%; height: 16%; top: 5%; left: 35%; transform: translateX(-50%) rotate(180deg); }
.armchair-pos-6b { width: 18%; height: 16%; top: 5%; left: 55%; transform: translateX(-50%) rotate(180deg); }


/* cm Cards (Ebat) */
.cm-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.cm-card .decor-visual {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  position: relative;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.cm-card:hover .decor-visual {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

.cm-card .decor-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(15,23,42,0.85) 0%, rgba(15,23,42,0.2) 50%, transparent 100%);
  transition: all 0.3s ease;
}
.cm-card:hover .decor-overlay {
  background: linear-gradient(to top, rgba(15,23,42,0.95) 0%, rgba(15,23,42,0.3) 50%, transparent 100%);
}

.cm-badge {
  position: relative;
  z-index: 1;
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
  letter-spacing: 0.02em;
  transition: transform 0.3s ease;
}
.cm-card:hover .cm-badge {
  transform: scale(1.05);
}

@media screen and (max-width: 1024px) {
  .m2-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .cm-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (max-width: 768px) {
  .home-ebat-section {
    padding: 20px 0 !important;
  }
  .ebat-outer-frame {
    padding: 0;
    border-radius: 0;
    border: none;
    box-shadow: none;
    background: transparent;
  }
  .section-header-modern {
    padding: 0 15px;
    margin-bottom: 15px !important;
  }
  .m2-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 0 15px;
  }
  .cm-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0 15px;
  }
  .m2-visual {
    border-radius: 8px;
  }
  .m2-number {
    font-size: 28px;
  }
  .m2-label {
    font-size: 12px;
  }
  .cm-card .decor-visual {
    border-radius: 8px;
    aspect-ratio: 3 / 4;
  }
  .cm-badge {
    font-size: 15px;
    margin-bottom: 15px;
  }
}


/* Mega Menu Image Grid for M2 & Ebat */
.mega-image-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}
.mega-image-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  padding-bottom: 8px;
  background: #f8fafc;
}
.mega-image-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  color: var(--color-primary) !important;
  text-decoration: none !important;
}
.mega-img-wrap {
  width: 100%;
  height: 80px;
  background-size: cover;
  background-position: center;
  border-radius: 8px 8px 0 0;
}
.mega-img-label {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  text-align: center;
}
.mega-image-card:hover .mega-img-label {
  color: var(--color-primary);
}
/* Mobile Image Grid for M2 & Ebat */
.mobile-image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 10px;
  background-color: #f8fafc;
}
/* Mobile Specific Image Card */
.mobile-image-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none !important;
  border-radius: 6px;
  overflow: hidden;
  padding-bottom: 5px;
  background: #fff;
  border: 1px solid #eaeaea;
}
.mobile-img-wrap {
  width: 100%;
  height: 55px;
  background-size: cover;
  background-position: center;
  border-radius: 6px 6px 0 0;
}
.mobile-img-label {
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  text-align: center;
}

@media screen and (max-width: 480px) {
  .mobile-color-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 15px 20px;
  background-color: transparent;
}
  .mobile-color-grid .css-rug-icon {
    width: 50px;
    height: 63px;
    aspect-ratio: auto; /* removing the aspect-ratio override if any */
  }
  .mobile-color-grid .css-rug-icon::before {
    top: -8px;
    height: 8px;
  }
  .mobile-color-grid .css-rug-icon::after {
    bottom: -8px;
    height: 8px;
  }
  .color-swatch-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px; /* enough gap between icon and text so bottom fringes don't overlap text */
    padding-top: 8px; /* space for top fringe */
  }
  .color-swatch-item span {
    font-size: 11px !important;
    text-align: center;
    line-height: 1.1;
  }
}


/* CONCEPT 1 SIDEBAR LAYOUT */
.mobile-menu-layout {
  display: flex;
  height: calc(100vh - 65px); /* Assuming header takes some space */
  width: 100%;
  overflow: hidden;
  background-color: #ffffff;
}

.mobile-menu-sidebar {
  width: 35%;
  background-color: #f3f4f6;
  border-right: 1px solid #e5e7eb;
  overflow-y: auto;
  height: 100%;
}

.mobile-menu-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-tab {
  padding: 16px 10px;
  font-size: 14px;
  font-weight: 600;
  color: #4b5563;
  cursor: pointer;
  border-bottom: 1px solid #e5e7eb;
  transition: all 0.2s;
  text-align: center;
}

.sidebar-tab.active {
  background-color: #ffffff;
  color: var(--color-primary, #111827);
  border-left: 4px solid var(--color-primary, #111827);
  padding-left: 6px;
}

.mobile-menu-content {
  width: 65%;
  background-color: #ffffff;
  overflow-y: auto;
  height: 100%;
  padding: 10px 0;
}

.tab-pane {
  display: none;
}
.tab-pane.active {
  display: block;
}

/* Ensure mobile-color-grid fits nicely in 65% width */
@media screen and (max-width: 480px) {
  .mobile-color-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 cols instead of 4 since space is less */
    gap: 8px;
    padding: 10px;
  }
  .mobile-color-grid .css-rug-icon {
    width: 40px;
    height: 50px;
  }
  .mobile-color-grid .css-rug-icon::before, 
  .mobile-color-grid .css-rug-icon::after {
    height: 6px;
    top: -6px;
  }
  .mobile-color-grid .css-rug-icon::after {
    bottom: -6px;
    top: auto;
  }
  .color-swatch-item span {
    font-size: 10px !important;
  }
  
  .mobile-image-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 cols for images */
  }
}

/* Hide the old submenu toggles inside the pane since it's flattened or just block them */
.mobile-menu-content .submenu-toggle {
  display: none;
}
.mobile-menu-content .mobile-sub-menu {
  display: block !important; /* Force show inside panes */
  border-top: none;
  padding: 0 10px;
}

/* Format nested accordions (markalar, renkler vs) inside the content pane */
.mobile-menu-content > .tab-pane > ul > li > a {
  font-weight: 700;
  color: #111827;
  padding: 12px 5px !important;
  border-bottom: 2px solid #f3f4f6;
  margin-top: 10px;
}
.mobile-menu-content .nested-sub-menu {
  padding-left: 0 !important;
}
.mobile-menu-content .nested-sub-menu li a {
  font-weight: 400 !important;
  font-size: 13px !important;
  padding: 8px 5px !important;
  border-bottom: 1px solid #f9fafb;
}



/* CONCEPT 4: APP STYLE MENU */
.drawer.bottom-sheet#menu-drawer {
  bottom: 0;
  top: auto;
  left: 0;
  height: 85vh; /* Takes up 85% of screen */
  width: 100%;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.drawer.bottom-sheet#menu-drawer.active {
  transform: translateY(0);
}

.app-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  background-color: #ffffff;
}

.app-menu-item {
  border-bottom: 1px solid #f3f4f6;
  overflow: hidden;
}

.app-menu-header, .app-menu-item.single-link a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  background: #ffffff;
  text-decoration: none;
  transition: background-color 0.2s;
}

.app-menu-header:active, .app-menu-item.single-link a:active {
  background-color: #f8fafc;
}

.app-menu-header .toggle-icon, .app-menu-item.single-link .arrow-icon {
  font-size: 22px;
  color: #94a3b8;
  transition: transform 0.3s ease;
}

.app-submenu {
  max-height: 0;
  transition: max-height 0.4s ease-in-out;
  background-color: #fafafa;
}

.app-submenu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.app-submenu-link {
  display: block;
  padding: 14px 20px 14px 30px;
  font-size: 14px;
  color: #475569;
  text-decoration: none;
  border-bottom: 1px solid #f1f5f9;
}

.app-submenu-link.highlight {
  color: #ef4444 !important;
  font-weight: 600;
}

/* Ensure mobile-color-grid fits inside the app submenu */
.app-submenu .mobile-color-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 15px 20px;
}

.app-submenu .mobile-image-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 15px 20px;
}

.app-submenu .nested-sub-menu {
  padding-left: 10px;
}
.app-submenu .nested-sub-menu li a {
  padding: 12px 10px;
  font-size: 14px;
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
  display: block;
  text-decoration: none;
}

/* Override for Hali content which uses old classes occasionally */
.app-submenu .mobile-sub-menu > li > a {
  font-weight: 600;
  color: #1e293b;
  padding: 15px 20px;
  display: block;
  border-bottom: 2px solid #f1f5f9;
}

/* Fix mobile nav z-index so it stays above everything except drawers */
.mobile-nav {
  z-index: 990;
}
.drawer-overlay {
  z-index: 1000;
}
.drawer {
  z-index: 1001;
}


/* MODERN PREMIUM MENU (LEFT SIDEBAR) */
.drawer.modern-sidebar {
  position: fixed;
  top: 0;
  left: -100%;
  width: 85%;
  max-width: 380px;
  height: 100vh;
  background-color: #ffffff;
  z-index: 1002;
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 10px 0 25px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
}
.drawer.modern-sidebar.active {
  left: 0;
}
.drawer.modern-sidebar .drawer-header {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f1f5f9;
  background: #ffffff;
}
.drawer.modern-sidebar .drawer-title {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.5px;
  margin: 0;
  text-transform: none !important;
}
.drawer.modern-sidebar .close-drawer {
  font-size: 24px;
  color: #64748b;
  background: #f8fafc;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
  cursor: pointer;
}
.drawer.modern-sidebar .close-drawer:active {
  background: #e2e8f0;
}
.modern-sidebar-content {
  flex: 1;
  overflow-y: auto;
  padding: 10px 0 30px 0;
  background: #ffffff;
}
.modern-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.modern-menu-item {
  border-bottom: 1px solid transparent;
}
.modern-menu-header, .modern-menu-single {
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #1e293b;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s;
  background: #ffffff;
  border: none;
  width: 100%;
}
.modern-menu-header:active, .modern-menu-single:active {
  background-color: #f8fafc;
}
.modern-menu-header .icon-left {
  margin-right: 12px;
  font-size: 20px;
  color: #94a3b8;
}
.modern-menu-header .text {
  flex: 1;
  text-align: left;
}
.modern-menu-header .toggle-icon, .modern-menu-single .arrow-icon {
  font-size: 20px;
  color: #cbd5e1;
  transition: transform 0.3s ease;
}
.modern-menu-item.active .modern-menu-header {
  color: #0f172a;
}
.modern-menu-item.active .toggle-icon {
  transform: rotate(180deg);
  color: #0f172a;
}
.modern-submenu {
  display: none;
  background-color: #f8fafc;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
}
.modern-submenu.active {
  display: block;
}
.modern-submenu-list {
  list-style: none;
  padding: 8px 0;
  margin: 0;
}
.modern-submenu-link {
  display: block;
  padding: 12px 24px 12px 56px;
  font-size: 15px;
  color: #475569;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.modern-submenu-link.highlight {
  color: #e11d48 !important;
  font-weight: 700;
}
.modern-banners {
  padding: 24px;
}
.modern-banners a {
  display: block;
  margin-bottom: 16px;
}
.modern-banners img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}


/* GRID CARDS MENU */
.drawer.grid-sidebar {
  position: fixed;
  top: 0;
  left: -100%;
  width: 95%;
  max-width: 420px;
  height: 100vh;
  background-color: #ffffff;
  z-index: 1002;
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 10px 0 25px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
}
.drawer.grid-sidebar.active {
  left: 0;
}
.drawer.grid-sidebar .drawer-header {
  padding: 24px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f1f5f9;
}
.drawer.grid-sidebar .drawer-title {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  text-transform: none !important;
}
.drawer.grid-sidebar .close-drawer {
  font-size: 24px;
  color: #64748b;
  cursor: pointer;
  padding: 8px;
  background: #f8fafc;
  border-radius: 50%;
}
.grid-sidebar-content {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}
.modern-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.grid-card-wrap {
  display: flex;
  flex-direction: column;
}
.grid-card-wrap.active {
  grid-column: 1 / -1;
}
.grid-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 110px;
  cursor: pointer;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  background-color: #f1f5f9;
}
.grid-card-wrap.active .grid-card {
  height: 90px;
}
.grid-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.grid-card:hover .grid-card-img {
  transform: scale(1.05);
}
.grid-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}
.grid-card-wrap.active .grid-card-overlay {
  background: rgba(0,0,0,0.6);
}
.grid-card-title {
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-align: center;
  padding: 0 10px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}
.grid-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  background: #ffffff;
  border-radius: 12px;
  margin-top: 12px;
}
.grid-card-wrap.active .grid-submenu {
  max-height: 800px;
  padding: 12px 0;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05);
}
.grid-submenu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.grid-submenu-link {
  display: block;
  padding: 14px 24px;
  font-size: 15px;
  color: #334155;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid #f1f5f9;
}
.grid-submenu-link:last-child {
  border-bottom: none;
}
.grid-submenu-link.highlight {
  color: #e11d48;
}
.grid-quick-links {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.grid-quick-link {
  display: flex;
  align-items: center;
  padding: 16px;
  background: #f8fafc;
  border-radius: 16px;
  color: #0f172a;
  font-weight: 700;
  text-decoration: none;
  font-size: 16px;
}
.grid-quick-link i {
  font-size: 24px;
  margin-right: 12px;
}


.grid-nested-wrap {
  border-bottom: 1px solid #f1f5f9;
}
.grid-nested-wrap:last-child {
  border-bottom: none;
}
.grid-nested-header {
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: #f8fafc;
  transition: background 0.3s;
}
.grid-nested-header:active {
  background: #e2e8f0;
}
.grid-nested-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 0;
  margin: 0;
  list-style: none;
  background: #ffffff;
}
.grid-nested-wrap.active .grid-nested-submenu {
  max-height: 1500px;
}
.grid-nested-wrap.active .toggle-icon {
  transform: rotate(180deg);
}
.grid-nested-submenu .grid-submenu-link {
  padding-left: 36px;
  font-weight: 500;
  font-size: 14px;
  border-bottom: 1px solid #f8fafc;
}
