/* -------------------------------------------------------------
   KOB TURBO STOREFRONT - DYNAMIC THEMEABLE DESIGN SYSTEM
   ------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --accent: #f59e0b;
  --accent-hover: #d97706;
  
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.07);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.04);
  --shadow-hover: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.06);
  
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* -------------------------------------------------------------
   HEADER & NAVBAR
   ------------------------------------------------------------- */
.top-notice-bar {
  background: var(--primary);
  color: #ffffff;
  font-size: 0.825rem;
  font-weight: 500;
  padding: 0.45rem 0;
  text-align: center;
  letter-spacing: 0.01em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
}

.brand-logo img {
  height: 2.75rem;
  max-width: 180px;
  object-fit: contain;
}

.brand-logo .brand-text {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.brand-logo .brand-badge {
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.search-bar-sm {
  display: flex;
  align-items: center;
  background: #f1f5f9;
  border-radius: var(--radius-full);
  padding: 0.35rem 0.85rem;
  border: 1px solid transparent;
  transition: var(--transition);
}

.search-bar-sm:focus-within {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.search-bar-sm input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.875rem;
  color: var(--text-main);
  width: 140px;
}

.btn-cart {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-light);
  color: var(--primary);
  border: none;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
}

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

.cart-count-badge {
  background: var(--accent);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-full);
  min-width: 1.25rem;
  text-align: center;
}

/* -------------------------------------------------------------
   HERO SECTION
   ------------------------------------------------------------- */
.hero-section {
  position: relative;
  padding: 3.5rem 0;
  background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 3rem;
}

.hero-grid:has(> :only-child) {
  grid-template-columns: 1fr;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.hero-grid:has(> :only-child) .hero-content p {
  margin: 0 auto 2rem;
}

.hero-grid:has(> :only-child) .hero-actions {
  justify-content: center;
}

.hero-content h1 {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: #0f172a;
}

.hero-content p {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(37, 99, 235, 0.45);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: #25d366;
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 14px 0 rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  background: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(37, 211, 102, 0.45);
}

.hero-image-box {
  position: relative;
}

.hero-image-box img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* -------------------------------------------------------------
   FEATURE BADGES (TRUST BAR)
   ------------------------------------------------------------- */
.features-bar {
  padding: 2rem 0;
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.feature-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
}

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

/* -------------------------------------------------------------
   CATEGORIES PILLS & CARDS
   ------------------------------------------------------------- */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.75rem;
}

.section-header h2 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-header a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
}

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

.categories-carousel {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
}

.category-pill-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-main);
  white-space: nowrap;
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

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

.category-pill-card img {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

/* -------------------------------------------------------------
   PRODUCT CARDS GRID
   ------------------------------------------------------------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: #cbd5e1;
}

.product-thumb {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 1:1 Aspect Ratio */
  background: #ffffff;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

.product-thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.85rem;
  transition: transform 0.4s ease;
}

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

.badge-discount {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  z-index: 2;
}

.badge-category {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.product-details {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
  margin-bottom: 0.5rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-title:hover {
  color: var(--primary);
}

.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.75rem;
}

.price-current {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
}

.price-old {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.btn-add-cart {
  flex: 1;
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.btn-add-cart:hover {
  background: var(--primary-hover);
}

.btn-quick-wa {
  background: #25d366;
  color: #ffffff;
  border: none;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-quick-wa:hover {
  background: #20ba5a;
}

/* -------------------------------------------------------------
   PRODUCT DETAIL PAGE
   ------------------------------------------------------------- */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin: 2.5rem 0;
  background: #ffffff;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.detail-gallery {
  position: sticky;
  top: 6rem;
}

.main-preview-box {
  width: 100%;
  height: 440px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow: hidden;
}

.main-preview-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: opacity 0.2s ease, transform 0.3s ease;
}

.gallery-thumbnails {
  display: flex;
  gap: 0.65rem;
  margin-top: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
}

.thumb-btn {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border-color);
  background: #ffffff;
  padding: 4px;
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition);
  outline: none;
}

.thumb-btn:hover, .thumb-btn.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.detail-info h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.attributes-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: #f8fafc;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.attributes-table th, .attributes-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
}

.attributes-table th {
  color: var(--text-muted);
  width: 35%;
  font-weight: 600;
}

.attributes-table td {
  font-weight: 700;
  color: var(--text-main);
}

/* -------------------------------------------------------------
   CART & CHECKOUT
   ------------------------------------------------------------- */
.cart-layout {
  display: grid;
  grid-template-columns: 1.6fr 1.1fr;
  gap: 2rem;
  margin: 2.5rem 0;
}

.cart-card {
  background: #ffffff;
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.cart-item-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border-color);
}

.cart-item-row img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.qty-btn {
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  font-weight: 700;
  cursor: pointer;
}

.qty-val {
  width: 38px;
  text-align: center;
  font-weight: 700;
}

/* -------------------------------------------------------------
   FLOATING WHATSAPP BUTTON
   ------------------------------------------------------------- */
.floating-whatsapp {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #25d366;
  color: #ffffff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.45);
  z-index: 999;
  text-decoration: none;
  transition: var(--transition);
}

.floating-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

/* -------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------- */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 4rem 0 2rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

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

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

/* -------------------------------------------------------------
   MOBILE NAVIGATION DRAWER & BUTTONS
   ------------------------------------------------------------- */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.35rem;
  color: var(--text-main);
  cursor: pointer;
  padding: 0.4rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.mobile-nav-toggle:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: -320px;
  width: 290px;
  height: 100%;
  background: #ffffff;
  z-index: 10001;
  box-shadow: 0 0 35px rgba(0, 0, 0, 0.25);
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}

.mobile-nav-drawer.active {
  left: 0;
}

.mobile-nav-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-nav-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.25rem;
}

.mobile-close-btn {
  background: none;
  border: none;
  font-size: 1.85rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.mobile-nav-list a {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.mobile-nav-list a:hover {
  background: var(--primary-light);
  color: var(--primary);
}

/* -------------------------------------------------------------
   RESPONSIVE MEDIA QUERIES (MOBILE & TABLET EXCELLENCE)
   ------------------------------------------------------------- */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  .hero-content h1 {
    font-size: 2.25rem;
  }
  .hero-content p {
    margin: 0 auto 1.5rem;
  }
  .hero-actions {
    justify-content: center;
  }
  .product-detail-grid {
    grid-template-columns: 1fr;
    padding: 1.5rem;
    gap: 2rem;
  }
  .detail-gallery {
    position: static;
  }
  .cart-layout {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .mobile-nav-toggle {
    display: inline-flex;
  }
  .nav-links {
    display: none;
  }
  .search-bar-sm input {
    width: 100px;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 540px) {
  .container {
    padding: 0 0.85rem;
  }
  .top-notice-bar {
    font-size: 0.75rem;
    padding: 0.35rem 0.5rem;
  }
  .nav-wrapper {
    height: 3.85rem;
  }
  .brand-logo .brand-text {
    font-size: 1.15rem;
  }
  .brand-logo img {
    height: 2.2rem;
  }
  .search-bar-sm {
    display: none;
  }
  .cart-btn-text {
    display: none;
  }
  .btn-cart {
    padding: 0.55rem 0.85rem;
  }
  .hero-section {
    padding: 2rem 0;
  }
  .hero-content h1 {
    font-size: 1.85rem;
  }
  .hero-content p {
    font-size: 0.95rem;
  }
  .hero-actions .btn-primary, 
  .hero-actions .btn-whatsapp {
    width: 100%;
    justify-content: center;
  }
  .features-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .product-details {
    padding: 0.75rem;
  }
  .product-title {
    font-size: 0.875rem;
    height: 2.4rem;
  }
  .price-current {
    font-size: 1.05rem;
  }
  .card-actions {
    flex-direction: column;
    gap: 0.4rem;
  }
  .card-actions .btn-add-cart {
    font-size: 0.78rem;
    padding: 0.5rem;
  }
  .main-preview-box {
    height: 300px;
    padding: 1rem;
  }
  .detail-info h1 {
    font-size: 1.5rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}
