﻿/* ARN Traders storefront — Q Mart layout */
:root {
	--arn-black: #111111;
	--arn-yellow: #f5c400;
	--arn-cream: #fff6e8;
	--arn-card: #ffffff;
	--arn-text: #222222;
	--arn-muted: #6b6b6b;
	--arn-radius: 22px;
	--arn-shadow: 0 8px 24px rgba(17, 17, 17, 0.08);
}

body.arn-storefront {
	background: var(--arn-cream) !important;
	font-family: "Poppins", "Roboto", sans-serif;
	color: var(--arn-text);
}

body.arn-storefront .site,
body.arn-storefront #page,
body.arn-storefront .site-content-contain,
body.arn-storefront .site-content {
	background: transparent !important;
}

.arn-container {
	width: min(1280px, calc(100% - 32px));
	margin: 0 auto;
}

/* Hide original theme header chrome */
body.arn-storefront .top-bar,
body.arn-storefront #site-branding,
body.arn-storefront #sticky-header,
body.arn-storefront .header-catalog-menu-wrap,
body.arn-storefront .catalog-slider-promotion-box,
body.arn-storefront .advertisement-banner-one,
body.arn-storefront .show-menu-toggle {
	display: none !important;
}

body.arn-storefront .header-wrap {
	padding: 0;
	background: transparent;
}

body.arn-storefront #masthead {
	background: transparent;
	box-shadow: none;
	border: 0;
}

/* Top bar */
.arn-topbar {
	background: var(--arn-black);
	color: #fff;
	font-size: 13px;
	line-height: 1.2;
}
.arn-topbar-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	min-height: 44px;
	flex-wrap: wrap;
	padding: 8px 0;
}
.arn-topbar a,
.arn-topbar span {
	color: #fff;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
}
.arn-topbar a:hover { color: var(--arn-yellow); }
.arn-topbar-left,
.arn-topbar-right {
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
}
.arn-topbar svg { color: var(--arn-yellow); width: 14px; height: 14px; }
.arn-search svg { width: 16px; height: 16px; color: #888; }
.arn-cart-icon svg { width: 22px; height: 22px; }
.arn-cats h2 svg { width: 18px; height: 18px; }
.arn-cat-ico svg { width: 16px; height: 16px; color: #555; }
.arn-trust-ico svg { width: 22px; height: 22px; }
.arn-pill {
	background: #2a2a2a;
	border-radius: 999px;
	padding: 5px 12px;
	font-weight: 600;
}
.arn-pill-currency { background: #1c3d24; }

/* Main header */
.arn-header {
	background: #fff;
	border-bottom: 1px solid rgba(0,0,0,0.04);
}
.arn-header-inner {
	display: flex;
	align-items: center;
	gap: 22px;
	padding: 14px 0;
}
.arn-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	min-width: 250px;
}
.arn-trust-ico i,
.arn-cat-ico i,
.arn-cart-icon i,
.arn-search i,
.arn-topbar i,
.arn-cats h2 i {
	font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", FontAwesome !important;
	font-weight: 900;
	display: inline-block;
}
.arn-logo img,
.arn-logo .custom-logo {
	height: 72px !important;
	width: auto !important;
	max-width: 240px;
}
.arn-logo-tag {
	display: block;
	font-size: 11px;
	color: var(--arn-muted);
	line-height: 1.25;
	max-width: 140px;
}
.arn-logo-text {
	font-weight: 700;
	font-size: 22px;
	color: var(--arn-black);
}

.arn-search {
	flex: 1;
	display: flex;
	align-items: center;
	background: #f4f4f4;
	border-radius: 999px;
	padding: 4px 4px 4px 16px;
	min-width: 220px;
}
.arn-search i { color: #888; }
.arn-search input {
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	flex: 1;
	padding: 10px 12px !important;
	font-size: 14px;
	outline: none;
}
.arn-search button {
	background: var(--arn-yellow);
	border: 0;
	border-radius: 999px;
	padding: 10px 22px;
	font-weight: 700;
	cursor: pointer;
	color: #111;
}
.arn-search button:hover { filter: brightness(0.95); }

.arn-header-nav {
	display: flex;
	align-items: center;
	gap: 16px;
	font-weight: 600;
	font-size: 14px;
	white-space: nowrap;
}
.arn-header-nav a {
	color: var(--arn-black);
	text-decoration: none;
}
.arn-header-nav a:hover { color: #c9a227; }
.arn-cart-icon {
	position: relative;
	font-size: 20px;
}
.arn-cart-count {
	position: absolute;
	top: -8px;
	right: -10px;
	background: var(--arn-yellow);
	color: #111;
	border-radius: 999px;
	font-size: 10px;
	min-width: 16px;
	height: 16px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
}
.arn-cart-count.is-zero {
	display: none;
}

/* Hero */
.arn-hero-wrap {
	padding: 22px 0 10px;
}
.arn-hero {
	display: grid;
	grid-template-columns: 300px 1fr;
	gap: 22px;
	align-items: stretch;
}
.arn-cats {
	background: var(--arn-card);
	border-radius: var(--arn-radius);
	box-shadow: var(--arn-shadow);
	padding: 18px 8px 10px;
}
.arn-cats h2 {
	margin: 0 12px 8px;
	font-size: 16px;
	display: flex;
	align-items: center;
	gap: 8px;
}
.arn-cats ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.arn-cats a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 11px 12px;
	text-decoration: none;
	color: var(--arn-text);
	border-radius: 12px;
	font-size: 14px;
}
.arn-cats a:hover { background: #fff4d6; }
.arn-cat-ico {
	width: 28px;
	text-align: center;
	color: #555;
}
.arn-cat-label { flex: 1; }
.arn-cats .fa-chevron-right {
	font-size: 11px;
	color: #bbb;
}

.arn-banner {
	position: relative;
	background: var(--arn-card);
	border-radius: var(--arn-radius);
	box-shadow: var(--arn-shadow);
	overflow: hidden;
	min-height: 360px;
	aspect-ratio: 2 / 1;
}
.arn-slider-viewport {
	height: 100%;
	overflow: hidden;
}
.arn-slider-track {
	display: flex;
	height: 100%;
	transition: transform 0.55s ease;
	will-change: transform;
}
.arn-slide {
	flex: 0 0 100%;
	height: 100%;
	min-width: 100%;
}
.arn-slide a,
.arn-banner img {
	width: 100%;
	height: 100%;
	display: block;
}
.arn-banner img {
	object-fit: cover;
}
.arn-slider-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 4px 16px rgba(17, 17, 17, 0.12);
	color: #333;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}
.arn-slider-nav:hover {
	background: #fff;
}
.arn-slider-prev { left: 14px; }
.arn-slider-next { right: 14px; }
.arn-slider-prev svg { transform: rotate(180deg); }
.arn-slider-nav svg {
	width: 16px;
	height: 16px;
}
.arn-slider-dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 14px;
	display: flex;
	justify-content: center;
	gap: 8px;
	z-index: 2;
}
.arn-slider-dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.7);
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
	cursor: pointer;
}
.arn-slider-dot.is-active {
	width: 22px;
	background: var(--arn-yellow);
}

.arn-trust {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	margin-top: 22px;
	margin-bottom: 10px;
}
.arn-trust-item {
	background: var(--arn-card);
	border-radius: 999px;
	box-shadow: var(--arn-shadow);
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 18px;
}
.arn-trust-ico {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: 2px solid var(--arn-yellow);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #111;
	font-size: 18px;
	flex-shrink: 0;
}
.arn-trust-item strong {
	display: block;
	font-size: 14px;
}
.arn-trust-item small {
	color: var(--arn-muted);
	font-size: 12px;
}

/* Product area */
body.arn-storefront .product-widget-box,
body.arn-storefront .product-widget-wrap {
	background: transparent !important;
}
body.arn-storefront .product-widget-box .wrap,
body.arn-storefront .wrap {
	max-width: 1280px;
}
body.arn-storefront .shoppingcart-template-footer-column,
body.arn-storefront #colophon .widget-wrap,
body.arn-storefront .site-info .social-links,
body.arn-storefront .site-info .footer-navigation {
	display: none !important;
}
body.arn-storefront #colophon {
	background: #f3f3f3;
	color: #444;
}
body.arn-storefront .arn-footer {
	padding: 56px 0 28px;
}
body.arn-storefront .arn-footer-inner {
	display: grid;
	grid-template-columns: 1.4fr 0.9fr 1.1fr;
	gap: 40px 40px;
	align-items: start;
}
body.arn-storefront .arn-footer-intro h3 {
	margin: 0 0 14px;
	font-size: 20px;
	line-height: 1.35;
	font-weight: 700;
	color: #222;
	max-width: none;
}
body.arn-storefront .arn-footer-intro p {
	margin: 0;
	font-size: 13px;
	line-height: 1.75;
	color: #7a7a7a;
	max-width: none;
}
body.arn-storefront .arn-footer-brand {
	text-align: center;
}
body.arn-storefront .arn-footer-logo {
	display: inline-block;
	text-decoration: none;
}
body.arn-storefront .arn-footer-logo img,
body.arn-storefront .arn-footer-logo .custom-logo {
	height: 80px !important;
	width: auto !important;
	max-width: 220px;
	margin: 0 auto;
}
body.arn-storefront .arn-footer-social {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 16px;
}
body.arn-storefront .arn-footer-social a,
body.arn-storefront .arn-footer-facebook {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: #1877f2;
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}
body.arn-storefront .arn-footer-facebook svg {
	width: 22px;
	height: 22px;
}
body.arn-storefront .arn-footer-social a:hover,
body.arn-storefront .arn-footer-facebook:hover {
	background: #0f5fcc;
	color: #fff;
}
body.arn-storefront .arn-footer-col h4 {
	margin: 0 0 16px;
	font-size: 16px;
	font-weight: 700;
	color: #222;
}
body.arn-storefront .arn-footer-col ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
body.arn-storefront .arn-footer-col li {
	margin: 0 0 10px;
}
body.arn-storefront .arn-footer-col a {
	color: #6b6b6b;
	text-decoration: none;
	font-size: 14px;
}
body.arn-storefront .arn-footer-col a:hover {
	color: #111;
}
body.arn-storefront .arn-footer-address li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	color: #6b6b6b;
	font-size: 14px;
	line-height: 1.55;
}
body.arn-storefront .arn-footer-address svg {
	flex-shrink: 0;
	margin-top: 2px;
	color: #555;
	width: 16px;
	height: 16px;
}
body.arn-storefront .site-info {
	background: #f3f3f3;
	padding: 8px 0 28px;
}
body.arn-storefront .site-info .wrap {
	max-width: 1280px;
}
body.arn-storefront .site-info .wrap:before {
	display: none;
}
body.arn-storefront .site-info .copyright,
body.arn-storefront .site-info .copyright a {
	color: #888;
	font-size: 13px;
	text-align: center;
	float: none;
	width: 100%;
}
@media (max-width: 900px) {
	body.arn-storefront .arn-footer-inner {
		grid-template-columns: 1fr 1fr;
	}
	body.arn-storefront .arn-footer-intro h3,
	body.arn-storefront .arn-footer-intro p {
		max-width: none;
	}
}
@media (max-width: 640px) {
	body.arn-storefront .arn-footer-inner {
		grid-template-columns: 1fr;
		text-align: center;
	}
	body.arn-storefront .arn-footer-intro h3,
	body.arn-storefront .arn-footer-intro p {
		margin-left: auto;
		margin-right: auto;
	}
}
body.arn-storefront .widget-title,
body.arn-storefront h2.widget-title {
	font-weight: 700;
	margin-bottom: 12px;
}

/* Q Mart-style product cards: 5-col, equal height, yellow CTA */
body.arn-storefront .product-widget-box .shoppingcart-grid-widget-wrap {
	display: grid !important;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 24px !important;
	margin: 0 !important;
	padding: 0 !important;
	text-align: left !important;
	font-size: 0;
}
body.arn-storefront .product-widget-box .four-column-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}
body.arn-storefront .product-widget-box .three-column-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}
body.arn-storefront .product-widget-box .six-column-grid,
body.arn-storefront .product-widget-box .seven-column-grid {
	grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
}

body.arn-storefront .shoppingcart-grid-product,
body.arn-storefront .product-widget-box .shoppingcart-grid-product,
body.arn-storefront .product-widget-box .five-column-grid .shoppingcart-grid-product,
body.arn-storefront .product-widget-box .four-column-grid .shoppingcart-grid-product,
body.arn-storefront .woocommerce ul.products li.product {
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 12px !important;
	display: flex !important;
	flex-direction: column;
	align-items: stretch;
	height: 100%;
	background: #fff;
	border: 1px solid #eee4d2;
	border-radius: 20px;
	box-shadow: 0 4px 16px rgba(17, 17, 17, 0.04);
	overflow: hidden;
	box-sizing: border-box;
	font-size: 13px;
	vertical-align: top;
	float: none !important;
	text-align: left;
}

body.arn-storefront .sc-grid-product-img {
	position: relative;
	aspect-ratio: 1 / 1;
	background: #fff6e8;
	border-radius: 12px;
	overflow: hidden;
	flex-shrink: 0;
}
body.arn-storefront .sc-grid-product-img img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
	display: block;
}
body.arn-storefront .sc-grid-product-img .onsale {
	left: 8px;
	right: auto;
	top: 8px;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	padding: 4px 8px;
	border-radius: 999px;
	background: #111;
	color: #f5c400;
	text-transform: none;
}
body.arn-storefront .sc-grid-product-img .onsale:before {
	display: none !important;
}

body.arn-storefront .sc-grid-product-content {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	text-align: left;
	padding: 10px 2px 0;
	border-top: 0;
	min-height: 0;
	background: transparent;
}

body.arn-storefront .woocommerce-product-rating.woocommerce {
	display: none !important;
}

body.arn-storefront .sc-grid-product-title {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.35;
	height: 2.7em;
	margin: 0 0 8px;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	width: 100%;
}
body.arn-storefront .sc-grid-product-title a {
	color: #222;
	text-decoration: none;
}

body.arn-storefront .shoppingcart-grid-product .price {
	display: flex !important;
	justify-content: flex-start;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 8px;
	min-height: 1.5em;
	margin: 0 0 12px;
	float: none !important;
	font-weight: 700;
	font-size: 15px;
	color: #111;
}
body.arn-storefront .shoppingcart-grid-product .price ins,
body.arn-storefront .shoppingcart-grid-product .price del {
	float: none !important;
	margin: 0;
	background: transparent;
	text-decoration: none;
}
body.arn-storefront .shoppingcart-grid-product .price del,
body.arn-storefront .shoppingcart-grid-product .price del .amount {
	color: #9a9a9a !important;
	font-weight: 500;
	font-size: 13px;
	text-decoration: line-through;
}

body.arn-storefront .product-item-action {
	margin-top: auto;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	text-align: center;
}
body.arn-storefront .shoppingcart-grid-product .add_to_cart_button,
body.arn-storefront .shoppingcart-grid-product .product_type_grouped,
body.arn-storefront .shoppingcart-grid-product .product_type_simple,
body.arn-storefront .shoppingcart-grid-product .product_type_variable,
body.arn-storefront .shoppingcart-grid-product .product_type_external,
body.arn-storefront .shoppingcart-grid-product .product-item-action .button {
	white-space: nowrap !important;
	width: 100% !important;
	box-sizing: border-box;
	margin: 0 !important;
	padding: 0 12px !important;
	font-size: 14px !important;
	font-weight: 600;
	line-height: 44px !important;
	min-height: 44px !important;
	height: 44px !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: #f5c400 !important;
	color: #111 !important;
	text-transform: none;
}
body.arn-storefront .shoppingcart-grid-product .add_to_cart_button:before,
body.arn-storefront .shoppingcart-grid-product .product_type_grouped:before {
	margin-right: 8px;
	color: #111;
}
body.arn-storefront .shoppingcart-grid-product .add_to_cart_button:hover,
body.arn-storefront .shoppingcart-grid-product .product-item-action .button:hover {
	filter: brightness(0.95);
	color: #111 !important;
	background: #f5c400 !important;
}

body.arn-storefront .shoppingcart-grid-product .product_add_to_wishlist,
body.arn-storefront .product-item-action .yith-wcwl-add-to-wishlist,
body.arn-storefront .product-item-action .yith-wcwl-add-button,
body.arn-storefront .yith-add-to-wishlist-button-block,
body.arn-storefront .yith-wcwl-add-to-wishlist-button {
	display: none !important;
}
body.arn-storefront .product-item-action .added_to_cart.wc-forward {
	display: block !important;
	margin-top: 8px;
	font-size: 13px;
	font-weight: 600;
	color: #111;
	text-decoration: underline;
}
.arn-cart-toast {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 9999;
	background: #111;
	color: #fff;
	padding: 12px 18px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	opacity: 0;
	transform: translateY(12px);
	pointer-events: none;
	transition: opacity .2s ease, transform .2s ease;
}
.arn-cart-toast.is-on {
	opacity: 1;
	transform: translateY(0);
}

body.arn-storefront .widget_products,
body.arn-storefront .widget_top_rated_products,
body.arn-storefront .widget_product_tag_cloud,
body.arn-storefront .widget.widget_product_tag_cloud {
	display: none !important;
}

/* Cart / checkout: hide blog sidebar */
body.woocommerce-cart.arn-storefront #secondary,
body.woocommerce-checkout.arn-storefront #secondary {
	display: none !important;
}
body.woocommerce-cart.arn-storefront #primary,
body.woocommerce-checkout.arn-storefront #primary {
	width: 100% !important;
	float: none !important;
	max-width: 100%;
}

/* Cart page: visible Remove control */
body.woocommerce-cart.arn-storefront .wc-block-cart-item__quantity {
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}
body.woocommerce-cart.arn-storefront .wc-block-cart-item__remove-link {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 6px;
	overflow: visible !important;
	width: auto !important;
	height: auto !important;
	min-height: 36px;
	padding: 6px 14px !important;
	margin: 0;
	border: 1px solid #e2b4b4 !important;
	border-radius: 999px !important;
	background: #fff5f5 !important;
	color: #b42318 !important;
	cursor: pointer;
	font-size: 13px !important;
	font-weight: 600;
	line-height: 1 !important;
	box-shadow: none !important;
	text-decoration: none !important;
}
body.woocommerce-cart.arn-storefront .wc-block-cart-item__remove-link svg {
	width: 16px !important;
	height: 16px !important;
	fill: currentColor !important;
	display: block !important;
	flex-shrink: 0;
}
body.woocommerce-cart.arn-storefront .wc-block-cart-item__remove-link::after {
	content: "Remove";
}
body.arn-storefront .woocommerce table.cart td.product-remove,
body.arn-storefront .woocommerce-cart table.cart .product-remove {
	display: table-cell !important;
	width: 70px;
	text-align: center;
	visibility: visible !important;
}
body.arn-storefront .woocommerce a.remove {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 32px !important;
	height: 32px !important;
	font-size: 22px !important;
	line-height: 1 !important;
	border-radius: 50%;
	background: #fff5f5 !important;
	color: #b42318 !important;
	border: 1px solid #e2b4b4;
	text-decoration: none !important;
	opacity: 1 !important;
	visibility: visible !important;
	text-indent: 0 !important;
	overflow: visible !important;
}

body.arn-storefront .woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 24px;
	margin: 0;
}
body.arn-storefront .woocommerce ul.products li.product {
	width: auto !important;
	margin: 0 !important;
	float: none !important;
}

@media (max-width: 1100px) {
	.arn-hero { grid-template-columns: 1fr; }
	.arn-banner { min-height: 240px; }
	.arn-trust { grid-template-columns: 1fr 1fr; }
	.arn-logo-tag { display: none; }
	body.arn-storefront .product-widget-box .shoppingcart-grid-widget-wrap,
	body.arn-storefront .woocommerce ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
		gap: 16px !important;
	}
}
@media (max-width: 780px) {
	.arn-header-inner { flex-wrap: wrap; }
	.arn-search { order: 3; width: 100%; flex: 1 0 100%; }
	.arn-header-nav { margin-left: auto; gap: 10px; font-size: 13px; }
	.arn-trust { grid-template-columns: 1fr; }
	.arn-topbar-inner { justify-content: center; text-align: center; }
	body.arn-storefront .product-widget-box .shoppingcart-grid-widget-wrap,
	body.arn-storefront .woocommerce ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 12px !important;
	}
}
