/*
 * Header + footer in the style of the wholesale reference store (wholesale.superchillstore.com):
 * white header with the logo at the left, a centred two-row text menu and four round icon buttons at the right;
 * footer with a contact / follow / payment strip, the logo + office column, three link columns and the legal text.
 */
:root { --scx-green: #00613c; --scx-lime: #9bc53d; --scx-ink: #1d1d1d; --scx-dim: #8a8a8a; --scx-line: #e8e8e8; }

/* ================= header ================= */
header.scx-head { position: sticky; top: 0; z-index: 999; max-width: none; margin: 0; padding: 0; background: #fff; border-bottom: 1px solid var(--scx-line); font-family: 'Spartan', Arial, sans-serif; }
body.admin-bar header.scx-head { top: 32px; }
@media (max-width: 782px) { body.admin-bar header.scx-head { top: 46px; } }
@media (max-width: 600px) { body.admin-bar header.scx-head { top: 0; } }
.scx-bar { max-width: 1320px; margin: 0 auto; padding: 14px 24px; display: grid; grid-template-columns: 190px minmax(0, 1fr) auto; align-items: center; column-gap: 24px; }
.scx-logo { display: block; }
.scx-logo img { display: block; height: 78px; width: auto; }
.scx-burger { display: none; }

.scx-nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 32px; margin: 0 auto; padding: 0; max-width: 900px; }
.scx-nav li { margin: 0; }
.scx-nav a { display: block; font-size: 14px; line-height: 20px; font-weight: 700; color: var(--scx-green); white-space: nowrap; transition: color .15s; }
.scx-nav a:hover { color: var(--scx-lime); }

.scx-tools { display: flex; align-items: center; gap: 10px; }
.scx-ic { position: relative; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: #f1f1f1; color: #1f3d36; cursor: pointer; transition: filter .15s; }
.scx-ic:hover { filter: brightness(.95); }
.scx-ic svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.scx-ic-user { background: #eef3f1; }
.scx-ic-heart { background: #f6f1dc; }
.scx-ic-bag { background: #f6e3e3; }
.scx-badge { position: absolute; top: -5px; right: -5px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: #f0a030; color: #fff; font: 700 10px/17px 'Spartan', Arial, sans-serif; text-align: center; }
.scx-cartwrap { position: relative; }

.scx-search { display: none; border-top: 1px solid var(--scx-line); background: #fff; padding: 12px 24px; }
.scx-search.open { display: flex; max-width: 1320px; margin: 0 auto; gap: 8px; }
.scx-search input[type=search] { flex: 1; height: 42px; padding: 0 14px; border: 1px solid #ccc; font: 400 14px 'Spartan', Arial, sans-serif; }
.scx-search button { height: 42px; padding: 0 22px; border: 0; background: var(--scx-green); color: #fff; font: 700 13px 'Spartan', Arial, sans-serif; cursor: pointer; }

/* the old header's mobile-only bits must not show here */
header.scx-head .sc-m-burger, header.scx-head .sc-m-cart, header.scx-head .sc-m-search { display: none !important; }

@media (max-width: 1100px) {
	.scx-bar { grid-template-columns: 44px 1fr auto; padding: 8px 14px; }
	.scx-burger { display: flex; grid-column: 1; grid-row: 1; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 10px; background: none; border: 0; cursor: pointer; }
	.scx-burger span { display: block; height: 2px; background: var(--scx-green); }
	.scx-logo { grid-column: 2; grid-row: 1; justify-self: center; }
	.scx-logo img { height: 58px; }
	.scx-tools { grid-column: 3; grid-row: 1; gap: 6px; }
	.scx-ic { width: 32px; height: 32px; }
	.scx-ic-user { display: none; }
	.scx-nav { display: none; }
}

/* ================= footer ================= */
footer.scx-foot { margin: 0; padding: 0; background: #fff; font-family: 'Spartan', Arial, sans-serif; color: var(--scx-ink); border-top: 1px solid var(--scx-line); }
.scx-foot h3, .scx-foot h4 { margin: 0; font-family: inherit; letter-spacing: 1px; text-transform: uppercase; }

.scx-ft-strip { border-bottom: 1px solid var(--scx-line); }
.scx-ft-strip-in { max-width: 1320px; margin: 0 auto; padding: 38px 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px 30px; }
.scx-ft-contact { display: flex; align-items: center; gap: 14px; }
.scx-ft-contact svg { width: 40px; height: 40px; flex: none; fill: none; stroke: #1f3d36; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.scx-ft-contact h4, .scx-ft-follow h4 { font-size: 11px; line-height: 14px; font-weight: 800; color: #111; }
.scx-ft-contact a { display: block; margin-top: 5px; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--scx-lime); }
.scx-ft-contact a.dark { color: #2a2a2a; }
.scx-ft-follow ul { display: flex; gap: 14px; margin: 10px 0 0; padding: 0; }
.scx-ft-follow a { display: block; width: 18px; text-align: center; font-size: 17px; line-height: 18px; color: #d4392f; }
.scx-ft-follow a:hover { color: var(--scx-green); }
.scx-ft-pay { display: flex; align-items: center; gap: 22px; margin: 0; padding: 0; list-style: none; }
.scx-ft-pay li { margin: 0; }
.scx-ft-pay img { display: block; height: 26px; width: auto; }

.scx-ft-main-in { max-width: 1320px; margin: 0 auto; padding: 42px 24px 46px; display: grid; grid-template-columns: 200px 1.25fr 1.2fr 1fr 1.1fr; column-gap: 36px; align-items: start; }
.scx-ft-brand img { display: block; width: 100%; max-width: 200px; height: auto; }
.scx-foot .scx-ft-main h3 { padding-bottom: 20px; font-size: 12px; line-height: 16px; font-weight: 800; color: #111; letter-spacing: 1.5px; }
.scx-ft-office p { margin: 0 0 16px; font-size: 13px; line-height: 23px; color: #111; }
.scx-ft-office p.dim { color: var(--scx-dim); }
.scx-ft-office strong { font-weight: 500; color: #111; }
.scx-ft-office { padding-right: 36px; border-right: 1px solid var(--scx-line); }
.scx-ft-col ul { margin: 0; padding: 0; list-style: none; }
.scx-ft-col li { margin: 0; }
.scx-ft-col a { display: block; padding: 5px 0; font-size: 13px; line-height: 20px; color: var(--scx-dim); transition: color .15s; }
.scx-ft-col a:hover { color: var(--scx-green); }

.scx-ft-legal { border-top: 1px solid var(--scx-line); padding: 18px 24px 60px; text-align: center; font-size: 12px; line-height: 21px; color: #555; }
.scx-ft-legal p { max-width: 1320px; margin: 0 auto 18px; }
.scx-ft-legal p.copy { color: var(--scx-dim); font-size: 13px; margin-bottom: 26px; }
.scx-ft-legal b { color: #111; }

@media (max-width: 1100px) {
	.scx-ft-strip-in { justify-content: center; }
	.scx-ft-main-in { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 30px; }
	.scx-ft-brand { grid-column: 1 / -1; }
	.scx-ft-office { border-right: 0; padding-right: 0; }
}
@media (max-width: 640px) {
	.scx-ft-strip-in { flex-direction: column; align-items: flex-start; }
	.scx-ft-pay { flex-wrap: wrap; }
	.scx-ft-main-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.scx-ft-legal { padding: 18px 16px 50px; text-align: left; }
}
@media (max-width: 420px) { .scx-ft-main-in { grid-template-columns: 1fr; } }

/* ---- header dropdowns (Shop, CBD For Pets) ---- */
.scx-nav ul { gap: 10px 38px; max-width: 760px; }
.scx-nav > ul > li { position: relative; }
.scx-nav a { font-size: 15px; }
.scx-chev { width: 11px; height: 11px; margin-left: 5px; vertical-align: -1px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.scx-nav ul.scx-sub { display: none; position: absolute; left: -22px; top: 100%; z-index: 50; flex-direction: column; flex-wrap: nowrap; gap: 0; min-width: 230px; max-width: none; margin: 14px 0 0; padding: 8px 0; background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .13); border-radius: 4px; }
.scx-nav ul.scx-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.scx-nav li.has-sub:hover > ul.scx-sub, .scx-nav li.has-sub:focus-within > ul.scx-sub { display: flex; }
.scx-nav ul.scx-sub li { margin: 0 20px; border-bottom: 1px solid #ececec; }
.scx-nav ul.scx-sub li:last-child { border-bottom: 0; }
.scx-nav ul.scx-sub a { padding: 14px 4px; font-size: 15px; font-weight: 500; color: #555; }
.scx-nav ul.scx-sub a:hover { color: var(--scx-green); }
.scx-nav li.has-sub:hover > a { color: var(--scx-lime); }

/* ---- side spacing for the main content area (shop, categories, product pages) ---- */
body.woocommerce-shop .sc-main > .sc-wrap,
body.tax-product_cat .sc-main > .sc-wrap,
body.tax-product_tag .sc-main > .sc-wrap,
body.single-product .sc-main > .sc-wrap { max-width: 1560px; margin: 0 auto; padding: 0 70px; }
body.woocommerce-shop .sc-crumbrow, body.tax-product_cat .sc-crumbrow,
body.woocommerce-shop .sc-toolbar, body.tax-product_cat .sc-toolbar { padding-left: 0; padding-right: 0; }
@media (max-width: 1100px) {
	body.woocommerce-shop .sc-main > .sc-wrap, body.tax-product_cat .sc-main > .sc-wrap,
	body.tax-product_tag .sc-main > .sc-wrap, body.single-product .sc-main > .sc-wrap { padding: 0 32px; }
}
@media (max-width: 600px) {
	body.woocommerce-shop .sc-main > .sc-wrap, body.tax-product_cat .sc-main > .sc-wrap,
	body.tax-product_tag .sc-main > .sc-wrap, body.single-product .sc-main > .sc-wrap { padding: 0 14px; }
}

/* ---- product card hover: soft fade, light shade over the image, gentle zoom, buttons slide up ---- */
@media (hover: hover) {
	.woocommerce ul.products li.product a.woocommerce-LoopProduct-link { overflow: hidden; }
	.woocommerce ul.products li.product a img { transition: transform .6s cubic-bezier(.2, .6, .2, 1), filter .4s ease; }
	.woocommerce ul.products li.product:hover a img { transform: scale(1.06); }

	.sc-hoverwrap { transition: opacity .4s ease; }
	.sc-hoverwrap::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to bottom, rgba(20, 35, 28, .06) 0%, rgba(20, 35, 28, .12) 55%, rgba(20, 35, 28, .28) 100%); }

	.sc-hover-actions { background: rgba(255, 255, 255, .94); box-shadow: 0 -10px 24px rgba(0, 0, 0, .08); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
		opacity: 0; transform: translateY(18px); transition: transform .45s cubic-bezier(.2, .7, .2, 1), opacity .4s ease; }
	li.product:hover .sc-hover-actions { opacity: 1; transform: none; }
	.sc-qv { opacity: 0; transform: translateY(-8px); transition: transform .4s ease .05s, opacity .4s ease .05s, background .2s; }
	li.product:hover .sc-qv { opacity: 1; transform: none; }
	.sc-qv:hover { background: #fff; }
	.sc-hover-actions a.button { transition: background .25s ease, color .25s ease; }
}

@media (hover: hover) {
	/* compact floating actions: the product stays visible behind them */
	.sc-hover-actions { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 0 12px 12px; }
	.sc-hover-actions a.button { padding: 10px 8px !important; font-size: 14px !important; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; border: 0; border-radius: 3px; background: #fff !important; box-shadow: 0 4px 14px rgba(0, 0, 0, .15); }
	.sc-hover-actions a.button:hover { background: #00613c !important; color: #fff !important; }
	.sc-hover-actions .sc-wc-row { margin-top: 8px; padding: 7px 0; border-radius: 3px; background: rgba(255, 255, 255, .94); font-size: 12px; box-shadow: 0 4px 14px rgba(0, 0, 0, .12); }
	.sc-hover-actions .sc-wc-row span, .sc-wc-row .sc-wl-t, .sc-wc-row .sc-cmp-t { white-space: nowrap; }
	.sc-hover-actions .sc-wc-row > * { gap: 5px; }
}
@media (hover: hover) {
	.sc-hover-actions .sc-wc-row { font-size: 11.5px; line-height: 1.2; }
	.sc-hover-actions .sc-wc-row span, .sc-wc-row .sc-wl-t, .sc-wc-row .sc-cmp-t { white-space: normal; }
	.sc-hover-actions .sc-wc-row > * { justify-content: center; text-align: left; padding: 2px 8px; }
}

/* ---- footer text: darker and slightly heavier for readability ---- */
.scx-ft-col a { color: #2b2b2b; font-weight: 500; }
.scx-ft-col a:hover { color: var(--scx-green); }
.scx-ft-office p, .scx-ft-office p.dim { color: #2b2b2b; font-weight: 500; }
.scx-ft-office strong { color: #000; font-weight: 600; }
.scx-ft-legal, .scx-ft-legal p { color: #222; font-weight: 500; }
.scx-ft-legal p.copy { color: #333; }
.scx-ft-legal b { color: #000; font-weight: 800; }

/* ================= single product: tabs, description, related ================= */
body.single-product .woocommerce-tabs { margin: 60px 0 0; clear: both; }
body.single-product .woocommerce-tabs ul.tabs { display: flex; gap: 6px; margin: 0 0 0; padding: 0; list-style: none; border-bottom: 2px solid #e8e8e8; overflow: visible; }
body.single-product .woocommerce-tabs ul.tabs::before, body.single-product .woocommerce-tabs ul.tabs::after { display: none !important; }
body.single-product .woocommerce-tabs ul.tabs li { margin: 0 0 -2px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
body.single-product .woocommerce-tabs ul.tabs li::before, body.single-product .woocommerce-tabs ul.tabs li::after { display: none !important; }
body.single-product .woocommerce-tabs ul.tabs li a { display: block; padding: 14px 28px; border-bottom: 3px solid transparent; font-size: 15px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #777; transition: color .2s, border-color .2s, background .2s; }
body.single-product .woocommerce-tabs ul.tabs li a:hover { color: var(--scx-green); }
body.single-product .woocommerce-tabs ul.tabs li.active a { color: var(--scx-green); border-bottom-color: var(--scx-green); }

body.single-product .woocommerce-Tabs-panel { padding: 34px 0 10px; margin: 0; font-size: 16px; line-height: 1.8; color: #333; }
body.single-product .woocommerce-Tabs-panel > h2:first-child { display: none; }
body.single-product .woocommerce-Tabs-panel h2, body.single-product .woocommerce-Tabs-panel h3 { margin: 26px 0 12px; font-size: 22px; line-height: 1.3; font-weight: 700; letter-spacing: 0; text-transform: none; color: #12251f; }
body.single-product .woocommerce-Tabs-panel p { margin: 0 0 16px; max-width: 960px; }
body.single-product .woocommerce-Tabs-panel table.shop_attributes { width: 100%; max-width: 960px; border: 1px solid #e8e8e8; border-collapse: collapse; }
body.single-product .woocommerce-Tabs-panel table.shop_attributes th { width: 220px; padding: 14px 18px; background: #f7f7f7; font-size: 14px; font-weight: 700; text-align: left; }
body.single-product .woocommerce-Tabs-panel table.shop_attributes td { padding: 14px 18px; font-size: 15px; }
body.single-product .woocommerce-Tabs-panel table.shop_attributes td p { margin: 0; }
body.single-product .woocommerce-Tabs-panel table.shop_attributes tr + tr th, body.single-product .woocommerce-Tabs-panel table.shop_attributes tr + tr td { border-top: 1px solid #e8e8e8; }

body.single-product section.related, body.single-product section.upsells { margin-top: 60px; }
body.single-product section.related > h2, body.single-product section.upsells > h2 { margin: 0 0 28px; padding-bottom: 14px; border-bottom: 2px solid #e8e8e8; font-size: 26px; line-height: 1.2; font-weight: 700; letter-spacing: 0; text-transform: none; color: #12251f; position: relative; }
body.single-product section.related > h2::after, body.single-product section.upsells > h2::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 90px; height: 2px; background: var(--scx-green); }
@media (max-width: 700px) {
	body.single-product .woocommerce-tabs ul.tabs { overflow-x: auto; }
	body.single-product .woocommerce-tabs ul.tabs li a { padding: 12px 16px; font-size: 13px; white-space: nowrap; }
	body.single-product section.related > h2 { font-size: 22px; }
}
body.single-product div.product .woocommerce-tabs ul.tabs { padding: 0 !important; margin: 0 !important; }
body.single-product div.product .woocommerce-tabs ul.tabs li { background: none !important; border: 0 !important; border-radius: 0 !important; margin: 0 0 -2px !important; padding: 0 !important; }
body.single-product div.product .woocommerce-tabs ul.tabs li a { padding: 14px 28px !important; border-bottom: 3px solid transparent; color: #777; }
body.single-product div.product .woocommerce-tabs ul.tabs li.active { background: none !important; }
body.single-product div.product .woocommerce-tabs ul.tabs li.active a { color: var(--scx-green); border-bottom-color: var(--scx-green); }
body.single-product div.product .woocommerce-tabs ul.tabs li:first-child a { padding-left: 0 !important; }
body.single-product div.product .woocommerce-tabs ul.tabs::before, body.single-product div.product .woocommerce-tabs ul.tabs::after,
body.single-product div.product .woocommerce-tabs ul.tabs li::before, body.single-product div.product .woocommerce-tabs ul.tabs li::after { display: none !important; border: 0 !important; box-shadow: none !important; }
body.single-product div.product .woocommerce-tabs ul.tabs { border-bottom: 2px solid #e8e8e8 !important; }
body.single-product .woocommerce-tabs, body.single-product .related.products, body.single-product .upsells { padding-left: 0 !important; padding-right: 0 !important; }
body.single-product div.product .woocommerce-tabs .woocommerce-Tabs-panel { padding: 34px 0 10px !important; margin: 0 !important; }

/* single product: image and details columns are equal width */
body.single-product .sc-top-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 64px; padding-right: 0; }
body.single-product .woocommerce div.product .sc-top-grid div.images, body.single-product div.product .sc-top-grid div.images { width: 100%; padding: 0; }
body.single-product div.product .sc-top-grid div.summary { width: 100%; padding-top: 24px; }
body.single-product div.product .sc-top-grid div.images img { width: 100%; height: auto; }
@media (max-width: 900px) { body.single-product .sc-top-grid { grid-template-columns: 1fr; row-gap: 24px; } }
