@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #1C3879;
  --primary-light: #2D4C92;
  --accent: #F59E0B;
  --accent-hover: #D97706;
  --bg-body: #F9FAFB;
  --bg-card: #FFFFFF;
  --text-main: #1F2937;
  --text-muted: #6B7280;
  --border: #E5E7EB;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);

  --font-main: 'Kanit', sans-serif;
  --header-height: 70px;
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-body);
  color: var(--text-main);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.2s;
}

img {
  max-width: 100%;
  display: block;
}

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

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.text-center {
  text-align: center;
}

/* --- Grid System --- */
.grid {
  display: grid;
  gap: 20px;
}

.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
  .cols-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {

  .cols-4,
  .cols-3,
  .cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .md-cols-4,
  .md-cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .cols-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .cols-3 {
    grid-template-columns: 1fr;
  }
}

/* Article Grid Specifics */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

@media (max-width: 768px) {
  .article-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}

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

/* --- Components: Buttons (Premium Polish) --- */
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  text-transform: uppercase;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  box-shadow: 0 4px 10px rgba(28, 56, 121, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 8px 20px rgba(28, 56, 121, 0.4);
  transform: translateY(-2px);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent) 0%, #FBBF24 100%);
  color: white;
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
}

.btn-accent:hover {
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
  transform: translateY(-2px);
}

.btn-outline {
  background: white;
  border-color: #E5E7EB;
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #F9FAFB;
  box-shadow: var(--shadow-sm);
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

/* --- Cards --- */
.card {
  background: white;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: 0.3s;
  overflow: hidden;
  position: relative;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(28, 56, 121, 0.1);
}

.feature-box {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  border: 1px solid var(--border);
  transition: 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  outline: none;
  transition: 0.2s;
}

.input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(28, 56, 121, 0.1);
}

/* --- Header & Sticky --- */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: 0.3s;
}

.header-top-strip {
  background: var(--primary);
  color: white;
  padding: 8px 0;
  font-size: 0.85rem;
}

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

.header-main-inner {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-desktop {
  display: none;
  gap: 10px;
  align-items: center;
}

.nav-item-d {
  font-weight: 500;
  color: #4B5563;
  padding: 8px 16px;
  border-radius: 50px;
  transition: 0.2s;
}

.nav-item-d:hover {
  color: var(--primary);
  background: #F3F4F6;
}

.nav-item-d.active {
  color: white;
  background: var(--primary);
  font-weight: 600;
  box-shadow: 0 2px 5px rgba(28, 56, 121, 0.2);
}

@media(min-width: 1024px) {
  .nav-desktop {
    display: flex;
  }
}

/* Search Bar */
.header-search {
  display: none;
  flex: 1;
  max-width: 400px;
  margin: 0 20px;
}

@media(min-width: 768px) {
  .header-search {
    display: block;
  }
}

.search-form {
  display: flex;
  width: 100%;
  border: 2px solid #E5E7EB;
  border-radius: 50px;
  overflow: hidden;
  transition: 0.3s;
}

.search-form:focus-within {
  border-color: var(--primary);
}

.search-input {
  flex: 1;
  border: none;
  padding: 10px 20px;
  outline: none;
  font-size: 0.95rem;
}

.search-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0 20px;
  cursor: pointer;
  transition: 0.2s;
}

.search-btn:hover {
  background: var(--primary-light);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.action-btn {
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  color: var(--primary);
  padding: 5px;
}

.mobile-toggle {
  display: block;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 1.5rem;
}

@media(min-width: 1024px) {
  .mobile-toggle {
    display: none;
  }
}

/* --- Hero Layout (New) --- */
.hero-layout {
  display: grid;
  gap: 15px;
}

/* Desktop: 2 Columns */
@media(min-width: 1024px) {
  .hero-layout {
    grid-template-columns: 2fr 1fr;
    /* 2 : 1 Ratio for 1200x600 and 600x600 */
    /* Remove fixed height to let aspect ratio dictate height */
  }

  .hero-slider-wrap {
    height: 100% !important;
    /* Fill parent */
    margin-bottom: 0 !important;
  }
}

.hero-main {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}

.hero-slider-wrap {
  width: 100%;
  aspect-ratio: 2 / 1;
  /* Force 1200x600 Ratio */
  /* Remove fixed height */
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  background: #eee;
}

@media(min-width: 768px) {
  .hero-slider-wrap {
    aspect-ratio: 2 / 1;
    height: auto;
  }
}

/* Side Grid (The 4 banners) */
.hero-side-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  /* 2x2 Grid */
  gap: 15px;
  height: 100%;
}

.side-banner {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: 0.3s;
  background: #eee;
}

.side-banner:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.side-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Mobile: Slider on top, grid below */
@media(max-width: 1024px) {
  .hero-layout {
    grid-template-columns: 1fr;
    /* Stacked */
    height: auto;
  }

  .hero-side-grid {
    grid-template-columns: repeat(2, 1fr);
    /* Keep 2x2 for tablet/mobile */
    height: auto;
  }

  .side-banner {
    aspect-ratio: 16/9;
    /* Maintain aspect ratio on mobile */
  }
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: 0.8s;
}

.hero-slide.active {
  opacity: 1;
  z-index: 10;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: absolute;
  bottom: 40px;
  left: 40px;
  color: white;
  padding: 30px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  max-width: 500px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  z-index: 20;
  transform: translateY(20px);
  opacity: 0;
  transition: 1s;
}

.hero-slide.active .hero-content {
  transform: translateY(0);
  opacity: 1;
}

.hero-content h1 {
  color: white;
  font-size: 2.2rem;
  margin-bottom: 15px;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 25px;
  opacity: 0.9;
}

/* Updated Slider Navigation Dots */
.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 20;
}

.hero-dot {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.hero-dot.active {
  background: white;
  transform: scale(1.2);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.hero-dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

/* Mobile Optimization for Hero Text */
@media (max-width: 768px) {
  .hero-content {
    width: 90%;
    left: 5%;
    bottom: 15px;
    padding: 20px;
    max-width: none;
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

  .hero-content p {
    font-size: 0.9rem;
    margin-bottom: 10px;
  }

  .hero-content .btn {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
}

/* --- Brand Slider (Colored Logos) --- */
.brand-section {
  padding: 40px 0;
  background: white;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  overflow: hidden;
}

.slider-container {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.brand-slider-track {
  display: flex;
  width: max-content;
  gap: 60px;
  /* Reduced gap */
  animation: scrollBrands 40s linear infinite;
  align-items: center;
}

.slide {
  height: 60px;
  display: flex;
  /* Flex center */
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 0;
}

.slide img {
  height: auto;
  width: auto;
  max-height: 50px;
  /* Constrain Height */
  max-width: 140px;
  object-fit: contain;
  filter: none;
  /* No grayscale */
  opacity: 1;
  /* Full opacity */
  transition: transform 0.3s;
}

.slide:hover img {
  transform: scale(1.1);
}

@keyframes scrollBrands {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* --- Quick Menu (Simplified & Resized) --- */
.quick-menu-wrap {
  display: flex;
  justify-content: center;
  gap: 30px;
  /* Tighter gap */
  flex-wrap: wrap;
  padding: 10px 0;
}

.quick-menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: 0.3s;
  color: var(--text-muted);
  text-align: center;
  padding: 10px 15px;
  border-radius: 12px;
  min-width: 80px;
}

.quick-menu-item:hover {
  color: var(--primary);
  background: rgba(0, 0, 0, 0.03);
  transform: translateY(-2px);
}

.qm-icon {
  font-size: 2.2rem;
  /* Smaller Size */
  margin-bottom: 5px;
}

.quick-menu-item span {
  font-weight: 500;
  font-size: 0.9rem;
  /* Smaller Text */
}

/* --- Feature Sections (Steps & Why Us) --- */
.features-section {
  padding: 60px 0;
  background: white;
}

.features-section.alt-bg {
  background: #F9FAFB;
  border-top: 1px solid #eee;
}

.feature-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}

.feature-head h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: var(--primary);
}

.feature-head p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.feature-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

@media(max-width: 900px) {

  .feature-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  /* feature-grid-3 Removed from here to prevent stacking */
}

@media(max-width: 600px) {
  .feature-grid-4 {
    grid-template-columns: 1fr;
  }

  /* feature-grid-3 Removed from here to prevent stacking */
}

.feature-item {
  text-align: center;
  padding: 20px;
  border-radius: 16px;
  transition: 0.3s;
}

.alt-bg .feature-item {
  background: white;
  box-shadow: var(--shadow-sm);
}

.feature-item:hover {
  transform: translateY(-5px);
}

.feature-icon-box {
  width: 70px;
  height: 70px;
  background: #EEF2FF;
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.svg-icon {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.feature-item h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--primary);
}

.feature-item p {
  font-size: 0.95rem;
  color: var(--text-muted);
}


/* --- Footer --- */
.footer {
  background: var(--primary);
  color: white;
  padding: 80px 0 30px;
  margin-top: 0;
}

/* Remove margin top as features are above */
/* Footer Styling */
.footer {
  background: var(--navy-900);
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: white;
  padding: 60px 0 30px;
  font-size: 0.95rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}

.footer-col {
  flex: 1;
  min-width: 250px;
}

.footer-col h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--accent);
  position: relative;
  display: inline-block;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 40px;
  height: 2px;
  background: var(--accent);
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #cbd5e1;
  transition: 0.2s;
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.social-icon:hover {
  background: var(--accent);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
  color: #94a3b8;
  font-size: 0.85rem;
}

/* Drawer (Mobile) */
/* --- Drawers (Highest Priority) --- */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998 !important;
  /* Higher than header */
  display: none;
  backdrop-filter: blur(4px);
}

.drawer-backdrop.show {
  display: block !important;
}

.drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 300px;
  max-width: 85vw;
  background: white;
  z-index: 9999 !important;
  /* Highest layer */
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex !important;
  flex-direction: column;
}

.drawer.open {
  transform: translateX(0) !important;
}

/* --- Drawer Content Styling (Premium) --- */
.drawer-header {
  padding: 20px 24px;
  background: white;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  color: var(--primary);
  font-size: 1.25rem;
  box-shadow: 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  /* Subtle shadow line */
}

/* Menu Navigation */
.drawer-nav {
  padding: 12px;
  overflow-y: auto;
  flex-grow: 1;
}

.drawer-item {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border-radius: 12px;
  color: #475569;
  font-weight: 500;
  margin-bottom: 4px;
  transition: all 0.2s ease;
  font-size: 1.05rem;
}

.drawer-item:hover {
  background: #f8fafc;
  color: var(--primary);
  transform: translateX(5px);
  /* Slide effect */
}

.drawer-item.active {
  background: #eff6ff;
  color: var(--primary);
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Cart Items Styling */
.cart-items-container {
  padding: 20px;
  flex-grow: 1;
  overflow-y: auto;
  background-color: #fcfcfc;
}

.cart-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: white;
  border-radius: 12px;
  margin-bottom: 12px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
  border: 1px solid #f1f5f9;
  transition: transform 0.2s;
  align-items: center;
}

.cart-item:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.cart-item-thumb {
  width: 70px;
  height: 70px;
  flex-shrink: 0;
  background: #f8fafc;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-thumb img {
  width: 90%;
  height: 90%;
  object-fit: contain;
}

.cart-item-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart-item-title {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.95rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  /* Standard property */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-item-meta {
  font-size: 0.85rem;
  color: #94a3b8;
}

.cart-item-price {
  font-weight: 700;
  color: var(--accent);
  font-size: 1rem;
}

.btn-remove-item {
  background: transparent;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #fecaca;
  color: #ef4444;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.btn-remove-item:hover {
  background: #ef4444;
  color: white;
  border-color: #ef4444;
}

/* Cart Footer */
.cart-footer {
  padding: 24px;
  background: white;
  border-top: 1px solid #f1f5f9;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
}

#btn-checkout-line {
  background: linear-gradient(135deg, #06C755 0%, #05a747 100%);
  /* LINE Green Gradient */
  box-shadow: 0 4px 12px rgba(6, 199, 85, 0.3);
  border: none;
  font-size: 1.1rem;
  font-weight: 600;
}

#btn-checkout-line:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(6, 199, 85, 0.4);
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 {
  transition-delay: 0.1s;
}

.stagger-2 {
  transition-delay: 0.2s;
}

.stagger-3 {
  transition-delay: 0.3s;
}

/* --- Added Utilities for Catalog & Auth --- */

.grid {
  display: grid;
}

/* Grid Column Spans */
.col-span-1 {
  grid-column: span 1 / span 1;
}

.col-span-2 {
  grid-column: span 2 / span 2;
}

.col-span-3 {
  grid-column: span 3 / span 3;
}

.col-span-4 {
  grid-column: span 4 / span 4;
}

.col-span-5 {
  grid-column: span 5 / span 5;
}

.col-span-6 {
  grid-column: span 6 / span 6;
}

.col-span-7 {
  grid-column: span 7 / span 7;
}

.col-span-8 {
  grid-column: span 8 / span 8;
}

.col-span-9 {
  grid-column: span 9 / span 9;
}

.col-span-10 {
  grid-column: span 10 / span 10;
}

.col-span-11 {
  grid-column: span 11 / span 11;
}

.col-span-12 {
  grid-column: span 12 / span 12;
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .lg\:col-span-3 {
    grid-column: span 3 / span 3;
  }

  .lg\:col-span-4 {
    grid-column: span 4 / span 4;
  }

  .lg\:col-span-8 {
    grid-column: span 8 / span 8;
  }

  .lg\:col-span-9 {
    grid-column: span 9 / span 9;
  }
}

/* Flex Utilities for Layout */
.w-full {
  width: 100%;
}

.flex-col {
  flex-direction: column;
}

.flex-1 {
  flex: 1 1 0%;
}

/* Desktop Overrides */
@media (min-width: 1024px) {
  .lg\:flex-row {
    flex-direction: row !important;
  }

  .lg\:w-1\/4 {
    width: 25% !important;
  }

  .lg\:w-3\/4 {
    width: 75% !important;
  }

  .lg\:flex-shrink-0 {
    flex-shrink: 0 !important;
  }

  .lg\:flex-1 {
    flex: 1 1 0% !important;
  }

  /* Grid Fixes */
  .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  .lg\:col-span-3 {
    grid-column: span 3 / span 3 !important;
  }
}

/* ========================================= */
/*       SPACING & UTILITIES (Missing Shim)  */
/* ========================================= */

/* Padding defaults */
.p-4 {
  padding: 1rem;
}

.p-6 {
  padding: 1.5rem;
}

.p-8 {
  padding: 2rem;
}

.p-10 {
  padding: 2.5rem;
}

.p-12 {
  padding: 3rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

/* Margins */
.m-0 {
  margin: 0;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-8 {
  margin-top: 2rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-12 {
  margin-bottom: 3rem;
}

/* Flex Alignment */
.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

/* Layout Wrappers */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Form Spacing */
.input {
  width: 100%;
  padding: 14px 18px;
  /* Larger padding for easier clicking */
  font-size: 1rem;
  border-radius: 12px;
  border: 1px solid #E5E7EB;
  outline: none;
  background-color: #fff;
  transition: all 0.2s;
}

.input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(28, 56, 121, 0.1);
}

/* Grid Gap Shims if missing */
.gap-8 {
  gap: 2rem;
}

.gap-10 {
  gap: 2.5rem;
}

/* Badge Spacing */
.badge {
  display: inline-flex;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;

}

/* Animation Utilities */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

.fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

.hidden {
  display: none !important;
}

/* Missing Utilities for Catalog */
.text-red-600 {
  color: #dc2626;
}

.text-yellow-800 {
  color: #854d0e;
}

.text-gray-400 {
  color: #9ca3af;
}

.text-gray-500 {
  color: #6b7280;
}

.text-gray-800 {
  color: #1f2937;
}

.bg-yellow-100 {
  background-color: #fef9c3;
}

.bg-gray-100 {
  background-color: #f3f4f6;
}

.bg-primary-light {
  background-color: var(--primary-light);
}

.border-gray-100 {
  border-color: #f3f4f6;
}

.border-gray-200 {
  border-color: #e5e7eb;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.rounded-full {
  border-radius: 9999px;
}

.object-contain {
  object-fit: contain;
}

.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

/* Transitions & Transforms */
.transition-transform {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
}

.transition-opacity {
  transition-property: opacity;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
}

.transition-colors {
  transition-property: background-color, border-color, color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
}

.duration-300 {
  transition-duration: 300ms;
}

.hover\:scale-105:hover {
  transform: scale(1.05);
}

.group:hover .group-hover\:scale-105 {
  transform: scale(1.05);
}

.opacity-0 {
  opacity: 0;
}

.opacity-100 {
  opacity: 1;
}

.group:hover .group-hover\:opacity-100 {
  opacity: 1;
}

.overflow-hidden {
  overflow: hidden;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.bottom-2 {
  bottom: 0.5rem;
}

.right-2 {
  right: 0.5rem;
}

/* Line Clamp shim */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  /* Standard property */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.leading-tight {
  line-height: 1.25;
}

.cursor-pointer {
  cursor: pointer;
}

.list-none {
  list-style: none;
}

.flex {
  display: flex;
}

.space-y-4>*+* {
  margin-top: 1rem;
}

.space-y-3>*+* {
  margin-top: 0.75rem;
}

/* Fix Search Input Styling */
.relative input[type="text"] {
  padding-left: 2.5rem !important;
  height: 48px !important;
}

.relative span.absolute {
  top: 50% !important;
  transform: translateY(-50%) !important;
  left: 1rem !important;
  z-index: 10;
  pointer-events: none;
}

/* Fix Card Interaction */
.product-card {
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.product-card button,
.product-card a {
  position: relative;
  z-index: 20 !important;
}

/* Fix Title Height */
.product-title {
  min-height: 3.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  /* Standard property */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Modal Z-Index */
#product-modal {
  z-index: 99999 !important;
}

/* Missing Aspect Ratio */
.aspect-square {
  aspect-ratio: 1 / 1;
}

/* Modal Image Constraints */
#modal-img-container {
  max-height: 400px;
  /* Cap height to prevent blowouts */
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9fafb;
  overflow: hidden;
  border-radius: 8px;
}

#modal-img-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Ensure Drawer/Modal is on top */
.drawer-backdrop,
.drawer {
  z-index: 10000 !important;
}

/* --- Final Polish: Product Card Utilities --- */

/* Badge Colors */
.bg-accent {
  background-color: var(--accent) !important;
  color: white !important;
}

.bg-red-500 {
  background-color: #ef4444 !important;
  color: white !important;
}

/* Typography Overrides */
.text-gray-900 {
  color: #111827 !important;
}

.text-primary {
  color: var(--primary) !important;
}

/* Border & Shadow */
.border-gray-300 {
  border-color: #d1d5db !important;
}

.shadow-sm {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

/* Gap Utilities (if missing) */
.gap-2 {
  gap: 0.5rem !important;
}

/* --- Missing Modal Utilities --- */
.bg-white {
  background-color: white !important;
}

.bg-gray-50 {
  background-color: #f9fafb !important;
}

.text-2xl {
  font-size: 1.5rem !important;
}

.text-3xl {
  font-size: 1.875rem !important;
}

.rounded-xl {
  border-radius: 0.75rem !important;
}

.shadow-xl {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
}

.overflow-y-auto {
  overflow-y: auto !important;
}

/* Bracket class shim */
.max-h-\[90vh\] {
  max-height: 90vh !important;
}

/* Modal Layout for Desktop */
@media (min-width: 768px) {
  .md\:flex-row {
    flex-direction: row !important;
  }

  .md\:w-1\/2 {
    width: 50% !important;
  }

  .md\:p-8 {
    padding: 2rem !important;
  }
}

/* Drawer Backdrop Visibility Fix */
.drawer-backdrop {
  display: flex !important;
  /* Override none if needed when active, managed by JS mostly */
  visibility: hidden;
  opacity: 0;
}

.drawer-backdrop.open {
  visibility: visible !important;
  opacity: 1 !important;
}

/* --- Emergency Modal Fixes REMOVED (Reverted to Original) --- */
/* (Cleaned up to prevent conflicts with restored styles below) */

/* --- Premium Design System Utilities (The "Beautiful" Update) --- */

/* Backdrop Blur */
.backdrop-blur-md {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Premium Shadows */
.shadow-2xl {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
}

.drop-shadow-sm {
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.05));
}

/* Typography Polish */
.tracking-tight {
  letter-spacing: -0.025em;
}

.tracking-wider {
  letter-spacing: 0.05em;
}

.font-extrabold {
  font-weight: 800 !important;
}

/* Transitions */
.ease-out {
  transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
}

.duration-500 {
  transition-duration: 500ms;
}

/* Glass Effect for Badges */
.bg-white\/90 {
  background-color: rgba(255, 255, 255, 0.9);
}

/* Button & Active States */
.active\:scale-95:active {
  transform: scale(0.95);
}

/* Ensure Body is clean off-white to make cards pop */
body {
  background-color: #F8FAFC !important;
  /* Slate-50 */
}

/* Fix Card Height Consistency */
.product-card {
  height: 100%;
  /* Fill the grid cell */
  display: flex !important;
  flex-direction: column;
}

/* --- RESTORED ORIGINAL CATALOG STYLES --- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* Mobile: 2 columns */
  gap: 16px;
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 24px;
  }
}

/* --- Catalog Sidebar Layout Fix (Left Side) --- */
.catalog-container {
  display: grid;
  gap: 30px;
  align-items: start;
}

@media (min-width: 1024px) {
  .catalog-container {
    grid-template-columns: 280px 1fr !important;
    /* Sidebar 280px | Grid Flexible */
  }
}

.filters-sidebar {
  background: white;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid #f1f5f9;
  box-shadow: 0 4px 6px -4px rgba(0, 0, 0, 0.05);
}

/* Make Sidebar Sticky on Desktop */
@media (min-width: 1024px) {
  .filters-sidebar {
    position: sticky;
    top: 100px;
    /* Offset for header */
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }
}

/* Fix Broken Product Grid Rules */
@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 24px;
  }
}

.product-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: 0.3s;
  display: flex !important;
  flex-direction: column;
  border: 1px solid transparent;
  height: auto !important;
  /* Reset height */
}

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

.product-thumb-box {
  width: 100%;
  aspect-ratio: 1/1;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  border-bottom: 1px solid #f3f4f6;
  position: relative;
}


/* --- RESTORED ORIGINAL MODAL BACKDROP --- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999 !important;
  display: none;
  /* Default hidden */
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Show ONLY when JS adds 'open' class or inline style changes */
.modal-backdrop[style*="display: flex"],
.modal-backdrop.open {
  display: flex !important;
}

/* Ensure the standard card inside modal has space */
#product-modal-card {
  max-height: 90vh;
  overflow-y: auto;
}

.product-thumb {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: 0.3s;
}

.product-card:hover .product-thumb {
  transform: scale(1.08);
}

.product-info {
  padding: 16px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-title {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 4px;
  line-height: 1.4;
  color: var(--text-main) !important;
  /* Reset previous overrides */
  height: auto !important;
  min-height: 0 !important;
}

.product-price {
  color: var(--accent) !important;
  font-weight: 700;
  font-size: 1.1rem;
  margin-top: auto;
}

.btn-accent {
  background-color: var(--accent);
  color: #fff;
}

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

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

.badge {
  display: inline-block;
  padding: 4px 12px;
  background: #E0F2FE;
  color: #0369A1;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Ensure Modal Fixes persist but don't break layout */
#product-modal .product-img {
  max-height: 400px;
  object-fit: contain;
}

/* END RESTORATION */

/* --- NEW MODAL GALLERY SYSTEM (Grid Layout) --- */
#product-modal-card {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 30px;
  padding: 24px !important;
  max-width: 1000px !important;
  width: 90% !important;
  align-items: start;
  overflow-y: auto;
  max-height: 90vh;
}

@media (min-width: 768px) {
  #product-modal-card {
    grid-template-columns: 1.2fr 1fr !important;
    /* Image larger than text */
    padding: 40px !important;
  }

  /* Fix sticky header overlap if any */
  #product-modal-card>div:first-child {
    position: relative;
  }
}

.modal-img-container {
  width: 100%;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  margin-bottom: 16px;
  border: 1px solid #f1f5f9;
}

.modal-img-container img {
  max-width: 95%;
  max-height: 95%;
  object-fit: contain;
  transition: opacity 0.2s ease;
  z-index: 1;
}

/* Thumbs */
.modal-thumbs {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 4px 12px 4px;
  scrollbar-width: thin;
  justify-content: flex-start;
}

.modal-thumbs::-webkit-scrollbar {
  height: 6px;
}

.modal-thumbs::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

.modal-thumbs img {
  width: 70px;
  height: 70px;
  border-radius: 12px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.6;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.modal-thumbs img:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.modal-thumbs img.active {
  border-color: var(--primary);
  opacity: 1;
  transform: scale(1.05);
  box-shadow: 0 4px 10px -2px rgba(0, 0, 0, 0.15);
}

/* Glassmorphism Buttons */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  z-index: 20;
  transition: all 0.2s ease;
  color: #1e293b;
  font-size: 1.5rem;
}

.slider-btn:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.slider-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.slider-btn.prev {
  left: 16px;
}

.slider-btn.next {
  right: 16px;
}

.slider-btn.hidden {
  display: none !important;
}

/* --- NEW HERO SECTION REDESIGN --- */
.hero-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 992px) {
  .hero-layout {
    grid-template-columns: 2fr 1fr;
    /* 2:1 Ratio ensures Slider Height (2:1) == Side Grid Height (1:1 x 2 rows) */
  }
}

/* Side Grid: ALWAYS 2 Columns (Square 1:1) */
.hero-side-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-content: start;
}

.side-banner {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1 !important;
  /* Force Square */
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.side-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  transition: transform 0.3s ease;
}

.side-banner:hover img {
  transform: scale(1.05);
}

/* Main Slider Adjustments */
.hero-slider-wrap {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  aspect-ratio: 2 / 1;
}

@media (max-width: 768px) {
  .hero-slider-wrap {
    aspect-ratio: 2 / 1 !important;
    /* Force Ratio on Mobile */
    min-height: auto;
  }
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Product Detail Page --- */
.detail-page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr;
  /* Mobile default */
  gap: 30px;
}

@media (min-width: 1024px) {
  .detail-layout {
    grid-template-columns: 450px 1fr;
    /* Fixed width gallery, Rest info */
    gap: 60px;
  }
}

.detail-gallery {
  position: relative;
}

.detail-gallery .main-img-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: white;
  border: 1px solid #f1f5f9;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 15px;
}

.detail-gallery .main-img-box img {
  max-width: 95%;
  max-height: 95%;
  object-fit: contain;
}

.detail-gallery #d-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 5px;
}

.detail-gallery #d-thumbs img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  background: white;
  flex-shrink: 0;
  /* Prevent shrinking */
}

.detail-gallery #d-thumbs img:hover,
.detail-gallery #d-thumbs img.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.2);
}

@media (min-width: 1024px) {
  .detail-gallery.sticky-desktop {
    position: sticky;
    top: 90px;
  }
}

/* Info Section */
.detail-info h1 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 10px 0;
  line-height: 1.4;
}

@media (min-width: 768px) {
  .detail-info h1 {
    font-size: 2rem;
  }
}

.detail-price-box {
  background: #f8fafc;
  padding: 15px 20px;
  border-radius: 12px;
  margin-bottom: 25px;
  display: flex;
  align-items: baseline;
  gap: 15px;
}

.detail-price {
  font-size: 2rem;
  font-weight: 700;
  color: #ef4444;
  /* Red price */
}

.detail-desc {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid #e2e8f0;
  color: #475569;
  line-height: 1.8;
  white-space: pre-line;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid #e2e8f0;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-item {
  text-align: center;
  padding: 10px;
}

.feature-icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  background: #f1f5f9;
  color: var(--primary);
}

/* Action Buttons (Desktop) */
.desktop-actions {
  display: none;
  gap: 15px;
  margin-top: 30px;
}

@media (min-width: 1024px) {
  .desktop-actions {
    display: flex;
  }
}

/* Mobile Sticky Footer */
.mobile-bottom-bar {
  display: flex;
  gap: 10px;
  padding: 12px 15px;
  background: white;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  border-top: 1px solid #f1f5f9;
}

@media (min-width: 1024px) {
  .mobile-bottom-bar {
    display: none;
  }
}

/* Header fixes */
#site-header {
  min-height: 70px;
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 999;
}

/* Info Section */
.detail-info h1 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 10px 0;
  line-height: 1.4;
}

@media (min-width: 768px) {
  .detail-info h1 {
    font-size: 2rem;
  }
}

.detail-price-box {
  background: #f8fafc;
  padding: 15px 20px;
  border-radius: 12px;
  margin-bottom: 25px;
  display: flex;
  align-items: baseline;
  gap: 15px;
}

.detail-price {
  font-size: 2rem;
  font-weight: 700;
  color: #ef4444;
  /* Red price */
}

.detail-desc {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid #e2e8f0;
  color: #475569;
  line-height: 1.8;
  white-space: pre-line;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid #e2e8f0;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-item {
  text-align: center;
  padding: 10px;
}

.feature-icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  background: #f1f5f9;
  color: var(--primary);
}

/* Action Buttons (Desktop) */
.desktop-actions {
  display: none;
  gap: 15px;
  margin-top: 30px;
}

@media (min-width: 1024px) {
  .desktop-actions {
    display: flex;
  }
}

/* Mobile Sticky Footer */
.mobile-bottom-bar {
  display: flex;
  gap: 10px;
  padding: 12px 15px;
  background: white;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  border-top: 1px solid #f1f5f9;
}

@media (min-width: 1024px) {
  .mobile-bottom-bar {
    display: none;
  }
}

/* Header fixes */
#site-header {
  min-height: 70px;
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 999;
}

/* --- Installment Table (Clean Minimalist Redesign) --- */
.installment-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  font-family: var(--font-main);
  box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.05);
}

.installment-header {
  color: #1e293b;
  margin-bottom: 20px;
  font-size: 1.1rem;
  font-weight: 600;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.installment-summary {
  margin-bottom: 20px;
  background: #f8fafc;
  padding: 16px;
  border-radius: 12px;
}

.installment-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: #475569;
}

.installment-row:last-child {
  margin-bottom: 0;
}

.installment-value.price {
  color: #1e293b;
}

.installment-value.down {
  color: #ef4444;
  /* Red for down payment focus */
}

.installment-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 10px;
}

.installment-table th {
  text-align: left;
  padding: 12px 8px;
  color: #64748b;
  font-weight: 500;
  font-size: 0.85rem;
  border-bottom: 1px solid #e2e8f0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.installment-table td {
  padding: 12px 8px;
  color: #334155;
  font-weight: 500;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.95rem;
}

.installment-table tr:last-child td {
  border-bottom: none;
}

.installment-table td:last-child {
  text-align: right;
  color: #0ea5e9;
  /* Blue highlight */
  font-weight: 600;
}

.installment-note {
  margin-top: 20px;
  font-size: 0.8rem;
  color: #94a3b8;
  text-align: center;
}

/* ================= Google Reviews Style ================= */
.google-reviews-section {
  background: #f8f9fa;
  padding: 40px 0;
  font-family: 'Roboto', sans-serif;
}

.gr-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.gr-branding {
  display: flex;
  align-items: center;
  gap: 15px;
}

.gr-title {
  font-size: 1.5rem;
  font-weight: 500;
  color: #3c4043;
}

.gr-title span {
  font-weight: bold;
}

.gr-rating {
  font-size: 1.2rem;
  font-weight: bold;
  color: #3c4043;
  display: flex;
  align-items: center;
  gap: 5px;
}

.gr-stars {
  color: #fbbc04;
  letter-spacing: 1px;
}

.gr-count {
  color: #70757a;
  font-weight: normal;
  font-size: 0.9rem;
}

.btn-google {
  background-color: #1a73e8;
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-google:hover {
  background-color: #1557b0;
  color: white;
}

/* Slider Container */
.gr-slider-container {
  overflow: hidden;
  position: relative;
  padding: 10px 0;
}

.gr-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 20px;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}

.gr-track::-webkit-scrollbar {
  display: none;
}

.gr-card {
  min-width: 300px;
  max-width: 320px;
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: relative;
}

.gr-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 10px;
}

.gr-user {
  display: flex;
  gap: 12px;
}

.gr-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.gr-info {
  display: flex;
  flex-direction: column;
}

.gr-name {
  font-weight: bold;
  font-size: 0.95rem;
  color: #202124;
  display: flex;
  align-items: center;
  gap: 4px;
}

.gr-verified {
  color: #1a73e8;
  width: 14px;
  height: 14px;
}

.gr-date {
  font-size: 0.8rem;
  color: #70757a;
}

.gr-g-icon {
  width: 20px;
  height: 20px;
}

.gr-card-stars {
  color: #fbbc04;
  font-size: 1rem;
  margin-bottom: 10px;
}

.gr-text {
  color: #3c4043;
  font-size: 0.9rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  /* Standard property */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gr-readmore {
  color: #1a73e8;
  font-size: 0.9rem;
  margin-top: 8px;
  cursor: pointer;
  display: inline-block;
}

/* Navigation Buttons */
.gr-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  border: none;
  color: #5f6368;
}

.gr-nav-btn:hover {
  background: #f1f3f4;
}

.gr-prev {
  left: 0px;
}

.gr-next {
  right: 0px;
}

@media (max-width: 768px) {
  .gr-nav-btn {
    display: none;
  }

  .gr-track {
    padding-right: 20px;
    scroll-snap-type: x mandatory;
    /* Better Mobile Feel */
  }

  .gr-card {
    scroll-snap-align: center;
    min-width: 85vw;
    /* Adjust width for mobile beauty */
    max-width: 90vw;
  }
}

/* Force 3 Columns for Features on Mobile (Clean & Compact) */
@media (max-width: 1024px) {
  .feature-grid-3 {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
  }

  .feature-grid-3 .feature-item {
    padding: 5px !important;
  }

  /* Compact Icons */
  .feature-grid-3 .feature-icon-box {
    width: 45px !important;
    height: 45px !important;
    margin-bottom: 10px !important;
  }

  .feature-grid-3 .svg-icon {
    width: 24px !important;
    height: 24px !important;
  }

  /* Compact Text */
  .feature-grid-3 h3 {
    font-size: 0.8rem !important;
    white-space: normal;
    line-height: 1.3;
    margin-bottom: 0 !important;
  }

  /* Hide Description on Mobile for Cleanliness */
  .feature-grid-3 p {
    display: none !important;
  }

  /* Feature Head Adjustment */
  .feature-head {
    margin-bottom: 30px !important;
    padding: 0 10px;
  }

  .feature-head h2 {
    font-size: 1.5rem !important;
  }
}

/* ================= Mobile Feature Grid 4 (Fix) ================= */
@media (max-width: 1024px) {
  .feature-grid-4 {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 4px !important;
  }

  .feature-grid-4 .feature-item {
    padding: 5px !important;
  }

  .feature-grid-4 .feature-icon-box {
    width: 45px !important;
    height: 45px !important;
    margin-bottom: 10px !important;
  }

  .feature-grid-4 .svg-icon {
    width: 24px !important;
    height: 24px !important;
  }

  .feature-grid-4 h3 {
    font-size: 0.7rem !important;
    white-space: normal;
    line-height: 1.2;
    margin-bottom: 0 !important;
  }

  .feature-grid-4 p {
    display: none !important;
  }
}

/* ================= Article Detail Page (Beautified) ================= */
.article {
  padding: 60px 0;
  background: #f9fafb;
}

.article .container {
  max-width: 800px;
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.article-cover {
  width: 100%;
  aspect-ratio: 2 / 1;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  background: #eee;
}

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

#a-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
  line-height: 1.3;
}

#a-meta {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.article-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #374151;
}

.article-content p {
  margin-bottom: 20px;
}

.article-content h2 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-top: 40px;
  margin-bottom: 20px;
}

.article-content h3 {
  font-size: 1.25rem;
  color: #1f2937;
  margin-top: 30px;
  margin-bottom: 15px;
}

.article-content ul,
.article-content ol {
  margin-bottom: 20px;
  padding-left: 20px;
}

.article-content li {
  margin-bottom: 10px;
}

.article-content img {
  border-radius: 12px;
  margin: 30px 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.article-back {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid #eee;
  text-align: center;
}

#a-title {
  font-size: 1.5rem;
}

/* ================= Article Card Design (List Page - Redesigned) ================= */
.article-card {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  text-decoration: none !important;
  color: inherit;
  height: 100%;
}

.article-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(28, 56, 121, 0.15);
  /* Primary Color Shadow */
  border-color: rgba(28, 56, 121, 0.1);
}

.article-card-image {
  width: 100%;
  aspect-ratio: 2 / 1;
  background: #f3f4f6;
  position: relative;
  overflow: hidden;
}

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

.article-card:hover .article-card-image img {
  transform: scale(1.05);
  /* Zoom effect on hover */
}

.article-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  background: #f3f4f6;
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  align-self: flex-start;
  font-weight: 500;
}

.article-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: #111827;
  /* Darker Text */
  margin: 0 0 12px 0;
  line-height: 1.4;

  /* Line Clamp 2 */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

.article-card:hover .article-title {
  color: var(--primary);
  /* Highlight Title on Hover */
}

.article-excerpt {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;

  /* Line Clamp 3 */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-action {
  margin-top: auto;
  font-weight: 500;
  color: var(--primary);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

.article-action .arrow {
  transition: transform 0.2s;
}

.article-card:hover .arrow {
  transform: translateX(4px);
}

/* ================= Product Modal Responsive (Catalog) ================= */
@media (max-width: 768px) {
  #product-modal-card {
    flex-direction: column !important;
    height: auto !important;
    max-height: 85vh !important;
    overflow-y: auto !important;
    width: 95% !important;
  }

  .modal-gallery-section {
    padding: 10px !important;
    min-width: 100% !important;
  }

  .modal-gallery-section #m-img-wrapper {
    height: 250px !important;
    /* Limit image height on mobile */
  }

  .modal-gallery-section img#m-img {
    object-fit: contain !important;
  }

  .modal-info-section {
    padding: 20px !important;
    min-width: 100% !important;
  }

  #m-title {
    font-size: 1.5rem !important;
  }

  #m-price {
    font-size: 1.8rem !important;
  }

  #product-modal-close {
    top: 5px !important;
    right: 5px !important;
    width: 30px !important;
    height: 30px !important;
    line-height: 30px !important;
  }
}


/* --- Catalog Sidebar Refinements --- */
.filters-sidebar {
  border: none;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
  padding: 30px;
}

.filters-sidebar h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary);
  border-bottom: 2px solid #f1f5f9 !important;
  padding-bottom: 15px !important;
  margin-bottom: 25px !important;
}

.filter-group {
  margin-bottom: 24px;
}

.filter-label {
  display: block;
  font-weight: 500;
  color: #4b5563;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

/* Modern Search Box & Inputs */
.filters-sidebar .input {
  border-radius: 50px;
  /* Pill shape */
  padding: 12px 20px;
  border: 1px solid #e2e8f0;
  background-color: #f8fafc;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.filters-sidebar .input:focus {
  background-color: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(28, 56, 121, 0.1);
}

/* Search Box Wrapper with Icon */
.search-box-wrapper {
  position: relative;
}

.search-box-wrapper .input {
  padding-left: 45px;
  /* Space for icon */
}

.search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.search-box-wrapper .input:focus+.search-icon {
  color: var(--primary);
}

/* Select Dropdown Styling */
.filters-sidebar select.input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 16px;
  padding-right: 40px;
}


/* --- Article Card Styles (Fixed for Mobile) --- */
.article-card-item {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: 0.3s;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.article-card-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(28, 56, 121, 0.1);
}

.article-thumb-box {
  width: 100%;
  aspect-ratio: 16/9;
  background: #f3f4f6;
  overflow: hidden;
}

.article-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.article-card-item:hover .article-thumb-box img {
  transform: scale(1.05);
}

.article-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: inline-block;
  background: #f3f4f6;
  padding: 4px 10px;
  border-radius: 6px;
  align-self: flex-start;
}

.article-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 10px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-item:hover .article-title {
  color: var(--primary);
}

.article-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 15px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-more {
  margin-top: auto;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ================= Quick Menu Icons (Custom Images) ================= */
.qm-icon-img {
  width: 55px;
  height: 55px;
  object-fit: contain;
  margin-bottom: 8px;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.quick-menu-item:hover .qm-icon-img {
  transform: scale(1.15) translateY(-5px);
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.2));
}

/* Ensure Parent Wrapper Layout */
.quick-menu-wrap {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  padding: 30px 0;
}

.quick-menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #333;
  width: 100px;
  /* Increased width */
  transition: all 0.2s;
}

.quick-menu-item span {
  font-size: 1rem;
  color: #4b5563;
  margin-top: 5px;
  font-weight: 500;
  white-space: nowrap;
  /* Prevent line break */
}

/* Mobile Quick Menu Optimization */
@media (max-width: 768px) {
  .quick-menu-wrap {
    justify-content: flex-start;
    overflow-x: auto;
    padding: 20px 15px;
    gap: 15px;
    flex-wrap: nowrap;
    /* Horizontal Scroll */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  /* Hide Scrollbar */
  .quick-menu-wrap::-webkit-scrollbar {
    display: none;
  }

  .quick-menu-item {
    min-width: 75px;
    width: auto;
    flex: 0 0 auto;
    scroll-snap-align: center;
  }

  .qm-icon-img {
    width: 45px;
    height: 45px;
  }

  .quick-menu-item span {
    font-size: 0.85rem;
  }
}

/* ================= Video Menu Section ================= */
.menu-video-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #f0f9ff;
  /* Fallback */
}

.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.video-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  /* Slight fade for readability */
}

.video-background::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* White Overlay to blend */
  z-index: 2;
}

/* Update Menu Z-Index and Colors for Video Context */
.menu-video-section .container {
  position: relative;
  z-index: 10;
}

/* Make text darker for the white overlay */
.menu-video-section .quick-menu-item span {
  color: #1e293b;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* ================= Responsive Grid Utilities ================= */
.grid {
  display: grid;
  width: 100%;
}

.gap-6 {
  gap: 1.5rem;
}

/* ================= Article Grid Layout (New & Standardized) ================= */
.article-grid-layout {
  display: grid;
  width: 100%;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr);
  /* Mobile: 1 Column */
}

@media (min-width: 640px) {
  .article-grid-layout {
    grid-template-columns: repeat(2, 1fr);
    /* Tablet: 2 Columns */
  }
}

@media (min-width: 1024px) {
  .article-grid-layout {
    grid-template-columns: repeat(3, 1fr);
    /* Desktop: 3 Columns */
  }
}