/* ===================================================================
   Additions on top of custom.css — cart, buy panel, checkout, forms.
   Everything else (hero, sliders, testimonials, FAQ, footer shell) is
   already styled by the template and is reused as-is.
   =================================================================== */

/* The SVG contains only the mark; the live text always comes from SITE_NAME. */
.navbar-brand,
.checkout-topbar .navbar-brand,
.footer-logo{ display: flex; align-items: center; gap: 10px; }
.navbar-brand img,
.footer-logo img{ width: 50px; height: 50px; flex: 0 0 50px; object-fit: contain; }
.brand-name{ font-size: 26px; line-height: 1; font-weight: 750; letter-spacing: -0.04em; color: var(--primary-color); white-space: nowrap; }
/* The footer sits on a black background (--primary-color) — the brand name must read in white there, not black-on-black */
.main-footer .brand-name{ color: var(--white-color); }

@media (max-width: 767px){
	.navbar-brand img,
	.footer-logo img{ width: 42px; height: 42px; flex-basis: 42px; }
	.brand-name{ font-size: 22px; }
}

/* Active nav-link styling removed — the original template has no active state on nav links at all */

/* Header cart trigger */
.cart-trigger{
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-left: 16px;
	border: 1px solid var(--divider-color);
	border-radius: 50%;
	background: transparent;
	font-size: 17px;
	color: var(--primary-color);
	cursor: pointer;
	transition: all 0.3s ease-in-out;
}
.cart-trigger:hover{ background: var(--accent-color); color: var(--white-color); }
.cart-trigger-count{
	position: absolute;
	top: -4px;
	right: -4px;
	min-width: 19px;
	height: 19px;
	padding: 0 4px;
	border-radius: 50%;
	background: var(--accent-color);
	color: var(--white-color);
	font-size: 11px;
	font-weight: 700;
	line-height: 19px;
	text-align: center;
}
.cart-trigger:hover .cart-trigger-count{ background: var(--white-color); color: var(--primary-color); }

/* Icon-box icon sizing for Font Awesome icons dropped into template slots */
.hero-body-item .icon-box i{ position: relative; font-size: 20px; color: var(--white-color); transition: all 0.3s ease-in-out; }
.hero-body-item:hover .icon-box i{ color: var(--primary-color); }
.why-choose-item .icon-box i,
.fact-item .icon-box i{ font-size: 30px; color: var(--primary-color); }
.contact-info-item-header .icon-box i{ font-size: 18px; color: var(--primary-color); }
.footer-contact-item .icon-box i{ font-size: 16px; color: var(--white-color); }

/* ===================== Trust bar ===================== */
.trust-bar{ padding: 40px 0; border-bottom: 1px solid var(--divider-color); background: var(--white-color); }
.trust-grid{ display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; list-style: none; margin: 0; padding: 0; }
.trust-grid li{ display: flex; align-items: center; gap: 14px; flex: 1 1 220px; }
.trust-grid .icon-box{ flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%; background: var(--bg-color); display: flex; align-items: center; justify-content: center; }
.trust-grid .icon-box i{ font-size: 17px; color: var(--primary-color); }
.trust-grid b{ display: block; font-size: 15px; font-weight: 600; color: var(--primary-color); }
.trust-grid span{ display: block; font-size: 13px; color: var(--text-color); }

/* ===================== Ratings ===================== */
.rating-stars i{ font-size: 13px; color: var(--divider-color); margin-right: 2px; }
.rating-stars i:not(.is-off){ color: var(--accent-color); }
.shop-rating{ display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-color); margin-bottom: 18px; }

/* ===================== Buy panel (Best Sellers section repurposed) ===================== */
.price-row{ display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.price-row .price-now{ font-size: 36px; font-weight: 700; color: var(--primary-color); }
.price-row .price-was{ font-size: 18px; color: var(--text-color); text-decoration: line-through; }
.price-row .price-save{ padding: 5px 12px; border-radius: 100px; background: var(--primary-color); color: var(--white-color); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }
.price-breakdown{ margin: 0 0 24px; font-size: 13px; color: var(--text-color); }

/* Colour picker now sits under the main image, in the narrower left column */
.best-selling-product-slider .best-product-options .best-product-image img{ max-width: 64px; }

.buy-row{ display: flex; align-items: center; gap: 16px; margin: 26px 0; flex-wrap: wrap; }
.qty-stepper{ display: inline-flex; align-items: center; gap: 0; border: 1px solid var(--divider-color); border-radius: 100px; overflow: hidden; }
.qty-stepper button{ width: 40px; height: 40px; border: none; background: transparent; font-size: 13px; color: var(--primary-color); cursor: pointer; transition: all 0.2s ease-in-out; }
.qty-stepper button:hover:not(:disabled){ background: var(--accent-color); color: var(--white-color); }
.qty-stepper button:disabled{ opacity: 0.35; cursor: not-allowed; }
.qty-stepper span, .qty-stepper output{ min-width: 32px; text-align: center; font-weight: 700; }
.buy-row .btn-default{ flex: 1 1 200px; text-align: center; }

.purchase-assurance{ list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.purchase-assurance li{ display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: var(--text-color); }
.purchase-assurance i{ margin-top: 3px; color: var(--accent-color); font-size: 15px; }

.specs-list{ list-style: none; margin: 0; padding: 24px 0 0; border-top: 1px solid var(--divider-color); display: flex; flex-direction: column; gap: 12px; }
.specs-list li{ display: flex; justify-content: space-between; gap: 16px; font-size: 14px; }
.specs-list b{ color: var(--primary-color); font-weight: 600; flex-shrink: 0; }
.specs-list span{ color: var(--text-color); text-align: right; }

.gallery-badge{
	position: absolute;
	top: 16px;
	left: 16px;
	z-index: 2;
	padding: 6px 14px;
	border-radius: 100px;
	background: var(--accent-color);
	color: var(--white-color);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
}
.best-selling-product-slider{ position: relative; }

/* Colour picker — reuses the template's own "best-product-options" swatch block */
.best-product-options .best-product-image{
	border: 2px solid transparent;
	cursor: pointer;
	transition: all 0.2s ease-in-out;
}
.best-product-options .best-product-image:hover{ border-color: var(--divider-color); }
.best-product-options .best-product-image.is-selected{ border-color: var(--primary-color); background: var(--white-color); }
.best-product-options h3 span{ font-weight: 400; color: var(--text-color); }

/* product-collection-box is now a clickable <a> (the template used a <div>) —
   anchors default to inline and collapse without an explicit block display */
a.product-collection-box{ display: block; text-decoration: none; }

/* ===================== Why choose / Facts footer text reused, spacing tweak ===================== */
.section-footer-text{ margin-top: 40px; }

.contact-form-panel{ background: var(--secondary-color); border-radius: 20px; padding: 40px; }

/* ===================== Advertise & Collaborate + contact block ===================== */
.advertise-block{ padding: 70px 60px; border-radius: 24px; background: var(--secondary-color); text-align: center; margin-top: 60px; }
.advertise-block .section-title{ margin-bottom: 20px; }
.advertise-block p{ max-width: 760px; margin: 0 auto; }

/* ===================== Forms: error / success states ===================== */
.form-error{
	margin: 0 0 16px;
	padding: 12px 16px;
	border-radius: 10px;
	background: rgba(230, 87, 87, 0.1);
	color: var(--error-color);
	font-size: 14px;
	font-weight: 600;
}
.form-note{ margin: 14px 0 0; font-size: 13px; color: var(--text-color); }
.form-success{ text-align: center; padding: 30px 0; }
.success-mark{ font-size: 46px; color: var(--primary-color); margin-bottom: 16px; }
.form-success h3{ margin-bottom: 10px; }

/* ===================== Cart drawer ===================== */
.cart-backdrop{
	position: fixed; inset: 0; z-index: 998;
	background: rgba(0,0,0,0.45);
	opacity: 0; visibility: hidden;
	transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}
.cart-backdrop.is-open{ opacity: 1; visibility: visible; }

.cart-drawer{
	position: fixed; top: 0; right: 0; bottom: 0; z-index: 999;
	width: min(420px, 100%);
	background: var(--white-color);
	display: flex; flex-direction: column;
	transform: translateX(100%);
	transition: transform 0.35s ease-in-out;
	box-shadow: -20px 0 60px rgba(0,0,0,0.12);
}
.cart-drawer.is-open{ transform: translateX(0); }

.cart-drawer-head{ display: flex; align-items: center; justify-content: space-between; padding: 26px 26px 20px; border-bottom: 1px solid var(--divider-color); }
.cart-drawer-head h3{ margin: 0; font-size: 20px; }
.cart-close{ width: 36px; height: 36px; border: none; border-radius: 50%; background: var(--bg-color); color: var(--primary-color); cursor: pointer; }
.cart-close:hover{ background: var(--accent-color); color: var(--white-color); }

.cart-drawer-body{ flex: 1; overflow-y: auto; padding: 24px 26px 30px; }

.cart-empty{ text-align: center; padding: 40px 10px; }
.cart-empty i{ font-size: 34px; color: var(--divider-color); margin-bottom: 14px; }
.cart-empty h3{ font-size: 18px; margin-bottom: 8px; }
.cart-empty p{ margin-bottom: 20px; }

.cart-notice{ display: flex; align-items: center; gap: 10px; padding: 10px 14px; margin-bottom: 18px; border-radius: 10px; background: var(--secondary-color); font-size: 13px; font-weight: 600; }
.cart-notice i{ color: var(--primary-color); }

.cart-item, .checkout-item{ display: flex; align-items: flex-start; gap: 14px; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--divider-color); }
.cart-item img, .checkout-item img{ border-radius: 12px; background: var(--bg-color); object-fit: cover; flex-shrink: 0; }
.cart-item-info{ flex: 1; display: flex; flex-direction: column; gap: 8px; }
.cart-item-info b{ font-size: 15px; }
.cart-item-info small{ color: var(--text-color); font-size: 13px; }
.cart-item-controls{ display: flex; align-items: center; gap: 14px; margin-top: 4px; }
.cart-item-controls .qty-stepper button{ width: 30px; height: 30px; }
.cart-remove{ border: none; background: transparent; color: var(--text-color); font-size: 12px; text-decoration: underline; cursor: pointer; padding: 0; }
.cart-remove:hover{ color: var(--error-color); }
.cart-item-price, .checkout-item-price{ font-weight: 700; white-space: nowrap; }

.cart-totals{ margin-top: 6px; }
.cart-row{ display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; color: var(--text-color); }
.cart-row-total{ border-top: 1px solid var(--divider-color); margin-top: 6px; padding-top: 14px; font-size: 16px; font-weight: 700; color: var(--primary-color); }

.cart-actions{ display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.cart-actions .btn-default{ text-align: center; }
.cart-keep{ border: none; background: transparent; color: var(--primary-color); font-weight: 600; text-decoration: underline; cursor: pointer; padding: 8px 0; }

.cart-secure{ display: flex; align-items: flex-start; gap: 10px; margin: 18px 0 0; font-size: 12px; color: var(--text-color); }
.cart-secure i{ margin-top: 2px; }

body.is-locked{ overflow: hidden; }

/* ===================== Sticky buy bar ===================== */
.buy-bar{
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
	background: var(--white-color);
	border-top: 1px solid var(--divider-color);
	box-shadow: 0 -10px 30px rgba(0,0,0,0.06);
	transform: translateY(100%);
	transition: transform 0.3s ease-in-out;
}
.buy-bar.is-visible{ transform: translateY(0); }
.buy-bar-inner{ display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; }
.buy-bar-info{ display: flex; align-items: center; gap: 14px; }
.buy-bar-info img{ border-radius: 10px; background: var(--bg-color); }
.buy-bar-info b{ display: block; font-size: 14px; }
.buy-bar-info span{ font-size: 13px; color: var(--text-color); }

/* ===================== Checkout page ===================== */
.checkout-topbar{ padding: 22px 0; border-bottom: 1px solid var(--divider-color); }
.checkout-topbar .container{ display: flex; align-items: center; justify-content: space-between; }
.checkout-topbar .text-link{ display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--primary-color); }

.checkout-main{ padding: 60px 0 100px; }
.checkout-layout{ display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: start; }
.checkout-panel{ background: var(--white-color); border: 1px solid var(--divider-color); border-radius: 20px; padding: 34px; margin-bottom: 30px; }
.checkout-step{ display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.checkout-step-index{ display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--secondary-color); font-weight: 700; flex-shrink: 0; }
.checkout-step h1, .checkout-step h2{ font-size: 24px; margin: 0; }
.checkout-step .eyebrow{ margin: 0 0 4px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-color); }

.checkout-empty{ text-align: center; padding: 30px 0; }
.checkout-empty p{ margin-bottom: 16px; }

.order-summary{ background: var(--bg-color); border-radius: 20px; padding: 34px; position: sticky; top: 110px; }
.order-summary .eyebrow{ font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-color); margin-bottom: 14px; }
.order-summary h2{ font-size: 20px; margin: 16px 0 8px; }
.order-summary dl{ margin: 22px 0 0; border-top: 1px solid var(--divider-color); padding-top: 18px; }
.order-summary dl div{ display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; color: var(--text-color); }
.order-summary .summary-total{ font-size: 16px; font-weight: 700; color: var(--primary-color); }
.summary-note{ display: flex; gap: 10px; margin-top: 20px; font-size: 12px; color: var(--text-color); }

.checkout-error{ margin: 0 0 16px; padding: 12px 16px; border-radius: 10px; background: rgba(230, 87, 87, 0.1); color: var(--error-color); font-size: 14px; font-weight: 600; }
.checkout-status{ max-width: 560px; margin: 60px auto; text-align: center; padding: 50px 30px; border-radius: 24px; background: var(--white-color); border: 1px solid var(--divider-color); }
.checkout-reference{ display: flex; flex-direction: column; gap: 4px; margin: 24px 0; padding: 16px; border-radius: 12px; background: var(--bg-color); }
.checkout-reference span{ font-size: 12px; color: var(--text-color); text-transform: uppercase; letter-spacing: 0.06em; }
.checkout-reference strong{ font-size: 18px; }

@media only screen and (max-width: 991px){
	.checkout-layout{ grid-template-columns: 1fr; }
	.order-summary{ position: static; }
	.trust-grid{ justify-content: flex-start; }
}

/* ===================== Legal pages ===================== */
.legal-section{ padding: 30px 0; border-bottom: 1px solid var(--divider-color); }
.legal-section:last-child{ border-bottom: none; }
.legal-section h2{ font-size: 22px; margin-bottom: 14px; }

/* ===================== Footer additions ===================== */
.footer-top-row{ padding-bottom: 70px; }

/* The template's own .footer-links.footer-contact-info forces width:62% for its
   original 2-column layout — reset it now that Contact has its own grid column */
.main-footer .footer-links.footer-contact-info{ width: 100%; }

/* Contact rows: full-width, stacked, with a label above the value instead of
   thin inline pills — reads more like a finished info card, not a stray badge */
.main-footer .footer-contact-list{ flex-direction: column; align-items: stretch; gap: 14px; }
.main-footer .footer-contact-item{
	display: flex;
	align-items: center;
	width: 100%;
	padding: 16px 18px;
	color: inherit;
	text-decoration: none;
}
.main-footer .footer-contact-item .icon-box{
	flex-shrink: 0;
	width: 38px;
	height: 38px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--dark-divider-color);
	margin-right: 14px;
}
.main-footer .footer-contact-content{ width: auto; flex: 1; }
.main-footer .footer-contact-content span{ display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--white-color); opacity: 0.55; margin-bottom: 3px; }
.main-footer a.footer-contact-item:hover{ border-color: var(--white-color); }

.footer-disclaimer{ margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--dark-divider-color); font-size: 12px; color: var(--white-color); opacity: 0.6; }
.footer-copyright{ display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-legal-links{ display: flex; gap: 20px; }
.footer-legal-links a{ font-size: 14px; color: var(--white-color); opacity: 0.75; }
.footer-legal-links a:hover{ opacity: 1; }
