/* ═══════════════════════════════════════════
   Melluci — WooCommerce Styles
   ═══════════════════════════════════════════ */

:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --off: #f9f9f7;
  --gold: #b8955a;
  --mid: #888;
  --light: #e8e8e8;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', Helvetica, sans-serif;
  --ease: cubic-bezier(.25,.46,.45,.94);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--sans); background: var(--white); color: var(--black); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* ── ANNOUNCE ── */
.announce {
  background: var(--black); text-align: center;
  padding: .5rem; font-family: var(--sans);
  font-size: .62rem; letter-spacing: 3px;
  text-transform: uppercase; color: rgba(255,255,255,.45); font-weight: 300;
}

/* ── NAV ── */
.nav-wrap { position: sticky; top: 0; z-index: 500; background: var(--white); border-bottom: 1px solid var(--light); }
nav { display: grid; grid-template-columns: 1fr auto 1fr; grid-template-rows: 68px; align-items: center; padding: 0 4%; max-width: 1600px; margin: 0 auto; }
.nav-links { grid-column: 1; grid-row: 1; display: flex; gap: 2.4rem; list-style: none; align-items: center; }
.nav-links a { font-family: var(--sans); font-size: .66rem; letter-spacing: 2.5px; text-transform: uppercase; color: var(--black); font-weight: 400; opacity: .55; transition: opacity .25s; }
.nav-links a:hover { opacity: 1; }
.nav-logo { grid-column: 2; grid-row: 1; font-family: var(--serif); font-size: 1.35rem; font-weight: 400; letter-spacing: 7px; text-transform: uppercase; text-align: center; display: block; color: var(--black); white-space: nowrap; }
.nav-logo .ll { color: var(--gold); }
.nav-actions { grid-column: 3; grid-row: 1; display: flex; gap: 1.4rem; justify-content: flex-end; align-items: center; position: relative; }
.nav-actions a { display: flex; align-items: center; position: relative; }
.nav-actions svg { width: 18px; height: 18px; stroke: var(--black); fill: none; stroke-width: 1.4; opacity: .55; cursor: pointer; transition: opacity .2s; }
.nav-actions svg:hover { opacity: 1; }
.nav-cart-count { position: absolute; top: -6px; right: -8px; background: var(--gold); color: var(--white); font-size: .55rem; width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 400; }
.mob-hamburger { display: none; flex-direction: column; justify-content: center; align-items: center; width: 28px; height: 28px; cursor: pointer; gap: 5px; }
.mob-hamburger span { display: block; width: 20px; height: 1px; background: var(--black); transition: all .25s; }

/* ── EYEBROW + TITLE ── */
.s-eyebrow { font-family: var(--sans); font-size: .58rem; letter-spacing: 4px; text-transform: uppercase; color: var(--mid); font-weight: 300; margin-bottom: .7rem; }
.s-title { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 400; line-height: 1.15; color: var(--black); }
.s-title em { font-style: italic; }

/* ── SHOP PAGE ── */
.mll-shop { padding: 6rem 4% 8rem; max-width: 1600px; margin: 0 auto; }
.mll-shop-header { margin-bottom: 3rem; }
.mll-shop-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--light); }
.mll-count { font-family: var(--sans); font-size: .72rem; letter-spacing: 1px; color: var(--mid); font-weight: 300; }
/* WooCommerce ordering select */
.mll-sort select { font-family: var(--sans); font-size: .72rem; border: 1px solid var(--light); padding: .5rem 1rem; color: var(--black); background: var(--white); outline: none; cursor: pointer; letter-spacing: 1px; }

/* ── PRODUCT GRID (shared home + shop) ── */
.mll-pgrid { display: grid; grid-template-columns: repeat(4,1fr); gap: 3rem 2rem; }
.mll-pc { cursor: pointer; }
.mll-pc-link { display: block; text-decoration: none; color: inherit; }
.mll-pc-img { position: relative; overflow: hidden; aspect-ratio: 3/4; background: var(--off); margin-bottom: 1rem; }
.mll-pc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s var(--ease); }
.mll-pc:hover .mll-pc-img img { transform: scale(1.04); }
.mll-pc-placeholder { width: 100%; height: 100%; background: #eeebe5; }
.mll-pc-hover { position: absolute; bottom: 0; left: 0; right: 0; padding: 1rem; background: rgba(255,255,255,.95); transform: translateY(100%); transition: transform .28s var(--ease); text-align: center; }
.mll-pc:hover .mll-pc-hover { transform: translateY(0); }
.mll-pc-hover span { font-family: var(--sans); font-size: .6rem; letter-spacing: 2px; text-transform: uppercase; color: var(--black); font-weight: 400; }
.mll-tag { position: absolute; top: 1rem; left: 1rem; font-family: var(--sans); font-size: .55rem; letter-spacing: 2px; text-transform: uppercase; font-weight: 400; padding: .2rem .65rem; }
.mll-tag-new { background: var(--black); color: var(--white); }
.mll-tag-sale { border: 1px solid var(--black); color: var(--black); background: var(--white); }
.mll-pc-cat { font-family: var(--sans); font-size: .6rem; letter-spacing: 2px; text-transform: uppercase; color: var(--mid); font-weight: 300; margin-bottom: .3rem; }
.mll-pc-name { font-family: var(--serif); font-size: .95rem; font-weight: 400; color: var(--black); margin-bottom: .35rem; line-height: 1.3; }
.mll-pc-price { font-family: var(--sans); font-size: .78rem; font-weight: 300; color: var(--black); }
.mll-pc-price .woocommerce-Price-amount { font-family: var(--sans); font-size: .78rem; font-weight: 300; }
.mll-pc-price ins { text-decoration: none; }
.mll-pc-price del .woocommerce-Price-amount { color: #bbb; font-size: .72rem; }

/* ── PAGINATION ── */
.mll-pagination { margin-top: 5rem; text-align: center; }
.mll-pagination .page-numbers { font-family: var(--sans); font-size: .72rem; letter-spacing: 2px; color: var(--black); padding: .5rem .9rem; border: 1px solid var(--light); transition: all .2s; }
.mll-pagination .page-numbers.current, .mll-pagination .page-numbers:hover { background: var(--black); color: var(--white); border-color: var(--black); }
.mll-empty { padding: 6rem 0; text-align: center; font-family: var(--serif); font-size: 1.2rem; color: var(--mid); font-style: italic; }

/* ── SINGLE PRODUCT ── */
.mll-product { padding: 3rem 4% 8rem; max-width: 1600px; margin: 0 auto; }
.mll-breadcrumb { font-family: var(--sans); font-size: .68rem; letter-spacing: 1.5px; color: var(--mid); font-weight: 300; margin-bottom: 3rem; display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.mll-breadcrumb a { color: var(--mid); transition: color .2s; }
.mll-breadcrumb a:hover { color: var(--black); }
.mll-product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; margin-bottom: 7rem; }

/* Gallery */
.mll-gallery-main { aspect-ratio: 4/5; overflow: hidden; background: var(--off); margin-bottom: .8rem; }
.mll-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.mll-gallery-placeholder { width: 100%; height: 100%; background: #eeebe5; }
.mll-gallery-thumbs { display: flex; gap: .5rem; flex-wrap: wrap; }
.mll-thumb { width: 72px; height: 90px; object-fit: cover; cursor: pointer; opacity: .55; transition: opacity .2s; border: 1px solid transparent; }
.mll-thumb.active, .mll-thumb:hover { opacity: 1; border-color: var(--black); }

/* Product info */
.mll-product-info { padding-top: 1rem; }
.mll-prod-cat { font-family: var(--sans); font-size: .62rem; letter-spacing: 3px; text-transform: uppercase; color: var(--mid); font-weight: 300; margin-bottom: 1rem; }
.mll-prod-name { font-family: var(--serif); font-size: clamp(1.8rem, 2.8vw, 2.6rem); font-weight: 400; line-height: 1.15; color: var(--black); margin-bottom: 1.5rem; }
.mll-prod-price { font-family: var(--sans); font-size: 1.1rem; font-weight: 300; color: var(--black); margin-bottom: 2rem; }
.mll-prod-price .woocommerce-Price-amount { font-size: 1.1rem; font-weight: 300; }
.mll-prod-price ins { text-decoration: none; }
.mll-prod-price del { color: var(--mid); font-size: .9rem; }
.mll-prod-short-desc { font-family: var(--sans); font-size: .85rem; line-height: 1.8; color: #555; font-weight: 300; margin-bottom: 2rem; }

/* WooCommerce add-to-cart form */
.mll-prod-form { margin-bottom: 2rem; }
.mll-prod-form .variations { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.mll-prod-form .variations td, .mll-prod-form .variations th { padding: .5rem 0; font-family: var(--sans); font-size: .75rem; font-weight: 300; }
.mll-prod-form .variations label { font-size: .65rem; letter-spacing: 2px; text-transform: uppercase; color: var(--mid); }
.mll-prod-form select { width: 100%; padding: .75rem 1rem; border: 1px solid var(--light); font-family: var(--sans); font-size: .85rem; font-weight: 300; color: var(--black); background: var(--white); outline: none; cursor: pointer; transition: border-color .2s; }
.mll-prod-form select:focus { border-color: var(--black); }
.mll-prod-form .qty { width: 60px; padding: .75rem; border: 1px solid var(--light); font-family: var(--sans); font-size: .85rem; text-align: center; outline: none; margin-right: 1rem; }
.mll-prod-form .single_add_to_cart_button,
.mll-prod-form button[type="submit"] {
  padding: 1rem 3rem;
  background: var(--black); color: var(--white);
  font-family: var(--sans); font-size: .72rem;
  font-weight: 400; letter-spacing: 2.5px;
  text-transform: uppercase; border: none; cursor: pointer;
  transition: background .25s; width: 100%; margin-top: .5rem;
}
.mll-prod-form .single_add_to_cart_button:hover { background: #333; }
.mll-prod-form .woocommerce-variation-add-to-cart { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }

/* Benefits strip on product page */
.mll-prod-benefits { display: flex; gap: 1rem; flex-wrap: wrap; margin: 1.5rem 0 2rem; padding: 1rem 0; border-top: 1px solid var(--light); border-bottom: 1px solid var(--light); font-family: var(--sans); font-size: .65rem; letter-spacing: 1px; color: var(--mid); font-weight: 300; }

/* Details / description accordion */
.mll-prod-details { margin-top: 1.5rem; border-top: 1px solid var(--light); }
.mll-prod-details summary { padding: 1rem 0; font-family: var(--sans); font-size: .72rem; letter-spacing: 2px; text-transform: uppercase; cursor: pointer; color: var(--black); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.mll-prod-details summary::after { content: '+'; font-size: 1rem; font-weight: 300; }
.mll-prod-details[open] summary::after { content: '−'; }
.mll-prod-desc-body { padding: 1rem 0 2rem; font-family: var(--sans); font-size: .85rem; line-height: 1.8; color: #555; font-weight: 300; }

/* Related products */
.mll-related { border-top: 1px solid var(--light); padding-top: 5rem; }
.mll-related .s-eyebrow { margin-bottom: 2.5rem; }

/* ── FOOTER (shared) ── */
.mll-footer { background: var(--white); border-top: 1px solid var(--light); padding: 5rem 4% 2rem; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; max-width: 1600px; margin: 0 auto; padding-bottom: 4rem; border-bottom: 1px solid var(--light); margin-bottom: 2rem; }
.footer-logo { font-family: var(--serif); font-size: 1.2rem; font-weight: 400; letter-spacing: 5px; text-transform: uppercase; display: block; margin-bottom: 1rem; color: var(--black); }
.footer-logo .ll { color: var(--gold); }
.footer-brand p { font-family: var(--sans); font-size: .75rem; font-weight: 300; line-height: 1.8; color: var(--mid); max-width: 220px; }
.footer-col h5 { font-family: var(--sans); font-size: .58rem; letter-spacing: 3px; text-transform: uppercase; color: var(--black); font-weight: 400; margin-bottom: 1.4rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .6rem; }
.footer-col a { font-family: var(--sans); font-size: .75rem; font-weight: 300; color: var(--mid); transition: color .2s; }
.footer-col a:hover { color: var(--black); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .8rem; max-width: 1600px; margin: 0 auto; }
.footer-bottom p { font-family: var(--sans); font-size: .62rem; font-weight: 300; color: #ccc; }

/* ── CART & CHECKOUT (WooCommerce override) ── */
.woocommerce { max-width: 1200px; margin: 4rem auto; padding: 0 4% 6rem; }
.woocommerce h1, .woocommerce h2 { font-family: var(--serif); font-weight: 400; }
.woocommerce table.shop_table { border-collapse: collapse; width: 100%; font-family: var(--sans); font-size: .85rem; font-weight: 300; }
.woocommerce table.shop_table th { font-size: .62rem; letter-spacing: 2px; text-transform: uppercase; color: var(--mid); font-weight: 300; padding: 1rem 0; border-bottom: 1px solid var(--light); }
.woocommerce table.shop_table td { padding: 1.2rem 0; border-bottom: 1px solid var(--light); }
.woocommerce .button, .woocommerce button.button, .woocommerce input.button {
  font-family: var(--sans) !important; font-size: .72rem !important;
  letter-spacing: 2.5px; text-transform: uppercase;
  background: var(--black) !important; color: var(--white) !important;
  border: none !important; padding: .9rem 2.5rem !important;
  border-radius: 0 !important; cursor: pointer;
  transition: background .25s !important; font-weight: 400 !important;
}
.woocommerce .button:hover { background: #333 !important; }
.woocommerce .button.alt { background: var(--black) !important; }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  font-family: var(--sans); font-size: .85rem; font-weight: 300;
  border: 1px solid var(--light); padding: .75rem 1rem;
  width: 100%; outline: none; transition: border-color .2s;
  border-radius: 0;
}
.woocommerce form .form-row input:focus,
.woocommerce form .form-row select:focus { border-color: var(--black); }
.woocommerce form .form-row label { font-family: var(--sans); font-size: .68rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--mid); font-weight: 300; margin-bottom: .5rem; display: block; }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) { .mll-pgrid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 820px) {
  .mll-pgrid { grid-template-columns: repeat(2,1fr); }
  .mll-product-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  nav { grid-template-columns: auto 1fr auto; grid-template-rows: 56px; padding: 0 5%; }
  .nav-logo { grid-column: 1; font-size: 1.35rem; letter-spacing: 6px; text-align: left; }
  .nav-links { display: none; }
  .nav-actions { grid-column: 3; gap: 1rem; }
  .mob-hamburger { display: flex; }
  .mll-pgrid { grid-template-columns: 1fr 1fr; gap: 1.2rem .65rem; }
  .mll-shop { padding: 3rem 4% 5rem; }
  .mll-product { padding: 2rem 4% 5rem; }
  .footer-top { grid-template-columns: 1fr; }
}
