/*
Theme Name: Aromivra
Theme URI: https://aromivra.com/
Author: Aromivra
Author URI: https://aromivra.com/
Description: Marketplace-style theme designed for Aromivra: prominent search, category navigation, product cards and secure payment. WooCommerce compatible.
Version: 1.1.1
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aromivra
*/

/* ============ TOKENS ============ */
:root{
  --bg:#f3f5f6; --surface:#ffffff; --surface-2:#e9edef;
  --ink:#182326; --muted:#55666c; --line:#d3dade;
  --brand:#0b5961; --brand-2:#083f45; --brand-soft:#e3f0f1;
  --accent:#f4ad32; --accent-ink:#241700; --accent-soft:#fdf3df;
  --success:#21724d; --danger:#b3261e;
  --shadow:0 10px 30px rgba(21,37,41,.10);
  --radius:13px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--ink);font-family:'DM Sans',system-ui,-apple-system,'Segoe UI',sans-serif;line-height:1.5;-webkit-font-smoothing:antialiased}
h1,h2,h3,.serif{font-family:'Literata',Georgia,serif}
img{max-width:100%;height:auto}
a{color:var(--brand)}
button,input,select,textarea{font:inherit}
::selection{background:var(--accent);color:var(--accent-ink)}

/* ============ LAYOUT ============ */
.arom-wrap{max-width:1280px;margin:0 auto;padding:0 24px}
.arom-main{padding:26px 0 40px}

/* ============ TOPBAR ============ */
.topbar{background:var(--surface);border-bottom:1px solid var(--line)}
.topbar-inner{max-width:1280px;margin:0 auto;padding:12px 24px;display:grid;grid-template-columns:auto minmax(0,1fr) auto auto auto;gap:14px;align-items:center}
.logo{text-decoration:none;display:flex;align-items:center;gap:10px;min-width:0}
.logo img,.custom-logo{max-height:44px;width:auto;height:auto;display:block}
.logo-mark{width:38px;height:38px;border-radius:10px;background:var(--brand-2);color:#fff;display:grid;place-items:center;font-family:'Literata',serif;font-weight:750;font-size:22px}
.logo-name{font-family:'Literata',serif;font-weight:750;font-size:24px;color:var(--ink);letter-spacing:.5px;white-space:nowrap}
.logo-name span{color:var(--brand)}
.search{display:flex;min-width:0;border:2px solid var(--brand);border-radius:10px;overflow:hidden;background:var(--bg)}
.search>svg{width:20px;min-width:20px;margin:0 4px 0 12px;color:var(--muted);align-self:center}
.search select{border:0;background:transparent;color:var(--muted);font-size:13px;padding:0 4px;max-width:130px;outline:none;cursor:pointer}
.search input{min-width:0;flex:1;border:0;background:transparent;color:var(--ink);padding:11px 0 11px 8px;outline:none}
.search input::placeholder{color:var(--muted)}
.search button{border:0;background:var(--brand);color:#fff;padding:0 22px;cursor:pointer;font-weight:700}
.search button:hover{background:var(--brand-2)}
.hdr-link{display:flex;flex-direction:column;justify-content:center;text-decoration:none;padding:6px 10px;border-radius:8px;line-height:1.3;white-space:nowrap}
.hdr-link:hover{background:var(--brand-soft)}
.hdr-link .hi{font-size:12px;color:var(--muted)}
.hdr-link .strong{font-size:14px;font-weight:800;color:var(--ink)}
.cart-button{border:0;border-radius:9px;background:var(--accent);color:var(--accent-ink);padding:11px 16px;font-weight:800;display:inline-flex;gap:9px;align-items:center;cursor:pointer;white-space:nowrap;text-decoration:none}
.cart-button:hover{filter:brightness(.96)}
.cart-button svg{width:21px;height:21px}
.cart-button .count{background:var(--accent-ink);color:var(--accent);min-width:22px;height:22px;padding:0 6px;border-radius:999px;display:grid;place-items:center;font-size:12px;font-weight:800}
.category-nav{max-width:1280px;margin:0 auto;padding:0 24px 11px;display:flex;gap:8px;flex-wrap:wrap}
.category-nav a{border:1px solid var(--line);background:transparent;border-radius:999px;padding:7px 14px;font-size:14px;cursor:pointer;text-decoration:none;color:var(--ink)}
.category-nav a:hover{border-color:var(--brand);color:var(--brand)}
.category-nav a.active{background:var(--brand);border-color:var(--brand);color:#fff;font-weight:700}

/* ============ HERO ============ */
.hero{background:linear-gradient(120deg,var(--brand-2) 55%,#0a4a50 100%);color:#fff;min-height:260px;border-radius:18px;display:grid;grid-template-columns:1.1fr .9fr;overflow:hidden;box-shadow:var(--shadow);margin-bottom:8px}
.hero-copy{padding:42px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start}
.hero-copy .kicker{display:inline-block;background:rgba(244,173,50,.16);color:var(--accent);font-weight:800;font-size:12px;letter-spacing:1.5px;text-transform:uppercase;padding:6px 12px;border-radius:999px;margin-bottom:14px}
.hero h1{font-size:clamp(30px,3.6vw,46px);line-height:1.08;margin:0 0 14px;max-width:620px;font-weight:650}
.hero p{font-size:16px;max-width:540px;margin:0 0 24px;color:#cfe3e4}
.hero .cta{background:var(--accent);color:var(--accent-ink);font-weight:800;text-decoration:none;padding:13px 24px;border-radius:9px;display:inline-block}
.hero .cta:hover{filter:brightness(.95)}
.hero-art{position:relative;min-height:260px;overflow:hidden}
.hero-art img{width:100%;height:100%;object-fit:cover;display:block}
.hero-art:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,var(--brand-2) 0%,transparent 32%)}

/* ============ SECTION HEADS ============ */
.section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin:36px 0 18px}
.section-head h2{font-size:27px;margin:0;font-weight:650}
.section-head p{margin:0;color:var(--muted);font-size:14px}
.section-head a{font-size:14px;font-weight:700}

/* ============ CATEGORY TILES ============ */
.cat-tiles{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}
.cat-tile{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;text-decoration:none;color:var(--ink);display:block;transition:transform .15s,box-shadow .15s}
.cat-tile:hover{transform:translateY(-3px);box-shadow:var(--shadow)}
.cat-tile .thumb{aspect-ratio:1.4;background:linear-gradient(135deg,var(--brand-soft),var(--surface-2));display:grid;place-items:center;overflow:hidden}
.cat-tile .thumb img{width:100%;height:100%;object-fit:cover}
.cat-tile .thumb .letter{font-family:'Literata',serif;font-size:44px;font-weight:750;color:var(--brand)}
.cat-tile .name{padding:12px 14px;font-weight:700;font-size:15px;text-align:center}

/* ============ TRUST BADGES ============ */
.trust{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:36px 0 0}
.trust-item{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:20px 22px;display:flex;gap:14px;align-items:flex-start}
.trust-item .icon{width:44px;height:44px;min-width:44px;border-radius:12px;background:var(--brand-soft);color:var(--brand);display:grid;place-items:center}
.trust-item .icon svg{width:24px;height:24px}
.trust-item h3{margin:0 0 4px;font-size:16px;font-family:'DM Sans',sans-serif;font-weight:800}
.trust-item p{margin:0;color:var(--muted);font-size:13px}

/* ============ PAYMENTS STRIP ============ */
.payments{margin:36px 0 8px;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:22px 26px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.payments h2{font-size:19px;margin:0 0 5px;font-family:'DM Sans',sans-serif;font-weight:800}
.payments p{margin:0;color:var(--muted);font-size:14px}
.paypal-mark{font-weight:800;font-style:italic;color:#0877be;background:#fff;border:1px solid #ccd6dc;border-radius:8px;padding:11px 18px;white-space:nowrap;font-size:17px}
.paypal-mark b{color:#063c78}
.secure-mark{display:inline-flex;align-items:center;gap:8px;font-weight:800;color:var(--brand-2);background:#fff;border:1px solid var(--line);border-radius:8px;padding:11px 18px;white-space:nowrap;font-size:15px}
.secure-mark svg{width:18px;height:18px}

/* ============ CONTACT ============ */
.contact-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:28px;align-items:start;margin-top:6px}
.contact-info .kicker{display:inline-block;background:rgba(244,173,50,.16);color:var(--accent);font-weight:800;font-size:12px;letter-spacing:1.5px;text-transform:uppercase;padding:6px 12px;border-radius:999px;margin-bottom:14px}
.contact-info h1{font-size:clamp(28px,3.2vw,40px);margin:0 0 12px}
.contact-info p{color:var(--muted);margin:0 0 22px;max-width:420px}
.contact-direct{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:18px 20px;max-width:420px}
.contact-direct span{display:block;font-size:12px;text-transform:uppercase;letter-spacing:1px;color:var(--muted);margin-bottom:6px}
.contact-direct a{font-weight:800;font-size:18px;color:var(--brand);text-decoration:none}
.contact-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:28px;box-shadow:var(--shadow)}
.form-notice{border-radius:9px;padding:12px 16px;margin-bottom:18px;font-size:14px;font-weight:600}
.form-notice.success{background:#e6f4ec;color:#14532d;border:1px solid #bfe3cd}
.form-notice.error{background:#fdecea;color:#8f1d18;border:1px solid #f5c6c0}
.contact-form .hp-field{position:absolute;left:-9999px;opacity:0;height:0;width:0}
.contact-form .form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.contact-form label{display:block;font-size:14px;font-weight:700;margin-bottom:14px}
.contact-form input[type=text],.contact-form input[type=email],.contact-form select,.contact-form textarea{width:100%;margin-top:6px;border:1px solid var(--line);border-radius:9px;padding:11px 13px;font-size:15px;background:#fff;color:var(--ink)}
.contact-form input:focus,.contact-form select:focus,.contact-form textarea:focus{outline:2px solid var(--brand);border-color:var(--brand)}
.contact-form textarea{resize:vertical}
.contact-form .cta{border:0;cursor:pointer;font-size:16px}

/* ============ WOOCOMMERCE: PRODUCT GRID ============ */
.woocommerce ul.products{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin:0;padding:0;list-style:none}
.woocommerce ul.products:before,.woocommerce ul.products:after{display:none}
.woocommerce ul.products li.product{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column;margin:0!important;padding:0!important;width:auto!important;float:none!important;transition:transform .15s,box-shadow .15s;position:relative}
.woocommerce ul.products li.product:hover{transform:translateY(-3px);box-shadow:var(--shadow)}
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link{text-decoration:none;color:var(--ink);display:flex;flex-direction:column;flex:1}
.woocommerce ul.products li.product img{width:100%;aspect-ratio:1.05;object-fit:cover;margin:0!important}
.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:16px;line-height:1.35;margin:0;padding:14px 15px 6px;font-family:'DM Sans',sans-serif;font-weight:700}
.woocommerce ul.products li.product .star-rating{margin:0 15px 8px;color:#d98400;font-size:13px}
.woocommerce ul.products li.product .price{display:block;padding:0 15px;margin-top:auto;font-weight:800;font-size:21px;color:var(--ink)}
.woocommerce ul.products li.product .price del{font-size:13px;color:var(--muted);font-weight:400;margin-right:6px}
.woocommerce ul.products li.product .price ins{text-decoration:none}
.woocommerce ul.products li.product .button{margin:12px 15px 15px!important;width:calc(100% - 30px);border:0;border-radius:8px;background:var(--accent)!important;color:var(--accent-ink)!important;font-weight:800;padding:11px!important;cursor:pointer;text-align:center;font-size:15px}
.woocommerce ul.products li.product .button:hover{filter:brightness(.95)}
.woocommerce ul.products li.product .button.added{background:var(--success)!important;color:#fff!important}
.woocommerce span.onsale{position:absolute;left:10px;top:10px;z-index:2;background:var(--surface);color:var(--ink);border-radius:6px;padding:5px 9px;font-size:12px;font-weight:800;box-shadow:0 2px 10px rgba(0,0,0,.12);min-height:0;min-width:0;line-height:1.4;border:1px solid var(--line)}
.woocommerce .added_to_cart{display:block;text-align:center;font-size:13px;margin:-6px 15px 12px;font-weight:700}

/* ============ WOOCOMMERCE: SINGLE PRODUCT ============ */
.woocommerce div.product{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:30px;box-shadow:var(--shadow)}
.woocommerce div.product .product_title{font-size:32px;margin:0 0 10px;font-weight:650}
.woocommerce div.product p.price{font-size:28px;font-weight:800;color:var(--ink)}
.woocommerce div.product p.price del{font-size:16px;color:var(--muted);margin-right:8px}
.woocommerce div.product p.price ins{text-decoration:none}
.woocommerce div.product form.cart .button{background:var(--accent)!important;color:var(--accent-ink)!important;border-radius:9px;padding:14px 30px!important;font-weight:800;font-size:16px}
.woocommerce div.product form.cart .qty input{border:1px solid var(--line);border-radius:9px;padding:12px}
.woocommerce .woocommerce-breadcrumb{margin-bottom:18px;color:var(--muted);font-size:13px}
.woocommerce .woocommerce-breadcrumb a{color:var(--brand);text-decoration:none}
.woocommerce div.product .woocommerce-tabs{margin-top:26px}
.woocommerce div.product .woocommerce-tabs ul.tabs li{background:var(--surface-2);border-color:var(--line)}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active{background:var(--surface)}

/* ============ WOOCOMMERCE: CART & CHECKOUT ============ */
.woocommerce-cart .woocommerce,.woocommerce-checkout .woocommerce{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:28px;box-shadow:var(--shadow)}
.woocommerce table.shop_table{border:1px solid var(--line);border-radius:10px;overflow:hidden}
.woocommerce table.shop_table th{background:var(--surface-2);font-weight:800}
.woocommerce #respond input#submit.alt,.woocommerce a.button.alt,.woocommerce button.button.alt,.woocommerce input.button.alt{background:var(--accent)!important;color:var(--accent-ink)!important;font-weight:800;border-radius:9px;padding:13px 26px!important}
.woocommerce #respond input#submit.alt:hover,.woocommerce a.button.alt:hover,.woocommerce button.button.alt:hover,.woocommerce input.button.alt:hover{filter:brightness(.95)}
.woocommerce form .form-row input.input-text,.woocommerce form .form-row select,.woocommerce form .form-row textarea{border:1px solid var(--line);border-radius:8px;padding:11px 12px;background:#fff}
.woocommerce form .form-row input.input-text:focus,.woocommerce form .form-row select:focus{outline:none;border-color:var(--brand);box-shadow:0 0 0 3px rgba(11,89,97,.15)}
.woocommerce .cart-collaterals .cart_totals{background:var(--surface-2);border-radius:12px;padding:22px}
.woocommerce-message,.woocommerce-info,.woocommerce-error{border-radius:10px}

/* ============ ARCHIVE / MISC ============ */
.woocommerce .woocommerce-ordering select,.woocommerce .woocommerce-result-count{font-size:14px}
.woocommerce nav.woocommerce-pagination ul{border:0}
.woocommerce nav.woocommerce-pagination ul li{border:1px solid var(--line);border-radius:8px;margin:0 4px;overflow:hidden}
.woocommerce nav.woocommerce-pagination ul li a,.woocommerce nav.woocommerce-pagination ul li span{padding:10px 14px}
.woocommerce nav.woocommerce-pagination ul li span.current{background:var(--brand);color:#fff}
.term-description{color:var(--muted);margin:0 0 18px}
.page-title{font-size:32px;margin:0 0 6px;font-weight:650}

/* ============ CONTENT PAGES ============ */
.content-card{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:34px;box-shadow:var(--shadow)}
.content-card h1{font-size:32px;margin:0 0 16px;font-weight:650}
.content-card p{color:var(--ink)}

/* ============ FOOTER ============ */
.site-footer{background:var(--brand-2);color:#d7e6e7;margin-top:50px}
.footer-grid{max-width:1280px;margin:0 auto;padding:44px 24px 30px;display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:30px}
.site-footer h4{color:#fff;font-size:15px;margin:0 0 14px;font-family:'DM Sans',sans-serif;font-weight:800;letter-spacing:.4px}
.site-footer a{color:#b9d4d5;text-decoration:none;font-size:14px}
.site-footer a:hover{color:#fff}
.site-footer ul{list-style:none;margin:0;padding:0;display:grid;gap:9px}
.footer-brand p{font-size:14px;color:#a9c6c7;margin:12px 0 0;max-width:300px}
.footer-brand .logo-name{color:#fff}
.footer-brand .custom-logo{max-height:46px;width:auto}
.footer-bottom{border-top:1px solid rgba(255,255,255,.14)}
.footer-bottom .arom-wrap{display:flex;justify-content:space-between;align-items:center;padding-top:16px;padding-bottom:16px;font-size:13px;color:#9dbfc0}
.pay-badges{display:flex;gap:8px;align-items:center}
.pay-badges span{border:1px solid rgba(255,255,255,.25);border-radius:6px;padding:4px 10px;font-size:12px;font-weight:800}

/* ============ RESPONSIVE ============ */
@media(max-width:1020px){
  .woocommerce ul.products{grid-template-columns:repeat(3,minmax(0,1fr))}
  .cat-tiles{grid-template-columns:repeat(3,minmax(0,1fr))}
  .footer-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:760px){
  .topbar-inner{padding:10px 14px;grid-template-columns:auto 1fr auto;gap:10px}
  .logo-name{font-size:20px}
  .hdr-link{display:none}
  .search{grid-column:1/-1;order:3}
  .search select{max-width:110px}
  .search button{padding:0 14px}
  .cart-button .cart-label{display:none}
  .category-nav{padding:0 14px 10px;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
  .category-nav::-webkit-scrollbar{display:none}
  .category-nav a{flex:0 0 auto}
  .arom-wrap{padding:0 14px}
  .hero{grid-template-columns:1fr;min-height:0}
  .hero-copy{padding:30px 24px}
  .hero-art{min-height:170px}
  .hero-art:after{background:linear-gradient(180deg,var(--brand-2),transparent 40%)}
  .woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
  .cat-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
  .trust{grid-template-columns:1fr}
  .payments{flex-direction:column;align-items:flex-start}
  .footer-grid{grid-template-columns:1fr}
  .footer-bottom .arom-wrap{flex-direction:column;gap:10px}
  .woocommerce div.product{padding:20px}
  .content-card{padding:22px}
  .contact-grid{grid-template-columns:1fr}
  .contact-form .form-row{grid-template-columns:1fr}
  .contact-card{padding:20px}
}
