/*
Theme Name: Daily Essentials A
Theme URI: https://dailyessentials.club/
Author: Daily Essentials
Description: A-site presentation theme for the Daily Essentials A/B storefront.
Version: 0.1.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: dailyessentials-a
*/

:root {
  --de-font: Arvo, Georgia, serif;
  --de-body-size: 14px;
  --de-line-height: 1.5;
  --de-content-width: 1200px;
  --de-section-spacing: 80px;
  --de-page-padding: 50px;
  --de-mobile-padding: 20px;
  --de-bg: #fff;
  --de-text: #545454;
  --de-text-high: #333;
  --de-text-low: #888;
  --de-title: #1d1f21;
  --de-header: #eee;
  --de-input: #f6f6f6;
  --de-divider: #ddd;
  --de-primary: #1d1f21;
  --de-primary-text: #fff;
  --de-sale: #d21936;
  --de-badge: #ae2238;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--de-bg);
  color: var(--de-text);
  font-family: var(--de-font);
  font-size: var(--de-body-size);
  line-height: var(--de-line-height);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; }
.de-container { width: min(calc(100% - (var(--de-page-padding) * 2)), var(--de-content-width)); margin-inline: auto; }
.de-section { padding-block: var(--de-section-spacing); }
.de-eyebrow { color: var(--de-text-low); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.de-title { margin: 0; color: var(--de-title); font-size: 32px; font-weight: 400; line-height: 1.2; }
.de-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: 1px solid var(--de-primary);
  border-radius: 3px;
  background: var(--de-primary);
  color: var(--de-primary-text);
  cursor: pointer;
  text-transform: uppercase;
  transition: opacity .2s ease, background .2s ease, color .2s ease;
}
.de-button:hover { opacity: .82; }
.de-button--secondary { background: #fff; color: var(--de-primary); }
.de-announcement { padding: 8px 16px; background: var(--de-title); color: #fff; text-align: center; font-size: 12px; }
.de-header { border-bottom: 1px solid var(--de-divider); background: var(--de-header); }
.de-header__inner { display: flex; min-height: 78px; align-items: center; justify-content: space-between; gap: 24px; }
.de-brand { color: var(--de-title); font-size: 24px; line-height: 1; }
.de-nav ul { display: flex; flex-wrap: wrap; gap: 22px; margin: 0; padding: 0; list-style: none; }
.de-nav a { color: var(--de-text-high); }
.de-nav a:hover { color: var(--de-sale); }
.de-header__tools { display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.de-header__tool { display: inline-flex; width: 22px; height: 22px; align-items: center; justify-content: center; color: var(--de-title); }
.de-header__tool svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }
.de-header__tool:hover { color: var(--de-sale); }
.de-menu-toggle { display: none; border: 0; background: transparent; color: var(--de-title); font-size: 22px; cursor: pointer; }
.de-hero { position: relative; min-height: 520px; overflow: hidden; background: #f3f3f3; text-align: center; }
.de-hero__slides, .de-hero__slide { position: absolute; inset: 0; }
.de-hero__slide { visibility: hidden; opacity: 0; transition: opacity .45s ease, visibility .45s ease; }
.de-hero__slide.is-active { visibility: visible; opacity: 1; }
.de-hero__slide > img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; opacity: .82; }
.de-hero__content { position: absolute; top: 50%; left: 50%; z-index: 1; width: min(620px, calc(100% - 40px)); padding: 80px 20px; transform: translate(-50%, -50%); }
.de-hero__title { margin: 10px 0 18px; color: var(--de-title); font-size: clamp(34px, 5vw, 64px); font-weight: 400; line-height: 1.1; }
.de-hero__copy { margin: 0 auto 28px; max-width: 520px; }
.de-hero__arrow { position: absolute; top: 50%; z-index: 2; width: 42px; height: 42px; border: 1px solid var(--de-title); border-radius: 50%; transform: translateY(-50%); font-size: 28px; line-height: 1; cursor: pointer; }
.de-hero__arrow--prev { left: 12px; color: #fff; background: #000; }
.de-hero__arrow--next { right: 12px; color: #111; background: #fff; }
.de-hero__dots { position: absolute; bottom: 18px; left: 50%; z-index: 2; display: flex; gap: 12px; transform: translateX(-50%); }
.de-hero__dots button { width: 8px; height: 8px; padding: 0; border: 1px solid var(--de-title); border-radius: 50%; background: transparent; cursor: pointer; }
.de-hero__dots button[aria-selected="true"] { background: var(--de-title); }
.de-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.de-grid { display: grid; gap: 24px; }
.de-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.de-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.de-card { min-width: 0; }
.de-card__media { aspect-ratio: 1 / 1; overflow: hidden; background: var(--de-input); }
.de-card__media img { width: 100%; height: 100%; object-fit: cover; }
.de-card__body { padding-top: 14px; }
.de-card__title { margin: 0 0 6px; color: var(--de-title); font-size: 16px; font-weight: 400; }
.de-price { color: var(--de-sale); }
.de-price del { margin-left: 8px; color: var(--de-text-low); }
.de-collection-card__media { aspect-ratio: 1 / .82; display: grid; place-items: center; padding: 20px; background: var(--de-input); text-align: center; }
.de-collection-card__media img { width: 100%; height: 100%; object-fit: cover; }
.de-collection-card__title { margin: 14px 0 0; color: var(--de-title); text-align: center; font-size: 18px; font-weight: 400; }
.de-collection-products { margin-top: 64px; }
.de-newsletter { border-block: 1px solid var(--de-divider); text-align: center; }
.de-newsletter form { display: flex; max-width: 540px; margin: 24px auto 0; }
.de-newsletter input { min-width: 0; flex: 1; padding: 12px 14px; border: 1px solid var(--de-divider); background: var(--de-input); }
.de-footer { border-top: 1px solid var(--de-divider); }
.de-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
.de-footer h2, .de-footer h3 { margin: 0 0 14px; color: var(--de-title); font-size: 16px; font-weight: 400; }
.de-footer ul { margin: 0; padding: 0; list-style: none; }
.de-footer li + li { margin-top: 8px; }
.de-footer__bottom { padding-top: 28px; border-top: 1px solid var(--de-divider); color: var(--de-text-low); }
.de-page-header { padding: 64px 0 28px; text-align: center; }
.de-breadcrumb { margin-bottom: 28px; color: var(--de-text-low); font-size: 12px; }
.de-collection-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
.de-product-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr); gap: 56px; align-items: start; }
.de-product-gallery__main { aspect-ratio: 1 / 1; background: var(--de-input); }
.de-product-gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.de-product-gallery__thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 10px; }
.de-product-gallery__thumb { aspect-ratio: 1 / 1; border: 1px solid var(--de-divider); background: var(--de-input); }
.de-product-gallery__thumb button { width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; }
.de-product-gallery__thumb.is-selected { border-color: var(--de-primary); }
.de-product-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.de-product-summary h1 { margin: 0 0 14px; color: var(--de-title); font-size: 32px; font-weight: 400; line-height: 1.2; }
.de-product-summary__price { margin-bottom: 24px; color: var(--de-sale); font-size: 24px; }
.de-product-summary__price del { margin-left: 10px; color: var(--de-text-low); font-size: 15px; }
.de-stock-note { min-height: 22px; margin: -8px 0 16px; color: var(--de-text-low); }
.de-product-summary label { display: block; margin-bottom: 8px; color: var(--de-title); }
.de-variation-options { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.de-variation-options button { padding: 9px 13px; border: 1px solid var(--de-divider); background: #fff; cursor: pointer; }
.de-variation-options button.is-selected { border-color: var(--de-primary); background: var(--de-primary); color: #fff; }
.de-quantity { display: inline-flex; margin-bottom: 22px; border: 1px solid var(--de-divider); }
.de-quantity button, .de-quantity input { width: 42px; height: 42px; border: 0; background: #fff; text-align: center; }
.de-purchase-actions { display: grid; gap: 10px; }
.de-tabs { margin-top: 64px; border-top: 1px solid var(--de-divider); }
.de-tabs__nav { display: flex; gap: 28px; padding: 18px 0; border-bottom: 1px solid var(--de-divider); }
.de-tabs__panel { padding: 28px 0; }
.de-pagination { display: flex; justify-content: center; gap: 18px; padding: 48px 0 0; }
.de-placeholder { display: grid; min-height: 100%; place-items: center; padding: 24px; color: var(--de-text-low); text-align: center; }

@media (max-width: 900px) {
  .de-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 10; padding: 18px var(--de-mobile-padding); border-bottom: 1px solid var(--de-divider); background: #fff; }
  .de-nav.is-open { display: block; }
  .de-nav ul { display: grid; gap: 14px; }
  .de-header__inner { position: relative; }
  .de-menu-toggle { display: inline-flex; }
  .de-hero__arrow { width: 34px; height: 34px; font-size: 22px; }
  .de-hero__arrow--prev { left: 8px; }
  .de-hero__arrow--next { right: 8px; }
  .de-header__tools { margin-left: auto; }
  .de-product-layout { grid-template-columns: 1fr; gap: 34px; }
  .de-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .de-container { width: min(calc(100% - (var(--de-mobile-padding) * 2)), var(--de-content-width)); }
  .de-section { padding-block: 56px; }
  .de-header__inner { min-height: 64px; }
  .de-brand { font-size: 20px; }
  .de-header__tools span { display: none; }
  .de-header__tools { gap: 12px; }
  .de-header__tool { width: 21px; height: 21px; }
  .de-header__tool svg { width: 18px; height: 18px; }
  .de-grid--3, .de-collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .de-section-heading { align-items: start; flex-direction: column; }
  .de-title { font-size: 28px; }
  .de-newsletter form { display: grid; gap: 10px; }
  .de-footer__grid { grid-template-columns: 1fr; }
  .de-product-summary h1 { font-size: 28px; }
  .de-purchase-actions .de-button { width: 100%; }
}
