/*
Theme Name: Flatsome Child
Description: GetPalletDeals child theme for Flatsome (bold warehouse design)
Author: UX Themes
Template: flatsome
Version: 3.1
*/

/* ==========================================================
   Brand tokens
   ========================================================== */
:root {
	--gpd-blue: #1E44D6;
	--gpd-blue-dark: #12309F;
	--gpd-amber: #F2B33D;
	--gpd-amber-dark: #D99A22;
	--gpd-ink: #0E1116;
	--gpd-navy: #0B1220;
	--gpd-navy-2: #111B2E;
	--gpd-steel: #1B2A4A;
	--gpd-text: #3A4250;
	--gpd-muted: #8A93A3;
	--gpd-line: #E3E7EE;
	--gpd-paper: #F4F6FA;
	--gpd-radius: 8px;
	--gpd-hazard: repeating-linear-gradient(-45deg, var(--gpd-amber) 0 14px, var(--gpd-ink) 14px 28px);
}

body { color: var(--gpd-text); }
h1, h2, h3, h4, h5, h6, .heading-font { letter-spacing: -0.01em; }
.uppercase, span.widget-title { letter-spacing: 0.04em; }

/* ==========================================================
   Buttons
   ========================================================== */
.button, button, input[type="submit"], input[type="button"] {
	border-radius: var(--gpd-radius);
	font-family: "Montserrat", sans-serif;
	font-weight: 800;
	letter-spacing: 0.03em;
	transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.button:hover, button:hover, input[type="submit"]:hover { transform: translateY(-1px); }
.button.primary:not(.is-outline), .button.alt, .single_add_to_cart_button, .checkout-button {
	background-color: var(--gpd-blue);
	box-shadow: 0 4px 0 var(--gpd-blue-dark);
}
.button.primary:not(.is-outline):hover, .button.alt:hover, .single_add_to_cart_button:hover, .checkout-button:hover {
	background-color: var(--gpd-blue-dark);
	box-shadow: 0 5px 0 #0A1F6E;
}
/* Amber buttons use dark text for contrast */
.button.secondary:not(.is-outline), .header-button .button.secondary:not(.is-outline) {
	background-color: var(--gpd-amber);
	color: var(--gpd-ink);
	box-shadow: 0 4px 0 var(--gpd-amber-dark);
}
.button.secondary:not(.is-outline):hover { background-color: #FFC14F; color: var(--gpd-ink); }
.button.white.is-outline:hover { color: var(--gpd-ink); }

/* ==========================================================
   Top bar + header
   ========================================================== */
#top-bar { font-size: 13px; border-bottom: 1px solid rgba(255,255,255,.06); }
#top-bar .gpd-topbar-tag { color: #C9D2E3; letter-spacing: .02em; }
#top-bar .gpd-topbar-tag strong { color: var(--gpd-amber); font-weight: 700; }
#top-bar .nav > li > a { color: #C9D2E3; font-weight: 500; }
#top-bar .nav > li > a:hover { color: #fff; }

/* Main header: logo + search + account/cart/quote. Nav lives in the dark bottom bar. */
.header-bottom { border-bottom: 4px solid var(--gpd-blue); }
.header-bottom .header-nav-main > li > a { color: #E6ECF7; }
.header-bottom .header-nav-main > li > a:hover,
.header-bottom .header-nav-main > li.active > a { color: var(--gpd-amber) !important; }
@media (min-width: 850px) {
	.header-main .header-search-form { width: clamp(280px, 34vw, 520px); max-width: none; }
	.header-main .flex-left .header-search-form-wrapper { width: 100%; }
}
.header-search-form .search-field {
	height: 46px; border-radius: var(--gpd-radius) 0 0 var(--gpd-radius); border: 2px solid var(--gpd-ink);
	border-right: 0; box-shadow: none; font-size: 15px; padding-left: 16px; background: #fff;
}
.header-search-form .ux-search-submit {
	height: 46px; min-width: 52px; border-radius: 0 var(--gpd-radius) var(--gpd-radius) 0 !important;
	background: var(--gpd-blue) !important; box-shadow: none; transform: none !important;
}
.header-main .account-item > a, .header-main .cart-item > a { font-weight: 700; }
.header-nav-main > li > a { font-size: 13.5px; letter-spacing: .04em; }
.header-nav-main > li.active > a,
.header-nav-main > li.current-menu-item > a { color: var(--gpd-blue); }
.header-nav-main > li > a::after {
	content: ""; display: block; height: 3px; background: var(--gpd-amber);
	transform: scaleX(0); transform-origin: left; transition: transform .2s ease; margin-top: 4px;
}
.header-nav-main > li:hover > a::after,
.header-nav-main > li.active > a::after { transform: scaleX(1); }
.header-button .button { margin-left: 6px; }
#masthead .header-button > .button.secondary:not(.is-outline) {
	background-color: var(--gpd-amber); color: var(--gpd-ink); box-shadow: 0 3px 0 var(--gpd-amber-dark);
}
#masthead .header-button > .button.secondary:not(.is-outline):hover { background-color: #FFC14F; }
@media (max-width: 1199px) {
	.header-nav-main > li > a { font-size: 12.5px; letter-spacing: .02em; }
	.header-nav-main.nav-spacing-large > li { margin: 0 10px; }
}
.nav-dropdown { border-top: 3px solid var(--gpd-blue) !important; border-radius: 0 0 var(--gpd-radius) var(--gpd-radius); }
.nav-dropdown li a { font-weight: 600; }

/* Text logo fallback until the image logo is uploaded */
#logo a:not(:has(img)) {
	font-family: "Montserrat", sans-serif; font-weight: 800; font-style: italic;
	color: var(--gpd-ink); font-size: 26px; text-transform: none; letter-spacing: -.02em;
}

/* ==========================================================
   Shared section helpers (used on homepage + inner pages)
   ========================================================== */
.gpd-eyebrow {
	display: inline-block; font-family: "Montserrat", sans-serif; font-weight: 800;
	font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
	color: var(--gpd-blue); margin-bottom: 10px;
}
.dark .gpd-eyebrow, .gpd-dark .gpd-eyebrow { color: var(--gpd-amber); }
.gpd-hazard { height: 10px; background: var(--gpd-hazard); }
.gpd-title-xl { font-size: clamp(2.2rem, 5.2vw, 4rem); line-height: 1.02; font-style: italic; text-transform: uppercase; }
.gpd-title-xl .gpd-pill {
	display: inline-block; background: var(--gpd-blue); color: #fff;
	padding: .02em .32em .06em; border-radius: .18em; transform: skewX(-8deg);
}
.gpd-lead { font-size: 1.15rem; line-height: 1.6; max-width: 34em; }
.gpd-section-title { font-size: clamp(1.7rem, 3.4vw, 2.6rem); text-transform: uppercase; font-style: italic; line-height: 1.05; }

/* Hero */
.gpd-hero .section-bg::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(90deg, rgba(11,18,32,.94) 0%, rgba(11,18,32,.82) 42%, rgba(11,18,32,.35) 100%);
}
.gpd-hero .section-content { position: relative; z-index: 2; }
.gpd-hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.gpd-hero-badges span {
	display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px;
	border: 1px solid rgba(255,255,255,.18); border-radius: 999px; font-size: 13.5px;
	color: #E6ECF7; background: rgba(255,255,255,.05);
}
.gpd-hero-badges span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gpd-amber); }

/* Stats strip */
.gpd-stats { background: var(--gpd-blue); }
.gpd-stat { text-align: center; color: #fff; padding: 6px 0; }
.gpd-stat strong { display: block; font-family: "Montserrat", sans-serif; font-weight: 800; font-style: italic; font-size: 2rem; line-height: 1; }
.gpd-stat span { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }

/* Category tiles */
.gpd-cat-tile {
	display: block; position: relative; height: 100%; padding: 26px 22px 22px;
	background: #fff; border: 1px solid var(--gpd-line); border-radius: var(--gpd-radius);
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
	overflow: hidden; color: var(--gpd-ink);
}
.gpd-cat-tile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--gpd-blue); transition: width .18s ease; }
.gpd-cat-tile:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(14,17,22,.12); border-color: transparent; color: var(--gpd-ink); }
.gpd-cat-tile:hover::before { width: 8px; background: var(--gpd-amber); }
.gpd-cat-tile .gpd-cat-icon {
	width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
	background: var(--gpd-paper); color: var(--gpd-blue); margin-bottom: 16px;
}
.gpd-cat-tile .gpd-cat-icon svg { width: 28px; height: 28px; }
.gpd-cat-tile .gpd-cat-icon, .gpd-cat-tile .gpd-cat-name, .gpd-cat-tile .gpd-cat-desc, .gpd-cat-tile .gpd-arrow { display: block; }
.gpd-cat-tile .gpd-cat-icon { display: grid; }
.gpd-cat-tile .gpd-cat-name { font-family: "Montserrat", sans-serif; font-weight: 800; font-size: 1.1rem; margin: 0 0 6px; text-transform: uppercase; color: var(--gpd-ink); }
.gpd-cat-tile .gpd-cat-desc { font-size: 14px; color: var(--gpd-muted); margin: 0 0 12px; line-height: 1.5; }
.gpd-cat-tile p:empty, .col-inner > p:empty { display: none; }
.gpd-cat-tile .gpd-arrow { font-family: "Montserrat", sans-serif; font-weight: 800; font-size: 13px; color: var(--gpd-blue); letter-spacing: .04em; text-transform: uppercase; }

/* Steps */
.gpd-step { position: relative; padding: 28px 24px; border-radius: var(--gpd-radius); background: var(--gpd-navy-2); border: 1px solid rgba(255,255,255,.07); height: 100%; }
.gpd-step-num {
	display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 10px;
	background: var(--gpd-amber); color: var(--gpd-ink); font-family: "Montserrat", sans-serif;
	font-weight: 800; font-style: italic; font-size: 1.3rem; margin-bottom: 16px;
}
.gpd-step h3 { color: #fff; font-size: 1.15rem; text-transform: uppercase; margin-bottom: 8px; }
.gpd-step p { color: #B9C3D6; font-size: 15px; margin: 0; }

/* Trust / feature cards */
.gpd-feature { display: flex; gap: 16px; align-items: flex-start; }
.gpd-feature .gpd-feature-icon { flex: 0 0 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: rgba(30,68,214,.1); color: var(--gpd-blue); }
.gpd-feature .gpd-feature-icon svg { width: 24px; height: 24px; }
.gpd-feature h4 { margin: 2px 0 4px; font-size: 1rem; text-transform: uppercase; }
.gpd-feature p { margin: 0; font-size: 14.5px; color: var(--gpd-text); }

/* Condition grade chips */
.gpd-grades { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gpd-grade { padding: 16px; border-radius: var(--gpd-radius); background: #fff; border: 1px solid var(--gpd-line); }
.gpd-grade b { display: inline-block; font-family: "Montserrat", sans-serif; font-weight: 800; font-size: 12px; letter-spacing: .08em; padding: 4px 9px; border-radius: 6px; margin-bottom: 8px; text-transform: uppercase; }
.gpd-grade p { margin: 0; font-size: 13.5px; color: var(--gpd-text); }
.gpd-grade.g-new b { background: #DDF3E6; color: #11683A; }
.gpd-grade.g-shelf b { background: #E1E8FB; color: var(--gpd-blue-dark); }
.gpd-grade.g-returns b { background: #FCEFD3; color: #8A5A00; }
.gpd-grade.g-salvage b { background: #F9E0E0; color: #9B2C2C; }

/* Warehouse photo section */
.gpd-photo .img-inner { border-radius: 14px; overflow: hidden; box-shadow: 0 22px 44px rgba(14,17,22,.18); }
.gpd-photo { position: relative; }
.gpd-photo::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: -10px; height: 10px; background: var(--gpd-hazard); border-radius: 0 0 8px 8px; }
.gpd-checks { list-style: none; margin: 0 0 22px; }
.gpd-checks li { position: relative; padding-left: 30px; margin-bottom: 10px; font-weight: 600; color: var(--gpd-ink); }
.gpd-checks li::before {
	content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 6px;
	background: var(--gpd-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/13px no-repeat;
}

/* Logo sizing */
#logo img { max-height: 64px; width: auto; }
.stuck #logo img { max-height: 50px; }
@media (max-width: 849px) { #logo img { max-height: 48px; } }

/* CTA band */
.gpd-cta { border-radius: 14px; overflow: hidden; }
.gpd-cta .gpd-cta-inner { position: relative; }

/* FAQ accordion */
.gpd-faq .accordion-title { font-family: "Montserrat", sans-serif; font-weight: 700; color: var(--gpd-ink); border-top-color: var(--gpd-line); font-size: 1.02rem; }
.gpd-faq .accordion-title.active { color: var(--gpd-blue); border-color: var(--gpd-blue); }
.gpd-faq .accordion-inner { color: var(--gpd-text); }

/* ==========================================================
   Product cards (shop, category, homepage)
   ========================================================== */
.product-small.box { background: #fff; border: 1px solid var(--gpd-line); border-radius: var(--gpd-radius); overflow: hidden; transition: box-shadow .18s ease, transform .18s ease; }
.product-small.box:hover { box-shadow: 0 14px 30px rgba(14,17,22,.10); transform: translateY(-3px); }
.product-small .box-text { padding: 14px 14px 16px; }
.product-small .box-text .category { font-size: 11px; letter-spacing: .1em; color: var(--gpd-blue); font-weight: 700; opacity: 1; }
.product-small .name.product-title a, .product-small .product-title { font-family: "Montserrat", sans-serif; font-weight: 700; color: var(--gpd-ink); font-size: 15px; line-height: 1.3; }
.product-small .price { font-family: "Montserrat", sans-serif; font-weight: 800; font-size: 18px; color: var(--gpd-ink); }
.product-small .price del { font-size: 13px; color: var(--gpd-muted); font-weight: 600; }
.product-small .box-image { background: var(--gpd-paper); }
.badge-container .badge-inner { font-family: "Montserrat", sans-serif; font-weight: 800; border-radius: 6px; }
.badge-container .badge .badge-inner.on-sale, .badge-container .badge-inner.on-sale { background-color: var(--gpd-amber) !important; color: var(--gpd-ink) !important; }
.product-small .add-to-cart-button .button, .product-small .add_to_cart_button {
	width: 100%; margin-top: 10px; background: var(--gpd-ink); color: #fff; border: 0; box-shadow: none;
}
.product-small .add-to-cart-button .button:hover, .product-small .add_to_cart_button:hover { background: var(--gpd-blue); color: #fff; }

/* Shop header */
.shop-page-title.featured-title .page-title-bg { background-color: var(--gpd-navy) !important; }
.shop-page-title.featured-title .title-overlay { background: linear-gradient(90deg, rgba(11,18,32,.88) 0%, rgba(11,18,32,.7) 50%, rgba(27,42,74,.45) 100%) !important; }
.shop-page-title.featured-title .title-bg { background-size: cover; background-position: center 40%; }
.shop-page-title .page-title-inner { padding-top: 30px; padding-bottom: 30px; }
.shop-page-title h1 { font-style: italic; text-transform: uppercase; font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.shop-page-title .breadcrumbs a { color: rgba(255,255,255,.7); }
.woocommerce-result-count, .woocommerce-ordering select { font-size: 14px; }
.widget-title, span.widget-title { font-family: "Montserrat", sans-serif; font-weight: 800; color: var(--gpd-ink); }
.is-divider { background-color: var(--gpd-blue); height: 3px; max-width: 36px; }

/* Single product */
.product-info .product-title { font-style: italic; text-transform: uppercase; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.1; }
.product-info .price-wrapper .price { font-family: "Montserrat", sans-serif; font-weight: 800; color: var(--gpd-ink); font-size: 2rem; }
.product-info .price-wrapper .price del { color: var(--gpd-muted); font-size: 1.1rem; }
.product-info .product-short-description { font-size: 15.5px; }
.product-info form.cart { padding: 18px; background: var(--gpd-paper); border-radius: var(--gpd-radius); border: 1px solid var(--gpd-line); }
.single_add_to_cart_button { min-height: 50px; padding: 0 30px !important; font-size: 15px !important; }
.product-info .product_meta { font-size: 13.5px; border-top: 1px solid var(--gpd-line); padding-top: 14px; }
.gpd-product-trust { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 6px; }
.gpd-product-trust div { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; color: var(--gpd-ink); padding: 10px 12px; border: 1px solid var(--gpd-line); border-radius: var(--gpd-radius); background: #fff; }
.gpd-product-trust svg { flex: 0 0 20px; width: 20px; height: 20px; color: var(--gpd-blue); }
.woocommerce-tabs .tabs > li > a { font-family: "Montserrat", sans-serif; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.woocommerce-tabs .tabs > li.active > a { color: var(--gpd-blue); }

/* Cart / checkout touches */
.cart-icon strong { border-color: var(--gpd-ink); color: var(--gpd-ink); border-radius: 4px; }
.cart-icon strong::after { border-color: var(--gpd-ink); }
.cart-icon:hover strong, .current-dropdown .cart-icon strong { background: var(--gpd-blue); border-color: var(--gpd-blue); color: #fff; }
.shop_table thead th, .checkout h3 { font-family: "Montserrat", sans-serif; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }

/* ==========================================================
   Footer
   ========================================================== */
.gpd-footer { background: var(--gpd-navy); color: #B9C3D6; }
.gpd-footer h4 { color: #fff; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.gpd-footer a { color: #B9C3D6; }
.gpd-footer a:hover { color: var(--gpd-amber); }
.gpd-footer ul { list-style: none; margin: 0; }
.gpd-footer ul li { margin: 0 0 9px; }
.gpd-footer .gpd-footer-brand { font-family: "Montserrat", sans-serif; font-weight: 800; font-style: italic; font-size: 26px; color: #fff; line-height: 1; margin-bottom: 12px; }
.gpd-footer .gpd-footer-brand span { background: var(--gpd-blue); padding: 0 .25em; border-radius: .15em; display: inline-block; transform: skewX(-8deg); }
.gpd-footer .gpd-footer-logo img { max-width: 220px; background: #fff; border-radius: 10px; padding: 8px 12px; }
.absolute-footer { font-size: 13px; border-top: 1px solid rgba(255,255,255,.06); }
.absolute-footer, .absolute-footer a { color: #8A93A3; }

/* ==========================================================
   Tablet
   ========================================================== */
@media (max-width: 849px) {
	.gpd-grades { grid-template-columns: repeat(2, 1fr); }
	.header-main { border-bottom-width: 3px; }
}

@media only screen and (max-width: 48em) {
/*************** MOBILE ONLY ***************/
	.gpd-hero .section-bg::after { background: linear-gradient(180deg, rgba(11,18,32,.80) 0%, rgba(11,18,32,.92) 100%); }
	.gpd-stat strong { font-size: 1.6rem; }
	.gpd-product-trust { grid-template-columns: 1fr; }
	.gpd-grades { grid-template-columns: 1fr 1fr; }
	#top-bar .gpd-topbar-tag { font-size: 12px; }
}

/* Inline photos on content pages (about, how it works, shipping, FAQ...) */
.gpd-page-photo { position: relative; margin: 6px 0 38px; }
.gpd-page-photo img { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 22px 44px rgba(14,17,22,.18); }
.gpd-page-photo::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: -10px; height: 10px; background: var(--gpd-hazard); border-radius: 0 0 8px 8px; }
.gpd-page-photo figcaption { margin-top: 18px; font-size: .9em; color: #6B7280; text-align: center; }
