/* ================================================================
   Zero / "technic store" theme — alta.ge-inspired reskin.
   Loaded last (page_files orderer=99) so it overrides style.css /
   responsive.css without editing those base files directly.
   ================================================================ */

:root {
	--brand: #7F56D9;
	--brand-dark: #6A3FD1;
	--brand-light: #F1EBFC;
	--ink: #181D27;
	--muted: #6B7280;
	--card-radius: 14px;
}

/* ---- global type / links ---- */
a { transition: color .15s ease, background-color .15s ease, border-color .15s ease; }

/* ---- sticky header ---- */
.header { background: #fff; box-shadow: 0 2px 10px rgba(24,29,39,.06); }
.header-top { background: var(--brand); }
.header-top .flat-support li a,
.header-top .flat-infomation li,
.header-top .flat-infomation li a { color: #fff; }
.header-middle { padding-top: 16px; padding-bottom: 16px; }

/* ---- search bar: rounded pill like alta's ---- */
.top-search form.form-search .box-search {
	border-radius: 999px;
	overflow: hidden;
	border: 1px solid #E3E1EC;
	background: #F7F6FB;
}
.top-search form.form-search .box-search input {
	background: transparent;
	border: none;
}
.top-search form.form-search .box-search .btn-search button {
	background: var(--brand);
	border-radius: 999px;
}
.top-search form.form-search .box-search .btn-search button img {
	filter: brightness(0) invert(1);
}

/* ---- "ALL CATEGORIES" mega menu trigger ---- */
#mega-menu .btn-mega {
	background: var(--brand);
	border-radius: 8px;
	color: #fff;
}
#mega-menu .btn-mega:hover { background: var(--brand-dark); }

/* ---- main nav hover ---- */
.mainnav .menu > li > a:hover,
.mainnav .menu > li.active > a { color: var(--brand) !important; }

/* ---- cart icon accent ---- */
.box-cart .inner-box > a > div.icon-cart span { background: var(--brand); }
.box-cart .inner-box .dropdown-box .btn-cart a.check-out { background: var(--brand); border-color: var(--brand); }
.box-cart .inner-box .dropdown-box .btn-cart a.check-out:hover { background: var(--brand-dark); }

/* ---- section tabs ("New Arrivals" etc.) ---- */
.product-tab .tab-list li { color: var(--muted); }
.product-tab .tab-list li.active { color: var(--brand); border-color: var(--brand); }

/* =================================================================
   Product cards — white rounded card, shadow, hover lift, price +
   persistent buy button (matches alta's always-visible purple CTA).
   ================================================================= */
.product-box {
	height: auto !important;
	min-height: auto;
	overflow: visible !important;
	margin-bottom: 22px !important;
	background: #fff;
	border-radius: var(--card-radius);
	box-shadow: 0 1px 3px rgba(24,29,39,.08);
	transition: box-shadow .2s ease, transform .2s ease;
}
.product-box:hover {
	box-shadow: 0 10px 24px rgba(24,29,39,.12);
	transform: translateY(-2px);
}
.product-box .imagebox {
	min-height: auto !important;
	padding: 14px 14px 18px;
}
.imagebox .box-image {
	height: 160px;
	line-height: normal;
	overflow: hidden;
	margin-bottom: 14px;
	border-radius: 10px;
	background: #F7F6FB;
}
.imagebox .box-image .owl-stage-outer,
.imagebox .box-image .owl-stage,
.imagebox .box-image .owl-item,
.imagebox .box-image li { height: 160px !important; }
.imagebox .box-image a {
	margin: 0 auto;
	height: 100%;
	display: flex !important;
	align-items: center;
	justify-content: center;
}
.imagebox .box-image img {
	max-height: 100%;
	max-width: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}
.box-content .cat-name {
	color: var(--muted);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .04em;
}
.box-content .product-name a {
	color: var(--ink);
	font-weight: 600;
}
.box-content .product-name a:hover { color: var(--brand); }
.box-content .price .sale {
	color: var(--brand);
	font-weight: 700;
	font-size: 16px;
}
/* base theme's shortcodes.css makes any ".imagebox .box-bottom" an
   opacity:0/position:absolute hover-reveal (used by the shop-listing
   wishorbuy cart button) - override back to a normal, always-visible
   block specifically for our homepage-card markup, which nests
   .box-bottom under .box-content rather than under .wishorbuy. */
.box-content .box-bottom {
	opacity: 1 !important;
	position: static !important;
	transform: none !important;
	width: auto !important;
	margin-top: 10px;
}
.box-content .box-bottom .btn-buy {
	display: block;
	text-align: center;
	background: var(--brand);
	color: #fff !important;
	border-radius: 999px;
	padding: 8px 14px;
	font-size: 13px;
	font-weight: 600;
}
.box-content .box-bottom .btn-buy:hover { background: var(--brand-dark); }

/* shop-listing cards (bakerprod theme) reuse .wishorbuy for the same CTA */
.wishorbuy .box-bottom .btn-add-cart a {
	background: var(--brand);
	border-radius: 999px;
	color: #fff;
}
.wishorbuy .box-bottom .btn-add-cart a:hover { background: var(--brand-dark); }

.box-product .row { row-gap: 10px; }

/* =================================================================
   Homepage category tiles (homecatshow theme, "shop-by-cat" section)
   — square rounded purple-tinted icon tiles instead of grey circles.
   ================================================================= */
.hcs-icon {
	width: 56px;
	height: 56px;
	border-radius: 16px;
	background: var(--brand-light);
}
.hcs-icon .fa { color: var(--brand); font-size: 22px; }
section[aria-labelledby="shop-by-cat"] .grid > a.hcs-card:hover .hcs-icon,
a.hcs-card:hover .hcs-icon { background: var(--brand) !important; }
section[aria-labelledby="shop-by-cat"] .grid > a.hcs-card:hover .hcs-icon .fa,
a.hcs-card:hover .hcs-icon .fa { color: #fff !important; }
a.hcs-card { padding: 14px 10px; border-radius: var(--card-radius); }
a.hcs-card:hover { background: #fff; box-shadow: 0 8px 20px rgba(24,29,39,.08); }

/* ---- brand/partner logo strip ---- */
.flat-brand .owl-carousel-9 img { filter: grayscale(1); opacity: .7; transition: filter .2s, opacity .2s; }
.flat-brand .owl-carousel-9 img:hover { filter: none; opacity: 1; }

/* ---- product detail page ---- */
.product-detail .footer-detail .box-cart .btn-add-cart a,
.product-detail .box-cart a.check-out,
.btn-submit button {
	background: var(--brand) !important;
	border-color: var(--brand) !important;
}
.product-detail .footer-detail .box-cart .btn-add-cart a:hover,
.btn-submit button:hover { background: var(--brand-dark) !important; }
@media (max-width: 767px) {
	.product-detail .footer-detail .quanlity-box {
		display: flex !important;
		flex-wrap: nowrap;
		gap: 10px;
	}
	.product-detail .footer-detail .quanlity-box > div.colors,
	.product-detail .footer-detail .quanlity-box > div.quanlity {
		display: block !important;
		width: 50% !important;
		max-width: 50% !important;
		margin: 0 !important;
	}
	.product-detail .footer-detail .quanlity-box > div.colors select,
	.product-detail .footer-detail .quanlity-box > div.quanlity select {
		width: 100%;
	}
}

/* ---- shop sidebar price filter + buttons ---- */
#price-filter-btn { background: var(--brand); color: #fff; border-color: var(--brand); }
#price-filter-btn:hover { background: var(--brand-dark); color: #fff; }
.price-range-fill { background: var(--brand-light); }
.price-range-bar input[type=range]::-webkit-slider-thumb { border-color: var(--brand); }

/* ---- footer ---- */
footer { background: #F7F6FB; border-top: 1px solid #EDEBF5; }
footer .widget-newsletter .info .questions { color: var(--ink); font-weight: 700; }
footer .widget-newsletter .info .phone,
footer .widget-newsletter .info .address { color: var(--muted); }
.social-list li a { background: #fff; color: var(--brand); box-shadow: 0 1px 3px rgba(24,29,39,.08); }
.social-list li a:hover { background: var(--brand); color: #fff; }
.footer-bottom { background: #fff; border-top: 1px solid #EDEBF5; }
.footer-bottom .copyright { color: var(--muted); }
