/*
Theme Name: Kayal Crackers Shop
Theme URI: https://kayalcrackersshop.com/
Author: A. Kayalvizhi Agencies
Description: Professional WooCommerce storefront for Kayal Crackers Shop, with bank-transfer checkout and QR payment instructions.
Version: 1.4.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: kayal-crackers
*/

:root {
  --kc-navy: #061b45;
  --kc-blue: #2e3192;
  --kc-red: #ed1c24;
  --kc-gold: #f4bd45;
  --kc-ink: #14213d;
  --kc-muted: #667085;
  --kc-bg: #f6f8fc;
  --kc-white: #fff;
  --kc-border: #e4e8f0;
  --kc-shadow: 0 14px 40px rgba(6, 27, 69, .10);
  --kc-radius: 18px;
  --kc-container: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--kc-ink); background: var(--kc-white); font-family: Aptos, "Segoe UI", system-ui, -apple-system, sans-serif; font-size: 16px; line-height: 1.65; }
h1, h2, h3, h4, h5, h6, .kc-menu, .button { font-family: "Trebuchet MS", Avenir, Aptos, "Segoe UI", sans-serif; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.kc-container { width: min(calc(100% - 32px), var(--kc-container)); margin-inline: auto; }
.kc-main { min-height: 60vh; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

.kc-topbar { background: var(--kc-navy); color: #fff; font-size: .9rem; }
.kc-topbar__inner { min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.kc-topbar p { margin: 0; }
.kc-topbar a { color: #fff; font-weight: 700; }
.kc-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--kc-border); backdrop-filter: blur(14px); }
.kc-header__inner { min-height: 82px; display: grid; grid-template-columns: 250px 1fr auto; align-items: center; gap: 26px; }
.kc-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.kc-brand img, .custom-logo { width: 210px; max-height: 68px; object-fit: contain; object-position: left center; }
.kc-menu { list-style: none; padding: 0; margin: 0; display: flex; justify-content: center; gap: 28px; font-weight: 750; }
.kc-menu a { display: block; padding: 28px 0; }
.kc-menu a:hover, .kc-menu .current-menu-item > a { color: var(--kc-red); }
.kc-header-actions { display: flex; align-items: center; gap: 10px; }
.kc-whatsapp-header { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: #138a45; color: white; font-size: .9rem; font-weight: 850; box-shadow: 0 7px 18px rgba(19,138,69,.22); }
.kc-whatsapp-header:hover { background: #0d7137; transform: translateY(-1px); }
.kc-icon-btn { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--kc-border); border-radius: 50%; background: #fff; color: var(--kc-navy); }
.kc-icon-btn:hover { color: #fff; background: var(--kc-red); border-color: var(--kc-red); }
.kc-cart-count { position: absolute; top: -4px; right: -3px; min-width: 19px; height: 19px; padding: 0 5px; display: grid; place-items: center; background: var(--kc-red); color: white; border-radius: 99px; font-size: .7rem; font-weight: 800; }
.kc-menu-toggle { display: none; border: 0; background: transparent; padding: 8px; }

.kc-btn, .button, button.button, input.button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 12px 22px !important; border: 0 !important; border-radius: 12px !important; background: linear-gradient(135deg, var(--kc-red), #c80e2d) !important; color: white !important; font-weight: 800 !important; letter-spacing: .01em; cursor: pointer; box-shadow: 0 8px 20px rgba(200,14,45,.16); transition: transform .2s ease, box-shadow .2s ease, filter .2s ease; }
.kc-btn::after, .button::after { content: ""; position: absolute; z-index: -1; inset: -50% auto -50% -55%; width: 38%; transform: rotate(18deg); background: rgba(255,255,255,.22); transition: left .45s ease; }
.kc-btn:hover::after, .button:hover::after { left: 120%; }
.kc-btn:hover, .button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(237,28,36,.25); }
.kc-btn--gold { background: var(--kc-gold) !important; color: var(--kc-navy) !important; }
.kc-btn--outline { border: 1px solid rgba(255,255,255,.55) !important; background: transparent !important; color: #fff !important; }

.kc-hero { position: relative; min-height: 610px; display: grid; align-items: center; overflow: hidden; color: white; background: var(--kc-navy) url('assets/images/hero.webp') center/cover no-repeat; }
.kc-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,15,41,.96) 0%, rgba(3,15,41,.76) 42%, rgba(3,15,41,.10) 75%); }
.kc-hero__content { position: relative; max-width: 680px; padding: 80px 0; }
.kc-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; color: var(--kc-gold); font-weight: 850; text-transform: uppercase; letter-spacing: .13em; font-size: .82rem; }
.kc-eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.kc-hero h1 { margin: 0; max-width: 670px; font-size: clamp(2.7rem, 6vw, 5.5rem); line-height: .98; letter-spacing: -.045em; }
.kc-hero h1 span { color: var(--kc-gold); }
.kc-hero p { max-width: 600px; margin: 24px 0 30px; color: #e8edfa; font-size: 1.13rem; }
.kc-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.kc-hero__badges { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 38px; color: #eef2ff; font-size: .95rem; font-weight: 650; }
.kc-hero__badges span { display: inline-flex; align-items: center; gap: 8px; }
.kc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--kc-gold); box-shadow: 0 0 0 5px rgba(244,189,69,.16); }

.kc-trust { position: relative; z-index: 3; margin-top: -44px; }
.kc-trust__grid { display: grid; grid-template-columns: repeat(4,1fr); background: white; border-radius: var(--kc-radius); box-shadow: var(--kc-shadow); overflow: hidden; }
.kc-trust__item { display: flex; align-items: center; gap: 14px; padding: 24px; border-right: 1px solid var(--kc-border); }
.kc-trust__item:last-child { border: 0; }
.kc-trust__icon { flex: 0 0 45px; width: 45px; height: 45px; display: grid; place-items: center; border-radius: 14px; background: #eef0ff; color: var(--kc-blue); }
.kc-trust__item strong { display: block; font-size: .98rem; }
.kc-trust__item small { display: block; color: var(--kc-muted); font-size: .8rem; }

.kc-section { padding: 88px 0; }
.kc-section--soft { background: var(--kc-bg); }
.kc-section__head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 34px; }
.kc-section__head h2, .kc-copy h2 { margin: 5px 0 0; color: var(--kc-navy); font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.1; letter-spacing: -.035em; }
.kc-section__head p { max-width: 600px; margin: 0; color: var(--kc-muted); }
.kc-link { color: var(--kc-red); font-weight: 850; white-space: nowrap; }

.kc-category-visual { position: relative; min-height: 280px; margin-bottom: 28px; border-radius: 26px; overflow: hidden; background: url('assets/images/categories.webp') center/cover no-repeat; }
.kc-category-visual::after { content: ""; position: absolute; inset: auto 0 0; height: 45%; background: linear-gradient(transparent, rgba(3,15,41,.8)); }
.kc-category-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.kc-category { position: relative; min-height: 270px; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid rgba(255,255,255,.12); border-radius: var(--kc-radius); background: var(--kc-navy) var(--kc-category-image) center/cover no-repeat; color: white; overflow: hidden; box-shadow: 0 10px 28px rgba(6,27,69,.16); transition: transform .3s ease, box-shadow .3s ease, border-color .2s ease; }
.kc-category::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3,17,46,.08) 25%, rgba(3,17,46,.94) 100%); }
.kc-category::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.09); }
.kc-category:hover { transform: translateY(-4px); box-shadow: var(--kc-shadow); border-color: #cbd2e3; }
.kc-category__icon { position: relative; z-index: 2; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; background: rgba(3,17,46,.84); color: var(--kc-gold); backdrop-filter: blur(8px); }
.kc-category__label { position: relative; z-index: 2; display: grid; gap: 3px; }
.kc-category strong { color: white; font-size: 1.22rem; line-height: 1.25; }
.kc-category small { color: var(--kc-gold); font-weight: 800; }

.woocommerce ul.products, .woocommerce-page ul.products, .kc-products .products { display: grid !important; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 22px; margin: 0 !important; }
.woocommerce ul.products::before, .woocommerce ul.products::after, .kc-products .products::before, .kc-products .products::after { display: none !important; }
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product { float: none !important; width: auto !important; margin: 0 !important; padding: 14px 14px 18px; border: 1px solid var(--kc-border); border-radius: var(--kc-radius); background: #fff; box-shadow: 0 4px 18px rgba(6,27,69,.04); }
.woocommerce ul.products li.product:hover { box-shadow: var(--kc-shadow); }
.woocommerce ul.products li.product a img { aspect-ratio: 1/1; object-fit: cover; border-radius: 13px; margin-bottom: 16px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { color: var(--kc-navy); font-size: 1rem; line-height: 1.35; }
.woocommerce ul.products li.product .price { color: var(--kc-red); font-size: 1rem; font-weight: 850; }
.woocommerce ul.products li.product .button { width: 100%; margin-top: 0; }
.woocommerce span.onsale { min-width: 52px; min-height: 28px; line-height: 28px; border-radius: 99px; background: var(--kc-red); }

.kc-gift { position: relative; min-height: 520px; display: grid; align-items: center; color: white; background: var(--kc-navy) url('assets/images/gift-box.webp') center/cover no-repeat; overflow: hidden; }
.kc-gift::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,15,41,.98) 0%, rgba(3,15,41,.80) 46%, rgba(3,15,41,.08) 75%); }
.kc-gift__copy { position: relative; max-width: 590px; padding: 70px 0; }
.kc-gift h2 { margin: 0 0 18px; font-size: clamp(2.2rem, 4vw, 4rem); line-height: 1.04; }
.kc-gift p { color: #e7ebf5; font-size: 1.08rem; }
.kc-checks { list-style: none; padding: 0; margin: 24px 0 30px; display: grid; gap: 10px; }
.kc-checks li::before { content: "✓"; display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 10px; border-radius: 50%; background: var(--kc-gold); color: var(--kc-navy); font-size: .78rem; font-weight: 900; }

.kc-how-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; counter-reset: steps; }
.kc-how-card { counter-increment: steps; padding: 30px; border: 1px solid var(--kc-border); border-radius: var(--kc-radius); background: white; }
.kc-how-card::before { content: "0" counter(steps); display: block; margin-bottom: 34px; color: var(--kc-red); font-size: 1rem; font-weight: 900; }
.kc-how-card h3 { margin: 0 0 8px; color: var(--kc-navy); }
.kc-how-card p { margin: 0; color: var(--kc-muted); }
.kc-notice { padding: 18px 22px; border-left: 4px solid var(--kc-gold); border-radius: 10px; background: #fff7df; color: #584000; }

/* Quick order */
.kc-quick-hero { padding: 54px 0 34px; color: white; background: radial-gradient(circle at 82% 12%, rgba(237,28,36,.32), transparent 28%), var(--kc-navy); }
.kc-quick-hero--compact { padding: 30px 0; }
.kc-quick-hero__inner { display: flex; align-items: end; justify-content: space-between; gap: 32px; }
.kc-quick-hero h1 { margin: 0; font-size: clamp(2rem,4vw,3.2rem); line-height: 1; }
.kc-quick-hero p { max-width: 720px; margin: 0; color: #dfe6f5; }
.kc-quick-wrap { padding: 30px 0 120px; background: var(--kc-bg); }
.kc-quick-tools { position: sticky; top: 82px; z-index: 30; display: grid; grid-template-columns: minmax(240px,1fr) minmax(200px,.45fr) auto auto; gap: 12px; padding: 16px; margin-bottom: 22px; border: 1px solid var(--kc-border); border-radius: 16px; background: rgba(255,255,255,.97); box-shadow: 0 10px 30px rgba(6,27,69,.09); backdrop-filter: blur(12px); }
.kc-field { position: relative; }
.kc-field svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--kc-muted); pointer-events: none; }
.kc-quick-tools input[type="search"], .kc-quick-tools select { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #cfd5e2; border-radius: 12px; background: white; color: var(--kc-ink); }
.kc-quick-tools input[type="search"] { padding-left: 43px; }
.kc-filter-check { min-height: 48px; display: flex; align-items: center; gap: 9px; padding: 0 14px; border: 1px solid #cfd5e2; border-radius: 12px; white-space: nowrap; font-weight: 700; }
.kc-filter-check input { width: 18px; height: 18px; accent-color: var(--kc-red); }
.kc-clear { min-height: 48px; padding: 0 16px; border: 0; border-radius: 12px; background: #eef1f7; color: var(--kc-navy); font-weight: 800; cursor: pointer; }
.kc-results { margin: 0 0 14px; color: var(--kc-muted); font-size: .92rem; }
.kc-quick-table { overflow: hidden; border: 1px solid var(--kc-border); border-radius: 18px; background: white; box-shadow: 0 10px 34px rgba(6,27,69,.07); }
.kc-qrow { display: grid; grid-template-columns: 88px minmax(240px,1.7fr) minmax(125px,.55fr) minmax(170px,.7fr) minmax(110px,.45fr); align-items: center; min-height: 106px; border-bottom: 1px solid var(--kc-border); }
.kc-qrow:last-child { border-bottom: 0; }
.kc-qrow > div { padding: 15px 18px; }
.kc-qhead { min-height: 58px; background: var(--kc-gold); color: var(--kc-navy); font-size: .9rem; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
.kc-qcategory { min-height: 58px; display: flex; align-items: center; grid-template-columns: 1fr; padding: 14px 22px; background: var(--kc-blue); color: white; font-size: 1rem; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
.kc-qimage img { width: 64px; height: 64px; border-radius: 11px; object-fit: cover; border: 1px solid var(--kc-border); }
.kc-qname a { display: block; color: var(--kc-navy); font-weight: 820; line-height: 1.35; }
.kc-qmeta { display: block; margin-top: 5px; color: var(--kc-muted); font-size: .82rem; }
.kc-qprice { color: var(--kc-red); font-weight: 900; }
.kc-qprice del { display: block; color: #98a2b3; font-size: .82rem; font-weight: 600; }
.kc-qprice ins { text-decoration: none; }
.kc-stepper { position: relative; isolation: isolate; display: inline-grid; grid-template-columns: 48px 64px 48px; align-items: center; border: 1px solid #cfd5e2; border-radius: 12px; overflow: hidden; background: white; }
.kc-stepper button { position: relative; z-index: 3; width: 48px; height: 48px; padding: 0; display: grid; place-items: center; border: 0; background: #e9eef7; color: var(--kc-navy); font-size: 1.45rem; line-height: 1; font-weight: 900; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; user-select: none; }
.kc-stepper button:hover { background: var(--kc-navy); color: white; }
.kc-stepper input { position: relative; z-index: 1; width: 64px; height: 48px; padding: 0; border: 0; border-inline: 1px solid #cfd5e2; text-align: center; font-weight: 850; appearance: textfield; }
.kc-stepper input::-webkit-inner-spin-button, .kc-stepper input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.kc-qamount { color: var(--kc-navy); font-weight: 900; }
.kc-qrow.is-selected { background: #fffaf0; }
.kc-qrow[hidden], .kc-qcategory[hidden] { display: none !important; }
.kc-variation-link { display: inline-flex; padding: 9px 13px; border-radius: 9px; background: #eef0ff; color: var(--kc-blue); font-size: .84rem; font-weight: 800; }
.kc-quick-empty { display: none; padding: 50px 24px; text-align: center; color: var(--kc-muted); }
.kc-quick-empty.is-visible { display: block; }
.kc-quick-summary { position: fixed; inset: auto 0 0; z-index: 60; color: white; background: rgba(3,17,46,.98); box-shadow: 0 -12px 38px rgba(3,17,46,.22); }
.kc-quick-summary__inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.kc-quick-total { display: flex; align-items: baseline; gap: 12px; }
.kc-quick-total span { color: #bfc9df; }
.kc-quick-total strong { color: var(--kc-gold); font-size: 1.7rem; }
.kc-selection-note { color: #bfc9df; font-size: .86rem; }
.kc-quick-submit:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.kc-quick-status { margin: 0; color: #fff; font-size: .88rem; }

.kc-page-hero { padding: 74px 0; color: white; background: radial-gradient(circle at 80% 20%, rgba(237,28,36,.35), transparent 34%), var(--kc-navy); }
.kc-page-hero--compact { padding: 34px 0; }
.kc-page-hero h1 { margin: 0 0 10px; font-size: clamp(2.5rem,5vw,4.5rem); line-height: 1; }
.kc-page-hero p { max-width: 680px; margin: 0; color: #dfe6f5; }
.kc-content { padding: 72px 0; }
.kc-copy { max-width: 850px; margin: auto; }
.kc-copy h2 { margin-top: 42px; font-size: 2rem; }
.kc-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.kc-info-card { padding: 30px; border: 1px solid var(--kc-border); border-radius: var(--kc-radius); background: #fff; box-shadow: 0 6px 20px rgba(6,27,69,.05); }
.kc-info-card h2, .kc-info-card h3 { margin-top: 0; color: var(--kc-navy); }

/* Editorial and contact pages */
.kc-editorial-hero { position: relative; min-height: 540px; display: grid; align-items: center; color: white; background-position: center; background-size: cover; overflow: hidden; }
.kc-editorial-hero--about { min-height: 390px; background-image: url('assets/images/about-banner.webp'); }
.kc-editorial-hero--gift { background-image: url('assets/images/gift-box-banner.webp'); }
.kc-editorial-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,17,46,.96), rgba(3,17,46,.68) 48%, rgba(3,17,46,.08)); }
.kc-editorial-hero__copy { position: relative; max-width: 660px; padding: 72px 0; }
.kc-editorial-hero h1 { margin: 0 0 18px; font-size: clamp(2.55rem,5.4vw,5rem); line-height: 1; letter-spacing: -.045em; }
.kc-editorial-hero p:not(.kc-eyebrow) { margin: 0 0 28px; color: #e5ebf8; font-size: 1.12rem; }
.kc-story-grid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: start; gap: 54px; }
.kc-story-grid h2 { margin: 0 0 18px; color: var(--kc-navy); font-size: clamp(2rem,4vw,3.2rem); line-height: 1.08; }
.kc-story-highlight { display: grid; gap: 7px; padding: 30px; border-radius: 22px; background: var(--kc-navy); color: #dfe6f5; box-shadow: var(--kc-shadow); }
.kc-story-highlight strong { margin-top: 10px; color: var(--kc-gold); font-size: 1.03rem; }
.kc-value-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 46px; }
.kc-value-grid article { padding: 28px; border: 1px solid var(--kc-border); border-radius: var(--kc-radius); background: white; }
.kc-value-grid span { color: var(--kc-red); font-weight: 900; }
.kc-value-grid h3 { margin: 24px 0 8px; color: var(--kc-navy); }
.kc-value-grid p { margin: 0; color: var(--kc-muted); }
.kc-edit-note { padding: 18px 20px; margin-top: 38px; border: 1px dashed #9aa7c2; border-radius: 13px; background: #f6f8fc; color: var(--kc-muted); }
.kc-contact-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 28px; align-items: start; }
.kc-contact-details { background: var(--kc-navy); color: #e4eaf6; }
.kc-contact-details h2, .kc-contact-details strong { color: white; }
.kc-contact-form p { margin: 0 0 18px; }
.kc-contact-form label { display: block; margin-bottom: 6px; color: var(--kc-navy); font-weight: 800; }
.kc-contact-form input, .kc-contact-form textarea { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid #cfd5e2; border-radius: 10px; background: white; }
.kc-contact-form textarea { resize: vertical; }
.kc-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.kc-honeypot { position: absolute !important; left: -9999px !important; }
.kc-form-message { padding: 14px 16px; margin-bottom: 18px; border-radius: 10px; font-weight: 700; }
.kc-form-message.is-success { background: #e9f8ef; color: #126b36; }
.kc-form-message.is-error { background: #fff0f0; color: #9c1b1b; }
.kc-contact-extra { margin-top: 36px; }

/* Shop filters and working quantity controls */
.kc-shop-filter { padding: 20px; margin: 10px 0 30px; border: 1px solid var(--kc-border); border-radius: 16px; background: #f7f9fd; }
.kc-shop-filter__heading { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.kc-shop-filter__heading strong { color: var(--kc-navy); font-size: 1.12rem; }
.kc-shop-filter__heading span { color: var(--kc-muted); }
.kc-shop-filter form { display: grid; grid-template-columns: minmax(220px,1fr) minmax(210px,.65fr) auto auto; gap: 10px; align-items: center; }
.kc-shop-filter input, .kc-shop-filter select { width: 100%; min-height: 48px; padding: 10px 13px; border: 1px solid #cfd5e2; border-radius: 10px; background: white; }
.kc-filter-reset { padding: 10px; color: var(--kc-red); font-weight: 800; }
.kc-category-chips { display: flex; gap: 8px; margin-top: 15px; padding-bottom: 3px; overflow-x: auto; }
.kc-category-chips a { flex: 0 0 auto; padding: 8px 12px; border: 1px solid #cfd5e2; border-radius: 999px; background: white; color: var(--kc-navy); font-size: .88rem; font-weight: 750; }
.kc-category-chips a:hover, .kc-category-chips a.is-active { border-color: var(--kc-blue); background: var(--kc-blue); color: white; }
.kc-loop-buy { display: grid; gap: 10px; margin-top: 14px; }
.kc-loop-stepper { display: grid; grid-template-columns: 44px 1fr 44px; overflow: hidden; min-height: 44px; border: 1px solid #cfd5e2; border-radius: 10px; background: white; }
.kc-loop-stepper button, .kc-single-qty { min-width: 44px; min-height: 44px; border: 0; background: #eef2f8; color: var(--kc-navy); font-size: 1.25rem; font-weight: 900; cursor: pointer; touch-action: manipulation; }
.kc-loop-stepper button:hover, .kc-single-qty:hover { background: var(--kc-navy); color: white; }
.kc-loop-qty { width: 100%; min-width: 0; border: 0; border-inline: 1px solid #cfd5e2; text-align: center; font-weight: 850; appearance: textfield; }
.kc-loop-qty::-webkit-inner-spin-button, .kc-loop-qty::-webkit-outer-spin-button { appearance: none; margin: 0; }
.woocommerce div.product form.cart .quantity { display: inline-flex; align-items: stretch; width: auto; margin-right: 12px; border: 1px solid var(--kc-border); border-radius: 10px; overflow: hidden; }
.woocommerce div.product form.cart .quantity .qty { width: 62px; border: 0; border-inline: 1px solid var(--kc-border); border-radius: 0; }

/* Motion: visible enhancement with an accessibility fallback. */
.kc-motion .kc-reveal, .kc-motion .kc-how-card, .kc-motion .kc-info-card, .kc-motion .woocommerce ul.products li.product { opacity: 0; transform: translateY(18px); transition: opacity .55s ease var(--kc-delay,0ms), transform .55s cubic-bezier(.2,.75,.25,1) var(--kc-delay,0ms), box-shadow .25s ease; }
.kc-reveal.is-visible, .kc-how-card.is-visible, .kc-info-card.is-visible, .woocommerce ul.products li.product.is-visible { opacity: 1; transform: translateY(0); }
.kc-hero__content, .kc-editorial-hero__copy { animation: kcHeroIn .7s cubic-bezier(.2,.75,.25,1) both; }
@keyframes kcHeroIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }

.woocommerce .woocommerce-breadcrumb { margin: 24px 0; color: var(--kc-muted); }
.woocommerce div.product { padding: 46px 0; }
.woocommerce div.product div.images img { border-radius: var(--kc-radius); }
.woocommerce div.product .product_title { color: var(--kc-navy); font-size: clamp(2rem,4vw,3.2rem); line-height: 1.1; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--kc-red); font-weight: 900; }
.woocommerce .quantity .qty { min-height: 48px; border: 1px solid var(--kc-border); border-radius: 10px; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--kc-blue); background: #f4f6ff; }
.woocommerce-message::before, .woocommerce-info::before { color: var(--kc-blue); }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select { min-height: 48px; padding: 11px 13px; border: 1px solid #cfd5e2; border-radius: 10px; background: #fff; }
.woocommerce table.shop_table { border-color: var(--kc-border); border-radius: 14px; overflow: hidden; }
.woocommerce-checkout #payment { background: #f2f5fb; border-radius: 14px; }
.kc-payment-box { margin: 18px 0; padding: 22px; border: 1px solid #d6dcef; border-radius: 14px; background: #f7f9ff; text-align: center; }
.kc-payment-box img { width: min(260px,100%); padding: 10px; background: white; border: 1px solid var(--kc-border); border-radius: 12px; }

.kc-footer { margin-top: 0; color: #cdd6ea; background: #03112e; }
.kc-footer__grid { padding: 66px 0 44px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 42px; }
.kc-footer__logo { width: 250px; margin-bottom: 16px; }
.kc-footer h3 { margin: 0 0 18px; color: white; font-size: 1rem; }
.kc-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.kc-footer a:hover { color: var(--kc-gold); }
.kc-footer__bottom { padding: 20px 0; border-top: 1px solid rgba(255,255,255,.11); color: #aebad3; font-size: .87rem; }
.kc-footer__bottom .kc-container { display: flex; justify-content: space-between; gap: 20px; }

@media (max-width: 980px) {
  .kc-header__inner { grid-template-columns: 1fr auto; }
  .kc-menu-toggle { display: block; }
  .kc-nav { display: none; position: absolute; z-index: 100; inset: 82px 0 auto; padding: 12px 20px 22px; background: white; border-bottom: 1px solid var(--kc-border); box-shadow: var(--kc-shadow); }
  .kc-nav.is-open { display: block; }
  .kc-menu { display: grid; gap: 0; }
  .kc-menu a { position: relative; z-index: 2; min-height: 48px; display: flex; align-items: center; padding: 12px 4px; }
  .kc-trust__grid { grid-template-columns: 1fr 1fr; }
  .kc-trust__item:nth-child(2) { border-right: 0; }
  .kc-trust__item:nth-child(-n+2) { border-bottom: 1px solid var(--kc-border); }
  .kc-category-grid, .woocommerce ul.products, .woocommerce-page ul.products, .kc-products .products { grid-template-columns: repeat(2,1fr); }
  .kc-story-grid, .kc-contact-layout { grid-template-columns: 1fr; }
  .kc-footer__grid { grid-template-columns: 1fr 1fr; }
  .kc-quick-tools { top: 70px; grid-template-columns: 1fr 1fr; }
  .kc-qrow { grid-template-columns: 74px minmax(210px,1fr) 110px 160px 100px; }
  .kc-quick-table { overflow-x: auto; }
  .kc-qrow { min-width: 800px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; line-height: 1.62; }
  .kc-topbar__inner { justify-content: center; min-height: 36px; }
  .kc-topbar__inner p:first-child { display: none; }
  .kc-header__inner { min-height: 70px; gap: 8px; }
  .kc-brand img, .custom-logo { width: 132px; max-height: 52px; }
  .kc-nav { top: 70px; }
  .kc-icon-btn--account { display: none; }
  .kc-header-actions { gap: 6px; }
  .kc-whatsapp-header { min-height: 42px; padding: 8px 10px; font-size: .78rem; }
  .kc-whatsapp-header span { display: inline; }
  .kc-icon-btn { width: 42px; height: 42px; }
  .kc-hero { min-height: 600px; background-position: 65% center; }
  .kc-hero::before { background: linear-gradient(90deg, rgba(3,15,41,.96), rgba(3,15,41,.66)); }
  .kc-hero__content { padding: 68px 0 110px; }
  .kc-hero h1 { font-size: 3rem; }
  .kc-trust { display: none; }
  .kc-section { padding: 64px 0; }
  .kc-section__head { align-items: start; flex-direction: column; }
  .kc-category-visual { min-height: 220px; }
  .kc-category-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kc-category { min-height: 128px; padding: 16px; }
  .kc-home-products .kc-products { width: 100%; padding-left: 16px; overflow: visible; }
  .kc-home-products .products { display: flex !important; flex-wrap: nowrap !important; gap: 14px; width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 18px 18px 0; }
  .kc-home-products .products::-webkit-scrollbar { display: none; }
  .kc-home-products .products li.product { flex: 0 0 76vw !important; width: 76vw !important; min-width: 76vw; scroll-snap-align: start; }
  .kc-gift { background-position: 68% center; }
  .kc-gift::before { background: linear-gradient(90deg, rgba(3,15,41,.97), rgba(3,15,41,.60)); }
  .kc-how-grid, .kc-info-grid, .kc-footer__grid { grid-template-columns: 1fr; }
  .kc-footer__grid { gap: 30px; }
  .kc-footer__bottom .kc-container { display: grid; }
  .kc-quick-hero, .kc-quick-hero--compact { padding: 22px 0; }
  .kc-quick-hero h1 { font-size: 2rem; }
  .kc-quick-tools { position: static; grid-template-columns: 1fr; }
  .kc-quick-table { overflow: visible; border: 0; background: transparent; box-shadow: none; }
  .kc-qhead { display: none; }
  .kc-qcategory { min-width: 0; margin: 20px 0 10px; border-radius: 12px; }
  .kc-qrow { min-width: 0; grid-template-columns: 72px minmax(0,1fr); gap: 0; margin-bottom: 10px; padding: 14px; border: 1px solid var(--kc-border); border-radius: 14px; background: white; }
  .kc-qrow > div { padding: 6px; }
  .kc-qimage { grid-row: span 2; }
  .kc-qprice { grid-column: 2; }
  .kc-qqty { position: relative; z-index: 5; grid-column: 1 / -1; display: flex; justify-content: flex-end; margin-top: 10px; }
  .kc-qamount { grid-column: 1 / -1; align-self: center; margin-top: 3px; text-align: right; }
  .kc-qamount::before { content: "Amount: "; color: var(--kc-muted); font-size: .76rem; font-weight: 600; }
  .kc-stepper { grid-template-columns: 56px 62px 56px; }
  .kc-stepper button { width: 56px; height: 52px; font-size: 1.6rem; }
  .kc-stepper input { width: 62px; height: 52px; font-size: 1.08rem; }
  .kc-quick-summary__inner { min-height: 104px; align-items: stretch; flex-direction: column; gap: 8px; padding-block: 12px; }
  .kc-quick-summary__right { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; }
  .kc-quick-total strong { font-size: 1.4rem; }
  .kc-quick-submit { min-height: 44px; padding: 10px 16px !important; }
  .kc-category { min-height: 220px; }
  .kc-value-grid, .kc-form-grid { grid-template-columns: 1fr; }
  .kc-page-hero, .kc-page-hero--compact { padding: 24px 0; }
  .kc-page-hero h1 { margin: 0; font-size: 2rem; }
  .kc-page-hero p, .kc-page-hero .kc-eyebrow { display: none; }
  .kc-editorial-hero--about { min-height: 290px; }
  .kc-editorial-hero__copy { padding: 34px 0; }
  .kc-editorial-hero h1 { font-size: 2.2rem; }
  .kc-editorial-hero__copy .kc-eyebrow { display: none; }
  .kc-editorial-hero p:not(.kc-eyebrow) { margin-bottom: 18px; font-size: 1rem; }
  .kc-shop-filter__heading { align-items: flex-start; flex-direction: column; }
  .kc-shop-filter form { grid-template-columns: 1fr; }
  .woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: 1fr 1fr; gap: 12px; }
  .woocommerce ul.products li.product, .woocommerce-page ul.products li.product { padding: 10px 10px 14px; }
  .woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: .98rem; }
  .woocommerce div.product form.cart .quantity { margin-bottom: 10px; }
}

@media (max-width: 430px) {
  .woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: 1fr; }
  .kc-home-products .products { display: flex !important; }
  .kc-category-grid { grid-template-columns: 1fr; }
  .kc-category { min-height: 250px; }
}

@media (max-width: 380px) {
  .kc-brand img, .custom-logo { width: 112px; }
  .kc-whatsapp-header { width: 42px; padding: 8px; justify-content: center; }
  .kc-whatsapp-header span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .kc-reveal, .kc-how-card, .kc-info-card, .woocommerce ul.products li.product { opacity: 1; transform: none; }
}

/* v1.4: force homepage product shortcodes into a single swipeable row on phones.
   This block intentionally comes last so WooCommerce responsive column rules
   cannot turn these two sections back into a vertical grid. */
@media (max-width: 767px) {
  .kc-home-products .kc-container,
  .kc-home-products .kc-products {
    overflow: visible !important;
  }

  .kc-home-products .woocommerce {
    width: 100%;
    overflow: visible !important;
  }

  .kc-home-products ul.products,
  .kc-home-products ul.products[class*="columns-"] {
    display: grid !important;
    grid-template-columns: none !important;
    grid-template-rows: 1fr !important;
    grid-auto-flow: column !important;
    grid-auto-columns: minmax(250px, 82vw) !important;
    align-items: stretch;
    gap: 14px !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 4px 18px 18px 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
  }

  .kc-home-products ul.products::-webkit-scrollbar {
    display: none;
  }

  .kc-home-products ul.products::before,
  .kc-home-products ul.products::after {
    display: none !important;
    content: none !important;
  }

  .kc-home-products ul.products > li.product,
  .woocommerce-page .kc-home-products ul.products > li.product {
    float: none !important;
    clear: none !important;
    display: flex;
    flex-direction: column;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 100%;
    margin: 0 !important;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
  }
}
