/* ===========================
   SHOP PAGE — Shopify-style storefront
   Extends Sports.css tokens: --blue:#0051A2 / --blue-dark:#003a75 / --accent:#6ea8ff / --green:#4E9F3D
   Load AFTER Sports.css.
=========================== */

/* --- Cart icon in navbar --- */
.nav-right {
	display: flex;
	align-items: center;
	gap: 18px;
}

.cart-toggle {
	position: relative;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.3);
	color: white;
	width: 42px;
	height: 42px;
	border-radius: 8px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	transition: 0.25s ease;
	flex-shrink: 0;
}

.cart-toggle:hover { border-color: var(--accent); color: var(--accent); }

.cart-toggle .cart-badge {
	position: absolute;
	top: -7px;
	right: -7px;
	background: var(--green);
	color: #04240a;
	font-size: 11px;
	font-weight: bold;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border-radius: 999px;
	display: flex;
	align-items: center;
	justify-content: center;
	transform: scale(0);
	transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cart-toggle .cart-badge.show { transform: scale(1); }

.cart-toggle.bump { animation: cart-bump 0.35s ease; }

@keyframes cart-bump {
	0%, 100% { transform: scale(1); }
	40% { transform: scale(1.18); }
}

/* --- Wallet icon in navbar --- */
.wallet-toggle {
	position: relative;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.3);
	color: white;
	height: 42px;
	padding: 0 12px;
	border-radius: 8px;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 16px;
	transition: 0.25s ease;
	flex-shrink: 0;
}

.wallet-toggle:hover { border-color: var(--accent); color: var(--accent); }

.wallet-balance-pill {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12.5px;
	font-weight: bold;
	color: var(--accent);
	white-space: nowrap;
}

/* --- Wallet drawer (reuses cart-drawer look) --- */
.wallet-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 6, 16, 0.6);
	backdrop-filter: blur(2px);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
	z-index: 40;
}

.wallet-overlay.open { opacity: 1; pointer-events: auto; }

.wallet-drawer {
	position: fixed;
	top: 0;
	right: 0;
	height: 100%;
	width: 380px;
	max-width: 92vw;
	background: linear-gradient(180deg, #00203f, #00142b);
	border-left: 1px solid rgba(255, 255, 255, 0.15);
	z-index: 50;
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.wallet-drawer.open { transform: translateX(0); }

.wallet-body {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 22px 20px 26px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.wallet-balance-label {
	font-size: 12.5px;
	color: rgba(245, 245, 245, 0.6);
	margin: 0;
}

.wallet-balance-amount {
	font-family: 'Times New Roman', serif;
	font-size: 34px;
	color: var(--accent);
	margin: 0 0 22px;
}

.wallet-topup {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 10px;
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.wallet-topup-label {
	font-size: 12.5px;
	color: rgba(245, 245, 245, 0.75);
	font-weight: bold;
}

.wallet-topup-row {
	display: flex;
	align-items: center;
	gap: 6px;
	background: rgba(0, 0, 0, 0.25);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 8px;
	padding: 10px 12px;
}

.wallet-currency {
	color: rgba(245, 245, 245, 0.6);
	font-weight: bold;
	font-size: 14px;
}

.wallet-topup-row input {
	flex: 1 1 auto;
	background: transparent;
	border: none;
	color: white;
	font-size: 15px;
	font-weight: bold;
	min-width: 0;
}

.wallet-topup-row input:focus { outline: none; }
.wallet-topup-row input::-webkit-outer-spin-button,
.wallet-topup-row input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.wallet-quick-amounts {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.wallet-quick-amounts button {
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: rgba(245, 245, 245, 0.85);
	font-size: 12px;
	font-weight: bold;
	padding: 7px 12px;
	border-radius: 999px;
	cursor: pointer;
	transition: 0.2s ease;
}

.wallet-quick-amounts button:hover { border-color: var(--accent); color: var(--accent); }

.wallet-note {
	font-size: 11.5px;
	color: rgba(245, 245, 245, 0.5);
	line-height: 1.6;
	margin: 18px 0 0;
}

/* --- Wallet controls inside the cart drawer --- */
.cart-wallet-row {
	font-size: 13px;
}

.wallet-apply-toggle {
	display: flex;
	align-items: center;
	gap: 9px;
	cursor: pointer;
	color: rgba(245, 245, 245, 0.85);
}

.wallet-apply-toggle input {
	width: 15px;
	height: 15px;
	accent-color: var(--blue);
	cursor: pointer;
	flex-shrink: 0;
}

.wallet-available {
	color: rgba(245, 245, 245, 0.55);
	font-weight: normal;
}

.cart-wallet-applied-row,
.cart-due-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 13.5px;
}

.cart-wallet-applied-row { color: var(--accent); }
.cart-due-row { font-weight: bold; font-size: 14.5px; border-top: 1px solid rgba(255, 255, 255, 0.15); padding-top: 8px; }

/* --- Category filter pills --- */
.category-bar {
	max-width: 1200px;
	margin: auto;
	padding: 4px 20px 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.category-pill {
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: rgba(245, 245, 245, 0.8);
	font-family: Arial, Helvetica, sans-serif;
	font-size: 13px;
	font-weight: bold;
	padding: 9px 18px;
	border-radius: 999px;
	cursor: pointer;
	transition: 0.2s ease;
}

.category-pill:hover { border-color: var(--accent); color: white; }

.category-pill.active {
	background: var(--blue);
	border-color: var(--blue);
	color: white;
}

/* --- Product grid (distinct from the sport-card "coming soon" grid) --- */
.product-grid {
	max-width: 1200px;
	margin: auto;
	padding: 26px 20px 70px;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 22px;
}

.product-card {
	background: rgba(0, 0, 0, 0.25);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 10px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.25s ease, border-color 0.25s ease;
	opacity: 0;
	animation: card-in 0.45s ease forwards;
	position: relative;
}

.product-card:hover { transform: translateY(-4px); border-color: var(--accent); }

.product-media {
	position: relative;
	aspect-ratio: 1 / 1;
	background: #041226;
	overflow: hidden;
	display: block;
	width: 100%;
	border: none;
	padding: 0;
	margin: 0;
	cursor: pointer;
	font: inherit;
	text-align: left;
}

.product-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.product-card:hover .product-media img { transform: scale(1.06); }

.product-media-hint {
	position: absolute;
	inset: auto 0 0 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	padding: 9px 10px;
	background: linear-gradient(0deg, rgba(0, 6, 16, 0.85), rgba(0, 6, 16, 0));
	color: white;
	font-size: 12px;
	font-weight: bold;
	opacity: 0;
	transform: translateY(6px);
	transition: 0.2s ease;
	pointer-events: none;
}

.product-media:hover .product-media-hint,
.product-media:focus-visible .product-media-hint {
	opacity: 1;
	transform: translateY(0);
}

.product-media:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: -2px;
}

.product-tag {
	position: absolute;
	top: 10px;
	left: 10px;
	background: var(--sport-color, var(--blue));
	color: white;
	font-size: 10.5px;
	font-weight: bold;
	letter-spacing: 0.4px;
	text-transform: uppercase;
	padding: 5px 9px;
	border-radius: 5px;
}

.product-body {
	padding: 16px 16px 18px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex-grow: 1;
}

.product-body h4 {
	font-family: 'Times New Roman', serif;
	font-size: 16.5px;
	margin: 0;
	letter-spacing: 0.3px;
}

.product-variant {
	font-size: 12px;
	color: rgba(245, 245, 245, 0.55);
	margin: -4px 0 0;
}

.product-price-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: auto;
	gap: 10px;
}

.product-price {
	font-size: 15px;
	font-weight: bold;
	color: var(--accent);
}

.add-to-cart {
	background: var(--blue);
	color: white;
	border: none;
	font-size: 12.5px;
	font-weight: bold;
	padding: 9px 14px;
	border-radius: 6px;
	cursor: pointer;
	white-space: nowrap;
	transition: 0.2s ease;
}

.add-to-cart:hover { background: steelblue; }

.add-to-cart.added { background: var(--green); color: #04240a; }

/* --- Cart drawer --- */
.cart-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 6, 16, 0.6);
	backdrop-filter: blur(2px);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
	z-index: 40;
}

.cart-overlay.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
	position: fixed;
	top: 0;
	right: 0;
	height: 100%;
	width: 380px;
	max-width: 92vw;
	background: linear-gradient(180deg, #00203f, #00142b);
	border-left: 1px solid rgba(255, 255, 255, 0.15);
	z-index: 50;
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer.open { transform: translateX(0); }

.cart-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 20px 16px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.cart-header h3 {
	font-family: 'Times New Roman', serif;
	font-size: 20px;
	margin: 0;
}

.cart-close {
	background: transparent;
	border: none;
	color: rgba(245, 245, 245, 0.7);
	font-size: 20px;
	cursor: pointer;
	line-height: 1;
}

.cart-close:hover { color: var(--accent); }

.cart-items {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 14px 20px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.cart-empty {
	color: rgba(245, 245, 245, 0.6);
	font-size: 13.5px;
	text-align: center;
	margin-top: 40px;
	line-height: 1.7;
}

.cart-empty a { color: var(--accent); font-weight: bold; text-decoration: none; }

.cart-line {
	display: flex;
	gap: 12px;
}

.cart-line img {
	width: 62px;
	height: 62px;
	border-radius: 8px;
	object-fit: cover;
	flex-shrink: 0;
	background: #041226;
}

.cart-line-info {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.cart-line-info h5 {
	font-size: 13.5px;
	margin: 0;
	font-weight: bold;
}

.cart-line-info .variant {
	font-size: 11.5px;
	color: rgba(245, 245, 245, 0.55);
}

.cart-line-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 2px;
}

.qty-stepper {
	display: flex;
	align-items: center;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 6px;
	overflow: hidden;
}

.qty-stepper button {
	background: transparent;
	border: none;
	color: white;
	width: 24px;
	height: 24px;
	cursor: pointer;
	font-size: 13px;
}

.qty-stepper button:hover { background: rgba(255, 255, 255, 0.1); }

.qty-stepper span {
	width: 24px;
	text-align: center;
	font-size: 12.5px;
}

.cart-line-price { font-size: 13px; font-weight: bold; color: var(--accent); }

.cart-remove {
	background: none;
	border: none;
	color: rgba(245, 245, 245, 0.4);
	font-size: 11px;
	text-decoration: underline;
	cursor: pointer;
	padding: 0;
	align-self: flex-start;
}

.cart-remove:hover { color: #ff8a8a; }

.cart-footer {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	padding: 16px 20px 20px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.cart-subtotal-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 14px;
}

.cart-subtotal-row .amount {
	font-family: 'Times New Roman', serif;
	font-size: 19px;
	color: var(--accent);
}

.cart-note {
	font-size: 11.5px;
	color: rgba(245, 245, 245, 0.5);
	margin: 0;
}

.checkout-btn {
	background: var(--green);
	color: #04240a;
	border: none;
	font-weight: bold;
	font-size: 14.5px;
	padding: 13px;
	border-radius: 8px;
	cursor: pointer;
	transition: 0.2s ease;
}

.checkout-btn:hover { filter: brightness(1.08); }

.checkout-btn:disabled {
	background: rgba(255, 255, 255, 0.12);
	color: rgba(245, 245, 245, 0.45);
	cursor: not-allowed;
}

/* --- Toast --- */
.toast {
	position: fixed;
	bottom: 26px;
	left: 50%;
	transform: translateX(-50%) translateY(20px);
	background: #04240a;
	color: var(--green);
	border: 1px solid var(--green);
	font-size: 13px;
	font-weight: bold;
	padding: 12px 20px;
	border-radius: 999px;
	opacity: 0;
	pointer-events: none;
	transition: 0.3s ease;
	z-index: 60;
}

.toast.show {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

/* --- Checkout success modal --- */
.modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 6, 16, 0.72);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 70;
	padding: 20px;
}

.modal-overlay.open { display: flex; }

.modal-box {
	background: linear-gradient(180deg, #00203f, #00142b);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 12px;
	padding: 32px;
	max-width: 380px;
	width: 100%;
	text-align: center;
}

.modal-box .modal-icon {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--green);
	color: #04240a;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	margin: 0 auto 16px;
}

.modal-box h3 {
	font-family: 'Times New Roman', serif;
	font-size: 20px;
	margin: 0 0 10px;
}

.modal-box p {
	font-size: 13.5px;
	color: rgba(245, 245, 245, 0.75);
	line-height: 1.6;
	margin: 0 0 22px;
}

.modal-box button {
	background: var(--blue);
	color: white;
	border: none;
	font-weight: bold;
	font-size: 13.5px;
	padding: 11px 22px;
	border-radius: 8px;
	cursor: pointer;
}

.modal-box button:hover { background: steelblue; }

/* --- Product quick view --- */
.quickview-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 6, 16, 0.8);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 80;
	padding: 16px;
}

.quickview-overlay.open { display: flex; }

.quickview-box {
	position: relative;
	background: linear-gradient(180deg, #00203f, #00142b);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 14px;
	max-width: 1320px;
	width: 96vw;
	height: 92vh;
	max-height: 92vh;
	overflow: hidden;
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	gap: 0;
}

.quickview-close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(0, 6, 16, 0.55);
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: white;
	font-size: 15px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 3;
	transition: 0.2s ease;
}

.quickview-close:hover { border-color: var(--accent); color: var(--accent); }

.quickview-gallery {
	display: flex;
	flex-direction: column;
	background: #041226;
	border-radius: 14px 0 0 14px;
	overflow: hidden;
	height: 100%;
	min-height: 0;
}

.quickview-main {
	position: relative;
	flex: 1;
	min-height: 0;
	background: #041226;
}

.quickview-main img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.quickview-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(0, 6, 16, 0.55);
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: white;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: 0.2s ease;
}

.quickview-nav:hover { border-color: var(--accent); color: var(--accent); }
.quickview-nav.prev { left: 12px; }
.quickview-nav.next { right: 12px; }

.quickview-thumbs {
	display: flex;
	gap: 10px;
	padding: 12px;
	flex-wrap: wrap;
}

.quickview-thumb {
	width: 54px;
	height: 54px;
	border-radius: 7px;
	overflow: hidden;
	border: 2px solid transparent;
	background: none;
	padding: 0;
	cursor: pointer;
	flex-shrink: 0;
	opacity: 0.65;
	transition: 0.2s ease;
}

.quickview-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.quickview-thumb:hover { opacity: 1; }

.quickview-thumb.active {
	border-color: var(--accent);
	opacity: 1;
}

.quickview-info {
	padding: 34px 30px 30px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	height: 100%;
	overflow-y: auto;
	box-sizing: border-box;
}

.quickview-category {
	font-size: 12px;
	font-weight: bold;
	letter-spacing: 0.4px;
	text-transform: uppercase;
	color: var(--accent);
	margin: 0 0 4px;
}

.quickview-info h3 {
	font-family: 'Times New Roman', serif;
	font-size: 25px;
	margin: 0 0 6px;
}

.quickview-variant {
	font-size: 13.5px;
	color: rgba(245, 245, 245, 0.6);
	margin: 0 0 12px;
}

.quickview-price {
	font-size: 20px;
	font-weight: bold;
	color: var(--accent);
	margin: 0 0 22px;
}

.quickview-colors {
	margin-bottom: 24px;
}

.quickview-label {
	display: block;
	font-size: 12.5px;
	color: rgba(245, 245, 245, 0.75);
	margin-bottom: 10px;
}

.quickview-label strong { color: white; }

.color-swatches {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.color-swatch {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--swatch-color, #333);
	border: 2px solid rgba(255, 255, 255, 0.25);
	cursor: pointer;
	padding: 0;
	position: relative;
	transition: 0.2s ease;
}

.color-swatch:hover { transform: scale(1.08); }

.color-swatch.active {
	border-color: white;
	box-shadow: 0 0 0 2px var(--accent);
}

.quickview-sizes {
	margin-bottom: 24px;
}

.size-swatches {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.size-swatch {
	min-width: 42px;
	height: 38px;
	padding: 0 12px;
	border-radius: 7px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.25);
	color: white;
	font-size: 13px;
	font-weight: bold;
	cursor: pointer;
	transition: 0.2s ease;
}

.size-swatch:hover { border-color: var(--accent); color: var(--accent); }

.size-swatch.active {
	background: var(--blue);
	border-color: var(--blue);
	color: white;
}

.quickview-actions {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 18px;
}

.quickview-actions .qty-stepper {
	border-color: rgba(255, 255, 255, 0.25);
}

.quickview-actions .add-to-cart {
	flex: 1 1 auto;
	padding: 12px 14px;
	font-size: 13.5px;
}

.quickview-note {
	font-size: 11.5px;
	color: rgba(245, 245, 245, 0.5);
	margin: 0;
}

@media (max-width: 720px) {
	.quickview-box { grid-template-columns: 1fr; height: auto; max-height: 92vh; overflow-y: auto; }
	.quickview-gallery { border-radius: 14px 14px 0 0; height: 46vh; flex-shrink: 0; }
	.quickview-info { height: auto; overflow-y: visible; padding: 24px 20px 26px; }
}

@media (max-width: 900px) {
	.product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
	.product-grid { grid-template-columns: 1fr 1fr; gap: 14px; padding-top: 6px; }
	.cart-drawer { width: 100%; }
	.wallet-drawer { width: 100%; }
	.wallet-balance-pill { display: none; }
	.product-media-hint { opacity: 1; transform: none; padding: 6px 8px; font-size: 10.5px; }
}
