/* Presentation for the four owner-editable shop templates. Commerce state,
   stock and checkout remain in the shared storefront runtime. */
.shop { --shop-ink: #242424; --shop-muted: #777; --shop-line: #ededed; --shop-page: 1380px; color: var(--shop-ink); background: #fff; }
.shop button, .shop input, .shop select { font: inherit; }
.shop button { cursor: pointer; }
.shop button:disabled { cursor: default; }
.shop :focus-visible { outline: 2px solid var(--shop-accent); outline-offset: 4px; }
.shop [hidden] { display: none !important; }
.shop svg { flex-shrink: 0; }
.shop .shop-head { max-width: none; width: 100%; margin: 0; background: #fff; position: relative; z-index: 20; }
.shop .shop-header-row, .shop .shop-navigation-row { max-width: var(--shop-page); margin: auto; }
.shop .shop-header-row { min-height: 88px; padding: 18px 30px; gap: 28px; }
.shop .shop-brand { font-size: 1rem; font-weight: 700; flex-shrink: 0; }
.shop .shop-brand img { width: 46px; height: 46px; border-radius: 0; }
.shop .shop-brand .kd-logo { width: 46px; height: 46px; }
.shop[data-public-demo=true] .shop-brand { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 8px; }
.shop[data-public-demo=true] .shop-brand > img, .shop[data-public-demo=true] .shop-brand > [data-kardan=logo] { grid-column: 1; grid-row: 1 / span 2; }
.shop[data-public-demo=true] .shop-brand > strong { grid-column: 2; grid-row: 1; }
.shop[data-public-demo=true] .shop-brand > .kd-public-demo-tag { grid-column: 2; grid-row: 2; justify-self: start; }
.shop .shop-buyer-actions { gap: 18px; color: #292929; }
.shop .shop-icon-button { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 38px; padding: 4px; border: 0; background: none; color: inherit; }
.shop .shop-menu-toggle { display: none; }
.shop .shop-account-link { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 5px 10px; border: 1px solid #d6d6d6; border-radius: 8px; font-size: .875rem; font-weight: 700; white-space: nowrap; }
.shop .shop-account-link:hover { border-color: currentColor; }
.shop .shop-brand strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shop .shop-brand { min-width: 0; flex-shrink: 1; }
.shop .shop-menu { flex-wrap: nowrap; gap: 30px; font-size: .875rem; white-space: nowrap; }
.shop .shop-menu a { display: inline-flex; align-items: center; gap: 6px; padding-block: 5px; }
.shop .shop-menu a:hover { color: var(--shop-accent); }
.shop .shop-menu .kd-icon-chevron { width: 14px; height: 14px; }
.shop .shop-announcement { min-height: 45px; padding: 10px max(30px, calc((100vw - 1320px) / 2)); background: #a0a0a0; color: #fff; font-size: .75rem; }
.shop .shop-utility-links { display: flex; gap: 24px; }
.shop .shop-utility-links a { display: inline-flex; align-items: center; gap: 6px; }
.shop .shop-utility-links svg { width: 16px; height: 16px; }
.shop .kd-cart-button { position: relative; display: inline-flex; align-items: center; border: 0; box-shadow: none; color: inherit; background: none; padding: 7px; min-height: 38px; }
.shop .kd-cart-button > svg { width: 24px; height: 24px; }
.shop .kd-cart-label { display: none; }
.shop .kd-cart-count { position: absolute; inset: -2px auto auto -1px; font-size: .62rem; min-width: 17px; height: 17px; padding: 1px 4px; color: white; background: var(--shop-accent); border-radius: 100%; }
.shop .shop-search-link, .shop .shop-search-form { min-height: 48px; border: 1px solid #dfdfdf; background: #f5f5f5; border-radius: 8px; padding: 0 15px; color: #777; display: flex; align-items: center; gap: 12px; font-size: .875rem; }
.shop .shop-search-form input { min-width: 0; width: 100%; background: none; border: 0; outline: 0; padding-block: 12px; color: var(--shop-ink); }
.shop .shop-search-form button { display: inline-flex; background: none; border: 0; padding: 5px; color: inherit; }
.shop .shop-search-form:focus-within { border-color: var(--shop-accent); }
.shop .shop-navigation-row { padding: 10px 30px 15px; gap: 26px; border: 0; }
.shop .shop-header-categories { border-inline-start: 1px solid #ddd; padding-inline-start: 24px; }
.shop .shop-header-categories .kd-categories { scrollbar-width: none; }
.shop .shop-header-categories .kd-category-name { font-weight: 400; font-size: .85rem; }
.shop .shop-main { min-height: 50vh; }
.shop .shop-block { width: 100%; max-width: var(--shop-page); margin: 0 auto; padding: 50px 30px; }
.shop .shop-section-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.shop .shop-section-head h2 { font-size: 1.35rem; font-weight: 700; margin: 0; }
.shop .shop-section-head p { font-size: .875rem; color: #7d7d7d; margin: 8px 0 0; }
.shop .shop-view-all { display: inline-flex; align-items: center; gap: 10px; font-size: .8rem; white-space: nowrap; color: var(--shop-muted); }
.shop .shop-view-all svg { width: 16px; height: 16px; }
.shop .shop-hero-slider { position: relative; width: 100%; margin: 0 auto; }
.shop .shop-slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.shop .shop-slides::-webkit-scrollbar, .shop .kd-products--rail::-webkit-scrollbar { display: none; }
.shop .shop-slides > .shop-hero { flex: 0 0 100%; width: 100%; scroll-snap-align: start; }
.shop .shop-slides > .shop-hero { min-height: 0; height: auto; aspect-ratio: var(--shop-hero-ratio, 2 / 1); }
.shop .shop-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); max-width: none; min-height: 560px; padding: 0; margin: 0; gap: 0; overflow: hidden; border-radius: 0; background: #f8f8f8; }
.shop .shop-hero-media { position: absolute; inset: 0; width: 100%; height: 100%; }
.shop .shop-hero-media .shop-image { display: block; width: 100%; height: 100%; max-height: none; aspect-ratio: auto; object-fit: cover; border-radius: 0; }
.shop .shop-hero-media .shop-mobile { display: none; }
.shop .shop-hero-media .shop-default-hero { object-position: 25% center; }
.shop .shop-hero-content { grid-column: 1; position: relative; z-index: 1; align-self: center; justify-self: start; padding: 52px clamp(30px, 5vw, 90px); max-width: 710px; justify-items: start; text-align: start; gap: 28px; }
.shop .shop-hero h1 { font-size: clamp(2rem, 3.5vw, 3.5rem); font-weight: 700; line-height: 1.5; }
.shop .shop-hero p { font-size: 1rem; line-height: 1.9; margin-top: 14px; }
.shop .shop-action { font-weight: 700; font-size: .85rem; min-height: 46px; border-radius: 0; padding: 12px 28px; justify-content: center; align-items: center; gap: 8px; color: var(--shop-on-accent, #fff); }
.shop .shop-slider-controls { position: absolute; inset: auto 0 18px; display: flex; justify-content: center; align-items: center; gap: 6px; z-index: 3; }
.shop .shop-slider-dot { width: 9px; height: 9px; padding: 0; border-radius: 20px; border: 0; background: #b0b0b0; transition: width .18s; }
.shop .shop-slider-dot[aria-current=true] { width: 26px; background: #fff; box-shadow: 0 1px 5px #0003; }
.shop .shop-slider-arrows { position: absolute; bottom: 28px; inset-inline-start: 45px; display: flex; gap: 12px; z-index: 3; }
.shop .shop-slider-arrow { display: grid; place-items: center; border: 1px solid #ddd; border-radius: 100%; width: 45px; height: 45px; background: #fff; color: #252525; }
.shop .shop-slider-arrow svg { width: 19px; height: 19px; }
.shop .shop-slider-prev svg { transform: rotate(180deg); }
.shop .shop-slider-arrow:disabled { opacity: .45; }
.shop .shop-banner { padding-block: 24px; }
.shop .shop-promo { display: block; position: relative; overflow: hidden; background: #f6f6f6; border-radius: 14px; }
.shop .shop-promo .shop-image { display: block; width: 100%; aspect-ratio: 3 / 1; height: auto; border-radius: inherit; object-fit: cover; max-height: 420px; }
.shop .shop-promo .shop-mobile { display: none; }
.shop .shop-promo-copy { position: absolute; top: 50%; inset-inline-start: 6%; transform: translateY(-50%); max-width: 44%; }
.shop .shop-promo-copy h2 { font-size: clamp(1.3rem, 3vw, 2.3rem); margin: 0 0 10px; }
.shop .shop-promo-copy p { font-size: .875rem; line-height: 1.8; }
.shop .shop-promo-action { display: inline-flex; align-items: center; gap: 12px; margin-top: 10px; font-size: .8rem; }
.shop .kd-products { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.shop .kd-products--rail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; padding: 1px 1px 10px; scrollbar-width: none; }
.shop .kd-products--rail > .kd-product { flex: 0 0 calc((100% - 64px) / 4.5); min-width: 0; scroll-snap-align: start; }
.shop .kd-product { position: relative; min-width: 0; overflow: hidden; border: 1px solid #e6e6e6; background: #fff; border-radius: 8px; box-shadow: none; transition: border-color .2s; }
.shop .kd-product:hover { border-color: #c5c5c5; transform: none; box-shadow: none; }
.shop .kd-product-media { position: relative; border-radius: 0; aspect-ratio: 1; background: #fafafa; padding: 0; }
.shop .kd-product-media .kd-product-link { display: block; width: 100%; height: 100%; }
.shop .kd-product-media:has(img), .shop .kd-gallery-main:has(img) { background: transparent; }
.shop .kd-product-media img { width: 100%; height: 100%; object-fit: contain; padding: 10px; background: transparent; transition: transform .3s; }
.shop .kd-product:hover .kd-product-media img { transform: scale(1.035); }
.shop .kd-product-body { padding: 16px; display: flex; flex-direction: column; gap: 0; }
.shop .kd-product-cat { display: none; }
.shop .kd-product-name { font-size: .875rem; line-height: 1.9; font-weight: 400; margin: 0 0 14px; min-height: 3.8em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.shop .kd-product-desc { display: none; }
.shop .kd-product-foot { display: flex; flex-direction: column; align-items: stretch; gap: 12px; margin-top: auto; }
.shop .kd-product-meta { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 5px 10px; width: 100%; }
.shop .kd-price { color: var(--shop-ink); font-weight: 700; font-size: .9rem; }
.shop .kd-product-meta del { font-size: .7rem; color: #aaa; font-weight: 400; }
.shop .kd-product .kd-offer { font-size: .7rem; }
.shop .kd-product .kd-add { width: 100%; display: flex; align-items: center; justify-content: center; min-height: 38px; border-radius: 5px; padding: 8px; font-size: .75rem; background: #fff; border: 1px solid #e7e7e7; color: #555; }
.shop .kd-product .kd-add:hover { border-color: var(--shop-accent); color: var(--shop-accent); }
.shop .kd-product .kd-add-off { color: #aaa; background: #f7f7f7; }
.shop .kd-quick { inset: auto auto 8px 8px; transform: none; padding: 7px; width: 32px; height: 32px; opacity: 0; border: 1px solid #ddd; background: #fff; color: #333; border-radius: 100%; }
.shop .kd-quick span { display: none; }
.shop .kd-product:hover .kd-quick, .shop .kd-quick:focus-visible { opacity: 1; }
.shop .shop-favorite-button { position: absolute; top: 8px; inset-inline-end: 8px; z-index: 2; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 6px; color: #777; background: #fffffff0; border: 1px solid #eee; border-radius: 50%; }
.shop .shop-favorite-button[aria-pressed=true] { color: var(--shop-accent); }
.shop .shop-favorite-button[aria-pressed=true] svg { fill: currentColor; }
.shop .shop-rail-tools { display: flex; gap: 8px; margin-inline-start: auto; }
.shop .shop-rail-tools button { width: 32px; height: 32px; display: grid; place-items: center; background: #fff; border: 1px solid #ddd; color: #444; border-radius: 50%; }
.shop .shop-rail-tools button:disabled { opacity: .35; }
.shop .shop-rail-tools svg { width: 15px; height: 15px; }
.shop .shop-rail-tools button:first-child svg { transform: rotate(180deg); }
.shop .shop-contact-links { color: #666; font-size: .85rem; }
.shop .shop-contact-links a { display: inline-flex; align-items: center; gap: 6px; }
.shop .shop-mobile-nav { display: none; }
.shop .kd-tabbar { display: none; }

/* Explora: full-width editorial image, rectangular category photography,
   quiet grey offer background and sharp product cards. */
.shop-explora .shop-header-row > .shop-menu { margin-inline-end: auto; }
.shop-explora .shop-hero { min-height: 620px; color: #fff; background: #182a32; }
.shop-explora .shop-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(270deg, #0b172965, transparent 70%); }
.shop-explora .shop-hero-content { padding-block: 70px; }
.shop-explora .shop-hero .shop-action { background: #fff; color: #222; }
.shop-explora .shop-categories .kd-categories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.shop-explora .shop-categories .kd-category { position: relative; display: block; border-radius: 0; overflow: hidden; min-width: 0; border: 0; }
.shop-explora .shop-categories .kd-category-media { display: block; aspect-ratio: 1.08; height: auto; width: 100%; background: #eee; }
.shop-explora .shop-categories .kd-category-media img { width: 100%; height: 100%; object-fit: cover; }
.shop-explora .shop-categories .kd-category-copy { position: absolute; inset: auto 0 0; text-align: center; padding: 15px; color: #252525; background: #ffffffe0; }
.shop-explora .shop-categories .kd-category-count { display: none; }
.shop-explora .shop-featured { max-width: none; background: #f0f0f0; padding-inline: max(30px, calc((100vw - 1320px) / 2)); }
.shop-explora .shop-featured .kd-product { border-radius: 0; }
.shop-explora .shop-products .kd-product { border-radius: 0; }

/* Lumina: floating rounded header, generous hero, circles and warm offers. */
.shop-lumina .shop-head { border-radius: 0 0 26px 26px; box-shadow: 0 2px 7px #00000009; }
.shop-lumina .shop-header-row > .shop-menu { margin-inline: auto; }
.shop-lumina .shop-hero { background: #fafafa; min-height: 570px; }
.shop-lumina .shop-hero-content { grid-column: 1; }
.shop-lumina .shop-hero-media .shop-image { border-radius: 0; }
.shop-lumina .shop-action { background: var(--shop-accent); }
.shop-lumina .shop-categories .kd-categories { display: flex; justify-content: space-around; gap: 50px; overflow-x: auto; scrollbar-width: none; padding-block: 15px; }
.shop-lumina .shop-categories .kd-category { display: grid; flex: 0 0 120px; border: 0; background: none; border-radius: 0; text-align: center; }
.shop-lumina .shop-categories .kd-category-media { display: block; width: 88px; height: 88px; margin: auto; border: 1px solid #ddd; border-radius: 50%; overflow: hidden; padding: 3px; background: #fff; }
.shop-lumina .shop-categories .kd-category-media img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.shop-lumina .shop-categories .kd-category-copy { padding: 15px 0 0; }
.shop-lumina .shop-categories .kd-category-name { font-size: .875rem; font-weight: 700; }
.shop-lumina .shop-categories .kd-category-count { display: none; }
.shop-lumina .shop-featured { max-width: none; padding-inline: max(30px, calc((100vw - 1320px) / 2)); border-radius: 0; background: color-mix(in srgb, var(--shop-accent) 13%, white); }
.shop-lumina .shop-featured h2 { color: var(--shop-accent); }
.shop-lumina .kd-product { border-radius: 8px; }

/* Minimal: announcement, underlined search and image-led editorial cards. */
.shop-minimal .shop-announcement { justify-content: center; background: var(--shop-accent); min-height: 44px; font-size: .9rem; }
.shop-minimal .shop-header-row { display: grid; grid-template-columns: auto minmax(180px, 400px) 1fr; min-height: 80px; }
.shop-minimal .shop-header-row .shop-brand { grid-column: 1; grid-row: 1; justify-self: start; }
.shop-minimal .shop-search-link, .shop-minimal .shop-search-form { grid-column: 2; grid-row: 1; max-width: none; background: #fff; border-width: 0 0 1px; border-radius: 0; font-size: .75rem; }
.shop-minimal .shop-buyer-actions { grid-column: 3; grid-row: 1; justify-self: end; }
.shop-minimal .shop-account-link { border: 1px solid #333; padding: 10px 16px; }
.shop-minimal .shop-navigation-row { border-block: 1px solid #ddd; max-width: none; padding: 12px max(30px, calc((100vw - 1320px) / 2)); flex-direction: row-reverse; justify-content: flex-end; }
.shop-minimal .shop-navigation-row .shop-menu { display: none; }
.shop-minimal .shop-header-categories { border: 0; padding: 0; flex: 0 1 auto; }
.shop-minimal .shop-hero { display: grid; grid-template-columns: 1fr 1fr; max-width: none; padding: 0; min-height: 530px; background: #f4f4f4; text-align: start; }
.shop-minimal .shop-hero-content { grid-column: 1; justify-items: start; max-width: none; padding-inline: clamp(30px, 5vw, 90px); }
.shop-minimal .shop-hero h1 { font-weight: 700; font-size: clamp(1.8rem, 3vw, 3rem); }
.shop-minimal .shop-hero-media { max-width: none; order: unset; }
.shop-minimal .shop-hero p { margin-inline: 0; }
.shop-minimal .shop-categories .shop-section-head { justify-content: center; }
.shop-minimal .shop-categories .kd-categories { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.shop-minimal .shop-categories .kd-category { display: block; border: 0; border-radius: 0; background: #fff; }
.shop-minimal .shop-categories .kd-category-media { display: block; aspect-ratio: 4 / 3; width: 100%; height: auto; border-radius: 0; background: #f7f7f7; overflow: hidden; }
.shop-minimal .shop-categories .kd-category-media img { width: 100%; height: 100%; object-fit: cover; }
.shop-minimal .shop-categories .kd-category-copy { position: static; padding: 15px 0; text-align: center; color: #333; background: #fff; }
.shop-minimal .shop-categories .kd-category-count { display: none; }
.shop-minimal .shop-featured { max-width: none; background: var(--shop-accent); padding-inline: max(30px, calc((100vw - 1320px) / 2)); color: #fff; }
.shop-minimal .shop-featured .shop-view-all { color: #fff; }
.shop-minimal .kd-product { border: 0; border-radius: 2px; }
.shop-minimal .kd-product-media img { padding: 0; }
.shop-minimal .kd-product-name { color: #555; }
.shop-minimal .shop-mobile-nav { display: none !important; }

/* Market: search-led two-tier header, broad banners and compact catalog. */
.shop-market .shop-head { border: 0; box-shadow: 0 2px 7px #00000009; }
.shop-market .shop-header-row { grid-template-columns: auto minmax(200px, 490px) 1fr; padding-block: 18px; min-height: 84px; }
.shop-market .shop-search-form, .shop-market .shop-search-link { width: 100%; }
.shop-market .shop-buyer-actions { justify-self: end; }
.shop-market .shop-hero-slider { max-width: var(--shop-page); padding: 30px 0 0; }
.shop-market .shop-slides { border-radius: 16px; }
.shop-market .shop-hero { max-width: none; min-height: 0; height: min(42vw, 590px); background: #f3f3f3; border-radius: 16px; }
.shop-market .shop-hero-content { padding: 45px; max-width: 580px; }
.shop-market .shop-hero-content { color: #fff; }
.shop-market .shop-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(270deg, #0002, transparent 70%); }
.shop-market .shop-hero .shop-action { color: var(--shop-accent); background: #fff; }
.shop-market .shop-hero h1 { font-size: clamp(1.8rem, 3vw, 3rem); }
.shop-market .shop-categories .shop-section-head { justify-content: center; }
.shop-market .shop-categories h2 { font-size: 1rem; }
.shop-market .shop-categories h2::after { content: ""; display: block; height: 2px; width: 80px; background: var(--shop-accent); margin: 10px auto 0; }
.shop-market .shop-categories .kd-categories { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 30px; overflow: visible; justify-content: stretch; }
.shop-market .shop-categories .kd-category { display: grid; min-width: 0; flex-basis: auto; border: 0; background: none; text-align: center; }
.shop-market .shop-categories .kd-category-media { display: block; width: min(100%, 130px); height: auto; aspect-ratio: 1; margin: auto; border-radius: 50%; background: #f7f7f7; overflow: hidden; }
.shop-market .shop-categories .kd-category-media img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.shop-market .shop-categories .kd-category-copy { padding-top: 18px; }
.shop-market .shop-categories .kd-category-name { font-weight: 400; font-size: .9rem; }
.shop-market .shop-categories .kd-category-count { display: none; }
.shop-market .shop-featured { border: 0; border-radius: 0; background: #fff; padding-bottom: 30px; }
.shop-market .shop-featured .shop-section-head { color: var(--shop-accent); }
.shop-market .shop-featured > [data-kardan=featured] { padding: 16px; background: var(--shop-accent); border-radius: 12px; }
.shop-market .shop-featured .kd-products { gap: 3px; padding-bottom: 0; }
.shop-market .shop-featured .kd-product { border-radius: 0; border: 0; }
.shop-market .shop-featured .kd-product:first-child { border-start-start-radius: 8px; border-end-start-radius: 8px; }
.shop-market .shop-featured .kd-product:last-child { border-start-end-radius: 8px; border-end-end-radius: 8px; }
.shop-market .shop-products { background: #fff; }
.shop-market-product-rail + .shop-market-product-rail { margin-top: 40px; }
.shop .shop-market-product-rail > .shop-section-head h2 { font-size: 1.15rem; }
.shop .shop-product-tabs { margin-top: 50px; border-top: 1px solid #eee; }
.shop .shop-product-tab-list { display: flex; gap: 42px; border-bottom: 1px solid #e1e1e1; padding-top: 8px; }
.shop .shop-product-tab-list a { padding: 18px 4px; border-bottom: 3px solid transparent; font-size: .9rem; }
.shop .shop-product-tab-list a[aria-selected=true] { border-bottom-color: var(--shop-accent); font-weight: 700; }
.shop .shop-product-tabs [data-shop-tab-panel] { padding: 30px 0; min-height: 150px; line-height: 2; }
.shop .shop-product-tabs h2 { font-size: 1.1rem; margin: 0 0 24px; }
.shop .shop-product-tabs p { font-size: .875rem; color: #666; white-space: pre-line; }
.shop .shop-product-specifications { margin: 0; display: grid; gap: 8px; }
.shop .shop-product-specifications > div { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 12px; font-size: .85rem; }
.shop .shop-product-specifications dt { padding: 12px 16px; background: #f5f5f5; color: #888; }
.shop .shop-product-specifications dd { padding: 12px 16px; background: #f9f9f9; margin: 0; }

/* Catalog, detail and cart use the same shell and retain semantic server forms. */
.shop .kd-page-main { background: #fff; min-height: 55vh; }
.shop .kd-wrap { max-width: var(--shop-page); padding: 24px 30px 65px; }
.shop .kd-crumb { font-size: .75rem; color: #929292; margin: 0 0 28px; }
.shop .kd-page-head { border-bottom: 1px solid #eee; padding-bottom: 18px; margin-bottom: 24px; }
.shop .kd-page-title { font-size: 1.5rem; font-weight: 700; }
.shop .kd-page-count { font-size: .8rem; color: #888; }
.shop .kd-toolbar { border-radius: 8px; background: #f8f8f8; border: 1px solid #eee; padding: 18px; gap: 16px; }
.shop .kd-toolbar-field > span { font-size: .75rem; color: #777; }
.shop .kd-toolbar input, .shop .kd-toolbar select { border: 1px solid #ddd; background: #fff; border-radius: 4px; min-height: 44px; }
.shop .kd-chip-row { gap: 10px; padding-block: 15px 22px; }
.shop .kd-chip { border-radius: 100px; font-size: .8rem; background: #fff; border: 1px solid #e5e5e5; }
.shop .kd-chip-on { border-color: var(--shop-accent); color: var(--shop-accent); background: color-mix(in srgb, var(--shop-accent) 6%, white); }
.shop .kd-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); max-width: none; gap: 50px; align-items: start; }
.shop .kd-gallery { min-width: 0; grid-column: 1; grid-row: 1; }
.shop .kd-gallery { position: relative; }
.shop .shop-gallery-zoom { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.shop .shop-gallery-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 44px; border: 0; background: #ffffffe0; color: #777; display: grid; place-items: center; border-radius: 4px; }
.shop .shop-gallery-previous { inset-inline-start: 10px; }
.shop .shop-gallery-previous svg { transform: rotate(180deg); }
.shop .shop-gallery-next { inset-inline-end: 10px; }
.shop .shop-gallery-count { position: absolute; bottom: 14px; inset-inline-start: 14px; color: #fff; background: #5559; padding: 3px 10px; border-radius: 30px; font-size: .7rem; }
.shop .shop-gallery-large { display: block; width: 100%; max-height: 70vh; object-fit: contain; }
.shop .kd-gallery-main { border: 1px solid #eee; background: #fff; border-radius: 12px; overflow: hidden; aspect-ratio: 1; margin: 0; }
.shop .kd-gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.shop .shop-gallery { grid-column: 1; grid-row: 2; margin-top: -35px; }
.shop .shop-gallery a { display: block; border: 1px solid #eee; border-radius: 6px; overflow: hidden; flex: 0 0 72px; }
.shop .shop-gallery img { display: block; width: 72px; height: 72px; margin: 0; object-fit: contain; border-radius: 0; }
.shop .shop-gallery a[aria-current=true] { border-color: var(--shop-accent); }
.shop .kd-detail-info { grid-column: 2; grid-row: 1 / span 2; min-width: 0; padding: 18px 0; background: #fff; border-radius: 0; }
.shop .kd-detail-cat { font-size: .8rem; color: #888; }
.shop .kd-detail-name { font-size: 1.65rem; line-height: 1.9; margin: 12px 0 24px; }
.shop .kd-detail-meta { padding-block: 22px; border-block: 1px solid #eee; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.shop .kd-detail-price { font-size: 1.4rem; color: var(--shop-accent); }
.shop .kd-detail-desc { line-height: 2.1; font-size: .875rem; color: #777; margin-block: 24px; }
.shop .kd-detail-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 24px; }
.shop .kd-detail-actions .kd-add { min-width: 170px; min-height: 48px; border-radius: 5px; }
.shop .kd-detail-actions .shop-favorite-button { position: static; width: 48px; height: 48px; border-radius: 5px; }
.shop .kd-detail-actions .kd-add-contact { background: #fff; color: #555; border: 1px solid #ddd; font-size: .75rem; border-radius: 5px; }
.shop .kd-offline-note { font-size: .75rem; color: #888; line-height: 1.9; }
.shop .kd-related { padding-top: 55px; margin-top: 35px; border-top: 1px solid #eee; }
.shop .kd-section-title { font-size: 1.25rem; margin-bottom: 26px; }
.shop .kd-cart-page { gap: 30px; grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
.shop .kd-cart-lines { border: 1px solid #eee; border-radius: 10px; background: #fff; }
.shop .kd-cart-checkout { position: sticky; top: 24px; border: 1px solid #e5e5e5; background: #fafafa; border-radius: 10px; padding: 24px; }
.shop .kd-cart-item { padding-block: 22px; border-color: #eee; }
.shop .kd-cart-item img { background: transparent; object-fit: contain; border-radius: 4px; }
.shop .kd-cart-name { font-size: .9rem; }
.shop .kd-cart-checkout .kd-btn { border-radius: 5px; min-height: 46px; }
.shop .kd-account-page { max-width: 650px; margin-inline: auto; }
.shop .kd-note-card { border: 1px solid #eee; box-shadow: none; background: #fafafa; border-radius: 10px; }

/* Trusted progressive dialogs: drawer navigation, live search, saved items. */
.shop .shop-dialog-backdrop { position: fixed; inset: 0; z-index: 180; background: #0006; backdrop-filter: blur(2px); }
.shop .shop-dialog { position: fixed; z-index: 181; inset: 6vh 50% auto auto; transform: translateX(50%); width: min(720px, calc(100% - 32px)); max-height: 88vh; background: #fff; color: #333; border-radius: 14px; box-shadow: 0 12px 65px #0003; overflow: auto; overscroll-behavior: contain; }
.shop .shop-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 24px; border-bottom: 1px solid #eee; }
.shop .shop-dialog-head h2 { margin: 0; font-size: 1.15rem; }
.shop .shop-dialog-head button { display: grid; place-items: center; width: 32px; height: 32px; border: 0; background: #f7f7f7; border-radius: 50%; color: #555; }
.shop .shop-dialog-body { padding: 24px; }
.shop .shop-dialog-menu { display: grid; gap: 0; }
.shop .shop-dialog-menu > a { padding: 14px 0; border-bottom: 1px solid #eee; font-size: .9rem; }
.shop .shop-dialog-menu .shop-menu-group-label { display: block; margin: 24px 0 8px; font-size: .75rem; color: #999; }
.shop .shop-dialog--menu { inset: 0 0 0 auto; transform: none; width: min(330px, calc(100% - 40px)); max-height: 100%; border-radius: 0; }
.shop .shop-search-results { margin-top: 22px; display: grid; gap: 0; }
.shop .shop-search-result { display: flex; align-items: center; gap: 16px; min-width: 0; border-bottom: 1px solid #eee; padding: 14px 0; }
.shop .shop-search-result img { width: 64px; height: 64px; object-fit: contain; flex-shrink: 0; border: 1px solid #f0f0f0; border-radius: 6px; }
.shop .shop-search-result strong { display: block; font-size: .875rem; font-weight: 400; line-height: 1.8; }
.shop .shop-search-result small { display: block; color: #888; margin-top: 4px; font-size: .75rem; }
.shop .shop-search-result .shop-result-copy { flex: 1; min-width: 0; }
.shop .shop-search-result .shop-favorite-button { position: static; flex-shrink: 0; }
.shop .shop-search-result-link { flex: 1; min-width: 0; display: flex; gap: 16px; align-items: center; }
.shop .shop-dialog-note { font-size: .85rem; color: #888; line-height: 1.9; text-align: center; padding: 22px 0; }
.shop .shop-search-all { display: block; text-align: center; margin-top: 20px; padding: 12px; background: #f7f7f7; border: 1px solid #eee; border-radius: 6px; color: var(--shop-accent); font-size: .8rem; }
.shop .shop-theme-status { position: fixed; bottom: 28px; inset-inline-start: 50%; transform: translateX(50%); z-index: 200; border-radius: 8px; background: #292929; color: #fff; padding: 12px 20px; font-size: .8rem; box-shadow: 0 6px 25px #0002; }
.shop.shop-theme-dialog-open { overflow: hidden; }
.shop .shop-image-error { opacity: .25; }
.shop .shop-product-topbar, .shop .shop-detail-dock { display: none; }
.shop .kd-cart-page.shop-cart-is-empty { grid-template-columns: 1fr; }
.shop .shop-cart-is-empty .kd-cart-lines { border: 0; }
.shop .shop-cart-is-empty .kd-cart-checkout { display: none; }
.shop .shop-cart-is-empty .kd-drawer-empty { min-height: 430px; padding-block: 30px; }
.shop .shop-cart-is-empty .kd-drawer-empty > svg { width: 105px; height: 105px; color: var(--shop-accent); stroke-width: 1; margin-bottom: 15px; }
.shop .shop-cart-is-empty .kd-empty { color: #333; font-size: 1.15rem; font-weight: 700; }
.shop .shop-cart-is-empty .kd-muted { font-size: .875rem; }

/* Carry each shop's visual treatment into the catalog and purchase pages. */
.shop-explora .kd-page-head { border-bottom: 2px solid var(--shop-accent); }
.shop-explora .kd-detail-meta { border-top: 0; }
.shop-lumina .kd-gallery-main,
.shop-lumina .kd-cart-checkout { border-radius: 20px; }
.shop-lumina .kd-page-head { border-bottom-color: var(--shop-accent); }
.shop-lumina .kd-detail-actions .kd-add { border-radius: 24px; }
.shop-minimal .kd-gallery-main,
.shop-minimal .kd-detail-actions .kd-add,
.shop-minimal .kd-toolbar { border-radius: 0; }
.shop-minimal .kd-page-title { font-weight: 500; }
.shop-market .kd-detail-price { font-weight: 800; }
.shop .kd-variant { display: grid; gap: 5px; font-size: .8rem; }
.shop .kd-variant select { max-width: 100%; min-height: 44px; padding-inline: 12px; border: 1px solid #ccc; border-radius: 6px; background: white; color: inherit; font: inherit; }
.shop .kd-detail-meta [data-kd-variant-stock]:empty { display: none; }

@media (min-width: 1001px) {
  .shop[data-kd-page=products] .kd-wrap { display: grid; grid-template-columns: 260px minmax(0, 1fr); align-items: start; gap: 20px 30px; }
  .shop[data-kd-page=products] .kd-wrap > .kd-crumb { grid-column: 1 / -1; }
  .shop[data-kd-page=products] .kd-page-head { grid-column: 2; grid-row: 2; margin-bottom: 0; }
  .shop[data-kd-page=products] .kd-toolbar { display: grid; grid-column: 1; grid-row: 2 / span 4; position: sticky; top: 24px; padding: 20px; background: #fff; }
  .shop[data-kd-page=products] .kd-toolbar-field { min-width: 0; }
  .shop[data-kd-page=products] .kd-toolbar-field input, .shop[data-kd-page=products] .kd-toolbar-field select { width: 100%; }
  .shop[data-kd-page=products] .kd-chip-row, .shop[data-kd-page=products] .kd-catalog, .shop[data-kd-page=products] .kd-pager { grid-column: 2; }
  .shop[data-kd-page=products] .kd-products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
  .shop[data-kd-page=products] .kd-product { border: 0; border-radius: 0; border-inline-end: 1px solid #eee; border-bottom: 1px solid #eee; }
}

@media (min-width: 1440px) {
  .shop-market .shop-hero-slider { max-width: calc(var(--shop-page) + 60px); padding-inline: 30px; }
}
@media (min-width: 701px) {
  .shop-explora .shop-hero-content, .shop-lumina .shop-hero-content { grid-column: 2; }
  .shop-explora .shop-hero-media::after { background: linear-gradient(90deg, #0b172965, transparent 70%); }
  .shop-explora .shop-default-hero, .shop-lumina .shop-default-hero,
  .shop-explora[data-public-demo=true] .shop-hero-media .shop-image,
  .shop-lumina[data-public-demo=true] .shop-hero-media .shop-image { transform: scaleX(-1); }
}
@media (max-width: 1000px) and (min-width: 701px) {
  .shop .shop-menu { gap: 16px; font-size: .75rem; }
  .shop .shop-header-row { gap: 15px; padding-inline: 22px; }
  .shop .shop-buyer-actions { gap: 10px; }
  .shop .shop-header-row > .shop-menu { min-width: 0; overflow-x: auto; }
  .shop .kd-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shop .kd-products--rail > .kd-product { flex-basis: 28%; }
  .shop .kd-cart-page { grid-template-columns: minmax(0, 1fr) 310px; gap: 20px; }
  .shop-market .shop-hero-slider { padding-inline: 22px; }
  .shop .shop-hero-content { padding: 24px; gap: 15px; }
  .shop .shop-hero h1 { font-size: 1.65rem; }
  .shop .shop-hero p { font-size: .85rem; }
}
@media (max-width: 700px) {
  .shop { --shop-page: 100%; padding-bottom: 68px; }
  .shop-minimal { padding-bottom: 0; }
  .shop-market:not([data-kd-page]), .shop-market[data-kd-page=""] { padding-bottom: 0; }
  .shop-market:not([data-kd-page]) .shop-mobile-nav, .shop-market[data-kd-page=""] .shop-mobile-nav { display: none !important; }
  .shop .shop-header-row { padding: 10px 16px; min-height: 60px; gap: 12px; display: flex; flex-wrap: wrap; }
  .shop .shop-head .shop-brand { font-size: .95rem; gap: 9px; order: 1; margin-inline: auto; justify-self: center; }
  .shop .shop-brand img, .shop .shop-brand .kd-logo { width: 30px; height: 30px; }
  .shop.shop-theme-ready .shop-menu-toggle { display: inline-flex; order: 0; }
  .shop .shop-buyer-actions { gap: 2px; order: 2; }
  .shop .shop-buyer-actions .shop-favorites-link { display: none; }
  .shop .shop-account-link { min-height: 40px; padding: 4px 8px; gap: 4px; }
  .shop .shop-account-link svg { width: 17px; }
  .shop .shop-buyer-actions .shop-icon-button { width: 30px; }
  .shop .shop-buyer-actions [data-kardan=cart] { display: none; }
  .shop .shop-buyer-actions .kd-icon-search { width: 21px; height: 21px; }
  .shop .shop-header-row > .shop-menu { order: 3; flex: 0 0 100%; overflow-x: auto; justify-content: flex-start; gap: 24px; font-size: .8rem; }
  .shop.shop-theme-ready .shop-header-row > .shop-menu { display: none; }
  .shop .shop-navigation-row { padding: 10px 16px; overflow: auto; }
  .shop.shop-theme-ready .shop-navigation-row { display: none; }
  .shop .shop-announcement { display: none; }
  .shop-minimal .shop-announcement { display: flex; min-height: 44px; padding: 10px 16px; font-size: .8rem; text-align: center; }
  .shop-lumina .shop-head { margin: 0; width: 100%; border-radius: 0 0 24px 24px; }
  .shop-lumina .shop-header-row { flex-wrap: wrap; }
  .shop-market .shop-header-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; padding: 10px 16px 12px; gap: 12px 10px; }
  .shop-market .shop-head .shop-brand { grid-column: 2; grid-row: 1; margin: auto; }
  .shop-market .shop-menu-toggle { grid-column: 1; grid-row: 1; }
  .shop-market .shop-buyer-actions { grid-column: 3; grid-row: 1; }
  .shop-market .shop-buyer-actions [data-kardan=cart] { display: block; }
  .shop-market .shop-search-link, .shop-market .shop-search-form { grid-column: 1 / -1; grid-row: 2; min-height: 46px; }
  .shop-minimal .shop-header-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; padding: 13px 16px 10px; }
  .shop-minimal .shop-menu-toggle { grid-column: 1; grid-row: 1; }
  .shop-minimal .shop-header-row .shop-brand { grid-column: 2; grid-row: 1; margin: auto; justify-self: center; }
  .shop-minimal .shop-buyer-actions { grid-column: 3; grid-row: 1; }
  .shop-minimal .shop-buyer-actions [data-kardan=cart] { display: block; }
  .shop-minimal .shop-search-link, .shop-minimal .shop-search-form { grid-column: 1 / -1; grid-row: 2; width: 100%; max-width: none; padding-inline: 10px; min-height: 38px; }
  .shop .shop-block { padding: 30px 16px; }
  .shop .shop-section-head { gap: 12px; margin-bottom: 22px; }
  .shop .shop-section-head h2 { font-size: 1.1rem; }
  .shop .shop-section-head p { font-size: .75rem; }
  .shop .shop-view-all { font-size: .7rem; gap: 5px; }
  .shop .shop-view-all svg { width: 13px; }
  .shop .shop-hero { padding: 0; display: grid; grid-template-columns: 1fr; min-height: 400px; border-radius: 0; gap: 0; }
  .shop .shop-slides > .shop-hero { min-height: 0; height: auto; aspect-ratio: var(--shop-mobile-hero-ratio, 750 / 900); }
  .shop .shop-hero-media .shop-desktop { display: none; }
  .shop .shop-hero-media .shop-mobile { display: block; aspect-ratio: auto; max-height: none; }
  .shop .shop-hero-media .shop-default-hero { display: block; object-position: 25% center; }
  .shop .shop-hero-content { grid-column: 1; justify-self: stretch; align-self: end; width: 100%; max-width: none; justify-items: start; text-align: start; padding: 36px 24px 50px; gap: 18px; }
  .shop .shop-hero h1 { font-size: 1.6rem; max-width: 15ch; }
  .shop .shop-hero p { font-size: .85rem; line-height: 1.8; max-width: 32ch; margin-top: 8px; }
  .shop .shop-action { min-height: 38px; padding: 9px 18px; font-size: .75rem; }
  .shop .shop-slider-controls { bottom: 12px; }
  .shop .shop-slider-arrows { display: none; }
  .shop-explora .shop-hero { min-height: 440px; }
  .shop-explora .shop-hero-media::after { background: linear-gradient(0deg, #0b1729a8, transparent 85%); }
  .shop-explora .shop-categories .kd-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .shop-explora .shop-categories .kd-category-media { aspect-ratio: 1; }
  .shop-explora .shop-categories .kd-category-copy { padding: 11px 5px; font-size: .8rem; }
  .shop-explora .shop-featured { padding-inline: 12px; }
  .shop-lumina .shop-hero { min-height: 380px; margin: 0; border-radius: 0; }
  .shop-lumina .shop-hero-content { padding: 24px 20px 42px; background: linear-gradient(0deg, #fffffff0, transparent); }
  .shop-lumina .shop-hero-media { width: 100%; justify-self: stretch; }
  .shop-lumina .shop-categories { padding-inline: 0; padding-block: 23px; }
  .shop-lumina .shop-categories .shop-section-head { padding-inline: 16px; }
  .shop-lumina .shop-categories .kd-categories { justify-content: flex-start; gap: 22px; padding-inline: 20px; }
  .shop-lumina .shop-categories .kd-category { flex: 0 0 92px; }
  .shop-lumina .shop-categories .kd-category-media { width: 80px; height: 80px; }
  .shop-lumina .shop-categories .kd-category-name { font-size: .8rem; }
  .shop-lumina .shop-featured { padding: 24px 12px; }
  .shop-minimal .shop-hero { min-height: 400px; padding: 0; }
  .shop-minimal .shop-hero-content { padding: 25px 20px 40px; background: linear-gradient(0deg, #fffffff2, transparent); }
  .shop-minimal .shop-hero h1 { font-size: 1.6rem; }
  .shop-minimal .shop-hero-media { max-width: none; }
  .shop-minimal .shop-categories .kd-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
  .shop-minimal .shop-categories .kd-category-copy { padding: 10px 0 0; }
  .shop-minimal .shop-categories .kd-category-name { font-size: .85rem; }
  .shop-minimal .shop-featured { padding: 24px 16px; }
  .shop-market .shop-hero-slider { padding: 12px 16px 0; }
  .shop-market .shop-slides { border-radius: 16px; }
  .shop-market .shop-hero { min-height: 0; height: 270px; border-radius: 16px; }
  .shop-market .shop-hero-content { max-width: 100%; padding: 20px 18px 35px; gap: 10px; background: linear-gradient(0deg, #0009, transparent); }
  .shop-market .shop-hero h1 { font-size: 1.35rem; }
  .shop-market .shop-hero p { font-size: .75rem; max-width: 26ch; }
  .shop-market .shop-slides .shop-hero-content { padding: 15px 18px 27px; gap: 10px; }
  .shop-market .shop-slides .shop-hero h1 { font-size: 1.05rem; max-width: 20ch; }
  .shop-market .shop-slides .shop-hero p { display: none; }
  .shop-market .shop-slides .shop-action { min-height: 30px; padding: 6px 12px; font-size: .65rem; }
  .shop-market .shop-categories { padding-block: 30px 16px; }
  .shop-market .shop-categories h2 { font-size: .9rem; }
  .shop-market .shop-categories .kd-categories { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 15px; }
  .shop-market .shop-categories .kd-category { flex: initial; }
  .shop-market .shop-categories .kd-category-media { width: min(100%, 90px); }
  .shop-market .shop-categories .kd-category-copy { padding-top: 12px; }
  .shop-market .shop-categories .kd-category-name { font-size: .8rem; }
  .shop-market .shop-featured { padding: 25px 0 20px; }
  .shop-market .shop-featured .shop-section-head { padding-inline: 16px; }
  .shop-market .shop-featured > [data-kardan=featured] { padding: 14px 10px; border-radius: 0; }
  .shop .kd-products, .shop-market .shop-products .kd-products, .shop-lumina .shop-products .kd-products, .shop-minimal .shop-products .kd-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .shop .kd-products--rail > .kd-product { flex: 0 0 46%; }
  .shop .kd-product-body { padding: 11px; }
  .shop .kd-product-name { font-size: .75rem; margin-bottom: 12px; }
  .shop .kd-product .kd-add { font-size: .7rem; min-height: 35px; padding: 6px; }
  .shop .kd-product .kd-add svg { width: 17px; }
  .shop .kd-price { font-size: .8rem; }
  .shop .kd-product-meta del { font-size: .65rem; }
  .shop .kd-quick { display: none; }
  .shop .shop-favorite-button { top: 5px; inset-inline-end: 5px; width: 29px; height: 29px; padding: 6px; }
  .shop .shop-rail-tools { display: none; }
  .shop .shop-promo .shop-desktop { display: none; }
  .shop .shop-promo .shop-mobile { display: block; aspect-ratio: 4 / 3; max-height: none; }
  .shop .shop-promo-copy { max-width: 70%; }
  .shop .shop-promo-copy h2 { font-size: 1.3rem; }
  .shop .shop-promo-copy p { font-size: .75rem; }
  .shop .shop-foot > nav.shop-mobile-nav { display: flex; position: fixed; z-index: 80; bottom: 0; inset-inline: 0; justify-content: space-around; align-items: stretch; gap: 0; min-height: 64px; padding: 6px 4px max(7px, env(safe-area-inset-bottom)); border-top: 1px solid #e8e8e8; background: #fffffffa; box-shadow: 0 -2px 9px #00000005; backdrop-filter: blur(10px); }
  .shop .shop-mobile-nav a { display: grid; justify-items: center; align-content: center; gap: 4px; color: #5c636a; padding: 4px 6px; font-size: .65rem; min-width: 55px; }
  .shop .shop-mobile-nav svg { width: 21px; height: 21px; }
  .shop .shop-mobile-nav a[aria-current] { color: var(--shop-ink); font-weight: 750; }
  .shop .shop-mobile-nav a[aria-current] svg { stroke-width: 2.2; }
  .shop .kd-cart-fab { display: none; }
  .shop .kd-wrap { padding: 18px 16px 40px; }
  .shop .kd-crumb { font-size: .65rem; margin-bottom: 20px; }
  .shop .kd-page-title { font-size: 1.2rem; }
  .shop .kd-page-head { margin-bottom: 18px; padding-bottom: 15px; }
  .shop .kd-toolbar { display: grid; grid-template-columns: 1fr 1fr; padding: 12px; gap: 12px; }
  .shop .kd-toolbar-search { grid-column: 1 / -1; }
  .shop .kd-toolbar-field { min-width: 0; width: auto; }
  .shop .kd-toolbar input, .shop .kd-toolbar select { font-size: .75rem; min-width: 0; width: 100%; }
  .shop .kd-toolbar button { grid-column: 1 / -1; }
  .shop .kd-chip-row { flex-wrap: nowrap; overflow-x: auto; padding: 16px 0; scrollbar-width: none; }
  .shop .kd-chip { flex-shrink: 0; font-size: .7rem; }
  .shop .kd-detail { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .shop .kd-gallery { grid-column: 1; grid-row: 1; }
  .shop .shop-gallery { grid-column: 1; grid-row: 2; margin-top: 0; }
  .shop .kd-detail-info { grid-column: 1; grid-row: 3; padding-top: 12px; }
  .shop .kd-gallery-main { border-radius: 8px; }
  .shop .kd-detail-name { font-size: 1.25rem; line-height: 1.9; margin: 10px 0 20px; }
  .shop .kd-detail-price { font-size: 1.2rem; }
  .shop .kd-detail-desc { font-size: .8rem; }
  .shop .kd-detail-actions { gap: 8px; }
  .shop .kd-detail-actions .kd-add { min-width: 0; flex: 1; }
  .shop .kd-detail-actions .kd-add-contact { flex-basis: 100%; }
  .shop .kd-related { margin-top: 20px; padding-top: 30px; }
  .shop .shop-product-tabs { margin-top: 24px; }
  .shop .shop-product-tab-list { gap: 28px; }
  .shop .shop-product-tab-list a { padding-block: 15px; font-size: .8rem; }
  .shop .shop-product-specifications > div { grid-template-columns: 95px minmax(0, 1fr); gap: 6px; font-size: .75rem; }
  .shop .shop-product-specifications dt, .shop .shop-product-specifications dd { padding: 9px 10px; }
  .shop .kd-cart-page { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .shop .kd-cart-checkout { position: static; padding: 18px; }
  .shop .kd-cart-lines { padding: 14px; }
  .shop[data-kd-page=product] { padding-bottom: 84px; }
  .shop[data-kd-page=product] .shop-mobile-nav { display: none !important; }
  .shop.shop-theme-ready[data-kd-page=product]:not(.shop-minimal) .shop-head { display: none; }
  .shop[data-kd-page=product]:not(.shop-minimal) .shop-product-topbar { display: flex; min-height: 62px; padding: 10px 16px; justify-content: space-between; align-items: center; gap: 18px; border-bottom: 1px solid #f5f5f5; background: #fff; }
  .shop .shop-product-topbar > a { display: inline-flex; align-items: center; gap: 5px; font-size: .85rem; font-weight: 700; }
  .shop .shop-product-topbar > a svg { transform: rotate(180deg); }
  .shop .shop-product-topbar > div { display: flex; align-items: center; gap: 17px; }
  .shop .shop-product-topbar .shop-favorite-button { position: static; border: 0; width: 28px; height: 28px; padding: 3px; }
  .shop .shop-product-topbar .kd-cart-count { min-width: 13px; height: 15px; font-size: .6rem; }
  .shop[data-kd-page=product] .kd-wrap { gap: 15px; }
  .shop-explora[data-kd-page=product] .kd-crumb, .shop-lumina[data-kd-page=product] .kd-crumb { background: #f8f8f8; padding: 15px 12px; text-align: center; }
  .shop-explora[data-kd-page=product] .kd-crumb ol, .shop-lumina[data-kd-page=product] .kd-crumb ol { justify-content: center; line-height: 2; }
  .shop .shop-detail-dock { display: flex; position: fixed; z-index: 85; bottom: 0; inset-inline: 0; align-items: center; justify-content: space-between; gap: 18px; background: #fff; border-top: 1px solid #ddd; padding: 12px 16px max(12px, env(safe-area-inset-bottom)); min-height: 74px; }
  .shop .shop-detail-dock > .kd-add { flex: 1; max-width: 230px; min-height: 46px; border-radius: 5px; font-size: .85rem; }
  .shop .shop-detail-dock > .shop-dock-price { font-size: .9rem; color: #333; font-weight: 700; text-align: end; }
  .shop .shop-detail-dock > .kd-add-off { color: #888; background: #eee; }
  .shop-lumina .shop-detail-dock > .kd-add { color: var(--shop-on-accent, #242424); }
  .shop[data-kd-page=product] .kd-gallery-main { border-radius: 0; }
  .shop .shop-dialog { inset: 3vh 50% auto auto; width: calc(100% - 24px); max-height: 91vh; }
  .shop .shop-dialog--menu { inset: 0 0 0 auto; width: calc(100% - 50px); max-width: 330px; max-height: 100%; }
  .shop .shop-dialog-head { padding: 18px; }
  .shop .shop-dialog-body { padding: 18px; }
  .shop .shop-theme-status { bottom: 83px; max-width: calc(100% - 30px); width: max-content; }
}
@media (prefers-reduced-motion: reduce) {
  .shop *, .shop *::before, .shop *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Merchant-owned content stays visible when the matching catalog slot is empty. */
.shop .shop-section-head p:empty, .shop .shop-hero-content p:empty { display: none; }
.shop .shop-products:has(> [data-kd-empty]):not(:has(> .shop-image, > .shop-action, .shop-copy p:not(:empty))),
.shop .shop-categories:has(> [data-kd-empty]):not(:has(> .shop-image, > .shop-action, .shop-copy p:not(:empty))),
.shop .shop-featured:has(> [data-kd-empty]):not(:has(> .shop-image, > .shop-action, .shop-copy p:not(:empty))),
.shop .shop-header-categories:empty, .shop .shop-information .shop-contact-links:empty { display: none; }
.shop .shop-information { width: min(100%, 52rem); margin-inline: auto; overflow-wrap: anywhere; }
.shop .shop-information .shop-contact-links { padding-block: 1rem; display: grid; justify-items: start; gap: .8rem; color: inherit; }
.shop .shop-information a { text-decoration: underline; text-underline-offset: .22em; }
.shop .shop-hero-content .shop-copy { min-width: 0; overflow-wrap: anywhere; }

.shop-fashion .shop-header-row { border-block-start: 5px solid var(--shop-accent); }
.shop-fashion .shop-featured, .shop-fashion .shop-market-product-rail:first-child { border-radius: 18px; background: #102742; color: white; }
.shop-fashion .shop-market-product-rail { padding: clamp(15px, 3vw, 38px); }
.shop-fashion .shop-market-product-rail:first-child .shop-view-all, .shop-fashion .shop-featured .shop-section-head { color: inherit; }
.shop-fashion .shop-featured > [data-kardan=featured] { padding: 0; background: none; }
.shop-fashion .shop-featured .kd-product, .shop-fashion .shop-market-product-rail .kd-product { color: var(--shop-ink); border-radius: 10px; }
.shop-fashion .shop-hero-content, .shop-scent .shop-hero-content { color: white; }
.shop-jewel .shop-head { border-radius: 0; box-shadow: none; border-block: 6px solid var(--shop-secondary); border-bottom-width: 1px; }
.shop-jewel .shop-section-head { justify-content: space-between; }
.shop-jewel .kd-product { border-radius: 0; border-width: 0 0 1px; }
.shop-jewel .shop-hero-content { color: #1b414e; }
.shop-jewel .shop-hero-content .shop-action, .shop-decor .shop-hero-content .shop-action { background: var(--shop-accent); color: var(--shop-on-accent); }
.shop-decor .shop-announcement { background: var(--shop-secondary); color: #28382a; }
.shop-decor .shop-categories .kd-categories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 4vw, 54px); }
.shop-decor .shop-categories .kd-category-media, .shop-decor .shop-categories .kd-category-media img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 4; border-radius: 50% 50% 5px 5px; object-fit: cover; }
.shop-decor .shop-categories .kd-category-copy { padding-top: .75rem; text-align: center; }
.shop-decor .shop-hero-content { color: #303a2c; }
.shop-scent .shop-announcement { color: #faf6ec; background: #25221d; }
.shop-scent .shop-hero .shop-action { color: #24211b; background: #f9edd7; border-radius: 3px; }
@media (min-width: 701px) {
  .shop-jewel .shop-hero-content, .shop-scent .shop-hero-content { grid-column: 1; }
  .shop-scent .shop-hero-media::after { background: linear-gradient(270deg, #15100b80, transparent 70%); }
  .shop-jewel .shop-default-hero, .shop-scent .shop-default-hero { transform: none; }
  .shop-jewel .shop-hero-media .shop-default-hero, .shop-scent .shop-hero-media .shop-default-hero { object-position: center; }
}
@media (max-width: 700px) {
  .shop .shop-header-row .shop-brand { max-width: 100%; overflow: hidden; }
  .shop-fashion .shop-featured { padding: 20px 12px; }
  .shop-decor .shop-categories .kd-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop-scent .shop-hero-content { background: linear-gradient(0deg, #18120ddd, transparent); }
}

.shop .shop-account-link[data-signed-in] {
  color: #16543c;
  background: #eaf5ee;
  border-color: #b7d9c4;
}
@media (max-width: 700px) {
  .shop.shop-theme-ready .shop-header-row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    min-height: 56px;
  }
  .shop .shop-header-row .shop-brand {
    grid-area: 1 / 2;
    justify-self: start;
    margin: 0;
    min-width: 0;
  }
  .shop .shop-brand strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .shop .shop-buyer-actions { grid-area: 1 / 3; gap: 2px; }
  .shop .shop-menu-toggle, .shop .shop-buyer-actions .shop-icon-button,
  .shop .shop-account-link, .shop .shop-buyer-actions [data-kd-open-cart] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 12px;
  }
  .shop .shop-buyer-actions .shop-favorites-link { display: none; }
  .shop .shop-account-link { border-color: transparent; }
  .shop .shop-account-link span { display: none; }
  .shop .shop-account-link svg { width: 22px; height: 22px; }
  .shop .shop-buyer-actions [data-kardan=cart] { display: inline-flex; }
  .shop .shop-header-row .shop-search-form { margin-block: 2px 3px; }
  .shop .shop-product-topbar > div { gap: 2px; }
  .shop .shop-head .shop-announcement { display: none; }
  .shop .shop-header-row .shop-menu-toggle { grid-area: 1 / 1; }
}

.shop[data-shop-booking] .shop-booking-home,
.shop[data-shop-booking] .kd-wrap { width: min(100%, 860px); margin-inline: auto; }
.shop-booking-home { padding: clamp(22px, 5vw, 54px) 16px; }
.shop-booking-home > header {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--kd-line);
}
.shop-booking-home h1 { font-size: clamp(1.3rem, 4vw, 2.1rem); margin: 0; }
.shop-booking-home header a { white-space: nowrap; font-size: .875rem; }
.shop[data-shop-booking] .kd-products {
  display: grid; grid-template-columns: minmax(0,1fr); gap: 0; margin-block: 10px 18px;
}
.shop[data-shop-booking] .kd-products > .kd-product {
  display: grid; grid-template-columns: minmax(50px, 15%) minmax(0, 1fr);
  align-items: center; gap: 14px; padding: 16px 0; border: 0;
  border-bottom: 1px solid var(--kd-line); border-radius: 0; box-shadow: none;
}
.shop[data-shop-booking] .kd-product-media { inline-size: 100%; min-inline-size: 0; aspect-ratio: 1; border-radius: 12px; }
.shop[data-shop-booking] .kd-product-body { padding: 0; min-width: 0; }
.shop[data-shop-booking] .kd-product-foot { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; }
.shop[data-shop-booking] .kd-product-name { min-block-size: 0; margin: 4px 0 8px; font-size: 1rem; }
.shop[data-shop-booking] .kd-product .kd-add { width: auto; min-height: 44px; padding-inline: 14px; }
.shop[data-shop-booking] .kd-product .shop-favorite-button,
.shop[data-shop-booking] .kd-product .kd-quick,
.shop[data-shop-booking]:not(.shop-booking,.shop-services,.shop-portfolio) .shop-hero-slider:has(.shop-default-hero):not(:has([data-shop-has-image])) { display: none; }
.shop:is(.shop-booking,.shop-services,.shop-portfolio) .shop-hero-slider {
  max-width: 1280px;
  margin-inline: auto;
}
.shop:is(.shop-booking,.shop-services,.shop-portfolio) .shop-hero h1 { text-wrap: balance; }
.shop:is(.shop-booking,.shop-services,.shop-portfolio) .shop-hero .shop-action {
  border-radius: 12px;
  background: var(--shop-accent);
  color: var(--shop-on-accent);
}
.shop:is(.shop-booking,.shop-services,.shop-portfolio) .shop-slides > .shop-hero:has(.shop-default-hero) {
  aspect-ratio: 2.4;
}
@media (max-width: 700px) {
  .shop:is(.shop-booking,.shop-services,.shop-portfolio) .shop-slides > .shop-hero:has(.shop-default-hero) {
    grid-template-columns: 1fr;
    aspect-ratio: 1.75;
    min-height: 205px;
  }
  .shop:is(.shop-booking,.shop-services,.shop-portfolio) .shop-hero:has(.shop-default-hero) .shop-hero-content {
    align-self: stretch;
    justify-self: start;
    align-content: center;
    width: auto;
    max-width: 60%;
    gap: 12px;
    padding: 18px;
    background: transparent;
  }
  .shop:is(.shop-booking,.shop-services) .shop-hero-media:has(.shop-default-hero)::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(270deg, #fff8, transparent 70%);
  }
  .shop-portfolio .shop-hero-media:has(.shop-default-hero)::after {
    background: linear-gradient(270deg, #091322a8, transparent 60%);
  }
}
.shop-services .shop-booking-home { background: #fffaf7; border-radius: 18px; }
.shop-portfolio .shop-booking-home > header { border-color: var(--shop-accent); }
@media (min-width: 701px) {
  .shop:is(.shop-services,.shop-portfolio) .shop-hero-content { grid-column: 1; }
  .shop:is(.shop-services,.shop-portfolio) .shop-default-hero { transform: none; }
  .shop-portfolio .shop-hero-media::after { background: linear-gradient(270deg, #091322a8, transparent 70%); }
}
.shop[data-shop-booking] .kd-detail:has(.kd-gallery-main.kd-product-media-empty) { display: block; }
.shop[data-shop-booking] .kd-detail .kd-gallery:has(.kd-product-media-empty) { display: none; }
.shop[data-shop-booking] .kd-service-symbol {
  display: grid; place-items: center; width: 100%; height: 100%;
  background: color-mix(in srgb, var(--shop-accent) 10%, white); color: var(--shop-accent);
}
.kd-service-symbol svg { width: 32px; height: 32px; }
.kd-service-duration { display: inline-flex; align-items: center; gap: 5px; font-size: .85rem; color: var(--kd-muted); }
.kd-service-duration svg { width: 16px; height: 16px; }
.shop[data-shop-booking] .kd-add, .shop[data-shop-booking] .kd-btn:not(.kd-add-contact) {
  background: var(--shop-accent); color: var(--shop-on-accent); border-radius: 12px;
}
.shop[data-shop-booking] .kd-product-foot .kd-product-meta { width: auto; text-align: start; align-items: flex-start; }
.kd-service-address summary { cursor: pointer; font-size: .875rem; padding-block: 8px; }

/* Keep the active navigation bar in flow, including the mobile product toolbar. */
.shop .shop-head, .shop .shop-product-topbar {
  position: sticky;
  inset-block-start: var(--kd-market-banner-height, 0px);
  z-index: 75;
  box-shadow: 0 1px 0 rgb(24 30 30 / 9%);
}
html:has(.shop) { scroll-padding-block-start: calc(var(--kd-market-banner-height, 0px) + var(--shop-header-height, 64px) + 8px); }

.shop:not([data-shop-booking]) .kd-product {
  block-size: auto;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  padding: clamp(6px, 1.3vw, 12px);
  border: 1px solid #e1dfdb;
  border-radius: 15px;
  background: #fff;
}
.shop:not([data-shop-booking]) .kd-product-media {
  flex: none;
  inline-size: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: #f6f4f0;
}
.shop:not([data-shop-booking]) .kd-product-media img { padding: 0; object-fit: contain; }
.shop:not([data-shop-booking]) .kd-product-media .shop-favorite-button {
  inset-inline: 6px auto;
  top: 6px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #fffffff2;
}
.shop:not([data-shop-booking]) .kd-product-media .kd-badge { inset-inline: auto 6px; }
.shop:not([data-shop-booking]) .kd-product-body {
  position: static;
  flex: 1;
  justify-content: flex-start;
  padding: 10px 2px 2px;
  color: var(--shop-ink);
  background: #fff;
}
.shop:not([data-shop-booking]) .kd-product-name {
  min-height: 2.9em;
  margin: 0 0 7px;
  font-size: clamp(.86rem, 2.8vw, 1rem);
  font-weight: 600;
  line-height: 1.45;
  text-align: start;
}
.shop:not([data-shop-booking]) .kd-product-foot { gap: 10px; }
.shop:not([data-shop-booking]) .kd-product-meta { flex-direction: row; justify-content: flex-start; gap: 2px 7px; }
.shop:not([data-shop-booking]) .kd-product .kd-price { flex-basis: 100%; font-size: clamp(.8rem, 3.6vw, 1rem); font-weight: 750; }
.shop:not([data-shop-booking]) .kd-product button.kd-add {
  min-height: 44px;
  gap: 6px;
  padding: 6px 4px;
  border: 0;
  border-radius: 9px;
  background: var(--shop-accent);
  color: var(--shop-on-accent, #242424);
  font-size: .82rem;
  font-weight: 650;
}
.shop:not([data-shop-booking]) .kd-product button.kd-add:hover { filter: brightness(.94); }

@media (max-width: 700px) {
  .shop .kd-detail:has([data-kd-detail-variants]):has(.shop-detail-dock) .kd-detail-actions [data-kd-add] { display: none; }
}

.shop .shop-head .shop-mobile-search { display: none; }
.shop .shop-head .shop-brand { letter-spacing: normal; gap: 10px; }
.shop .shop-head .shop-brand [data-kd-empty] { display: none; }
.shop .shop-head .shop-search-form { border: 1px solid #dedfe2; background: #f7f7f8; border-radius: 12px; color: #51555d; }
.shop .shop-head .shop-search-form:focus-within { border-color: var(--shop-accent); background: #fff; }
.shop .shop-head .shop-search-form input { font-size: max(.875rem, 16px); }
@media (min-width: 701px) {
  .shop .shop-head .shop-header-row { min-height: 74px; padding-block: 12px; }
  .shop .shop-head .shop-brand { font-size: clamp(1rem, 1.6vw, 1.3rem); }
  .shop .shop-head .shop-buyer-actions { gap: clamp(8px, 1.4vw, 20px); }
  .shop .shop-head .shop-navigation-row { padding-block: 8px; border-block-start: 1px solid #eee; }
}
@media (max-width: 700px) {
  .shop.shop-theme-ready .shop-head .shop-header-row {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    grid-template-rows: auto auto;
    gap: 6px 8px;
    padding: 8px 14px 10px;
  }
  .shop.shop-theme-ready .shop-header-row .shop-buyer-actions { display: contents; }
  .shop.shop-theme-ready .shop-header-row .shop-brand {
    justify-self: center; text-align: center; margin: 0; gap: 6px;
    font-size: clamp(.94rem, 4.2vw, 1.15rem);
  }
  .shop.shop-theme-ready .shop-header-row .shop-menu-toggle,
  .shop.shop-theme-ready .shop-header-row [data-kd-open-cart],
  .shop.shop-theme-ready .shop-header-row .shop-account-link {
    width: 44px; height: 44px; min-height: 44px; border: 1px solid #dedfe2;
    border-radius: 11px; background: #fff; color: var(--shop-ink);
  }
  .shop.shop-theme-ready .shop-header-row [data-kardan=cart] { grid-area: 1 / 3; justify-self: end; }
  .shop.shop-theme-ready .shop-header-row .shop-account-link { grid-area: 2 / 3; justify-self: end; }
  .shop.shop-theme-ready .shop-header-row .shop-account-link[data-signed-in] { color: #176047; background: #edf7f1; }
  .shop.shop-theme-ready .shop-header-row .shop-search-form {
    grid-area: 2 / 1 / 3 / 3; display: flex; width: 100%; min-height: 44px;
    height: 44px; max-width: none; margin: 0; padding: 0 10px; gap: 6px;
  }
  .shop.shop-theme-ready .shop-header-row .shop-buyer-actions [data-shop-search] { display: none; }
  .shop.shop-theme-ready .shop-header-row .kd-cart-count { inset: 1px auto auto 1px; }
}

/* A short marketplace frame must leave enough space to operate the basket. */
@media (max-height: 420px) {
  .shop .shop-head, .shop .shop-product-topbar { position: relative; inset-block-start: auto; }
  .shop .shop-foot > nav.shop-mobile-nav { position: static; }
}

/* Payment panels follow the geometry of the storefront family. */
.shop-market { --kd-transfer-radius: 8px; }
.shop-explora { --kd-transfer-radius: 4px; }
.shop-minimal { --kd-transfer-radius: 10px; }
.shop-lumina { --kd-transfer-radius: 16px; }
.shop-explora .kd-transfer-destination { border-inline-start: 3px solid var(--shop-accent); }
.shop-lumina .kd-card-box { box-shadow: 0 3px 12px #2420310b; }
.shop-minimal .kd-transfer-destination { border: 1px solid var(--shop-line); }
