/*
Theme Name: Enjoyed
Theme URI: https://enjoyed.shop
Author: Enjoyed
Description: Tema editoriale WooCommerce per un negozio italiano dedicato esclusivamente agli adulti.
Version: 1.0.0
Text Domain: enjoyed
*/

:root {
  --ink: #211c1d;
  --muted: #746a6c;
  --wine: #7f2538;
  --wine-dark: #541626;
  --rose: #d8a6ae;
  --blush: #f7eeee;
  --cream: #fbf8f3;
  --paper: #fffdf9;
  --line: #e8ddda;
  --shadow: 0 20px 60px rgba(65, 31, 38, .10);
  --radius: 24px;
  --max: 1220px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.age-locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; }
.site-shell { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.eyebrow { margin: 0 0 14px; color: var(--wine); font-size: .76rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.section-title { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4vw, 3.8rem); line-height: 1.05; font-weight: 500; }
.section-copy { max-width: 680px; color: var(--muted); font-size: 1.05rem; }
.button, .wp-element-button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid var(--wine);
  border-radius: 999px;
  background: var(--wine);
  color: #fff;
  font-weight: 750;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover { background: var(--wine-dark); border-color: var(--wine-dark); color: #fff; transform: translateY(-1px); }
.button--ghost { color: var(--ink); background: transparent; border-color: var(--line); }
.button--ghost:hover { color: var(--wine); background: #fff; border-color: var(--rose); }

.announcement { padding: 9px 20px; color: #fff; background: var(--ink); text-align: center; font-size: .78rem; letter-spacing: .04em; }
.announcement__mobile { display: none; }
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(232, 221, 218, .8); background: rgba(251, 248, 243, .94); backdrop-filter: blur(16px); }
.header-inner { min-height: 82px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.site-logo { font-family: Georgia, "Times New Roman", serif; font-size: 1.6rem; letter-spacing: .24em; font-weight: 600; }
.main-nav { display: flex; align-items: center; gap: 26px; color: #4d4547; font-size: .91rem; font-weight: 650; }
.header-actions { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.cart-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 750; }
.cart-count { display: grid; place-items: center; min-width: 25px; height: 25px; padding: 0 7px; border-radius: 999px; color: #fff; background: var(--wine); font-size: .75rem; }
.mobile-menu { display: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 999px; color: var(--ink); background: transparent; font-size: 1.4rem; cursor: pointer; }
.mobile-menu:hover, .mobile-menu:focus-visible { background: var(--blush); }
.mobile-nav, .mobile-nav[hidden] { display: none !important; }

.hero { padding: 64px 0 78px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: .98fr 1.02fr; min-height: 650px; border: 1px solid var(--line); border-radius: 34px; background: var(--paper); box-shadow: var(--shadow); overflow: hidden; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(38px, 4.8vw, 68px); }
.hero h1 { max-width: 760px; margin: 0 0 24px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.2rem, 5.5vw, 5.4rem); line-height: .96; font-weight: 500; letter-spacing: -.04em; }
.hero h1 em { color: var(--wine); font-weight: 500; }
.hero-copy > p:not(.eyebrow) { max-width: 590px; margin: 0 0 30px; color: var(--muted); font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-visual { position: relative; min-height: 650px; background: radial-gradient(circle at 20% 18%, #ffe6e8 0, transparent 38%), linear-gradient(145deg, #dcaeb6 0%, #8d3347 52%, #411321 100%); overflow: hidden; }
.hero-visual::after { content: "18+"; position: absolute; right: 24px; bottom: 24px; display: grid; place-items: center; width: 58px; height: 58px; border: 1px solid rgba(255,255,255,.65); border-radius: 50%; color: #fff; font-weight: 800; backdrop-filter: blur(8px); }
.hero-visual img { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: 50% 22%; mix-blend-mode: normal; filter: saturate(.82) contrast(.98); }
.hero-visual .visual-wash { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(28, 8, 15, .34)); pointer-events: none; }

.trust-strip { padding: 0 0 86px; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.trust-card { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.62); }
.trust-card strong { display: block; margin-bottom: 6px; font-family: Georgia, serif; font-size: 1.16rem; }
.trust-card span { color: var(--muted); font-size: .92rem; }

.catalog { padding: 90px 0; border-top: 1px solid var(--line); background: #f5efec; }
.catalog-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 42px; }
.products-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.product-card { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 18px 42px rgba(66, 35, 42, .12); }
.product-card__media { position: relative; aspect-ratio: 4 / 5.3; padding: 12px; background: linear-gradient(145deg, #eadad8, #f9f1ee 48%, #dcc1c6); overflow: hidden; }
.product-card:nth-child(3n+2) .product-card__media { background: linear-gradient(145deg, #e5ddda, #fff8f2 48%, #d7beb4); }
.product-card:nth-child(3n+3) .product-card__media { background: linear-gradient(145deg, #e8dce4, #fbf4f5 48%, #d7b9c3); }
.product-card__media img { width: 100%; height: 100%; border-radius: 17px; object-fit: cover; object-position: 50% 20%; filter: saturate(.9) contrast(.98); transition: transform .45s ease; }
.product-card:hover .product-card__media img { transform: scale(1.025); }
.product-card__badge { position: absolute; top: 22px; left: 22px; padding: 7px 11px; border-radius: 999px; color: #fff; background: rgba(33,28,29,.78); backdrop-filter: blur(8px); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.product-card__body { padding: 20px; }
.product-card__body h3 { min-height: 48px; margin: 0 0 10px; font-family: Georgia, serif; font-size: 1.08rem; line-height: 1.3; font-weight: 600; }
.product-card__body p { min-height: 44px; margin: 0 0 15px; color: var(--muted); font-size: .84rem; line-height: 1.45; }
.product-card__footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 15px; border-top: 1px solid var(--line); }
.product-card__price { color: var(--wine); font-size: 1.07rem; font-weight: 850; }
.product-card__link { font-size: .82rem; font-weight: 800; }

.editorial { padding: 110px 0; }
.editorial-grid { display: grid; grid-template-columns: .88fr 1.12fr; align-items: center; gap: 70px; }
.editorial-panel { min-height: 520px; border-radius: 30px; background: linear-gradient(145deg, #2c2325, #7f2538); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.editorial-panel::before { content: "ENJOYED"; position: absolute; left: -20px; bottom: 20px; color: rgba(255,255,255,.09); font-family: Georgia, serif; font-size: clamp(5rem, 10vw, 9rem); letter-spacing: .08em; }
.editorial-panel::after { content: "Privacy. Cura. Scelta."; position: absolute; left: 38px; top: 38px; max-width: 260px; color: #fff; font-family: Georgia, serif; font-size: 2.15rem; line-height: 1.05; }
.editorial-copy h2 { margin: 0 0 22px; font-family: Georgia, serif; font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: 1.04; font-weight: 500; }
.editorial-copy p { color: var(--muted); font-size: 1.04rem; }
.editorial-list { display: grid; gap: 12px; margin: 28px 0 34px; padding: 0; list-style: none; }
.editorial-list li { padding: 14px 0 14px 34px; border-bottom: 1px solid var(--line); position: relative; }
.editorial-list li::before { content: "✓"; position: absolute; left: 0; color: var(--wine); font-weight: 900; }

.site-main { min-height: 55vh; }
.content-page, .woocommerce-page-wrap { width: min(calc(100% - 40px), 1100px); margin: 0 auto; padding: 70px 0 100px; }
.page-header { max-width: 780px; margin-bottom: 38px; }
.page-header h1, .woocommerce-page-wrap h1 { margin: 0 0 16px; font-family: Georgia, serif; font-size: clamp(2.6rem, 6vw, 4.8rem); line-height: 1; font-weight: 500; }
.page-content { max-width: 820px; padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.page-content h2 { margin-top: 34px; font-family: Georgia, serif; font-weight: 600; }
.page-content a { color: var(--wine); text-decoration: underline; text-underline-offset: 3px; }

.woocommerce .woocommerce-breadcrumb { color: var(--muted); font-size: .82rem; }
.woocommerce div.product { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 54px; }
.woocommerce div.product div.images, .woocommerce div.product div.summary { width: 100%; float: none; }
.woocommerce div.product .woocommerce-tabs, .woocommerce div.product .related, .woocommerce div.product .upsells { grid-column: 1 / -1; }
.woocommerce div.product div.images img { border-radius: 22px; background: var(--blush); }
.woocommerce div.product .product_title { font-family: Georgia, serif; font-size: clamp(2.2rem, 4vw, 3.8rem); line-height: 1.04; font-weight: 500; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--wine); font-size: 1.5rem; font-weight: 850; }
.woocommerce .quantity .qty { min-height: 48px; border: 1px solid var(--line); border-radius: 12px; }
.woocommerce table.shop_table, .woocommerce form.checkout_coupon, .woocommerce form.login, .woocommerce form.register { border-color: var(--line); border-radius: 18px; background: var(--paper); }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .select2-container--default .select2-selection--single { min-height: 48px; padding: 10px 12px; border: 1px solid #d9cdca; border-radius: 10px; background: #fff; }
.woocommerce-info, .woocommerce-message, .woocommerce-error { border-top-color: var(--wine); background: #fff; }
.woocommerce-info::before, .woocommerce-message::before { color: var(--wine); }
.woocommerce ul.products li.product { padding: 14px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); }
.woocommerce ul.products li.product a img { aspect-ratio: 4/5; object-fit: cover; border-radius: 14px; background: var(--blush); }
.woocommerce .related ul.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; }
.woocommerce .related ul.products::before, .woocommerce .related ul.products::after { display: none; }
.woocommerce .related ul.products li.product { display: flex; float: none !important; flex-direction: column; width: 100% !important; min-width: 0; margin: 0 !important; }
.woocommerce .related ul.products li.product a.woocommerce-LoopProduct-link { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.woocommerce .related ul.products li.product .woocommerce-loop-product__title { min-height: 3.9em; }
.woocommerce .related ul.products li.product .price { margin-top: auto; }
.woocommerce .related ul.products li.product .button { display: flex; justify-content: center; align-items: center; text-align: center; }
.wc-block-cart, .wc-block-checkout { max-width: 100%; }
.woocommerce #place_order,
.wc-block-checkout__actions_row .wc-block-components-checkout-place-order-button,
.wc-block-components-checkout-place-order-button {
  border-color: var(--wine) !important;
  background: var(--wine) !important;
  color: #fff !important;
}
.woocommerce #place_order *,
.wc-block-components-checkout-place-order-button *,
.wc-block-components-checkout-place-order-button .wc-block-components-button__text {
  color: #fff !important;
}
.woocommerce #place_order:hover,
.woocommerce #place_order:focus-visible,
.wc-block-components-checkout-place-order-button:hover,
.wc-block-components-checkout-place-order-button:focus-visible {
  border-color: var(--wine-dark) !important;
  background: var(--wine-dark) !important;
  color: #fff !important;
}
.woocommerce #place_order:focus-visible,
.wc-block-components-checkout-place-order-button:focus-visible {
  outline: 3px solid rgba(127, 37, 56, .28);
  outline-offset: 3px;
}
.price-note { margin: 10px 0 18px; color: var(--muted); font-size: .82rem; }
.site-footer { padding: 74px 0 30px; color: #f8eeee; background: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr .7fr; gap: 60px; }
.footer-brand { max-width: 430px; }
.footer-brand .site-logo { display: inline-block; margin-bottom: 18px; }
.footer-brand p { color: #cbbfc1; }
.footer-col h3 { margin: 0 0 18px; color: #fff; font-family: Georgia, serif; font-weight: 500; }
.footer-col a { display: block; margin: 9px 0; color: #cbbfc1; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 54px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); color: #a99c9f; font-size: .82rem; }

.age-gate { position: fixed; inset: 0; z-index: 9999; display: none; place-items: center; padding: 24px; background: rgba(24, 17, 19, .94); backdrop-filter: blur(18px); }
.age-gate.is-visible { display: grid; }
.age-gate__card { width: min(100%, 540px); padding: 44px; border: 1px solid rgba(255,255,255,.18); border-radius: 28px; color: #fff; background: linear-gradient(145deg, #3a292d, #241a1c); box-shadow: 0 28px 90px rgba(0,0,0,.42); text-align: center; }
.age-gate__mark { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 24px; border: 1px solid var(--rose); border-radius: 50%; color: #fff; font-size: 1.35rem; font-weight: 850; }
.age-gate h2 { margin: 0 0 14px; font-family: Georgia, serif; font-size: 2.25rem; font-weight: 500; }
.age-gate p { color: #d3c7c9; }
.age-gate__actions { display: grid; gap: 10px; margin-top: 26px; }
.age-gate .button--ghost { color: #e9dcde; border-color: rgba(255,255,255,.25); }

@media (max-width: 1020px) {
  .header-inner .main-nav { display: none; }
  .mobile-menu { display: grid; place-items: center; justify-self: start; }
  .mobile-nav:not([hidden]) { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; width: min(calc(100% - 40px), var(--max)); margin: 0 auto; padding: 4px 0 14px; }
  .mobile-nav a { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.68); color: #4d4547; font-size: .88rem; font-weight: 700; text-align: center; }
  .header-inner { grid-template-columns: 1fr auto 1fr; }
  .hero-grid, .editorial-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 520px; }
  .hero-visual img { min-height: 0; }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .woocommerce div.product { grid-template-columns: minmax(0, 1fr); }
  .woocommerce div.product > div,
  .woocommerce div.product > section { min-width: 0; max-width: 100%; }
}

@media (max-width: 760px) {
  .site-shell { width: min(calc(100% - 24px), var(--max)); }
  .content-page, .woocommerce-page-wrap { width: min(calc(100% - 24px), 1100px); padding: 42px 0 72px; }
  .announcement { min-height: 42px; padding: 10px 12px; display: flex; align-items: center; justify-content: center; line-height: 1.35; }
  .announcement__desktop { display: none; }
  .announcement__mobile { display: inline; }
  .header-inner { min-height: 68px; }
  .site-logo { font-size: 1.25rem; }
  .header-actions .account-link { display: none; }
  .mobile-nav:not([hidden]) { grid-template-columns: 1fr 1fr; width: min(calc(100% - 24px), var(--max)); padding-bottom: 12px; }
  .hero { padding: 22px 0 54px; }
  .hero-grid { min-height: 0; border-radius: 24px; }
  .hero-copy { padding: 34px 22px; }
  .hero h1 { font-size: clamp(2.85rem, 14vw, 4rem); line-height: .95; }
  .hero-copy > p:not(.eyebrow) { font-size: 1rem; }
  .hero-actions .button { width: 100%; }
  .hero-visual { min-height: 420px; }
  .trust-grid { grid-template-columns: 1fr; }
  .catalog { padding: 66px 0; }
  .catalog-head { display: block; }
  .catalog-head .button { margin-top: 18px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-card__media { padding: 8px; }
  .product-card__body { padding: 14px; }
  .product-card__body h3 { min-height: 64px; font-size: .96rem; }
  .product-card__body p { display: none; }
  .product-card__footer { display: block; }
  .product-card__link { display: inline-block; margin-top: 8px; }
  .editorial { padding: 72px 0; }
  .editorial-panel { min-height: 360px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { display: block; }
  .age-gate__card { padding: 34px 24px; }
  .woocommerce div.product { gap: 36px; }
  .woocommerce div.product div.images,
  .woocommerce div.product div.summary,
  .woocommerce div.product .woocommerce-tabs,
  .woocommerce div.product .related,
  .woocommerce div.product .upsells { min-width: 0; max-width: 100%; }
  .woocommerce .related ul.products {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    margin: 0;
  }
  .woocommerce .related ul.products::before,
  .woocommerce .related ul.products::after { display: none; }
  .woocommerce .related ul.products li.product {
    display: flex;
    float: none !important;
    flex-direction: column;
    width: 100% !important;
    min-width: 0;
    margin: 0 !important;
    padding: 10px;
  }
  .woocommerce .related ul.products li.product a.woocommerce-LoopProduct-link {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
  }
  .woocommerce .related ul.products li.product a img {
    width: 100%;
    margin: 0 0 10px;
  }
  .woocommerce .related ul.products li.product .woocommerce-loop-product__title {
    min-height: 3.9em;
    margin: 0 0 8px;
    font-size: .9rem;
    line-height: 1.3;
  }
  .woocommerce .related ul.products li.product .price {
    margin-top: auto;
    font-size: .9rem;
  }
  .woocommerce .related ul.products li.product .button {
    display: flex;
    width: 100%;
    min-height: 44px;
    margin-top: 12px;
    padding: 6px 8px;
    font-size: .76rem;
    line-height: 1.15;
    white-space: normal;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .site-logo { font-size: 1.08rem; letter-spacing: .19em; }
  .cart-link { gap: 6px; font-size: .9rem; }
  .cart-count { min-width: 23px; height: 23px; padding-inline: 6px; }
  .hero-copy { padding-inline: 20px; }
  .product-card__body h3 { font-size: .9rem; }
  .product-card__price { font-size: .96rem; }
}
