/*
Theme Name: AdminKala Clean Shop
Description: Independent RTL storefront styling for the isolated AdminKala rebuild.
Version: 0.2.36
Template: storefront
Text Domain: adminkala-clean-shop
*/

:root { --ak-ink:#27303a; --ak-accent:#d94d42; --ak-green:#50b58a; --ak-line:#e6e9ed; }
html { direction:rtl; }
body { direction:rtl; background:#f5f6f7; color:var(--ak-ink); font-family:Tahoma,Arial,sans-serif; }
a { color:#2b6c82; }
.col-full { max-width:1420px; }
.site-header { background:#fff; border:0; margin-bottom:20px; padding-top:0; box-shadow:0 2px 14px #1b27310a; }
.site-header > .col-full { display:grid; grid-template-columns:190px minmax(0,1fr) 300px; grid-template-rows:68px; align-items:center; gap:0 20px; }
.site-header .storefront-primary-navigation > .col-full { display:grid; grid-template-columns:minmax(0,1fr) 300px; grid-template-rows:50px; align-items:center; gap:0 20px; }
.site-header .col-full > .site-branding { grid-column:1; grid-row:1; float:none; width:190px; max-width:190px; margin:0; }
.site-branding img { display:block; width:185px; height:auto; max-height:60px; object-fit:contain; }
.site-header .col-full > .site-search { grid-column:2; grid-row:1; float:none; width:100%; max-width:none; margin:0; }
.site-search form { margin:0; }
.site-search input[type=search] { background:#f4f5f6; border:1px solid #e8eaed; border-radius:6px; padding:13px 18px; box-shadow:none; }
.ak-header-tools { grid-column:3; grid-row:1; display:flex; align-items:center; justify-content:flex-end; gap:22px; white-space:nowrap; }
.ak-header-tools a { color:var(--ak-ink); font-size:14px; font-weight:700; }
.ak-header-tools a:hover,.ak-header-contact a:hover { color:var(--ak-accent); }
.ak-header-account::before { content:'♙'; margin-left:6px; font-size:20px; vertical-align:-2px; }
.ak-header-cart::before { content:'🛒'; margin-left:5px; }
.ak-header-contact { grid-column:2; grid-row:1; text-align:left; font-size:14px; font-weight:700; }
.ak-header-contact a { color:var(--ak-ink); }
.site-header .storefront-primary-navigation > .col-full > .main-navigation { grid-column:1; grid-row:1; float:none; width:100%; max-width:none; margin:0; }
.storefront-primary-navigation { width:100%; background:#fff; border-top:1px solid var(--ak-line); margin-top:0; }
.main-navigation ul.menu > li > a { color:var(--ak-ink); padding:13px 15px; font-weight:700; font-size:14px; }
.main-navigation ul.menu > li > a:hover { color:var(--ak-accent); }
.site-header .site-header-cart { display:none; }
.woocommerce-breadcrumb { margin-bottom:18px; color:#72808d; font-size:12px; }
.woocommerce-breadcrumb a { color:#657482; }
.storefront-breadcrumb { padding:10px 0 0; margin-bottom:10px; }
body.single-product .storefront-breadcrumb { display:none; }
body.home .site-header { margin-bottom:19px !important; }
.site-content .col-full { background:#fff; border-radius:10px; padding:24px 28px; }
/* Magento's information pages use a compact type scale and a square panel. */
body.page:not(.woocommerce-page):not(.ak-legacy-blog-page) .site-header { margin-bottom:2px; }
body.page:not(.woocommerce-page):not(.ak-legacy-blog-page) .storefront-breadcrumb { margin-bottom:0; padding:6px 0; }
body.page:not(.woocommerce-page):not(.ak-legacy-blog-page) .site-content > .col-full { max-width:1420px; min-height:356px; padding:12px 10px; border-radius:0; }
body.ak-contact-page .site-header { margin-bottom:19px !important; }
body.ak-contact-page .storefront-breadcrumb { display:none; }
body.page:not(.woocommerce-page):not(.ak-legacy-blog-page) article { margin-bottom:0; }
body.page:not(.woocommerce-page):not(.ak-legacy-blog-page) .entry-title { font-size:27px; line-height:1.4; margin:0 0 18px; }
body.page:not(.woocommerce-page):not(.ak-legacy-blog-page) .entry-content h2 { font-size:23px; line-height:1.5; margin:0 0 10px; }
body.page:not(.woocommerce-page):not(.ak-legacy-blog-page) .entry-content p { font-size:15px; line-height:2; margin:0 0 12px; }
body.page:not(.woocommerce-page):not(.ak-legacy-blog-page) .entry-content ul { list-style:none; margin:0; padding:0; font-size:15px; line-height:2; }
body.page:not(.woocommerce-page):not(.ak-legacy-blog-page) .entry-content li { margin:0 0 3px; }
.home .site-content .col-full { background:transparent; padding:0; }
.home .entry-header { display:none; }
.home .entry-content { margin:0; }
.ak-home-hero { background:none; border:0; border-radius:0; padding:0; display:grid; grid-template-columns:minmax(0,2fr) minmax(280px,1fr); gap:28px; align-items:stretch; }
.ak-home-hero-copy { min-height:525px; padding:42px; border-radius:8px; background:#eed0ce; display:flex; flex-direction:column; align-items:flex-start; justify-content:center; }
.ak-eyebrow { color:var(--ak-accent); font-weight:700; margin:0 0 8px; }
.ak-home-hero h1 { font-size:32px; line-height:1.45; margin:0 0 10px; color:var(--ak-ink); }
.ak-home-hero-copy > p:not(.ak-eyebrow) { font-size:15px; line-height:2; margin:0 0 20px; }
.ak-home-cta { display:inline-block; background:var(--ak-accent); color:#fff; border-radius:6px; padding:11px 20px; font-weight:700; }
.ak-home-cta:hover { background:#bf4037; color:#fff; }
.ak-home-hero-cats { display:grid; grid-template-rows:repeat(2,1fr); gap:10px; }
.ak-home-hero-cats a { display:block; background-color:#d3cbea; background-position:center; background-size:cover; border:0; border-radius:8px; color:transparent; font-size:0; box-shadow:none; overflow:hidden; }
.ak-home-hero-cats .ak-home-cisco-switch { background-image:url('assets/adminkala-sidebar-image-1-solid.jpg'); }
.ak-home-hero-cats .ak-home-cisco-router { background-image:url('assets/adminkala-sidebar-image-2-solid.jpg'); }
.ak-home-hero-cats a:hover { border-color:var(--ak-accent); color:var(--ak-accent); }
.ak-home-announcement { margin-top:30px; min-height:204px; padding:30px; background:#ed6960; color:#fff; text-align:center; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:15px; width:100vw; margin-inline-start:calc(50% - 50vw); }
.ak-home-announcement h2 { color:#fff; font-size:24px; margin:0; }
.ak-home-announcement a { display:inline-block; border:1px solid #fff; border-radius:6px; color:#fff; padding:10px 22px; font-weight:700; }
.ak-home-announcement a:hover { background:#fff; color:#b7423c; }
.ak-home-section { background:#fff; border-radius:10px; margin-top:26px; padding:26px 28px 10px; }
.ak-home-section-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:22px; }
.ak-home-section-heading h2 { font-size:24px; margin:0; }
.ak-home-section-heading a { white-space:nowrap; font-weight:700; }
.ak-home-section ul.products { margin-bottom:10px; }
.right-sidebar .content-area,.left-sidebar .content-area { width:100%; float:none; margin:0; }
.right-sidebar .widget-area,.left-sidebar .widget-area { display:none; }
ul.products { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; }
ul.products::before,ul.products::after { display:none; }
ul.products li.product { width:auto !important; margin:0 !important; padding:12px; border:1px solid var(--ak-line); border-radius:8px; box-shadow:0 2px 8px #25324008; text-align:center; }
ul.products li.product img { width:100%; aspect-ratio:1/1; object-fit:contain; background:#fff; }
ul.products li.product h2 { font-size:15px; line-height:1.8; min-height:52px; }
ul.products li.product .price { color:var(--ak-accent); font-weight:700; }
.ak-archive-condition-prices { display:block; line-height:1.9; }
.ak-archive-price-row { display:block; white-space:nowrap; }
.ak-archive-condition { color:var(--ak-ink); font-weight:400; margin-left:5px; }
.ak-archive-unavailable { display:inline-block; color:#8b969f; padding:7px 10px; font-size:13px; }
ul.products li.product .button { background:#eef6f3; border-radius:5px; color:#317c5e; }
.tax-product_cat .site-header { margin-bottom:6px; }
.tax-product_cat #main { display:block; }
.tax-product_cat #main > .ak-archive-layout { display:grid; grid-template-columns:minmax(0,1fr) 340px; gap:28px; align-items:start; }
.ak-archive-content { grid-column:1; min-width:0; }
.tax-product_cat .woocommerce-products-header .page-title { font-size:27px; line-height:1.5; margin:0 0 18px; }
.tax-product_cat .woocommerce-products-header .term-description { font-size:15px; line-height:2; }
.tax-product_cat .term-description p { margin:0 0 12px; }
.tax-product_cat .term-description h2 { font-size:20px; line-height:1.6; margin:14px 0 10px; }
.tax-product_cat .term-description h3 { font-size:18px; line-height:1.6; margin:12px 0 8px; }
.ak-archive-results { min-width:0; }
.ak-filter-panel { grid-column:2; border:1px solid var(--ak-line); border-radius:8px; padding:18px; background:#fff; font-size:13px; }
.ak-filter-panel summary { cursor:pointer; list-style:none; font-size:18px; font-weight:700; }
.ak-filter-panel summary::-webkit-details-marker { display:none; }
.ak-filter-panel[open] summary { margin-bottom:16px; }
.ak-filter-panel summary::after { content:'▾'; float:left; }
.ak-filter-panel[open] summary::after { content:'▴'; }
.ak-filter-group { border-top:1px solid var(--ak-line); padding-top:16px; margin-top:16px; }
.ak-filter-group h3 { font-size:14px; margin:0 0 10px; }
.ak-filter-group ul { list-style:none; padding:0; margin:0; }
.ak-filter-group li { margin:0 0 7px; line-height:1.6; }
.ak-filter-group a[aria-current=true] { font-weight:700; color:var(--ak-accent); }
.ak-clear-filters { color:var(--ak-accent); text-decoration:underline; }
.ak-archive-results ul.products { grid-template-columns:repeat(3,minmax(0,1fr)); }
.ak-source-toolbar { clear:both; display:flex; flex-wrap:wrap; align-items:center; gap:10px 20px; padding:8px 0 16px; margin-bottom:15px; border-bottom:1px solid var(--ak-line); font-size:13px; }
.tax-product_cat .woocommerce-ordering { display:none; }
.ak-source-toolbar label { display:inline-flex; align-items:center; gap:7px; margin:0; }
.ak-source-toolbar select { width:auto; min-width:65px; padding:5px 8px; margin:0; background:#f7f8f9; border:1px solid var(--ak-line); font-size:12px; }
.ak-sort-direction { font-size:18px; font-weight:700; }
.ak-view-controls { margin-right:auto; }
.ak-view-controls a { display:inline-block; padding:3px 8px; }
.ak-view-controls a[aria-current=true] { background:#f0e8ec; color:var(--ak-ink); font-weight:700; }
.ak-mode-list .ak-archive-results ul.products { display:block; }
.ak-mode-list .ak-archive-results ul.products li.product { display:grid; float:none !important; clear:both; width:100% !important; grid-template-columns:170px minmax(0,1fr); align-items:center; gap:12px 25px; text-align:right; margin-bottom:15px !important; }
.ak-mode-list .ak-archive-results ul.products li.product a.woocommerce-LoopProduct-link { grid-column:1 / -1; display:grid; grid-template-columns:170px minmax(0,1fr); align-items:center; gap:20px; }
.ak-mode-list .ak-archive-results ul.products li.product img { grid-column:1; grid-row:1 / span 2; max-width:170px; margin:0; }
.ak-mode-list .ak-archive-results ul.products li.product .woocommerce-loop-product__title { grid-column:2; }
.ak-mode-list .ak-archive-results ul.products li.product > .button { grid-column:2; justify-self:start; }
.single-product div.product { display:grid; grid-template-columns:minmax(0,32%) minmax(0,1fr) minmax(300px,28%); gap:24px; align-items:start; }
.single-product div.product .woocommerce-product-gallery { grid-column:1; width:100%; float:none; margin:0; }
.single-product div.product .summary { grid-column:2 / 4; width:100%; float:none; margin:0; display:grid; grid-template-columns:minmax(0,1fr) minmax(300px,42%); gap:12px 24px; align-content:start; }
.single-product div.product .summary > .product_title { grid-column:1; grid-row:1; }
.single-product div.product .summary > .woocommerce-product-rating { grid-column:1; grid-row:2; }
.single-product div.product .summary > .woocommerce-product-details__short-description { grid-column:1; grid-row:3; }
.single-product div.product .summary:not(:has(> .woocommerce-product-rating)) > .woocommerce-product-details__short-description { grid-row:2; align-self:start; }
.single-product div.product .summary > .price { grid-column:2; grid-row:1; align-self:start; margin:0; padding:12px 15px; background:#f8f9fa; border:1px solid var(--ak-line); border-bottom:0; border-radius:8px 8px 0 0; }
.single-product div.product .summary > form.cart { grid-column:2; grid-row:2 / 5; align-self:start; margin:0; border-radius:0 0 8px 8px; }
.single-product div.product .summary > .product_meta { grid-column:2; grid-row:5; }
.single-product div.product:has(.ak-condition-enhanced) .summary > .price { display:none; }
.single-product div.product:has(.ak-condition-enhanced) .summary > form.cart { grid-row:1 / 5; border-radius:8px; }
.ak-condition-enhanced .variations td.value { position:relative; }
.ak-condition-enhanced .variations select[name="attribute_condition"] { position:absolute; width:1px; height:1px; opacity:0; pointer-events:none; }
.ak-condition-cards { display:grid; gap:10px; margin:8px 0 15px; }
.ak-condition-card { display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:10px; align-items:center; cursor:pointer; background:#fff; border:1px solid #e0e5e3; border-radius:8px; padding:16px 12px; font-size:14px; }
.ak-condition-card:hover,.ak-condition-card:has(input:checked) { border-color:#abd8c2; box-shadow:0 2px 10px #50b58a20; }
.ak-condition-card input { accent-color:var(--ak-green); margin:0; }
.ak-condition-name { font-weight:700; }
.ak-condition-price { color:var(--ak-accent); white-space:nowrap; }
.ak-condition-availability { grid-column:1/-1; padding-right:24px; color:#64717b; font-size:12px; }
.ak-condition-card:has(input:disabled) { opacity:.55; cursor:not-allowed; }
.single-product div.product .woocommerce-tabs,.single-product div.product .related,.single-product div.product .upsells { grid-column:1/-1; width:100%; }
@media (min-width:901px) { .single-product div.product .summary { min-height:522px; } }
.single-product div.product .woocommerce-tabs { margin-top:0; padding-top:0; border-top:1px solid var(--ak-line); }
.single-product div.product .woocommerce-tabs ul.tabs { display:flex; flex-wrap:wrap; gap:0; width:100%; float:none; margin:0 0 22px; padding:0; border:0; border-bottom:1px solid var(--ak-line); }
.single-product div.product .woocommerce-tabs ul.tabs::before { display:none; }
.single-product div.product .woocommerce-tabs ul.tabs li { width:auto; float:none; flex:none; display:block; margin:0; border:0; background:none; }
.single-product div.product .woocommerce-tabs ul.tabs li::after { display:none; }
.single-product div.product .woocommerce-tabs ul.tabs li a { display:block; padding:13px 20px; color:var(--ak-ink); }
.single-product div.product .woocommerce-tabs ul.tabs li.active a { color:var(--ak-accent); border-bottom:2px solid var(--ak-accent); }
.single-product div.product .woocommerce-tabs .panel { float:none; clear:both; width:100%; margin:0; padding:0; }
.single-product div.product .woocommerce-product-gallery .flex-viewport { border:1px solid var(--ak-line); border-radius:8px; }
.single-product div.product .woocommerce-product-gallery img { object-fit:contain; }
.single-product .storefront-product-pagination { display:none; }
.single-product div.product .product_title { font-size:27px; line-height:1.55; color:var(--ak-ink); margin:0 0 18px; }
.single-product div.product .price { color:var(--ak-accent); font-weight:700; font-size:21px; }
.single-product div.product .woocommerce-product-details__short-description { line-height:2.1; font-size:15px; }
.single-product div.product form.cart { background:#f8f9fa; padding:20px; border:1px solid var(--ak-line); border-radius:8px; }
.single-product div.product form.cart .variations { width:100%; margin-bottom:15px; }
.single-product div.product form.cart .variations th,.single-product div.product form.cart .variations td { display:block; width:100%; text-align:right; }
.single-product div.product form.cart .variations select { width:100%; padding:11px; border:1px solid #d9e0e5; border-radius:5px; background:#fff; }
.ak-warranty-field { margin:14px 0; clear:both; }
.ak-warranty-field label { display:block; margin-bottom:7px; font-weight:700; }
.ak-warranty-field select { width:100%; background:#fff; border:1px solid #d9e0e5; border-radius:5px; padding:11px; }
.single-product div.product form.cart .button { background:var(--ak-green); color:#fff; border-radius:5px; min-height:48px; padding:11px 30px; }
.single-product div.product form.cart .variations_button { display:grid; grid-template-columns:1fr; gap:12px; }
.single-product div.product form.cart .quantity { float:none; margin:0; }
.single-product div.product form.cart .single_add_to_cart_button { float:none; width:100%; }
.single-product div.product form.cart .button:hover { background:#419c75; }
.single-product div.product.product-type-variable.outofstock form.cart .variations_button { display:none; }
.single-product div.product .product_meta { font-size:13px; line-height:2; }
.ak-inquiry { display:inline-block; background:var(--ak-green); color:#fff; border-radius:5px; padding:13px 25px; font-weight:700; }
.ak-inquiry:hover { color:#fff; background:#419c75; }
.site-footer { background:#fff; color:#333; padding:0 0 28px; margin-top:20px; font-size:14px; }
.site-footer a { color:#333; }
.site-footer a:hover { color:var(--ak-accent); }
.ak-footer-links { background:#f1f0f5; border-top:1px solid #e6e6e6; border-bottom:1px solid #e6e6e6; }
.ak-footer-links .col-full { display:flex; flex-wrap:wrap; gap:16px; padding-top:14px; padding-bottom:14px; font-size:13px; }
.ak-footer-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:38px; padding-top:26px; }
.ak-footer-grid section { min-width:0; line-height:2; }
.ak-footer-grid h2 { font-size:15px; margin:0 0 13px; color:#333; }
.ak-footer-grid p { margin:0 0 10px; }
.ak-footer-grid ul { list-style:none; margin:0; padding:0; }
.ak-footer-grid li { margin:0 0 3px; }
.ak-footer-legal { border-top:1px solid #eee; margin-top:25px; padding-top:13px; color:#666; font-size:12px; }
body.blog,body.single-post,body.category,body.ak-legacy-blog-page { background:#fff; color:#333; }
body.blog .site-header,body.single-post .site-header,body.category .site-header,body.ak-legacy-blog-page .site-header,
body.blog .storefront-breadcrumb,body.single-post .storefront-breadcrumb,body.category .storefront-breadcrumb,body.ak-legacy-blog-page .storefront-breadcrumb,
body.blog .site-footer,body.single-post .site-footer,body.category .site-footer,body.ak-legacy-blog-page .site-footer { display:none; }
body.blog .site-content,body.single-post .site-content,body.category .site-content,body.ak-legacy-blog-page .site-content { background:#fff; }
body.blog .site-content > .col-full,body.single-post .site-content > .col-full,body.category .site-content > .col-full,body.ak-legacy-blog-page .site-content > .col-full { max-width:none; padding:0; margin:0; background:#fff; border-radius:0; }
.ak-blog-shell { max-width:1160px; margin:0 auto; }
.ak-blog-top { background:#f1f1f1; border-bottom:1px solid #ddd; color:#777; font-size:12px; }
.ak-blog-top .ak-blog-shell { height:36px; display:flex; align-items:center; justify-content:flex-start; }
.ak-blog-top a { color:#777; }
.ak-blog-head { background:#fff; border-bottom:1px solid #e6e6e6; }
.ak-blog-head .ak-blog-shell { min-height:85px; display:flex; align-items:center; justify-content:space-between; gap:28px; }
.ak-blog-brand { color:#222; font-size:26px; font-weight:700; white-space:nowrap; line-height:1.3; }
.ak-blog-brand:hover { color:#6c8a43; }
.ak-blog-brand small { display:block; color:#999; font-size:12px; font-weight:400; text-align:right; }
.ak-blog-nav { display:flex; flex-wrap:wrap; align-items:center; gap:22px; font-size:13px; }
.ak-blog-nav a { color:#333; white-space:nowrap; }
.ak-blog-nav a:hover { color:#91aa5d; }
.ak-blog-band { background:#f0f0f0; }
.ak-blog-band .ak-blog-shell { min-height:87px; display:flex; align-items:center; justify-content:space-between; gap:20px; }
.ak-blog-band strong { display:inline-block; background:#a2b96b; color:#fff; font-size:25px; line-height:1.4; padding:4px 14px; }
.ak-blog-band a { background:#333; color:#fff; font-size:12px; padding:5px 12px; }
.ak-blog-body { display:grid; grid-template-columns:235px minmax(0,1fr); gap:44px; direction:ltr; padding-top:45px; padding-bottom:60px; }
.ak-blog-sidebar,.ak-blog-main { direction:rtl; min-width:0; }
.ak-blog-sidebar { font-size:13px; color:#555; }
.ak-blog-sidebar h2 { position:relative; border-bottom:1px solid #ddd; font-size:16px; text-align:right; margin:0 0 10px; padding:0 0 12px; }
.ak-blog-sidebar h2::after { content:''; position:absolute; right:0; bottom:-1px; width:90px; border-bottom:2px solid #a2b96b; }
.ak-blog-sidebar ul { list-style:none; margin:0 0 30px; padding:0; }
.ak-blog-sidebar li { border-bottom:1px solid #eee; margin:0; }
.ak-blog-sidebar li a { display:block; color:#666; padding:11px 0; }
.ak-blog-sidebar li a:hover { color:#779849; }
.ak-blog-sidebar li a::before { content:'‹'; color:#a2b96b; margin-left:6px; }
.ak-blog-search { display:flex; margin:0 0 32px; }
.ak-blog-search input[type=search] { min-width:0; flex:1; background:#fafafa; border:1px solid #ddd; font-size:12px; padding:9px; box-shadow:none; }
.ak-blog-search button { background:#a2b96b; color:#fff; padding:9px 12px; font-size:12px; }
.ak-blog-main h1,.ak-blog-card h2 { color:#222; font-size:28px; line-height:1.4; margin:0 0 10px; }
.ak-blog-main h1 a,.ak-blog-card h2 a { color:#222; }
.ak-blog-main h1 a:hover,.ak-blog-card h2 a:hover { color:#789749; }
.ak-blog-post-meta { font-size:12px; color:#999; margin:0 0 22px; }
.ak-blog-card { border-bottom:1px solid #eee; margin:0 0 45px; padding:0 0 35px; text-align:right; }
.ak-blog-card-image { display:block; text-align:center; margin:0 0 22px; }
.ak-blog-card-image img { display:block; width:auto; max-width:100%; max-height:360px; margin:0 auto; object-fit:contain; }
.ak-blog-card p { font-size:15px; line-height:2; margin:0 0 16px; }
.ak-blog-read-more { display:inline-block; background:#a2b96b; color:#fff; font-size:13px; padding:8px 16px; }
.ak-blog-read-more:hover { background:#88a252; color:#fff; }
.ak-blog-main .navigation.pagination { text-align:center; clear:both; }
.ak-blog-main .page-numbers { padding:6px 10px; color:#444; }
.ak-blog-main .page-numbers.current { background:#a2b96b; color:#fff; }
.ak-blog-article .ak-blog-featured { display:block; max-width:100%; height:auto; max-height:420px; width:auto; margin:22px auto; object-fit:contain; }
.ak-blog-content { font-size:15px; line-height:2; }
.ak-blog-content h2,.ak-blog-content h3 { color:#222; font-size:24px; line-height:1.5; }
.ak-blog-content img { max-width:100%; height:auto; }
.ak-blog-foot { background:#303030; color:#ddd; font-size:13px; padding:28px 0; }
.ak-blog-foot a { color:#fff; }
@media (max-width:900px) {
  .ak-footer-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; }
  .site-header > .col-full { grid-template-columns:minmax(0,1fr) auto; grid-template-rows:65px auto; gap:8px 12px; }
  .site-header .col-full > .site-branding { grid-column:1; grid-row:1; }
  .ak-header-tools { grid-column:2; grid-row:1; }
  .site-header .col-full > .site-search { grid-column:1 / -1; grid-row:2; }
  .site-header .storefront-primary-navigation > .col-full { grid-template-columns:1fr; grid-template-rows:auto; }
  .site-header .storefront-primary-navigation > .col-full > .main-navigation { grid-column:1; grid-row:1; }
  .ak-header-contact { display:none; }
  .tax-product_cat #main > .ak-archive-layout { grid-template-columns:1fr; }
  .ak-archive-content { display:contents; }
  .tax-product_cat .woocommerce-products-header { grid-column:1; grid-row:1; }
  .ak-filter-panel { grid-column:1; grid-row:2; display:block; margin-bottom:20px; }
  .ak-archive-results { grid-column:1; grid-row:3; }
  .ak-archive-results ul.products { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .ak-mode-list .ak-archive-results ul.products li.product,.ak-mode-list .ak-archive-results ul.products li.product a.woocommerce-LoopProduct-link { grid-template-columns:120px minmax(0,1fr); }
  .ak-mode-list .ak-archive-results ul.products li.product img { max-width:120px; }
  .ak-home-hero { grid-template-columns:1fr; }
  .ak-home-hero-copy { min-height:280px; }
  .ak-home-hero-cats { grid-template-columns:repeat(2,minmax(0,1fr)); grid-template-rows:1fr; }
  ul.products { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .single-product div.product { grid-template-columns:minmax(0,1fr); }
  .single-product div.product .woocommerce-product-gallery,.single-product div.product .summary { grid-column:1; }
  .single-product div.product .summary { display:block; }
  .single-product div.product:has(.ak-condition-enhanced) .summary > .price { display:none; }
  .single-product div.product .summary > .price { border:0; border-radius:0; background:transparent; padding:0; margin:0 0 16px; }
  .single-product div.product .summary > form.cart { border-radius:8px; margin-bottom:20px; }
  .single-product div.product .woocommerce-product-gallery { min-width:0; max-width:100%; overflow:hidden; }
  .single-product div.product .woocommerce-product-gallery .flex-viewport { max-width:100%; }
  .single-product div.product .woocommerce-product-gallery img { max-width:100%; height:auto; }
  .ak-blog-shell { padding-left:20px; padding-right:20px; }
  .ak-blog-head .ak-blog-shell { flex-direction:column; align-items:flex-start; justify-content:center; padding-top:15px; padding-bottom:15px; }
  .ak-blog-brand { white-space:normal; }
  .ak-blog-nav { gap:10px 18px; }
  .ak-blog-body { gap:25px; }
}
@media (max-width:600px) {
  /* Keep Storefront's own account/search/cart controls, but place the icon
     row below the centred logo as on the source mobile storefront. */
  .site-header { padding-bottom:0; margin-bottom:5px; }
  .site-header > .col-full { display:flex; justify-content:center; align-items:center; height:58px; min-height:58px; padding:0 15px; }
  .site-header .col-full > .site-branding { width:150px; max-width:150px; margin:0; }
  .site-branding img { width:150px; max-height:52px; }
  .ak-header-tools { display:none; }
  .storefront-primary-navigation { height:54px; border-top:0; background:#f8f8f8; }
  .site-header .storefront-primary-navigation > .col-full { display:block; height:54px; padding:0; }
  .site-header .storefront-primary-navigation > .col-full > .main-navigation { height:54px; }
  .main-navigation .menu-toggle { position:absolute; top:58px; right:0; width:25%; height:54px; margin:0; padding:0; border:0; border-radius:0; background:#f8f8f8; text-align:center; font-size:0; z-index:10001; }
  .main-navigation .menu-toggle span { font-size:0; }
  .main-navigation .menu-toggle span::before { display:none; }
  .main-navigation .menu-toggle::before { content:'☰'; display:block; position:static; width:auto; height:54px; top:auto; right:auto; transform:none; background:transparent; font-family:Arial,sans-serif; font-size:25px; font-weight:400; line-height:54px; color:#222; }
  .main-navigation .menu-toggle::after { display:none; }
  .main-navigation .handheld-navigation { position:absolute; top:112px; left:0; right:0; width:100%; padding:6px 20px; background:#fff; box-shadow:0 8px 16px #1b273122; z-index:9999; }
  .main-navigation:not(.toggled) .handheld-navigation { display:none; }
  .main-navigation .handheld-navigation ul { margin:0; padding:0; list-style:none; }
  .main-navigation .handheld-navigation li { display:block; border-bottom:1px solid var(--ak-line); }
  .main-navigation .handheld-navigation li a { display:block; padding:10px 6px; color:var(--ak-ink); font-size:15px; }
  .storefront-handheld-footer-bar { position:absolute; top:58px; bottom:auto; left:0; right:auto; width:75%; height:54px; border:0; background:#f8f8f8; z-index:10000; }
  .storefront-handheld-footer-bar ul li { height:54px; }
  .storefront-handheld-footer-bar ul li > a { height:54px; padding:0; background:#f8f8f8; }
  .storefront-handheld-footer-bar ul li > a::before { line-height:54px; }
  .storefront-handheld-footer-bar .site-search { display:none !important; top:54px; bottom:auto; left:0 !important; right:auto !important; width:100vw !important; z-index:10002; }
  .storefront-handheld-footer-bar li.search.active .site-search { display:block !important; }
  body.blog .storefront-handheld-footer-bar,body.single-post .storefront-handheld-footer-bar,body.category .storefront-handheld-footer-bar,body.ak-legacy-blog-page .storefront-handheld-footer-bar { display:none; }
  .single-product .site-content > .col-full { width:calc(100% - 24px); max-width:none; margin-left:12px; margin-right:12px; padding:12px; }
  .single-product div.product .summary { grid-row:1; }
  .single-product div.product .woocommerce-product-gallery { grid-row:2; }
  .single-product div.product .upsells { grid-row:3; }
  .single-product div.product .woocommerce-tabs { grid-row:4; }
  .single-product div.product .product_title { font-size:23px; line-height:1.6; margin-bottom:15px; }
  .ak-footer-grid { grid-template-columns:1fr; gap:18px; }
  .ak-home-hero { padding:0; }
  .ak-home-hero-copy { padding:24px 20px; }
  .ak-home-hero h1 { font-size:25px; }
  .ak-home-hero-cats { grid-template-columns:1fr; grid-template-rows:repeat(2,auto); }
  .ak-home-hero-cats a { min-height:160px; }
  .ak-home-announcement { min-height:150px; padding:24px 16px; }
  .ak-home-announcement h2 { font-size:20px; }
  .ak-home-section { padding:18px 15px 8px; }
  .ak-home-section-heading h2 { font-size:20px; }
  .site-content .col-full { padding:16px; }
  ul.products { grid-template-columns:1fr 1fr; gap:9px; }
  ul.products li.product { padding:8px; }
  ul.products li.product .ak-archive-price-row { display:flex; flex-direction:column; align-items:center; white-space:normal; line-height:1.5; }
  ul.products li.product .ak-archive-condition { margin-left:0; }
  ul.products li.product .ak-archive-price-row bdi { display:block; font-size:11px; white-space:nowrap; }
  .ak-blog-band strong { font-size:19px; }
  .ak-blog-body { display:flex; flex-direction:column; padding-top:25px; }
  .ak-blog-main { order:1; }
  .ak-blog-sidebar { order:2; }
  .ak-blog-card-image img { max-height:240px; }
}
@media (max-width:360px) {
  ul.products,.ak-archive-results ul.products { grid-template-columns:minmax(0,1fr); }
  ul.products li.product .ak-archive-price-row bdi { font-size:14px; }
}
