/*
Theme Name: SorvenBeauty
Theme URI: https://new.sorvenbeauty.com
Author: SorvenBeauty
Description: A clean beauty storefront inspired by the KalaMango shopping experience.
Version: 1.0.0
Text Domain: sorvenbeauty
*/

:root {
    --ink: #171717;
    --muted: #6c6a67;
    --line: #e7e2dd;
    --soft: #f8f6f3;
    --accent: #7a2430;
    --gold: #a37b26;
    --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font-family: Arial, Helvetica, sans-serif; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }
.announcement { background: var(--ink); color: #fff; text-align: center; font-size: 12px; letter-spacing: .08em; padding: 9px 16px; }
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.header-main { padding: 24px 0 18px; }
.header-inner { display: grid; grid-template-columns: 220px minmax(260px, 1fr) 230px; gap: 28px; align-items: center; }
.brand-logo img { width: 178px; height: auto; }
.search-form { position: relative; }
.search-form input { width: 100%; border: 0; border-bottom: 1px solid #aaa; padding: 12px 38px 11px 4px; font-size: 14px; outline: 0; }
.search-form button { position: absolute; right: 0; top: 7px; border: 0; background: transparent; font-size: 20px; cursor: pointer; }
.header-actions { display: flex; justify-content: flex-end; gap: 18px; font-size: 13px; align-items: center; }
.header-actions a { display: inline-flex; gap: 6px; align-items: center; }
.header-actions a:hover, .primary-link:hover { color: var(--accent); }
.header-menu { border-top: 1px solid #f2efec; }
.main-nav { display: flex; gap: 34px; align-items: center; min-height: 48px; font-size: 13px; font-weight: 700; }
.main-nav a { position: relative; }
.main-nav a:hover::after { content: ''; position: absolute; height: 2px; background: var(--accent); left: 0; right: 0; bottom: -8px; }
.hero { position: relative; margin-top: 24px; overflow: hidden; background: #e9e1db; }
.hero img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.hero::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.16); pointer-events: none; }
.hero-copy { position: absolute; z-index: 1; top: 50%; left: 8%; transform: translateY(-50%); color: #fff; max-width: 430px; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: 12px; font-weight: 700; }
.hero h1 { margin: 12px 0 8px; font: 500 clamp(34px, 5vw, 72px)/1.04 Georgia, 'Times New Roman', serif; }
.hero p { font-size: 16px; margin: 0 0 24px; }
.button { display: inline-block; background: #fff; color: var(--ink); padding: 12px 22px; font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.button.dark { background: var(--ink); color: #fff; }
.section { padding: 58px 0 12px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 23px; }
.section-heading h2 { margin: 0; font: 500 30px/1.1 Georgia, 'Times New Roman', serif; }
.section-heading p { margin: 7px 0 0; color: var(--muted); font-size: 14px; }
.text-link { text-transform: uppercase; letter-spacing: .1em; font-size: 11px; font-weight: 700; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 18px; }
.product-card { min-width: 0; }
.product-image { position: relative; background: var(--soft); aspect-ratio: 1 / 1.12; overflow: hidden; }
.product-image img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .25s ease; }
.product-card:hover .product-image img { transform: scale(1.04); }
.product-badge { position: absolute; top: 12px; left: 12px; background: var(--accent); color: #fff; padding: 4px 8px; font-size: 10px; letter-spacing: .06em; }
.product-info { padding-top: 12px; }
.product-brand { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.product-title { margin: 5px 0 8px; min-height: 42px; font-size: 14px; line-height: 1.45; }
.product-price { font-weight: 700; font-size: 14px; }
.product-price del { color: #999; font-weight: 400; margin-left: 5px; }
.product-card .add_to_cart_button { display: inline-block; margin-top: 12px; border: 1px solid var(--ink); padding: 8px 12px; background: #fff; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.product-card .add_to_cart_button:hover { background: var(--ink); color: #fff; }
.promo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.promo-card { background: #cea4e5; }
.promo-card:nth-child(2) { background: #8c2327; color: #fff; }
.promo-card:nth-child(3) { background: #5e3c91; color: #fff; }
.promo-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.promo-copy { padding: 20px 22px 24px; min-height: 156px; }
.promo-copy h3 { margin: 0 0 7px; font: 500 25px/1.12 Georgia, 'Times New Roman', serif; }
.promo-copy p { margin: 0 0 16px; font-size: 13px; }
.promo-copy span { font-size: 11px; font-weight: 700; letter-spacing: .1em; }
.middle-banner { position: relative; margin-top: 54px; color: #fff; overflow: hidden; }
.middle-banner img { width: 100%; aspect-ratio: 2.82 / 1; object-fit: cover; }
.middle-banner::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.2); }
.middle-banner-copy { position: absolute; z-index: 1; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.middle-banner h2 { margin: 8px 0 14px; font: 500 42px/1.1 Georgia, 'Times New Roman', serif; }
.benefits { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 60px; padding: 23px 0; }
.benefit-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; text-align: center; }
.benefit-row strong { display: block; font-size: 13px; }
.benefit-row span { color: var(--muted); font-size: 12px; }
.site-footer { background: #f5f2ef; margin-top: 70px; padding: 42px 0 22px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.site-footer h3 { margin: 0 0 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; }
.site-footer p, .site-footer a { color: var(--muted); font-size: 13px; }
.footer-links { display: grid; gap: 7px; }
.copyright { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 16px; color: var(--muted); font-size: 12px; }
.store-content { padding: 50px 0; min-height: 480px; }
.woocommerce .site-main, .woocommerce-page .site-main { padding: 0; }
.woocommerce ul.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 18px; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { float: none; width: auto; margin: 0; }
.woocommerce div.product div.images img { background: var(--soft); }
@media (max-width: 850px) {
    .header-inner { grid-template-columns: 1fr; gap: 15px; }
    .brand-logo img { width: 150px; }
    .header-actions { justify-content: flex-start; }
    .main-nav { gap: 20px; overflow-x: auto; white-space: nowrap; }
    .product-grid, .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); }
    .promo-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero img { aspect-ratio: 1 / 1.08; }
    .hero-copy { left: 7%; right: 7%; }
    .middle-banner h2 { font-size: 30px; }
}
@media (max-width: 520px) {
    .container { width: min(calc(100% - 28px), var(--max)); }
    .section { padding-top: 42px; }
    .section-heading { display: block; }
    .section-heading .text-link { display: inline-block; margin-top: 14px; }
    .benefit-row { grid-template-columns: 1fr; gap: 15px; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 42px; }
}
