/* KAVIR V36.5.35 · Progressive storefront improvements */
.kv35-commerce-shelves[hidden]{display:none!important;}
.kv35-commerce-shelves{display:grid;gap:36px;margin-block:48px 68px;}
.kv35-store-shelf[hidden]{display:none!important;}
.kv35-store-shelf{min-width:0;}
.kv35-shelf-head{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:18px;}
.kv35-shelf-head h2{font-size:clamp(21px,2vw,31px);margin:5px 0 6px;line-height:1.6;font-weight:900;}
.kv35-shelf-head p{font-size:13px;opacity:.72;margin:0;}
.kv35-shelf-head span{font-size:10px;letter-spacing:.16em;color:var(--orange,#ed713d);}
.kv35-shelf-head>a{font-size:13px;text-decoration:none;flex-shrink:0;color:inherit;border:1px solid currentColor;border-radius:14px;padding:10px 16px;opacity:.85;}
.kv35-shelf-track{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(255px, 23%);gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-inline:contain;scrollbar-width:thin;scroll-padding-inline:6px;padding:6px 6px 18px;}
.kv35-shelf-track>.kv-store-product-card{scroll-snap-align:start;min-width:0;width:100%;height:100%;}
.kv35-sale-shelf{border:1px solid rgba(237,113,61,.28);border-radius:24px;padding:24px;background:rgba(237,113,61,.045);}
.kv35-sale-shelf .has-special-offer{border-color:rgba(237,113,61,.65);}
.kv35-sale-shelf .kv-product-badge{background:#ffebda;color:#a84917;}
.kv35-store-shelf .kv-product-card-media img{aspect-ratio:16/10;object-fit:cover;}
.kv35-store-shelf .kv-store-product-card{transition:transform .25s ease,box-shadow .25s ease;}
@media (hover:hover){.kv35-store-shelf .kv-store-product-card:hover{transform:translateY(-4px);box-shadow:0 18px 40px rgba(20,15,19,.12);}}
.kv35-preview-section{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:24px 0;padding:25px;border-radius:22px;border:1px solid rgba(237,113,61,.34);background:var(--kv35-preview-bg,rgba(237,113,61,.06));}
.kv35-preview-section[hidden]{display:none!important;}
.kv35-preview-section h2{font-size:clamp(22px,2vw,30px);margin:5px 0;}
.kv35-preview-section p{opacity:.75;margin:0;}
.kv35-preview-open{border:0;border-radius:14px;background:#ed713d;color:#fff;padding:14px 24px;cursor:pointer;font:inherit;font-weight:800;display:flex;gap:15px;align-items:center;white-space:nowrap;}
.kv35-preview-dialog{position:fixed;max-width:min(1100px,95vw);width:95vw;max-height:90dvh;inset:5dvh auto auto;border:1px solid rgba(237,113,61,.3);border-radius:22px;padding:15px;background:var(--kv35-dialog-bg,#1f1b25);color:var(--kv35-dialog-color,#f7f4fb);box-shadow:0 24px 90px #0007;}
.kv35-preview-dialog::backdrop{background:rgba(11,9,17,.77);backdrop-filter:blur(7px);}
.kv35-preview-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:0 4px 12px;}
.kv35-preview-head button{font:inherit;font-size:26px;background:transparent;color:inherit;border:1px solid currentColor;border-radius:50%;width:38px;height:38px;cursor:pointer;}
.kv35-preview-display{height:min(70dvh,760px);min-height:270px;}
.kv35-preview-display iframe,.kv35-preview-display video{width:100%;height:100%;border:0;border-radius:12px;background:#fff;object-fit:contain;}
.kv35-preview-dialog>small{opacity:.65;display:block;margin-top:8px;}
.kv35-editor-steps{display:flex;gap:9px;overflow-x:auto;padding-block:4px 20px;scrollbar-width:thin;}
.kv35-editor-steps button{font:inherit;white-space:nowrap;border-radius:12px;border:1px solid rgba(150,135,150,.25);background:transparent;color:inherit;padding:11px 15px;cursor:pointer;}
.kv35-editor-steps button.active{background:#ed713d;color:#fff;border-color:#ed713d;}
.kv35-admin-preview{padding:22px;margin:16px 0;background:var(--kv35-preview-bg,rgba(237,113,61,.07));border:1px solid rgba(237,113,61,.28);border-radius:16px;}
.kv35-admin-preview h3{margin:0 0 8px;font-size:19px;}
.kv35-admin-preview p{line-height:1.85;margin:0 0 16px;font-size:13px;}
.kv35-admin-preview label{display:block;margin-bottom:12px;}
.kv35-admin-preview input{display:block;margin-top:8px;max-width:100%;}
.kv35-admin-preview small{display:block;margin-top:12px;line-height:1.8;}
html[data-theme="light"]{--kv35-preview-bg:#fff4ec;--kv35-dialog-bg:#fff;--kv35-dialog-color:#282321;}
html[data-theme="light"] .kv35-sale-shelf{background:#fff3e9;border-color:#f5d2bb;}
html[data-theme="light"] .kv35-preview-section{background:#fff5ed;}
html[data-theme="light"] .kv35-shelf-track>.kv-store-product-card{background:#fff;border-color:#eddccf;}
html[data-theme="light"] .kv35-shelf-head>a{border-color:#edcab5;color:#a94e26;}
@media(max-width:850px){.kv35-shelf-track{grid-auto-columns:minmax(220px,58%)}.kv35-sale-shelf{padding:14px}.kv35-shelf-head{align-items:start}}
@media(max-width:580px){.kv35-shelf-track{grid-auto-columns:minmax(220px,84%)}.kv35-preview-section{flex-direction:column;align-items:stretch;padding:18px}.kv35-preview-open{justify-content:center}.kv35-shelf-head h2{font-size:21px}.kv35-shelf-head>a{font-size:11px;padding:8px 10px}.kv35-commerce-shelves{gap:30px}}
@media(prefers-reduced-motion:reduce){.kv35-store-shelf .kv-store-product-card{transition:none!important;transform:none!important;}}

#productForm>.kv35-admin-section[hidden], #productForm>details[hidden], #productForm>.kv35-admin-preview[hidden]{display:none!important;}

.kv35-shelf-tools{display:flex;gap:8px;align-items:center;}
.kv35-shelf-tools button{border:1px solid rgba(237,113,61,.3);background:transparent;color:inherit;border-radius:50%;width:38px;height:38px;cursor:pointer;font-size:19px;}
.kv35-shelf-tools button:focus-visible{outline:3px solid #ed713d;outline-offset:3px;}
.kv35-only-discount{display:inline-flex;gap:7px;align-items:center;font-size:12px;white-space:nowrap;cursor:pointer;}
.kv35-only-discount input{accent-color:#ed713d;width:16px;height:16px;}
@media(max-width:640px){.kv35-shelf-tools{display:none;}.kv35-shelf-head>a{display:none}.kv35-only-discount{width:100%;justify-content:flex-start;}}

/* Admin store: editorial simplicity, scoped to avoid changes in CRM / learner panel. */
#admin-courses .kv36-store-hero{min-height:145px;border-radius:23px;box-shadow:none;}
#admin-courses .kv36-store-nav{border-radius:17px;gap:6px;box-shadow:none;}
#admin-courses .kv36-store-nav button{border-radius:12px;transition:background-color .18s ease,color .18s ease,transform .18s ease;}
#admin-courses .kv36-store-nav button:focus-visible{outline:3px solid #ed713d;outline-offset:2px;}
#admin-courses .kv36-store-nav button.active{font-weight:800;}
#admin-courses .kv36-panel-heading{border-radius:17px;}
#admin-courses .kv35-admin-preview input[type=file]{border:1px dashed rgba(237,113,61,.48);border-radius:12px;padding:12px;width:min(100%,620px);background:transparent;}
html[data-theme="light"] #admin-courses .kv36-store-hero{background:#fff6ef!important;border-color:#f2d7c4!important;color:#27221e!important;}
html[data-theme="light"] #admin-courses .kv36-store-nav{background:#fff!important;border:1px solid #f0ddd0!important;}
html[data-theme="light"] #admin-courses .kv36-store-nav button{background:#fff9f4!important;color:#563e35!important;border:1px solid #f0e0d3!important;}
html[data-theme="light"] #admin-courses .kv36-store-nav button.active{background:#ed713d!important;color:#fff!important;border-color:#ed713d!important;}
html[data-theme="light"] #admin-courses .kv36-panel-heading{background:#fff7f1!important;border-color:#f0dbcc!important;color:#292421!important;}
html[data-theme="light"] #admin-courses .kv35-editor-steps button{background:#fff!important;color:#6c5145!important;border-color:#ead5c5!important;}
html[data-theme="light"] #admin-courses .kv35-editor-steps button.active{background:#ed713d!important;color:#fff!important;border-color:#ed713d!important;}
@media (prefers-reduced-motion:reduce){#admin-courses .kv36-store-nav button{transition:none;}}
