/* Cocopots Bakers visual system: editorial storefront, August 2026. */
:root {
  --primary: #9e3b5c;
  --primary-dark: #7f2f4a;
  --primary-light: #ffd2da;
  --accent: #d4a353;
  --accent-dark: #ad7d31;
  --accent-light: #f8ead1;
  --dark: #24171c;
  --medium: #67565d;
  --light: #9b8990;
  --border: #eedde2;
  --bg: #fff8fa;
  --white: #ffffff;
  --shadow-sm: 0 4px 16px rgba(63, 31, 42, 0.06);
  --shadow-md: 0 14px 34px rgba(63, 31, 42, 0.11);
  --shadow-lg: 0 26px 60px rgba(63, 31, 42, 0.16);
  --radius-sm: 8px;
  --radius-md: 8px;
  --radius-lg: 8px;
}

body {
  background: #fffafa;
  color: var(--dark);
}

p { color: var(--medium); }
.container { max-width: 1240px; }
.section { padding: 4px 0; }
.section-sm { padding: 48px 0; }

.announcement-bar {
  min-height: 38px;
  padding: 8px 20px;
  background: var(--primary);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
}

.announcement-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.announcement-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.announcement-copy-mobile { display: none; }

.announcement-item + .announcement-item {
  padding-left: 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.38);
}

.announcement-bar a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.announcement-bar svg { width: 15px; height: 15px; }

.header {
  position: relative;
  background: var(--white);
  box-shadow: none;
  border-bottom: 1px solid var(--border);
}

.header-inner { min-height: 78px; gap: 28px; }
.site-logo { height: 58px; width: auto; object-fit: contain; }

.search-bar {
  max-width: 600px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fffafb;
}

.search-bar:focus-within {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(158, 59, 92, 0.1);
}

.search-bar input { font-size: 0.86rem; }
.search-bar button {
  width: 54px;
  height: 100%;
  padding: 0;
  border-radius: 0 999px 999px 0;
}
.search-bar button svg { width: 18px; height: 18px; }

.header-actions { gap: 4px; }
.header-btn {
  min-width: 58px;
  min-height: 50px;
  padding: 6px 8px;
  border-radius: 8px;
  color: var(--medium);
}
.header-btn .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
}
.header-btn .icon svg { width: 21px; height: 21px; stroke-width: 1.8; }
.header-btn > span:last-of-type { font-size: 0.7rem; }
.header-btn:hover { color: var(--primary); background: #fff1f4; }
.cart-count { background: var(--accent); color: var(--dark); }

.nav-menu {
  background: var(--white);
  border-top: 0;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 7px 16px rgba(63, 31, 42, 0.04);
}
.nav-inner { justify-content: center; gap: 7px; }
.nav-link { padding: 13px 17px; font-size: 0.86rem; font-weight: 600; }
.nav-link:hover, .nav-link.active { color: var(--primary); border-bottom-color: var(--primary); }
.mega-menu, .mega-simple { border-top-color: var(--primary); box-shadow: var(--shadow-md); }

.btn {
  min-height: 42px;
  padding: 11px 24px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--primary); box-shadow: none; }
.btn-primary:hover { background: var(--primary-dark); box-shadow: none; }
.btn-secondary {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary-light);
}
.btn-secondary:hover { background: var(--white); border-color: var(--primary); color: var(--primary); }
.btn-accent { background: var(--accent); color: var(--dark); box-shadow: none; }
.btn-accent:hover { background: var(--accent-dark); color: var(--white); box-shadow: none; }

.badge {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.66rem;
  letter-spacing: 0;
}
.badge-primary { background: var(--primary-light); color: var(--primary); }
.badge-accent { background: var(--accent); color: var(--dark); }
.badge-dark { background: var(--dark); color: var(--white); }

.section-header { margin-bottom: 34px; }
.section-header h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.section-header p { max-width: 620px; }
.section-header .divider {
  width: 42px;
  height: 3px;
  background: var(--accent);
}

.page-banner {
  padding: 54px 0;
  background: var(--primary-light);
  border-bottom: 1px solid #f2bdc8;
}
.page-banner h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 8px; }
.page-banner p { margin-bottom: 10px; }
.breadcrumb { padding: 20px 0; }

/* Product cards */
.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 22px rgba(63, 31, 42, 0.07);
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.product-card .img-wrap { aspect-ratio: 1.04; background: #f5f1f2; }
.product-card .card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px;
  background: #fff5f7;
  color: var(--dark);
}
.product-card .product-name {
  min-height: 2.65em;
  margin-bottom: 8px;
  color: var(--dark);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
}
.product-card .price-row { margin-bottom: 6px; }
.product-card .price { color: var(--primary); font-size: 1.08rem; }
.product-card .price-original { color: var(--light); }
.product-card .stars { color: var(--accent-dark); }
.product-card .wishlist-btn {
  width: 36px;
  height: 36px;
  background: var(--primary-light);
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(63, 31, 42, 0.12);
}
.product-card .wishlist-btn svg { width: 18px; height: 18px; }
.product-card .wishlist-btn.wishlisted svg { fill: currentColor; }
.product-card .card-badge { top: 12px; left: 12px; }
.product-card .card-weight-options { margin: 8px 0; }
.product-card .card-weight-option {
  min-height: 30px;
  border-color: #e8ccd4;
  background: var(--white);
}
.product-card .stock-count {
  display: inline-flex;
  align-self: flex-start;
  margin: 5px 0 12px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--white);
  font-size: 0.73rem;
}
.product-card .add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-height: 40px;
  margin-top: auto !important;
  border-radius: 999px;
  background: var(--primary);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
}
.product-card .add-btn svg { width: 16px; height: 16px; }
.product-card .add-btn:hover { background: var(--primary-dark); }
.products-row { gap: 18px; padding: 4px 3px 14px; }
.products-row .product-card { width: 238px; }
.products-row:not(:has(.product-card:nth-child(5))) { justify-content: center; }

/* Homepage editorial composition */
.hero-slide { height: 540px; }
.hero-slide-content {
  padding: 0 max(8%, calc((100vw - 1240px) / 2));
  background: linear-gradient(90deg, rgba(24, 12, 17, 0.68) 0%, rgba(24, 12, 17, 0.28) 48%, rgba(24, 12, 17, 0.02) 78%);
}
.hero-slide-content h1 {
  max-width: 840px;
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  line-height: 1.04;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.35);
}
.hero-slide-content p { max-width: 540px; font-weight: 500; }
.slider-prev, .slider-next { border-radius: 999px; }
.slider-prev svg, .slider-next svg { width: 18px; height: 18px; }

.cat-icons-row { padding: 22px 0; background: var(--white); }
.cat-icons { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
.cat-icons::-webkit-scrollbar { display: none; }
.cat-icon-item { flex: 1 0 110px; padding: 8px 10px; border-radius: 8px; }
.cat-icon-item .icon-circle {
  width: 68px;
  height: 68px;
  overflow: hidden;
  border: 2px solid var(--primary-light);
  background: var(--primary-light);
  box-shadow: none;
}
.cat-icon-item .icon-circle img { width: 100%; height: 100%; object-fit: cover; }
.cat-icon-item .icon-circle-symbol { color: var(--primary); }
.cat-icon-item .icon-circle-symbol svg { width: 27px; height: 27px; }
.cat-icon-item span { color: var(--dark); font-weight: 600; }

.category-collection-section { background: #fff8fa; }
.category-editorial-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}
.section-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}
.category-editorial-header h2 { max-width: 680px; font-size: clamp(1.8rem, 3vw, 2.55rem); }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--primary);
  color: var(--primary);
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
}
.text-link svg { width: 16px; height: 16px; }
.category-editorial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.category-story-card {
  position: relative;
  display: block;
  min-height: 360px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--dark);
  color: var(--white);
}
.category-story-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.category-story-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(27, 13, 18, 0.8) 0%, rgba(27, 13, 18, 0.08) 68%);
}
.category-story-card:hover img { transform: scale(1.035); }
.category-story-content {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 24px;
}
.category-story-content > span:first-child {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}
.category-story-content h3 { margin: 4px 0 6px; color: var(--white); font-size: 1.55rem; }
.category-story-content p {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 13px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.category-story-link { display: inline-flex; align-items: center; gap: 6px; color: var(--white); font-size: 0.8rem; font-weight: 700; }
.category-story-link svg { width: 15px; height: 15px; }

.offer-strip { padding: 22px 0; background: var(--primary-light); }
.offer-strip h3 { color: var(--dark); }
.offer-strip p { color: var(--medium); }
.offer-strip .btn-outline-white { border-color: var(--primary); color: var(--primary); }
.offer-strip .btn-outline-white:hover { background: var(--primary); color: var(--white); }

.custom-order-section { background: var(--accent); }
.custom-order-cta {
  display: block;
  max-width: 920px;
  margin: 0 auto;
  padding: 18px 0;
  border-radius: 0;
  background: transparent;
  text-align: center;
}
.custom-order-cta .cta-text h2 {
  max-width: 840px;
  margin: 0 auto 18px;
  color: var(--white);
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 1.06;
}
.custom-order-cta .cta-text p {
  max-width: 760px;
  margin: 0 auto 30px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
}
.custom-order-cta .section-kicker { color: var(--white); }
.custom-order-cta .cta-text .cta-btns { justify-content: center; }
.custom-order-cta .cta-btns .btn-primary { min-width: 250px; background: var(--white); color: var(--dark); }
.custom-order-cta .cta-btns .btn-accent { min-width: 220px; background: var(--primary); color: var(--white); }

.why-us { background: var(--primary-light); }
.why-item .why-icon { color: var(--primary); box-shadow: none; }
.why-item .why-icon svg { width: 27px; height: 27px; }
.testi-card { border-radius: 8px; }
.insta-overlay svg { width: 24px; height: 24px; }

/* Catalogue */
.shop-layout { grid-template-columns: 238px 1fr; gap: 24px; }
.filter-sidebar, .shop-toolbar {
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 7px 20px rgba(63, 31, 42, 0.05);
}
.filter-header { background: #fff5f7; }
.filter-section-head:hover { background: #fff5f7; }
.btn-filter-clear { border-color: var(--border); background: #fffafb; }
.btn-filter-apply { border-radius: 8px; background: var(--primary); }
.shop-toolbar { padding: 13px 16px; }
.sort-select, .view-btn { border-color: var(--border); border-radius: 8px; }
.view-btn svg { width: 16px; height: 16px; }
.subcat-pills { gap: 8px; }
.subcat-pill { padding: 8px 16px; background: #fffafb; border-color: var(--border); }
.products-grid { gap: 20px; }
.cat-page-banner { border-radius: 8px; box-shadow: var(--shadow-sm); }

/* Product details */
.product-layout { gap: 56px; }
.product-gallery .main-img {
  position: relative;
  aspect-ratio: 1.24;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.product-gallery .main-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-info {
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff5f7;
}
.product-info .product-title { font-size: clamp(1.8rem, 3vw, 2.45rem); }
.product-category-label { display: inline-flex; margin-bottom: 10px; color: var(--primary); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; }
.product-info .price-big { color: var(--primary); }
.product-info .delivery-info { background: var(--white); border: 1px solid var(--border); }
.delivery-info p svg { width: 17px; height: 17px; color: var(--primary); flex-shrink: 0; }
.action-btns .btn-secondary { background: var(--primary-light); }
.product-tabs { padding-top: 8px; }
.tab-nav { border-color: var(--border); }

/* Forms, carts, account, and content pages */
.form-control { border-color: var(--border); border-radius: 8px; background: var(--white); }
.card, .order-summary, .account-sidebar, .account-content, .static-content .value-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}
.account-user-info { background: var(--primary); }
.about-hero { background: var(--primary-light); }
.footer { border-top: 5px solid var(--accent); }

.lucide { stroke-width: 1.9; }

@media (max-width: 1024px) {
  .header-inner { gap: 16px; }
  .nav-link { padding-inline: 11px; }
  .shop-layout { grid-template-columns: 220px 1fr; }
  .category-editorial-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }
  .section { padding: 4px 0; }
  .section-sm { padding: 34px 0; }
  .announcement-bar { min-height: 32px; padding: 6px 12px; overflow: visible; }
  .announcement-inner {
    justify-content: center;
    gap: 7px 10px;
    flex-wrap: wrap;
    overflow: visible;
  }
  .announcement-item {
    min-width: 0;
    white-space: normal;
  }
  .announcement-item + .announcement-item {
    padding-left: 10px;
  }
  .announcement-cta {
    flex-shrink: 0;
    white-space: nowrap;
    font-weight: 700;
  }
  .header-inner { min-height: 70px; }
  .site-logo { height: 48px; }
  .search-bar { height: 44px; }
  .header-btn { min-width: 42px; min-height: 42px; }
  .header-btn .icon svg { width: 20px; height: 20px; }
  .page-banner { padding: 28px 0; }
  .page-banner p { display: block; }
  .hero-slide { height: 440px; }
  .hero-slide-content { padding: 0 24px; }
  .hero-slide-content h1 {
    width: 100%;
    max-width: 100%;
    font-size: 2.25rem;
    overflow-wrap: break-word;
    white-space: normal;
  }
  .category-editorial-header { align-items: flex-start; flex-direction: column; }
  .category-story-card { min-height: 320px; }
  .products-grid { gap: 12px; }
  .product-card .card-body { padding: 12px; }
  .product-card .product-name { min-height: 2.55em; font-size: 0.82rem; }
  .product-card .price { font-size: 0.96rem; }
  .product-card .stock-count { font-size: 0.66rem; padding: 3px 6px; }
  .product-card .add-btn { min-height: 36px; padding: 8px; font-size: 0.74rem; }
  .products-row .product-card { width: 174px; }
  .products-row:not(:has(.product-card:nth-child(5))) { justify-content: flex-start; }
  .product-layout { gap: 24px; }
  .product-info { padding: 22px; }
  .shop-layout, .shop-main, .products-grid, .shop-toolbar {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .shop-layout { grid-template-columns: minmax(0, 1fr); }
  .filter-sidebar {
    display: none !important;
    right: auto;
    left: 0;
    width: 100vw;
    max-width: 100vw;
    transform: translateX(105vw);
  }
  .filter-sidebar.mobile-open { display: flex !important; transform: translateX(0); }
}

@media (max-width: 600px) {
  .header-btn > span:not(.icon):not(.cart-count) { display: none; }
  .header-btn { min-width: 38px; padding: 4px; }
  .header-actions { margin-left: auto; }
  .announcement-item:nth-child(2) { display: none; }
  .announcement-copy-full { display: none; }
  .announcement-copy-mobile { display: inline; }
  .page-banner { padding: 30px 0; }
  .page-banner h1 { font-size: 1.7rem; }
  .page-banner p { font-size: 0.78rem; }
  .hero-slide-content h1 { font-size: 1.75rem; line-height: 1.08; }
  .products-grid { grid-template-columns: 1fr !important; }
  .product-card .product-name { min-height: 0; font-size: 0.9rem; }
}

@media (max-width: 480px) {
  .container { padding-inline: 16px; }
  .announcement-item:nth-child(2) { display: none; }
  .announcement-inner { gap: 6px 8px; }
  .announcement-item + .announcement-item {
    padding-left: 8px;
  }
  .hero-slide { height: 430px; }
  .hero-slide-content { justify-content: flex-end; padding: 0 18px 54px; }
  .hero-slide-content h1 { font-size: 1.75rem; line-height: 1.08; }
  .hero-slide-content p { font-size: 0.85rem; }
  .cat-icon-item { flex-basis: 88px; }
  .cat-icon-item .icon-circle { width: 58px; height: 58px; }
  .category-editorial-grid { grid-template-columns: 1fr; }
  .category-story-card { min-height: 300px; }
  .custom-order-cta .cta-text h2 { font-size: 2.35rem; }
  .custom-order-cta .cta-btns .btn { width: 100%; min-width: 0; }
  .products-grid { gap: 10px; }
  .product-card .img-wrap { aspect-ratio: 1; }
  .product-card .wishlist-btn { width: 32px; height: 32px; }
  .product-card .card-body { padding: 11px; }
  .product-card .card-weight-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-info { padding: 18px; }
  .action-btns { flex-direction: column; }
}
