/*
Theme Name: SV Storefront
Description: DailyObjects-style storefront for a single-vendor WooCommerce shop.
Version: 2.0.0
Text Domain: sv-storefront
*/

* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, sans-serif; color: #222; background: #fff; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.announce { background: #f2c94c; text-align: center; font-size: .85rem; padding: 6px; }
.site-header { background: #fff; border-bottom: 1px solid #eee; position: sticky; top: 0; z-index: 50; }
.head-row { display: flex; align-items: center; gap: 24px; padding: 12px 16px; flex-wrap: wrap; }
.site-title { font-size: 1.5rem; font-weight: 800; margin: 0; letter-spacing: 1px; }
height: 40px; width: auto; max-width: 180px; object-fit: contain; }
.site-title .custom-logo-link { display: block; line-height: 0; }
.site-title img.custom-logo, .head-row img.custom-logo, .custom-logo-link img { display: block; height: 48px !important; width: 150px !important; max-width: 150px !important; object-fit: contain; }
.custom-logo-link { display: block; line-height: 0; flex: 0 0 auto; }
.sv-search { flex: 1; min-width: 220px; }
.sv-search input[type=search] { width: 100%; padding: 10px 14px; border: 1px solid #ddd; border-radius: 24px; }
.head-links a { margin-left: 16px; font-weight: 600; }
.cat-nav { border-top: 1px solid #f0f0f0; }
.cat-nav .container { display: flex; gap: 24px; flex-wrap: wrap; }
.cat-item { position: relative; padding: 10px 0; }
.cat-item > a { font-weight: 600; font-size: .95rem; }
.sale-link { color: #d62828; }
.cat-drop { display: none; position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid #eee; box-shadow: 0 6px 16px rgba(0,0,0,.08); min-width: 200px; padding: 8px 0; }
.cat-drop a { display: block; padding: 8px 16px; }
.cat-drop a:hover { background: #f7f7f7; }
.cat-item:hover .cat-drop { display: block; }
.hero { background: linear-gradient(135deg, #111, #333); color: #fff; padding: 80px 16px; text-align: center; }
.hero h1 { font-size: 2.4rem; margin: 0 0 8px; }
.hero .btn { display: inline-block; background: #f2c94c; color: #111; padding: 12px 32px; border-radius: 4px; font-weight: 700; margin-top: 16px; }
.usp { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); background: #f7f7f7; text-align: center; padding: 16px; gap: 8px; font-weight: 600; font-size: .9rem; }
.category-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; padding: 16px 0 32px; }
.category-list a { background: #f7f7f7; border-radius: 8px; padding: 16px; text-align: center; font-weight: 700; display: block; }
.category-list img { width: 100%; height: auto; border-radius: 6px; }
.site-main { padding: 16px 0; }
h2 { margin: 32px 0 12px; }
.woocommerce ul.products li.product { position: relative; }
.woocommerce span.onsale { background: #d62828; border-radius: 3px; min-height: 0; line-height: 1; padding: 6px 8px; }
.sv-wish { position: absolute; top: 8px; right: 8px; background: #fff; border: 0; border-radius: 50%; width: 34px; height: 34px; font-size: 1.1rem; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.sv-wish.active { color: #d62828; }
.sv-note { background: #eef7ee; padding: 10px 14px; border-radius: 4px; }
.woocommerce ul.products li.product { background: #fff; border: 1px solid #f0f0f0; border-radius: 10px; padding: 12px; transition: box-shadow .2s, transform .2s; }
.woocommerce ul.products li.product:hover { box-shadow: 0 8px 24px rgba(0,0,0,.10); transform: translateY(-3px); }
.woocommerce ul.products li.product img { border-radius: 8px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: .95rem; font-weight: 600; }
.woocommerce ul.products li.product .price { font-weight: 700; }
.woocommerce ul.products li.product .price del { color: #999; font-weight: 400; }
.woocommerce ul.products li.product .button { width: 100%; text-align: center; background: #111; color: #fff; border-radius: 6px; }
.sv-slider { position: relative; overflow: hidden; margin: 0 -16px; }
.sv-slide { display: none; padding: 90px 16px; text-align: center; color: #fff; }
.sv-slide.active { display: block; }
.sv-slide h1 { font-size: 2.6rem; margin: 0 0 8px; }
.sv-slide .btn { display: inline-block; background: #f2c94c; color: #111; padding: 12px 32px; border-radius: 4px; font-weight: 700; margin-top: 16px; }
.sv-slide.s1 { background: linear-gradient(135deg, #111, #3a3a3a); }
.sv-slide.s2 { background: linear-gradient(135deg, #b5179e, #7209b7); }
.sv-slide.s3 { background: linear-gradient(135deg, #0077b6, #023e8a); }
.sv-slider .prev, .sv-slider .next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.25); color: #fff; border: 0; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; }
.sv-slider .prev { left: 16px; }
.sv-slider .next { right: 16px; }
.sv-slider-img .sv-slide { padding: 0; }
max-height: 70vh; object-fit: cover; object-position: center; }
.sv-slide { animation: svfade .6s; }
@keyframes svfade { from { opacity: 0; } to { opacity: 1; } }
.sv-hero-text { position: absolute; left: 6%; bottom: 12%; max-width: 40%; text-align: left; color: #111; z-index: 2; }
.sv-eyebrow { display: block; font-family: 'Poppins', sans-serif; font-weight: 500; font-size: .8rem; letter-spacing: .25em; text-transform: uppercase; color: #d9531e; margin-bottom: 6px; }
font-size: 2.6rem; line-height: 1.1; margin: 0 0 14px; text-transform: uppercase; letter-spacing: .02em; }
.sv-hero-text .btn { display: inline-block; background: #111; color: #fff; padding: 11px 28px; border-radius: 30px; font-family: 'Poppins', sans-serif; font-weight: 800; }
@media (max-width: 700px) { .sv-hero-title { font-size: 1.2rem; } .sv-hero-text { max-width: 90%; bottom: 6%; padding: 12px 16px; } }
.woocommerce ul.products li.product a img.sv-hover-img { position: absolute; top: 12px; left: 12px; width: calc(100% - 24px); opacity: 0; transition: opacity .25s; margin: 0; }
.woocommerce ul.products li.product:hover a img.sv-hover-img { opacity: 1; }
body { font-family: 'Poppins', system-ui, sans-serif; }
.site-header { background: #fff; border-bottom: 1px solid #eee; position: sticky; top: 0; z-index: 50; }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 10px 32px; max-width: none; flex-wrap: nowrap; }
.head-row .cat-nav { display: flex; align-items: center; gap: 28px; border: 0; flex: 1; justify-content: center; }
.cat-link { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.cat-thumb img { display: block; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: #f3f0ea; }
.cat-link:hover .cat-label { text-decoration: underline; text-underline-offset: 4px; }
.head-icons { display: flex; align-items: center; gap: 18px; }
.icon-btn { background: none; border: 0; padding: 0; cursor: pointer; color: #111; position: relative; display: inline-flex; align-items: center; font-size: .8rem; }
.icon-btn .sv-cart-count { position: absolute; top: -8px; right: -10px; background: #111; color: #fff; border-radius: 50%; font-size: .65rem; min-width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; }
.sv-search { display: none; padding: 10px 32px 14px; }
.sv-search.open { display: block; }
@media (max-width: 1000px) { .head-row .cat-nav { display: none; } }
.head-row { height: 84px; }
.head-row .cat-nav { gap: 34px; }
.cat-link { font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif; font-weight: 600; font-size: 1.15rem; letter-spacing: .02em; }
.cat-link:hover .cat-label { text-decoration: none; border-bottom: 2px solid #111; }
.sv-slider { width: 100vw; margin-left: calc(50% - 50vw); margin-right: 0; margin-top: -16px; }
.sv-slider .sv-slide { position: relative; }
.sv-slider .prev, .sv-slider .next { background: rgba(60,60,60,.55); width: 40px; height: 40px; font-size: 14px; z-index: 3; }
.sv-slider .prev { left: 24px; }
.sv-slider .next { right: 24px; }
.sv-hero-text { left: 5%; bottom: 8%; max-width: 60%; }
.sv-hero-title { font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif; font-weight: 700; font-size: 3.2rem; letter-spacing: 0; margin: 0 0 4px; }
.sv-hero-sub { font-size: 1.1rem; margin: 0 0 20px; }
.sv-hero-text .btn { border-radius: 0; padding: 12px 28px; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1rem; letter-spacing: .04em; text-transform: uppercase; }
.sv-dots { position: absolute; right: 40px; bottom: 28px; display: flex; gap: 8px; z-index: 3; }
.sv-dots span { width: 8px; height: 8px; border-radius: 4px; background: rgba(0,0,0,.25); cursor: pointer; transition: width .3s, background .3s; }
.sv-dots span.active { width: 44px; background: #111; }
.sv-promos { position: relative; display: block; margin: 8px 0 24px; border-radius: 6px; overflow: hidden; background: #f4f4f2; }
.sv-promo { display: none; position: relative; overflow: hidden; background: #eee; }
.sv-promo.active { display: block; animation: svfade .6s; }
.sv-promo img { display: block; width: 100%; height: auto; max-height: 460px; object-fit: cover; }
.sv-promo-dots { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 8px; z-index: 3; }
.sv-promo-dots span { width: 8px; height: 8px; border-radius: 4px; background: rgba(0,0,0,.25); cursor: pointer; transition: width .3s, background .3s; }
.sv-promo-dots span.active { width: 32px; background: #111; }
.sv-promo-label { position: absolute; left: 24px; bottom: 24px; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 2rem; text-transform: uppercase; color: #111; }
.sv-promo-label em { display: block; font-family: 'Poppins', sans-serif; font-style: normal; font-weight: 500; font-size: .85rem; text-transform: none; }
.site-footer { background: #111; color: #aaa; padding: 24px 0; text-align: center; margin-top: 40px; }

/* Product listing pages */
.sv-plp { padding: 8px 0 32px; }
.sv-plp-title { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; text-transform: uppercase; font-size: 2.4rem; text-align: center; margin: 24px 0 18px; letter-spacing: .5px; }
.sv-plp-chips { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin-bottom: 22px; }
.sv-plp-chips a { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 92px; color: #111; text-decoration: none; }
.sv-plp-chips .chip-img { width: 76px; height: 76px; border-radius: 50%; overflow: hidden; background: #f1f1ef; display: flex; align-items: center; justify-content: center; border: 2px solid transparent; font-weight: 600; }
.sv-plp-chips .chip-img img { width: 100%; height: 100%; object-fit: cover; }
.sv-plp-chips a.active .chip-img { border-color: #111; }
.sv-plp-chips .chip-name { font-size: .8rem; font-weight: 500; text-align: center; }
.sv-plp-chips .chip-all + .chip-name { display: none; }
.sv-plp-bar { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #eee; border-bottom: 1px solid #eee; padding: 10px 0; margin-bottom: 20px; }
.sv-plp-bar .woocommerce-result-count, .sv-plp-bar .woocommerce-ordering { margin: 0; float: none; }
.sv-plp-bar select { padding: 8px 12px; border: 1px solid #ddd; border-radius: 4px; font-family: inherit; }
.sv-plp ul.products { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 0; padding: 0; }
.sv-plp ul.products::before, .sv-plp ul.products::after { display: none !important; }
.sv-plp ul.products li.product { width: auto !important; float: none !important; margin: 0 !important; border: 0; padding: 0; background: transparent; }
.sv-plp ul.products li.product a img { background: #f4f4f2; border-radius: 6px; aspect-ratio: 1/1; object-fit: cover; }
.sv-plp ul.products li.product .woocommerce-loop-product__title { font-size: .9rem; font-weight: 500; padding: 8px 0 2px; }
.sv-plp ul.products li.product .button { background: transparent; color: #111; border: 1px solid #111; }
.sv-plp ul.products li.product .button:hover { background: #111; color: #fff; }
.sv-plp-desc { margin-top: 40px; padding-top: 24px; border-top: 1px solid #eee; color: #555; font-size: .9rem; line-height: 1.7; }
@media (max-width: 900px) { .sv-plp ul.products { grid-template-columns: repeat(2, 1fr); } }
