/*
Theme Name: Cossoup
Theme URI: https://www.cossoup.com
Author: Sprinta
Description: Premium handcrafted skincare — custom WordPress theme for Cossoup Industries Limited.
Version: 1.0
*/

/* =========================================================
   ROOT & RESET
   ========================================================= */
:root {
  --gold:      #d4a373;
  --gold-h:    #c59260;
  --charcoal:  #264653;
  --cream:     #fdfbf7;
  --beige:     #f9f7f2;
  --accent:    #f4f1ea;
  --tag-tan:   #eaddcf;
  --tag-text:  #8a5a44;
  --muted:     #7a8a8f;
  --border:    #e8e0d4;
  --dark:      #1a1a1a;
  --white:     #ffffff;
  --text:      #264653;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  background: var(--cream);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font-family: inherit; }

/* =========================================================
   TYPOGRAPHY
   ========================================================= */
h1,h2,h3,h4,h5,h6,
.font-serif {
  font-family: 'Playfair Display', serif;
  line-height: 1.25;
  color: var(--charcoal);
}

/* =========================================================
   CUSTOM SCROLLBAR
   ========================================================= */
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: var(--beige); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-h); }

/* =========================================================
   UTILITY CLASSES
   ========================================================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-pad { padding: 80px 0; }
.section-pad-sm { padding: 56px 0; }

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  display: block;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 42px);
  color: var(--charcoal);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 15px;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.7;
}

.gold-tag {
  display: inline-block;
  background: var(--tag-tan);
  color: var(--tag-text);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
}

.btn-gold {
  background: var(--gold);
  color: var(--white);
}
.btn-gold:hover { background: var(--gold-h); }

.btn-outline {
  background: transparent;
  color: var(--charcoal);
  border: 1.5px solid var(--charcoal);
}
.btn-outline:hover {
  background: var(--charcoal);
  color: var(--white);
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
}
.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--white);
}

.btn:disabled { opacity: .5; cursor: not-allowed; }

/* =========================================================
   HEADER / NAV
   ========================================================= */
.cs-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(253,251,247,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .2s;
}
.cs-header.scrolled { box-shadow: 0 2px 20px rgba(38,70,83,0.08); }

.cs-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.cs-logo img { height: 36px; object-fit: contain; }
.cs-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: 0.02em;
}

.cs-nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.cs-nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--charcoal);
  transition: color .15s;
  position: relative;
}
.cs-nav-links a:hover { color: var(--gold); }

/* Mega menu */
.cs-nav-item { position: relative; }
.cs-mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  padding-top: 20px; 
  min-width: 800px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 9000;
}
.cs-nav-item:hover .cs-mega-menu,
.cs-nav-item.cs-hover .cs-mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
/* Ensure the menu stays open when hovering the bridge area */
.cs-nav-item:hover .cs-mega-menu,
.cs-nav-item.cs-hover .cs-mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
/* Inner card — the visual box */
.cs-mega-menu-inner {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  box-shadow: 0 8px 40px rgba(38,70,83,0.12);
}
/* Show via JS class only — no CSS :hover so there's no flickering */
.cs-nav-item.cs-hover .cs-mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.cs-mega-col h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.cs-mega-col a {
  display: block;
  font-size: 13px;
  color: var(--charcoal);
  padding: 4px 0;
  transition: color .15s;
}
.cs-mega-col a:hover { color: var(--gold); }

.cs-nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cs-cart-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--charcoal);
  display: flex;
  align-items: center;
  padding: 4px;
  transition: color .15s;
}
.cs-cart-btn:hover { color: var(--gold); }
.cs-cart-count {
  position: absolute;
  top: -4px;
  right: -6px;
  background: var(--gold);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.cs-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.cs-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: all .2s;
}

/* Mobile nav overlay */
.cs-mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--cream);
  z-index: 1100;
  flex-direction: column;
  padding: 24px;
}
.cs-mobile-nav.open { display: flex; }
.cs-mobile-nav-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}
.cs-mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.cs-mobile-nav-links a {
  display: block;
  font-size: 22px;
  font-family: 'Playfair Display', serif;
  color: var(--charcoal);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

/* =========================================================
   FOOTER
   ========================================================= */
.cs-footer {
  background: var(--dark);
  color: #e0d8cc;
  padding: 64px 0 32px;
}
.cs-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.cs-footer h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.cs-footer p { font-size: 13px; color: #9a9289; line-height: 1.8; }
.cs-footer a {
  display: block;
  font-size: 13px;
  color: #9a9289;
  padding: 3px 0;
  transition: color .15s;
}
.cs-footer a:hover { color: var(--gold); }
.cs-footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: var(--white);
  margin-bottom: 12px;
}
.cs-footer-logo img { height: 34px; filter: brightness(0) invert(1); margin-bottom: 10px; display: block; }
.cs-footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.cs-footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #3a3530;
  color: #9a9289;
  transition: all .15s;
  padding: 0;
}
.cs-footer-socials a:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.cs-footer-bottom {
  border-top: 1px solid #2a2520;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 12px;
  font-size: 12px;
  color: #6a6460;
}
.cs-footer-bottom span:last-child {
  white-space: nowrap;
  flex-shrink: 0;
}

/* =========================================================
   HERO SLIDER
   ========================================================= */
.cs-hero {
  position: relative;
  overflow: hidden;
  background: var(--cream);
}
/* Slider container — must have explicit height so absolute children fill it */
.cs-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}
/* Every slide fills the slider box exactly — all stacked in the same space */
.cs-slide {
  position: absolute !absolute;
  inset: 0 !important;
  display: flex !important;
  align-items: center;
  padding-top: 68px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  pointer-events: none;
  z-index: 0;
}
.cs-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  z-index: 1;
}
/* Only the active slide is visible */
.cs-slide.active {
  opacity: 1 !important;
  pointer-events: all;
  z-index: 1;
}
/* Slide background image (right side) */
.cs-slide-img {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
  pointer-events: none;
}
/* Dot navigation */
.cs-slider-dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.cs-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(38,70,83,0.25);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all .3s;
}
.cs-dot.active {
  width: 28px;
  border-radius: 4px;
  background: var(--gold);
}
/* Hero content area */
.cs-hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, #f0e8d8 0%, transparent 60%),
              radial-gradient(ellipse at 10% 80%, #e8f0ec 0%, transparent 50%);
}
.cs-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
}
.cs-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--tag-tan);
  color: var(--tag-text);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.cs-hero h1 {
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.1;
  color: var(--charcoal);
  margin-bottom: 20px;
}
.cs-hero h1 em {
  font-style: italic;
  color: var(--gold);
}
.cs-hero-sub {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 420px;
  margin-bottom: 32px;
}
.cs-hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.cs-hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.cs-hero-stat-val {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--charcoal);
}
.cs-hero-stat-label {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.05em;
}
.cs-hero-image {
  position: relative;
  display: flex;
  justify-content: center;
}
.cs-hero-image-wrap {
  width: 100%;
  max-width: 440px;
  aspect-ratio: 3/4;
  border-radius: 24px 24px 200px 200px;
  background: linear-gradient(135deg, var(--tag-tan) 0%, #e8d5b7 100%);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(38,70,83,0.12);
}
.cs-hero-image-wrap img { width: 100%; height: 100%; object-fit: cover; }

/* =========================================================
   TRUST BAR
   ========================================================= */
.cs-trust-bar {
  background: var(--charcoal);
  padding: 20px 0;
}
.cs-trust-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.cs-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #c8bfb2;
  font-size: 13px;
  font-weight: 500;
}
.cs-trust-item svg { color: var(--gold); flex-shrink: 0; }

/* =========================================================
   PRODUCT CARD
   ========================================================= */
.cs-product-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow .2s, transform .2s;
}
.cs-product-card:hover {
  box-shadow: 0 8px 32px rgba(38,70,83,0.1);
  transform: translateY(-3px);
}
.cs-product-img {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--beige);
}
.cs-product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.cs-product-card:hover .cs-product-img img { transform: scale(1.04); }
.cs-product-body { padding: 16px; }
.cs-product-cat {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.cs-product-name {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  color: var(--charcoal);
  margin-bottom: 8px;
  line-height: 1.3;
}
.cs-product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 10px;
}
.cs-stars { color: var(--gold); font-size: 12px; }
.cs-rating-count { font-size: 11px; color: var(--muted); }
.cs-product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}
.cs-product-price {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--charcoal);
}
.cs-atc-btn {
  background: var(--charcoal);
  color: var(--white);
  border: none;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.cs-atc-btn:hover { background: var(--gold); }

/* =========================================================
   CART SIDEBAR
   ========================================================= */
.cs-cart-sidebar {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
}
.cs-cart-sidebar.open { pointer-events: all; }
.cs-cart-sidebar-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,26,26,0.45);
  opacity: 0;
  transition: opacity .3s;
}
.cs-cart-sidebar.open .cs-cart-sidebar-overlay { opacity: 1; }
.cs-cart-sidebar-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 380px;
  max-width: 92vw;
  background: var(--white);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 40px rgba(38,70,83,0.13);
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.cs-cart-sidebar.open .cs-cart-sidebar-panel { transform: translateX(0); }

/* Panel head */
.cs-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.cs-sidebar-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: var(--charcoal);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cs-sidebar-count {
  background: var(--gold);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cs-sidebar-close {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 18px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: border-color .15s, color .15s;
}
.cs-sidebar-close:hover { border-color: var(--charcoal); color: var(--charcoal); }

/* Items list */
.cs-sidebar-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}
.cs-sidebar-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.cs-sidebar-item:last-child { border-bottom: none; }
.cs-sidebar-item-img {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--beige);
  flex-shrink: 0;
}
.cs-sidebar-item-info { flex: 1; min-width: 0; }
.cs-sidebar-item-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--charcoal);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cs-sidebar-item-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}
.cs-sidebar-item-price {
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--charcoal);
  flex-shrink: 0;
}

/* Empty state */
.cs-sidebar-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  gap: 12px;
  padding: 40px;
  text-align: center;
  font-size: 14px;
}

/* Footer */
.cs-sidebar-foot {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.cs-sidebar-total {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 16px;
}
.cs-sidebar-foot .btn { width: 100%; justify-content: center; margin-bottom: 8px; }
.cs-sidebar-foot .btn:last-child { margin-bottom: 0; }

/* =========================================================
   FORM ELEMENTS
   ========================================================= */
.cs-form-group { margin-bottom: 18px; }
.cs-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-bottom: 6px;
}
.cs-input,
.cs-select,
.cs-textarea {
  width: 100%;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 14px;
  color: var(--charcoal);
  transition: border-color .15s;
  font-family: 'Poppins', sans-serif;
}
.cs-input:focus,
.cs-select:focus,
.cs-textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.cs-textarea { resize: vertical; min-height: 100px; }
.cs-input.error { border-color: #e07070; }

/* =========================================================
   ANIMATIONS
   ========================================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .6s ease both; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .cs-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .cs-mega-menu { min-width: 440px; grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .cs-nav-links { display: none; }
  .cs-hamburger { display: flex; }
  .cs-nav-actions .btn { display: none; }

  .cs-hero-inner { grid-template-columns: 1fr; text-align: center; }
  .cs-hero-sub { margin: 0 auto 32px; }
  .cs-hero-btns { justify-content: center; }
  .cs-hero-stats { justify-content: center; }
  .cs-hero-image { order: -1; }
  .cs-hero-image-wrap { max-width: 280px; }

  .cs-trust-inner { gap: 24px; }

  .cs-footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cs-footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .section-pad { padding: 56px 0; }
  .section-pad-sm { padding: 40px 0; }
}
