/*
Theme Name: Sweet Nuttins Storefront
Theme URI: https://mattgraphydesign.com/
Author: Mattgraphy Design
Author URI: https://mattgraphydesign.com/
Description: A modern WooCommerce-ready storefront theme for Sweet Nuttins with age verification, responsive product sections, discreet shopping cues, and conversion-focused layouts.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sweetnuttins
Tags: ecommerce, woocommerce, custom-logo, responsive-layout, one-column, two-columns
*/

:root {
  --sn-pink: #ff6f91;
  --sn-pink-dark: #e94d76;
  --sn-pink-light: #ffb1c4;
  --sn-plum: #1d1029;
  --sn-plum-soft: #2b183a;
  --sn-cream: #fff7f9;
  --sn-white: #ffffff;
  --sn-text: #241625;
  --sn-muted: #7c6f7f;
  --sn-border: rgba(36,22,37,.12);
  --sn-shadow: 0 18px 45px rgba(29,16,41,.16);
  --sn-radius: 28px;
  --sn-max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--sn-text);
  background: var(--sn-plum);
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; }

.sn-container { width: min(var(--sn-max), calc(100% - 40px)); margin: 0 auto; }
.sn-pill { border-radius: 999px; }
.sn-btn,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.added_to_cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px !important;
  background: var(--sn-pink) !important;
  color: var(--sn-white) !important;
  padding: 14px 24px !important;
  min-height: 48px;
  font-weight: 800 !important;
  letter-spacing: .01em;
  box-shadow: 0 12px 28px rgba(255,111,145,.28);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  cursor: pointer;
}
.sn-btn:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.added_to_cart:hover { transform: translateY(-2px); background: var(--sn-pink-dark) !important; box-shadow: 0 16px 34px rgba(255,111,145,.34); }
.sn-btn.secondary { background: rgba(255,255,255,.12) !important; border: 1px solid rgba(255,255,255,.25); box-shadow: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 244, 248, .86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.45);
}
.admin-bar .site-header { top: 32px; }
.header-inner {
  height: 76px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
}
.site-logo img { width: min(250px, 45vw); max-height: 68px; object-fit: contain; }
.header-left, .header-right { display: flex; align-items: center; gap: 20px; }
.header-right { justify-content: flex-end; }
.main-nav ul { display: flex; align-items: center; gap: 18px; margin: 0; padding: 0; list-style: none; }
.main-nav a, .header-link { font-weight: 800; font-size: 15px; color: var(--sn-text); }
.cart-link { position: relative; display: inline-flex; align-items: center; gap: 8px; font-weight: 900; }
.cart-count { background: var(--sn-pink); color: #fff; min-width: 22px; height: 22px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.mobile-menu-toggle { display: none; border: 0; background: transparent; font-size: 26px; color: var(--sn-text); }

.hero {
  position: relative;
  overflow: hidden;
  min-height: 780px;
  padding: 72px 0 84px;
  background:
    radial-gradient(circle at 12% 15%, rgba(255,177,196,.95) 0 16%, transparent 17%),
    radial-gradient(circle at 88% 5%, rgba(255,111,145,.55) 0 14%, transparent 15%),
    linear-gradient(180deg, #ffd3df 0%, #ff88a4 31%, #3a1744 62%, #1d1029 100%);
}
.hero:before,
.hero:after {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  height: 260px;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background: var(--sn-plum);
  z-index: 0;
}
.hero:before { top: 345px; transform: rotate(-4deg); opacity: .88; }
.hero:after { top: 410px; background: var(--sn-plum); transform: rotate(3deg); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }
.hero-copy { padding-top: 120px; color: var(--sn-white); }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid rgba(255,255,255,.26); background: rgba(255,255,255,.12); border-radius: 999px; font-size: 13px; font-weight: 800; }
.hero h1 { margin: 18px 0 14px; font-size: clamp(44px, 7vw, 88px); line-height: .94; letter-spacing: -.055em; }
.hero p { max-width: 560px; font-size: clamp(17px, 2vw, 21px); color: rgba(255,255,255,.84); margin: 0 0 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-logo-card { justify-self: center; width: min(480px, 100%); padding: 38px; border-radius: 42px; background: rgba(255,255,255,.92); box-shadow: var(--sn-shadow); transform: rotate(-1deg); }
.hero-logo-card img { width: 100%; }
.discreet-note { margin-top: 18px; font-size: 13px; color: rgba(255,255,255,.7); }

.trust-strip { background: var(--sn-plum); color: #fff; padding: 18px 0 36px; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.trust-card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); border-radius: 18px; padding: 16px; font-weight: 800; text-align: center; }
.trust-card small { display: block; color: rgba(255,255,255,.62); font-weight: 600; margin-top: 3px; }

.section { padding: 80px 0; background: var(--sn-cream); }
.section.dark { background: var(--sn-plum); color: #fff; }
.section-title { text-align: center; max-width: 760px; margin: 0 auto 34px; }
.section-title h2 { margin: 0 0 10px; font-size: clamp(32px, 5vw, 56px); line-height: 1; letter-spacing: -.04em; }
.section-title p { margin: 0; color: var(--sn-muted); font-size: 18px; }
.dark .section-title p { color: rgba(255,255,255,.7); }

.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.category-card { position: relative; overflow: hidden; min-height: 320px; border-radius: var(--sn-radius); background: #fff; padding: 26px; box-shadow: var(--sn-shadow); display: flex; flex-direction: column; justify-content: space-between; }
.category-card:before { content: ""; position: absolute; right: -48px; top: -60px; width: 190px; height: 190px; background: var(--sn-pink-light); border-radius: 50%; opacity: .45; }
.category-card h3 { margin: 0; font-size: 27px; line-height: 1.05; }
.category-card p { color: var(--sn-muted); max-width: 260px; }
.category-icon { width: 118px; height: 118px; border-radius: 999px; background: var(--sn-cream); display: grid; place-items: center; font-size: 48px; margin-left: auto; }
.category-plus { width: 48px; height: 48px; border-radius: 999px; display: grid; place-items: center; border: 2px solid var(--sn-text); font-size: 26px; font-weight: 900; }

.woocommerce ul.products { display: grid !important; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 26px !important; margin: 0 !important; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; background: #fff; border-radius: var(--sn-radius); padding: 18px !important; box-shadow: var(--sn-shadow); overflow: hidden; text-align: left; }
.woocommerce ul.products li.product a img { border-radius: 22px; aspect-ratio: 1 / 1; object-fit: cover; background: var(--sn-cream); margin: 0 0 16px !important; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 20px !important; line-height: 1.2; color: var(--sn-text); padding: 0 !important; margin: 0 0 8px !important; font-weight: 900; }
.woocommerce ul.products li.product .price { color: var(--sn-pink-dark) !important; font-size: 18px !important; font-weight: 900 !important; }
.woocommerce span.onsale { background: var(--sn-pink) !important; border-radius: 999px !important; padding: 6px 12px !important; min-height: auto !important; line-height: 1 !important; }

.feature-band { background: linear-gradient(135deg, var(--sn-plum), #371449); color: #fff; border-radius: 40px; padding: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
.feature-list { display: grid; gap: 14px; }
.feature-item { display: flex; gap: 12px; align-items: flex-start; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); border-radius: 18px; padding: 15px; }
.feature-item b { display: block; }
.feature-item span { color: rgba(255,255,255,.7); }

.newsletter { background: var(--sn-pink); color: #fff; padding: 54px 0; }
.newsletter-inner { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.newsletter h2 { margin: 0 0 6px; font-size: clamp(30px, 4vw, 48px); letter-spacing: -.04em; }
.newsletter p { margin: 0; opacity: .85; }
.newsletter form { display: flex; gap: 10px; background: #fff; padding: 8px; border-radius: 999px; min-width: min(460px, 100%); }
.newsletter input[type=email] { border: 0; outline: 0; padding: 0 16px; flex: 1; min-width: 0; }
.newsletter button { background: var(--sn-plum); color: #fff; border: 0; border-radius: 999px; padding: 12px 20px; font-weight: 900; }

.site-footer { background: #13091d; color: rgba(255,255,255,.72); padding: 44px 0 22px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
.footer-grid h4 { color: #fff; margin: 0 0 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 30px; padding-top: 18px; display: flex; justify-content: space-between; gap: 14px; font-size: 13px; }

.age-gate { position: fixed; inset: 0; background: rgba(19,9,29,.92); z-index: 99999; display: none; align-items: center; justify-content: center; padding: 20px; }
.age-gate.is-active { display: flex; }
.age-card { width: min(520px,100%); background: #fff; border-radius: 30px; padding: 34px; text-align: center; box-shadow: 0 30px 80px rgba(0,0,0,.3); }
.age-card h2 { margin: 0 0 8px; font-size: 34px; letter-spacing: -.04em; }
.age-card p { color: var(--sn-muted); }
.age-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.age-actions .leave { background: #eee !important; color: var(--sn-text) !important; box-shadow: none; }

.woocommerce div.product { background: var(--sn-cream); padding: 60px 0; }
.woocommerce div.product div.images img { border-radius: 28px; background: #fff; }
.woocommerce div.product .product_title { font-size: clamp(36px, 5vw, 60px); line-height: 1; letter-spacing: -.04em; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--sn-pink-dark); font-size: 28px; font-weight: 900; }
.woocommerce-tabs, .related.products, .upsells.products { width: min(var(--sn-max), calc(100% - 40px)); margin: 40px auto 0; }
.woocommerce table.shop_table, .woocommerce-cart-form, .cart-collaterals .cart_totals, .woocommerce-checkout-review-order { background: #fff; border-radius: 24px; overflow: hidden; box-shadow: var(--sn-shadow); border: 0 !important; padding: 18px; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select, .select2-container--default .select2-selection--single { border: 1px solid var(--sn-border); border-radius: 14px; min-height: 48px; padding: 10px 12px; }

.page-content, .entry-content { background: var(--sn-cream); }
.default-page { padding: 70px 0; background: var(--sn-cream); min-height: 55vh; }
.default-page .sn-container { background: #fff; border-radius: 28px; padding: 34px; box-shadow: var(--sn-shadow); }

@media (max-width: 900px) {
  .mobile-menu-toggle { display: inline-flex; justify-content: flex-start; }
  .header-inner { grid-template-columns: auto 1fr auto; height: 68px; }
  .header-left .main-nav { display: none; position: absolute; left: 20px; right: 20px; top: 78px; background: #fff; border-radius: 20px; padding: 18px; box-shadow: var(--sn-shadow); }
  .main-nav.is-open { display: block; }
  .main-nav ul { display: grid; gap: 12px; }
  .header-link.shop { display: none; }
  .hero { min-height: auto; padding: 42px 0 64px; }
  .hero:before { top: 275px; }
  .hero:after { top: 330px; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 28px; }
  .hero-copy { padding-top: 170px; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-logo-card { order: -1; width: min(330px, 88vw); padding: 24px; }
  .trust-grid, .category-grid, .woocommerce ul.products, .footer-grid { grid-template-columns: 1fr 1fr; }
  .feature-band, .newsletter-inner { grid-template-columns: 1fr; }
  .newsletter form { min-width: 0; }
}
@media (max-width: 600px) {
  .sn-container { width: min(100% - 28px, var(--sn-max)); }
  .site-logo img { width: 160px; }
  .cart-link span.label { display: none; }
  .hero h1 { font-size: 42px; }
  .hero-copy { padding-top: 120px; }
  .hero:before { top: 240px; height: 190px; }
  .hero:after { top: 290px; height: 190px; }
  .trust-grid, .category-grid, .woocommerce ul.products, .footer-grid { grid-template-columns: 1fr !important; }
  .section { padding: 58px 0; }
  .feature-band { padding: 28px 20px; border-radius: 28px; }
  .footer-bottom { flex-direction: column; }
  .newsletter form { border-radius: 22px; flex-direction: column; }
  .newsletter input[type=email] { min-height: 46px; }
}
