/* ============================================
   CLOVER CLAYY — Main Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&family=Nunito:wght@300;400;500;600;700&display=swap');

:root {
  --cream:          #FAF7F2;
  --warm-white:     #FFFCF8;
  --blush:          #F0B8C8;
  --blush-light:    #FDE8EE;
  --blush-dark:     #C97A90;
  --lavender:       #C9B8D4;
  --lavender-light: #EDE8F4;
  --sage:           #A8BC98;
  --sage-light:     #DCE8D4;
  --terracotta:     #C9705A;
  --cocoa:          #4A2E22;
  --cocoa-light:    #7A5A4A;
  --muted:          #9A8070;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Nunito', sans-serif;

  --gap-xs:  4px;   --gap-sm: 8px;   --gap-md: 16px;
  --gap-lg:  24px;  --gap-xl: 40px;  --gap-2xl: 64px; --gap-3xl: 96px;

  --radius-sm: 8px; --radius-md: 14px; --radius-lg: 22px;
  --radius-xl: 36px; --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(74,46,34,.08);
  --shadow-md: 0 4px 20px rgba(74,46,34,.12);
  --shadow-lg: 0 8px 40px rgba(74,46,34,.16);
  --shadow-xl: 0 16px 60px rgba(74,46,34,.22);

  --transition:      0.3s cubic-bezier(0.4,0,0.2,1);
  --transition-slow: 0.6s cubic-bezier(0.4,0,0.2,1);

  --container-width:   1200px;
  --container-padding: clamp(20px,5vw,60px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background-color: var(--cream);
  background-image: repeating-linear-gradient(
    -35deg,
    transparent 0px, transparent 9px,
    rgba(74,46,34,.011) 9px, rgba(74,46,34,.011) 10px
  );
  color: var(--cocoa);
  line-height: 1.6;
  overflow-x: hidden;
}
img  { display: block; max-width: 100%; }
a    { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; }

/* Typography */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  color: var(--cocoa);
}
h1 { font-size: clamp(2.4rem,6vw,5rem); }
h2 { font-size: clamp(1.8rem,4vw,3rem); }
h3 { font-size: clamp(1.3rem,2.5vw,2rem); }
h4 { font-size: clamp(1.1rem,2vw,1.4rem); }
p  { color: var(--cocoa-light); line-height: 1.7; }

/* Container */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 70px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--container-padding);
  background: rgba(250,247,242,.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(240,184,200,.2);
  transition: var(--transition);
}
.nav.scrolled {
  background: rgba(250,247,242,.97);
  box-shadow: var(--shadow-sm);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.55rem; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
  letter-spacing: -0.01em;
}
.nav-logo svg { flex-shrink: 0; }
.nav-logo span { color: var(--blush-dark); }

.nav-links {
  display: flex; align-items: center; gap: var(--gap-xl);
}
.nav-links a {
  font-size: 0.88rem; font-weight: 600;
  letter-spacing: 0.04em; color: var(--cocoa-light);
  position: relative; transition: color var(--transition);
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--blush-dark);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--transition); border-radius: var(--radius-full);
}
.nav-links a:hover, .nav-links a.active { color: var(--cocoa); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

.nav-right { display: flex; align-items: center; gap: var(--gap-md); }
.nav-cart {
  position: relative; width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-full); background: var(--blush-light);
  color: var(--cocoa); transition: var(--transition); cursor: pointer;
}
.nav-cart:hover { background: var(--blush); transform: scale(1.06); }
.nav-cart svg  { width: 19px; height: 19px; }
.cart-badge {
  position: absolute; top: -5px; right: -5px;
  width: 20px; height: 20px;
  background: var(--terracotta); color: #fff;
  font-size: .64rem; font-weight: 700;
  border-radius: var(--radius-full);
  display: none; align-items: center; justify-content: center;
}
.cart-badge.visible { display: flex; }

.nav-mobile-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-mobile-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--cocoa); border-radius: var(--radius-full);
  transition: var(--transition);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--gap-sm); padding: 13px 30px;
  border-radius: var(--radius-full);
  font-size: .9rem; font-weight: 600; letter-spacing: .04em;
  transition: var(--transition); cursor: pointer; border: none;
}
.btn-primary {
  background: var(--cocoa); color: var(--warm-white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--cocoa-light);
  transform: translateY(-2px); box-shadow: var(--shadow-md);
}
.btn-secondary {
  background: transparent; color: var(--cocoa);
  border: 2px solid rgba(74,46,34,.22);
}
.btn-secondary:hover {
  background: var(--blush-light); border-color: var(--blush);
  transform: translateY(-2px);
}
.btn-blush { background: var(--blush); color: var(--cocoa); }
.btn-blush:hover {
  background: var(--blush-dark); color: var(--warm-white);
  transform: translateY(-2px); box-shadow: var(--shadow-md);
}
.btn-danger { background: var(--terracotta); color: white; }
.btn-danger:hover { filter: brightness(1.1); transform: translateY(-2px); }
.btn-sm  { padding: 9px 20px; font-size: .8rem; }
.btn-lg  { padding: 16px 44px; font-size: 1rem; }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none !important; }

/* ===== PRODUCT CARDS ===== */
.product-card {
  background: var(--warm-white); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: var(--transition); cursor: pointer;
}
.product-card:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-lg);
}
.product-card-image {
  position: relative; aspect-ratio: 1; overflow: hidden;
}
.product-card-image-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem;
  background: linear-gradient(135deg, var(--blush-light) 0%, var(--lavender-light) 100%);
  transition: transform var(--transition-slow);
}
.product-card:hover .product-card-image-placeholder {
  transform: scale(1.05);
}
.product-badge {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 12px; border-radius: var(--radius-full);
  font-size: .68rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; z-index: 2;
}
.badge-popular { background: var(--blush); color: var(--cocoa); }
.badge-new     { background: var(--sage); color: white; }
.badge-custom  { background: var(--lavender); color: var(--cocoa); }

.product-card-body  { padding: 18px; }
.product-card-category {
  font-size: .7rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 5px;
}
.product-card-name {
  font-family: var(--font-display); font-size: 1.15rem;
  color: var(--cocoa); margin-bottom: 6px;
}
.product-card-desc {
  font-size: .83rem; color: var(--muted); line-height: 1.5;
  margin-bottom: 14px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.product-card-footer {
  display: flex; align-items: center; justify-content: space-between;
}
.product-card-price {
  font-family: var(--font-display); font-size: 1.35rem;
  font-weight: 600; color: var(--cocoa);
}
.product-card-add {
  width: 38px; height: 38px; background: var(--cocoa);
  color: white; border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.product-card-add:hover {
  background: var(--blush-dark); transform: scale(1.1) rotate(8deg);
}
.product-card-add svg { width: 17px; height: 17px; }

/* ===== PRODUCT GRID ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px,1fr));
  gap: var(--gap-lg);
}

/* ===== SECTIONS ===== */
.section { padding: var(--gap-3xl) 0; }
.section-header { text-align: center; margin-bottom: var(--gap-2xl); }
.section-label {
  display: inline-block; margin-bottom: var(--gap-sm);
  font-size: .73rem; font-weight: 700; letter-spacing: .15em;
  text-transform: uppercase; color: var(--blush-dark);
}
.section-subtitle { max-width: 520px; margin: var(--gap-md) auto 0; }

/* ===== PAGE HEADER ===== */
.page-header {
  padding: calc(70px + var(--gap-2xl)) 0 var(--gap-2xl);
  text-align: center; position: relative; overflow: hidden;
}
.page-header::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(150deg,var(--blush-light) 0%,var(--lavender-light) 55%,var(--sage-light) 100%);
  opacity: .55; z-index: -1;
}
.page-header h1 { margin-bottom: var(--gap-md); }
.page-header p  { max-width: 500px; margin: 0 auto; }

/* ===== BREADCRUMB ===== */
.breadcrumb {
  display: flex; align-items: center; gap: var(--gap-sm);
  font-size: .82rem; color: var(--muted); margin-bottom: var(--gap-xl);
}
.breadcrumb a { transition: color var(--transition); }
.breadcrumb a:hover { color: var(--blush-dark); }
.breadcrumb-sep { opacity: .4; }

/* ===== FORMS ===== */
.form-group { margin-bottom: var(--gap-lg); }
.form-label  {
  display: block; font-size: .85rem; font-weight: 600;
  color: var(--cocoa); margin-bottom: 7px;
}
.form-input {
  width: 100%; padding: 13px 16px;
  border: 1.5px solid rgba(74,46,34,.14);
  border-radius: var(--radius-md); background: var(--warm-white);
  color: var(--cocoa); font-size: .95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-input:focus {
  border-color: var(--blush-dark);
  box-shadow: 0 0 0 3px rgba(201,122,144,.2);
}
.form-input::placeholder { color: var(--muted); opacity: .7; }

/* ===== TOAST ===== */
.toast-container {
  position: fixed; bottom: 24px; right: 24px;
  z-index: 500; display: flex; flex-direction: column; gap: 8px;
}
.toast {
  background: var(--cocoa); color: white;
  padding: 13px 18px; border-radius: var(--radius-md);
  font-size: .87rem; font-weight: 500;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 10px;
  max-width: 300px;
  animation: toastIn .4s cubic-bezier(.34,1.56,.64,1) forwards;
}
.toast.removing { animation: toastOut .3s ease forwards; }
@keyframes toastIn  { from { transform: translateX(80px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes toastOut { from { opacity: 1; } to { transform: translateX(80px); opacity: 0; } }

/* ===== SPINNER ===== */
.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: white; border-radius: 50%;
  display: inline-block; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: var(--gap-3xl) var(--gap-xl); }
.empty-state-icon {
  font-size: 4rem; margin-bottom: var(--gap-lg);
  animation: float 3s ease-in-out infinite;
}
.empty-state h3  { margin-bottom: var(--gap-md); }
.empty-state p   { max-width: 360px; margin: 0 auto var(--gap-xl); }

/* ===== FEATURES STRIP ===== */
.features-strip { background: var(--cocoa); padding: var(--gap-xl) 0; }
.features-inner {
  display: flex; gap: var(--gap-2xl);
  justify-content: center; flex-wrap: wrap;
}
.feature-item { display: flex; align-items: center; gap: var(--gap-md); color: var(--cream); }
.feature-icon { font-size: 1.4rem; flex-shrink: 0; }
.feature-text strong { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 2px; }
.feature-text span   { font-size: .78rem; opacity: .6; }

/* ===== FOOTER ===== */
.footer { background: var(--cocoa); color: var(--cream); padding: var(--gap-2xl) 0 var(--gap-xl); }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--gap-2xl); margin-bottom: var(--gap-2xl);
}
.footer-logo {
  font-family: var(--font-display); font-size: 1.7rem; font-weight: 600;
  margin-bottom: var(--gap-md); color: var(--blush-light);
}
.footer-tagline { color: rgba(250,247,242,.58); font-size: .88rem; line-height: 1.65; margin-bottom: var(--gap-lg); }
.footer-social  { display: flex; gap: var(--gap-sm); }
.footer-social a {
  width: 38px; height: 38px; background: rgba(255,255,255,.1);
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition); color: var(--cream);
}
.footer-social a:hover { background: var(--blush); color: var(--cocoa); transform: translateY(-3px); }
.footer-col h4 {
  font-family: var(--font-body); font-size: .78rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: rgba(250,247,242,.45); margin-bottom: var(--gap-lg);
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--gap-sm); }
.footer-col ul a { color: rgba(250,247,242,.65); font-size: .88rem; transition: color var(--transition); }
.footer-col ul a:hover { color: var(--blush); }
.footer-bottom {
  border-top: 1px solid rgba(250,247,242,.1);
  padding-top: var(--gap-lg);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: var(--gap-md);
}
.footer-bottom p { font-size: .8rem; color: rgba(250,247,242,.38); }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp  { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes float   { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-11px); } }

.animate-fade-up { opacity: 0; animation: fadeUp .7s ease forwards; }
.delay-1 { animation-delay: .1s; } .delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; } .delay-4 { animation-delay: .4s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links {
    display: none; position: fixed; inset: 0;
    background: var(--cream);
    flex-direction: column; align-items: center; justify-content: center;
    gap: var(--gap-xl); z-index: 150;
  }
  .nav-links.open { display: flex; }
  .nav-links a    { font-size: 1.4rem; }
  .nav-mobile-toggle { display: flex; z-index: 160; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--gap-xl); }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); }
}
@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr 1fr; }
  .btn-lg       { padding: 14px 28px; }
}
