/* Shop styles: product cards (home, archive, related), product archive, product page. Mobile at max-width 768px. */

/* Product cards */
.shop .container { padding-block: 64px 24px; }
.ak-main .shop .section-head h2 { font-size: 28px; }
.shop__all { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; }
.shop__all .icon { width: 16px; height: 16px; stroke-width: 2.4; }
.products { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
/* WooCommerce's clearfix pseudo-elements would take the first grid cell. */
.ak-main ul.products::before, .ak-main ul.products::after { content: none; display: none; }
.products li { display: flex; }
.product { position: relative; flex: 1; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.product:hover, .product:focus { color: var(--ink); border-color: #CFCFD4; box-shadow: 0 8px 24px rgba(27, 27, 31, .06); }
.product__media { position: relative; background: var(--soft); aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; }
.ak-main .product__media img { width: 78%; height: 78%; object-fit: contain; mix-blend-mode: multiply; transition: transform .25s; }
.product:hover .product__media img { transform: scale(1.04); }
.product__badge { position: absolute; top: 12px; right: 12px; background: var(--red); color: var(--white); font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 999px; }
.product__badge--out { background: var(--muted); }
.product__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ak-main .product__title { font-size: 15px; font-weight: 700; line-height: 1.7; min-height: 3.4em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product__price { margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.product__price del { font-size: 13px; color: #8A8A92; }
.product__price ins { text-decoration: none; font-size: 19px; font-weight: 800; }
.product__price small { font-size: 12px; font-weight: 500; }
.product__cta { margin-top: 8px; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; border: 1.5px solid var(--red); color: var(--red-dark); border-radius: 10px; font-weight: 700; font-size: 14px; transition: background .15s, color .15s; }
.product:hover .product__cta { background: var(--red); color: var(--white); }

/* Archive (head and breadcrumb live in main.css) */
.shop-archive .container { padding-block: 24px 64px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 16px; border: 1.5px solid var(--line); background: var(--white); color: var(--ink); border-radius: 999px; font-weight: 700; font-size: 14px; }
.filter span { font-size: 12px; font-weight: 500; color: var(--muted); }
.filter:hover, .filter:focus { border-color: var(--ink); color: var(--ink); }
.filter[aria-current] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.filter[aria-current] span { color: rgba(255, 255, 255, .75); }
.toolbar__end { display: flex; align-items: center; gap: 12px; }
.toolbar__count { font-size: 14px; color: var(--muted); }
.sort { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; color: var(--muted); }
.sort select { min-height: 42px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--white); font-size: 14px; color: var(--ink); }
.archive__empty { text-align: center; color: var(--muted); padding: 40px 0; }
.woocommerce-pagination { margin-top: 32px; }
.woocommerce-pagination ul.page-numbers { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 6px; border: 0; }
.woocommerce-pagination ul.page-numbers li { border: 0; }
.woocommerce-pagination .page-numbers a, .woocommerce-pagination .page-numbers span { display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border: 1.5px solid var(--line); border-radius: 10px; color: var(--ink); font-weight: 700; }
.woocommerce-pagination .page-numbers .current { background: var(--ink); border-color: var(--ink); color: var(--white); }

/* Order band variants */
.order-band--compact .container { padding-block: 40px; }

/* Product page */
.pdp > .container { padding-block: 20px 56px; }
.pdp .breadcrumb { margin-bottom: 20px; }
.pdp__top { display: flex; gap: 48px; flex-wrap: wrap; align-items: flex-start; }
.gallery { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
/* Gallery: Swiper slider + thumbs; the wrapper/slide rules also cover single images (no Swiper loaded). */
.gallery__main { position: relative; width: 100%; overflow: hidden; background: var(--soft); border-radius: var(--radius-xl); aspect-ratio: 1 / 1; }
.gallery__main .swiper-wrapper { display: flex; height: 100%; }
.gallery__main .swiper-slide { flex: none; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: var(--soft); } /* Own background: Swiper transforms isolate blending from the frame. */
.ak-main .gallery__main img { width: 80%; height: 80%; object-fit: contain; mix-blend-mode: multiply; }
.gallery__badge { z-index: 2; top: 16px; right: 16px; font-size: 14px; padding: 4px 12px; }
.gallery__thumbs { width: 100%; }
.gallery__thumbs .gallery__thumb { width: 88px; height: 88px; border: 2px solid transparent; background: var(--soft); border-radius: 12px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.gallery__thumbs .swiper-slide-thumb-active { border-color: var(--red); }
.ak-main .gallery__thumb img { width: 76%; height: 76%; object-fit: contain; mix-blend-mode: multiply; }
.pdp__info { flex: 1 1 460px; min-width: 0; }
.pdp__meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tag { background: #F3F3F5; color: var(--ink); font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.tag:hover, .tag:focus { color: var(--ink); background: var(--line); }
.stock { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: #137A3B; }
.stock span { width: 8px; height: 8px; border-radius: 50%; background: var(--wa); }
.stock--out { color: var(--muted); }
.stock--out span { background: var(--muted); }
.ak-main .pdp__info h1 { font-size: 30px; line-height: 1.5; font-weight: 800; margin: 10px 0; }
.pdp__short { margin: 0 0 20px; color: var(--muted); font-size: 15px; line-height: 1.9; }
.pdp__short p { margin: 0; }
.keyspecs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 24px; }
.keyspecs div { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.keyspecs dt { font-size: 12px; color: var(--muted); }
.keyspecs dd { margin: 0; font-weight: 800; }
.buybox { background: var(--soft); border-radius: 16px; padding: 20px; margin: 0; }
.buybox__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.buybox__price { display: flex; flex-direction: column; }
.buybox__price del { font-size: 14px; color: #8A8A92; }
.buybox__price ins { text-decoration: none; font-size: 30px; font-weight: 800; line-height: 1.3; }
.buybox__price small { font-size: 15px; font-weight: 500; }
.qty { display: flex; align-items: center; border: 1.5px solid var(--line); background: var(--white); border-radius: 12px; overflow: hidden; }
.qty button, .qty button:hover, .qty button:focus { width: 46px; height: 46px; padding: 0; border: 0; border-radius: 0; background: var(--white); color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.qty input, .qty output { width: 44px; padding: 0; text-align: center; font-weight: 800; font-size: 17px; border: 0; background: transparent; color: var(--ink); -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.buybox__add { width: 100%; margin-top: 16px; min-height: 54px; font-size: 17px; font-weight: 800; }
.buybox__wc { margin-top: 16px; }
.buybox__or { font-size: 13px; color: var(--muted); margin: 14px 0 8px; text-align: center; }
.buybox__channels { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; gap: 8px; }
.channel { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; border: 1.5px solid var(--line); background: var(--white); border-radius: 10px; color: var(--ink); font-weight: 700; font-size: 14px; }
.channel:hover, .channel:focus { border-color: var(--ink); color: var(--ink); }
.channel .icon-svg { width: 16px; height: 16px; }
.channel.ch-phone .icon-svg { color: var(--red); }
.recharge-note { margin-top: 14px; display: flex; align-items: center; gap: 10px; border: 1px dashed var(--line); border-radius: 12px; padding: 12px 14px; color: var(--ink); font-size: 14px; }
.recharge-note:hover, .recharge-note:focus { color: var(--ink); border-color: var(--red); }
.recharge-note .icon { width: 20px; height: 20px; color: var(--red); }
.recharge-note strong { color: var(--red-dark); }
.pdp__tabs { margin-top: 56px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.tabs [role="tab"], .tabs [role="tab"]:hover, .tabs [role="tab"]:focus { min-height: 48px; padding: 0 20px; border: 0; border-bottom: 3px solid transparent; border-radius: 0; margin-bottom: -1px; background: transparent; font-weight: 700; font-size: 16px; color: var(--muted); cursor: pointer; }
.tabs [role="tab"][aria-selected="true"] { border-bottom-color: var(--red); color: var(--ink); font-weight: 800; }
.tabpanel { max-width: 860px; padding-top: 24px; }
.prose { font-size: 16px; color: #3A3A42; line-height: 2; }
.ak-main .prose h2 { font-size: 22px; font-weight: 800; color: var(--ink); margin: 0 0 8px; }
.ak-main .prose h3 { font-size: 18px; font-weight: 800; color: var(--ink); margin: 16px 0 6px; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-inline-start: 20px; }
.prose b, .prose strong { color: var(--ink); }
.specs { width: 100%; margin: 0; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-size: 15px; }
.specs th, .specs td { border: 0; border-bottom: 1px solid var(--line-soft); padding: 12px 16px; line-height: 1.7; vertical-align: middle; }
.specs th { text-align: right; font-weight: 500; color: var(--muted); background: #FAFAFB; width: 38%; }
.specs td { font-weight: 700; background: none; }
.specs tbody > tr:nth-child(odd) > td, .specs tbody tr:hover > td { background: none; }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }
.related { margin-top: 56px; }
.ak-main .related .section-head h2 { font-size: 24px; }

@media (prefers-reduced-motion: reduce) {
	.ak-main .product__media img { transition: none; }
	.product:hover .product__media img { transform: none; }
}

@media (max-width: 768px) {
	.shop { border-top: 1px solid var(--line); }
	.shop .container { padding: 20px 0 24px; }
	.shop .section-head, .related .section-head { padding-inline: 16px; align-items: center; margin-bottom: 10px; }
	.ak-main .shop .section-head h2 { font-size: 18px; }
	.ak-main .related .section-head h2 { font-size: 17px; }
	.shop__all { display: inline-flex !important; font-size: 14px; }
	.shop__all .icon { display: none; }
	.products { display: flex; gap: 10px; overflow-x: auto; padding: 0 16px 4px; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-padding-inline: 16px; }
	.products::-webkit-scrollbar { display: none; }
	.products li { flex: 0 0 168px; scroll-snap-align: start; }
	.product { border-radius: var(--radius); }
	.product__media { aspect-ratio: auto; height: 150px; }
	.ak-main .product__media img { width: 80%; height: 80%; }
	.product__badge { top: 8px; right: 8px; font-size: 11px; padding: 1px 7px; }
	.product__body { padding: 10px 12px 12px; gap: 4px; }
	.ak-main .product__title { font-size: 13px; min-height: 3.4em; }
	.product__price { flex-direction: column; align-items: flex-start; gap: 0; }
	.product__price del { font-size: 12px; }
	.product__price ins { font-size: 16px; }
	.product__price small { font-size: 11px; }
	.product__cta { display: none; }

	.shop-archive .container { padding: 0 0 24px; }
	.toolbar { position: sticky; top: 60px; z-index: 20; background: var(--white); display: block; padding: 8px 0 10px; margin-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
	.filters { flex-wrap: nowrap; overflow-x: auto; gap: 6px; padding: 0 16px; scrollbar-width: none; }
	.filters::-webkit-scrollbar { display: none; }
	.filter { flex: none; min-height: 40px; padding: 0 14px; font-size: 13px; white-space: nowrap; }
	.toolbar__end { justify-content: space-between; padding: 8px 16px 0; }
	.toolbar__count, .sort { font-size: 13px; }
	.sort select { min-height: 36px; padding: 0 8px; font-size: 13px; border-radius: 8px; }
	.products.products--grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; overflow: visible; padding: 0 16px; scroll-snap-type: none; }
	.products--grid li { min-width: 0; }
	.archive__empty, .woocommerce-pagination { padding-inline: 16px; }


	.pdp > .container { padding: 0 0 8px; }
	.pdp .breadcrumb { padding: 10px 16px 0; margin-bottom: 10px; }
	.pdp .breadcrumb > span:nth-last-child(-n+2) { display: none; }
	.pdp__top { display: block; }
	.gallery { padding: 0 16px; gap: 8px; }
	.gallery__main { border-radius: 16px; aspect-ratio: auto; height: 300px; }
	.ak-main .gallery__main img { height: 86%; width: auto; max-width: 86%; }
	.gallery__badge { top: 12px; right: 12px; font-size: 12px; padding: 2px 10px; }
	.gallery__thumbs .gallery__thumb { width: 56px; height: 56px; border-radius: 10px; }
	.pdp__info { padding: 14px 16px 0; display: flex; flex-direction: column; }
	.ak-main .pdp__info h1 { font-size: 20px; line-height: 1.6; margin: 8px 0 6px; order: 2; }
	.pdp__short { display: none; }
	.pdp__meta { order: 1; }
	.buybox { order: 3; background: transparent; padding: 0; }
	.keyspecs { order: 4; gap: 8px; margin: 12px 0 0; }
	.recharge-note { order: 5; font-size: 13px; }
	.keyspecs div { padding: 8px 12px; }
	.keyspecs dt { font-size: 11px; }
	.keyspecs dd { font-size: 14px; }
	.buybox__row .qty, .buybox__add { display: none; }
	.buybox__price { flex-direction: row-reverse; align-items: baseline; gap: 10px; justify-content: flex-end; }
	.buybox__price ins { font-size: 24px; }
	.buybox__price small { font-size: 13px; }
	.buybox__or { text-align: right; margin: 12px 0 0; background: var(--soft); border-radius: 14px 14px 0 0; padding: 12px 12px 0; font-weight: 500; }
	.buybox__channels { background: var(--soft); border-radius: 0 0 14px 14px; padding: 8px 12px 12px; gap: 6px; }
	.channel { flex-direction: column; gap: 0; min-height: 54px; font-size: 12px; line-height: 1.4; }
	.channel .icon-svg { width: 18px; height: 18px; }
	.pdp__tabs { margin-top: 20px; }
	.tabs { padding: 0 8px; gap: 0; }
	.tabs [role="tab"], .tabs [role="tab"]:hover, .tabs [role="tab"]:focus { flex: 1; padding: 0 4px; font-size: 14px; min-height: 46px; }
	.tabpanel { padding: 14px 16px 8px; }
	.prose { font-size: 14px; line-height: 1.9; }
	.ak-main .prose h2 { font-size: 16px; }
	.ak-main .prose h3 { font-size: 15px; margin: 12px 0 4px; }
	.prose p, .prose ul, .prose ol { margin-bottom: 10px; }
	.specs { font-size: 13px; }
	.specs th, .specs td { padding: 9px 12px; }
	.related { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 16px; }
	.order-band--compact .container { padding-block: 22px; }

	.mobile-bar--product { gap: 8px; align-items: center; padding-inline: 12px; }
	.qty--bar { flex: none; border-radius: 12px; }
	.qty--bar button, .qty--bar button:hover, .qty--bar button:focus { width: 36px; height: 50px; }
	.qty--bar output { width: 24px; font-size: 16px; }
	.mobile-bar--product .mb-add, .mobile-bar--product .mb-add:hover, .mobile-bar--product .mb-add:focus { flex: 1; min-height: 52px; padding: 0; border: 0; background: var(--red); color: var(--white); border-radius: 12px; font-weight: 800; font-size: 15px; display: flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; }
	.mobile-bar--product .mb-add .icon { width: 18px; height: 18px; }
	.mobile-bar--product .mb-tel { flex: none; width: 52px; height: 52px; border: 1.5px solid var(--red); border-radius: 12px; color: var(--red); display: flex; align-items: center; justify-content: center; }
}
