:root {
    --bg: #fffdfd;
    --surface: #ffffff;
    --surface-2: #fff6f9;
    --text: #4a2940;
    --text-soft: #765465;
    --brand: #d8578a;
    --brand-dark: #b93d70;
    --brand-soft: #f9e2eb;
    --line: #f0d7e1;
    --shadow: 0 14px 40px rgba(193, 89, 132, 0.10);
    --radius: 24px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Cairo', 'Inter', system-ui, sans-serif;
    background: linear-gradient(180deg, #fff 0%, #fff7fa 100%);
    color: var(--text);
    line-height: 1.7;
}
body.lang-en { font-family: 'Inter', 'Cairo', system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, 92%); margin: auto; }
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,.92);
    border-bottom: 1px solid rgba(216,87,138,.10);
    backdrop-filter: blur(10px);
}
.nav-wrap {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    padding: 16px 0;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand img {
    width: 60px; height: 60px; object-fit: contain;
    border-radius: 18px; background: var(--brand-soft); padding: 8px;
    box-shadow: var(--shadow);
}
.brand strong { display:block; font-size: 1.15rem; color: var(--brand-dark); }
.brand small { color: var(--text-soft); }
nav { display:flex; justify-content:center; flex-wrap:wrap; gap: 24px; }
nav a { font-weight:700; color: var(--text-soft); }
nav a:hover { color: var(--brand-dark); }
.lang-switcher { display:flex; align-items:center; gap:10px; color: var(--text-soft); font-size:.95rem; }
.lang-pill {
    display:inline-flex; align-items:center; justify-content:center; min-width:40px; height:40px;
    border-radius:999px; border:1px solid var(--line); background:#fff; color: var(--brand-dark); font-weight:800;
}
.lang-pill.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.hero { padding: 56px 0 28px; }
.hero-split { display:grid; grid-template-columns: 1.15fr .85fr; gap: 26px; align-items:center; }
.eyebrow {
    display:inline-flex; align-items:center; padding:8px 14px; border-radius:999px; background: var(--brand-soft);
    color: var(--brand-dark); font-weight:800; font-size:.92rem;
}
.hero-copy h1 { font-size: clamp(2.5rem, 7vw, 5rem); line-height:1.05; margin: 16px 0 18px; color: var(--brand-dark); }
.hero-copy p { color: var(--text-soft); font-size: 1.08rem; max-width: 62ch; }
.actions { display:flex; flex-wrap:wrap; gap: 14px; margin-top: 28px; }
.btn {
    display:inline-flex; align-items:center; justify-content:center; min-height: 50px; padding: 12px 22px; border-radius:999px;
    font-weight:800; border:1px solid transparent; transition: .25s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color:#fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-secondary { background: #fff; color: var(--brand-dark); border-color: var(--line); }
.logo-panel, .card-soft {
    background: rgba(255,255,255,.92);
    border:1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.logo-panel { min-height: 460px; display:flex; align-items:center; justify-content:center; padding: 32px; }
.logo-panel img { width: min(88%, 420px); filter: none; }
.section { padding: 24px 0 56px; }
.section-head { display:flex; justify-content:space-between; align-items:end; gap:16px; margin-bottom: 20px; }
.section-kicker { color: var(--brand); font-weight:800; letter-spacing:.04em; font-size:.88rem; text-transform:uppercase; }
.section h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.4rem); color: var(--brand-dark); }
.grid-4, .grid-3 { display:grid; gap: 18px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.category-card, .product-card, .offer-card, .product-gallery, .product-details { overflow:hidden; }
.category-card, .product-card, .offer-card { padding: 18px; }
.category-card:hover, .product-card:hover { transform: translateY(-3px); }
.category-card img, .product-card .main-image {
    width:100%; height: 250px; object-fit: cover; border-radius: 20px; background: var(--surface-2);
}
.category-icon { height: 118px !important; object-fit: contain !important; padding: 14px; }
.card-body { padding-top: 12px; }
.product-card h3, .category-card h3, .offer-card h3 { margin: 10px 0 8px; color: var(--brand-dark); font-size: 1.1rem; }
.product-card p, .category-card p, .offer-card p, .lead-text { margin: 0; color: var(--text-soft); }
.badge {
    display:inline-flex; align-items:center; padding:7px 12px; border-radius:999px; font-size:.82rem; font-weight:800;
}
.badge-soft { background: var(--brand-soft); color: var(--brand-dark); }
.badge-offer { background: var(--brand); color:#fff; }
.price-row { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-top: 14px; }
.price { font-size: 1.22rem; font-weight: 900; color: var(--brand-dark); }
.old-price { text-decoration: line-through; color: #b694a5; }
.product-layout { display:grid; grid-template-columns: 1.05fr .95fr; gap: 22px; align-items:start; }
.product-gallery, .product-details { padding: 22px; }
.gallery { display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap:10px; margin-top: 14px; }
.gallery img { height: 110px; object-fit: cover; border-radius: 16px; background: var(--surface-2); }
.spec-list { list-style:none; padding:0; margin: 18px 0 0; display:grid; gap: 10px; }
.spec-list li { background: var(--surface-2); border:1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.site-footer { padding: 22px 0 44px; border-top:1px solid var(--line); margin-top: 28px; }
.footer-grid { display:grid; grid-template-columns: 1.1fr .9fr; gap: 20px; }
.footer-grid h3, .footer-grid h4 { color: var(--brand-dark); margin-bottom: 8px; }
.lang-modal {
    position: fixed; inset: 0; background: rgba(74,41,64,.35); z-index: 70; display:flex; align-items:center; justify-content:center; padding:20px;
}
.lang-modal-card {
    width:min(520px, 100%); background:#fff; border-radius: 28px; padding: 28px; text-align:center; box-shadow: 0 24px 60px rgba(74,41,64,.22);
}
.lang-modal-card img { width: 96px; margin: 0 auto 16px; }
.lang-modal-card h2 { margin: 0 0 10px; color: var(--brand-dark); }
.lang-modal-card p { margin: 0; color: var(--text-soft); }
.lang-modal-actions { display:grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.admin-shell { background: #faf7f9; color: #222; min-height: 100vh; }
.admin-topbar { background: #fff; border-bottom: 1px solid #eee; }
.admin-topbar .container { display:flex; justify-content:space-between; align-items:center; padding:16px 0; }
.admin-links { display:flex; flex-wrap:wrap; gap:14px; }
.admin-box { background:#fff; border-radius:20px; padding:20px; box-shadow:0 8px 30px rgba(0,0,0,.06); }
.flash { padding:12px 14px; border-radius:14px; margin-bottom:16px; font-weight:700; }
.flash-success { background:#e7f6ec; color:#166534; }
.flash-error { background:#fdecec; color:#991b1b; }
.table-wrap { overflow:auto; }
table { width:100%; border-collapse: collapse; background: #fff; color: #222; border-radius:12px; overflow:hidden; }
th, td { padding:12px; border-bottom:1px solid #eee; text-align:right; }
.form-grid { display:grid; grid-template-columns: repeat(2,1fr); gap:14px; }
input, select, textarea {
    width:100%; padding:12px 14px; border-radius:12px; border:1px solid #e6dce1; font-family: inherit; background:#fff;
}
textarea { min-height:110px; }
@media (max-width: 1080px) {
    .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .grid-3, .product-layout, .hero-split { grid-template-columns: 1fr; }
    .logo-panel { min-height: 320px; }
}
@media (max-width: 780px) {
    .nav-wrap { grid-template-columns: 1fr; }
    nav { justify-content:flex-start; gap:16px; }
    .lang-switcher { justify-content:flex-start; }
    .footer-grid, .lang-modal-actions, .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .grid-4, .grid-3, .gallery { grid-template-columns: 1fr; }
    .category-card img, .product-card .main-image { height: 220px; }
    .hero { padding-top: 32px; }
    .hero-copy h1 { font-size: 2.4rem; }
}


.card-link { display:block; color:inherit; }
.card-actions {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding: 0 18px 18px;
}
.share-group { position:relative; display:inline-flex; flex-direction:column; align-items:flex-start; }
.share-toggle, .share-menu button {
    font-family: inherit;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--brand-dark);
    border-radius: 999px;
    min-height: 42px;
    padding: 10px 14px;
    cursor: pointer;
    font-weight: 800;
}
.share-toggle:hover, .share-menu a:hover, .share-menu button:hover { background: var(--brand-soft); }
.share-menu {
    position:absolute;
    top: calc(100% + 8px);
    inset-inline-start: 0;
    min-width: 220px;
    background:#fff;
    border:1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 8px;
    display:none;
    z-index:20;
}
.share-group.open .share-menu { display:grid; gap:8px; }
.share-menu a, .share-menu button {
    text-align:start;
    text-decoration:none;
    width:100%;
}
.detail-share-row {
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    align-items:center;
    margin-top: 16px;
}
.share-note {
    color: var(--text-soft);
    font-size: .92rem;
}
@media (max-width: 768px) {
    .card-actions { padding: 0 14px 14px; }
    .share-menu { min-width: 200px; }
}

.setup-notice{background:#fff7fa;border:1px solid #f3c3d6;color:#7a214a;border-radius:24px;padding:24px;box-shadow:0 10px 30px rgba(216,27,96,.08)}
.setup-notice code{display:block;margin-top:12px;background:#fff;padding:12px;border-radius:12px;color:#6a1b3f;overflow:auto;direction:ltr;text-align:left}


.header-tools{display:flex;align-items:center;gap:12px;justify-self:end}
.theme-toggle{
    display:inline-flex;align-items:center;gap:10px;min-height:40px;padding:9px 14px;border-radius:999px;
    border:1px solid var(--line);background:#fff;color:var(--brand-dark);font:inherit;font-weight:800;cursor:pointer;
}
.theme-toggle:hover{background:var(--brand-soft)}
.theme-toggle-icon{font-size:1rem;line-height:1}
.card-link{display:block}
.card-actions{padding:0 18px 18px;margin-top:2px}
.share-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.share-chip{
    display:inline-flex;align-items:center;gap:8px;min-height:38px;padding:8px 12px;border-radius:999px;
    border:1px solid var(--line);background:#fff;color:var(--brand-dark);font:inherit;font-weight:800;cursor:pointer;
    box-shadow:0 8px 22px rgba(193,89,132,.06)
}
.share-chip:hover{transform:translateY(-1px);background:var(--surface-2)}
.share-icon{
    width:24px;height:24px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;
    background:var(--brand-soft);color:var(--brand-dark);font-size:.82rem;font-weight:800
}
.share-wa .share-icon{background:#dcfce7;color:#166534}
.share-fb .share-icon{background:#dbeafe;color:#1d4ed8}
.share-tg .share-icon{background:#e0f2fe;color:#0369a1}
.share-x .share-icon{background:#f3f4f6;color:#111827}
.share-copy .share-icon,.share-more .share-icon{background:var(--brand-soft);color:var(--brand-dark)}
.share-label{font-size:.86rem}
.detail-share-row{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-top:18px}
.detail-share-row .share-row{flex:1}
body{transition:background .25s ease,color .25s ease}
.site-header,.card-soft,.logo-panel,.lang-modal-card,.theme-toggle,.share-chip,.lang-pill{transition:background .25s ease,color .25s ease,border-color .25s ease, box-shadow .25s ease}
body[data-theme="dark"]{
    --bg:#151116;
    --surface:#1d1720;
    --surface-2:#241b27;
    --text:#f7eaf0;
    --text-soft:#d8bcc8;
    --brand:#e67aa7;
    --brand-dark:#f4a8c5;
    --brand-soft:#3a2631;
    --line:#4b3240;
    --shadow:0 16px 42px rgba(0,0,0,.32);
    background:linear-gradient(180deg,#151116 0%,#1f1720 100%);
}
body[data-theme="dark"] .site-header{background:rgba(24,18,25,.92)}
body[data-theme="dark"] .theme-toggle,
body[data-theme="dark"] .lang-pill,
body[data-theme="dark"] .share-chip{background:var(--surface);color:var(--text);border-color:var(--line)}
body[data-theme="dark"] .theme-toggle:hover,
body[data-theme="dark"] .share-chip:hover{background:var(--surface-2)}
body[data-theme="dark"] .lang-pill.active{background:var(--brand);color:#fff;border-color:var(--brand)}
body[data-theme="dark"] .lang-modal{background:rgba(0,0,0,.45)}
body[data-theme="dark"] .lang-modal-card{background:var(--surface);border:1px solid var(--line)}
@media (max-width: 900px){
    .nav-wrap{grid-template-columns:1fr;justify-items:center}
    nav{order:3}
    .header-tools{justify-self:center;flex-wrap:wrap;justify-content:center}
}
@media (max-width: 768px){
    .card-actions{padding:0 14px 14px}
    .share-row{gap:6px}
    .share-chip{padding:8px 10px}
    .share-label{display:none}
    .theme-toggle-text{display:none}
}


.sales-contact-box{
    margin-top:12px;
    padding:12px 14px;
    border:1px solid var(--line);
    background: linear-gradient(180deg, #fff8fb 0%, #ffffff 100%);
    border-radius:18px;
}
.price-contact-label{
    display:block;
    font-weight:800;
    color:var(--brand-dark);
    margin-bottom:10px;
}
.sales-contact-actions{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}
.sales-chip{
    display:inline-flex;
    align-items:center;
    gap:8px;
    min-height:42px;
    padding:9px 14px;
    border-radius:999px;
    font-weight:800;
    font-size:.92rem;
    border:1px solid var(--line);
    background:#fff;
    color:var(--brand-dark);
}
.sales-chip span{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:24px;
    height:24px;
    border-radius:50%;
    background:var(--brand-soft);
    color:var(--brand-dark);
    font-size:.78rem;
    font-weight:900;
}
.sales-chip-wa{
    background:#f5fff8;
    border-color:#cfeeda;
    color:#157347;
}
.sales-chip-wa span{
    background:#25d366;
    color:#fff;
}
.sales-chip-email{
    background:#fff;
}


.category-strip-shell {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 18px;
    overflow: hidden;
}
.category-strip-large-shell {
    padding: 24px;
}
.category-strip {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 6px 4px;
    scrollbar-width: none;
}
.category-strip::-webkit-scrollbar {
    display: none;
}
.category-pill {
    min-width: 180px;
    max-width: 180px;
    flex: 0 0 180px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 10px 8px;
    text-align: center;
    transition: transform .25s ease, opacity .25s ease;
}
.category-pill:hover {
    transform: translateY(-4px);
}
.category-pill-large {
    min-width: 200px;
    max-width: 200px;
    flex-basis: 200px;
}
.category-pill-media {
    width: 132px;
    height: 132px;
    border-radius: 50%;
    background: linear-gradient(180deg, #fff 0%, var(--surface-2) 100%);
    border: 1px solid var(--line);
    box-shadow: 0 10px 24px rgba(193, 89, 132, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}
.category-pill-large .category-pill-media {
    width: 148px;
    height: 148px;
}
.category-pill-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}
.category-pill-name {
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--brand-dark);
    line-height: 1.4;
}
.strip-nav {
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--brand-dark);
    box-shadow: 0 8px 18px rgba(193, 89, 132, 0.10);
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s ease, background .2s ease, color .2s ease;
}
.strip-nav:hover {
    transform: translateY(-1px);
    background: var(--brand);
    color: #fff;
}

[data-theme="dark"] .category-pill-media {
    background: linear-gradient(180deg, #2c1d27 0%, #24161f 100%);
}
[data-theme="dark"] .strip-nav {
    background: #20131c;
    border-color: #503241;
    color: #ffd4e4;
}

@media (max-width: 780px) {
    .category-strip-shell {
        grid-template-columns: 1fr;
    }
    .strip-nav {
        display: none;
    }
    .category-pill,
    .category-pill-large {
        min-width: 148px;
        max-width: 148px;
        flex-basis: 148px;
    }
    .category-pill-media,
    .category-pill-large .category-pill-media {
        width: 112px;
        height: 112px;
    }
    .category-pill-name {
        font-size: .95rem;
    }
}


.share-row-icons{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.share-icon-only{width:42px;min-width:42px;height:42px;padding:0;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;box-shadow:none}
.share-icon-only .share-icon{width:28px;height:28px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;font-size:.86rem;font-weight:900}
.share-icon-only .share-label{display:none!important}
.card-actions{padding:0 18px 18px;justify-content:flex-start}
.product-card .card-actions{margin-top:2px}
.detail-share-row .share-row-icons{gap:10px}
@media (max-width: 768px){
  .share-icon-only{width:40px;min-width:40px;height:40px}
  .share-icon-only .share-icon{width:26px;height:26px;font-size:.8rem}
  .card-actions{padding:0 14px 14px}
}

/* === final ux upgrade === */
:root{
    --ok-dark-surface:#201821;
    --ok-dark-surface-2:#2b2130;
    --ok-dark-text:#fff6fa;
    --ok-dark-muted:#d9c4cd;
}
body[data-theme="dark"]{
    background:linear-gradient(180deg,#140f16 0%,#1d1620 100%);
    color:var(--ok-dark-text);
}
body[data-theme="dark"] p,
body[data-theme="dark"] li,
body[data-theme="dark"] .lead-text,
body[data-theme="dark"] .section-text,
body[data-theme="dark"] .brand small,
body[data-theme="dark"] .share-note,
body[data-theme="dark"] .result-note{
    color:var(--ok-dark-muted)!important;
}
body[data-theme="dark"] .card-soft,
body[data-theme="dark"] .product-card,
body[data-theme="dark"] .category-strip-shell,
body[data-theme="dark"] .lang-modal-card,
body[data-theme="dark"] .search-form,
body[data-theme="dark"] .empty-state,
body[data-theme="dark"] .media-card,
body[data-theme="dark"] .sales-contact-box{
    background:var(--ok-dark-surface)!important;
    border-color:#4e3945!important;
    box-shadow:0 18px 40px rgba(0,0,0,.35)!important;
}
body[data-theme="dark"] .category-pill-name,
body[data-theme="dark"] .product-card h3,
body[data-theme="dark"] .product-details h1,
body[data-theme="dark"] .section-head h2,
body[data-theme="dark"] .section-head .section-kicker,
body[data-theme="dark"] .price,
body[data-theme="dark"] .barcode-pill,
body[data-theme="dark"] .barcode-line,
body[data-theme="dark"] .price-contact-label,
body[data-theme="dark"] .media-card h3,
body[data-theme="dark"] .empty-state p{
    color:var(--ok-dark-text)!important;
}
body[data-theme="dark"] .old-price{color:#cfa8b8!important}
body[data-theme="dark"] .search-form input,
body[data-theme="dark"] input,
body[data-theme="dark"] textarea,
body[data-theme="dark"] select{
    background:var(--ok-dark-surface-2)!important;
    color:var(--ok-dark-text)!important;
    border-color:#5a4350!important;
}
body[data-theme="dark"] .btn-secondary,
body[data-theme="dark"] .sales-chip-email,
body[data-theme="dark"] .strip-nav,
body[data-theme="dark"] .share-chip,
body[data-theme="dark"] .theme-toggle,
body[data-theme="dark"] .lang-pill{
    background:var(--ok-dark-surface-2)!important;
    color:var(--ok-dark-text)!important;
    border-color:#5a4350!important;
}
body[data-theme="dark"] .btn-primary{color:#fff!important}
body[data-theme="dark"] .card-link p,
body[data-theme="dark"] .setup-notice p{color:var(--ok-dark-muted)!important}

.stack-mobile{display:flex;justify-content:space-between;gap:18px;align-items:end;flex-wrap:wrap}
.section-text{margin:.35rem 0 0;color:#7f6471}
.search-form{
    display:flex;align-items:center;gap:10px;flex-wrap:wrap;
    padding:12px 14px;border:1px solid var(--line);border-radius:18px;background:#fff;
}
.search-form i{color:var(--brand-dark)}
.search-form input{
    min-width:220px;flex:1;padding:12px 0;border:none;outline:none;background:transparent;font:inherit;color:var(--text)
}
.btn-sm{padding:10px 14px;font-size:.92rem}
.result-note{margin:0 0 18px;color:#7f6471;font-weight:700}
.empty-state{padding:24px;text-align:center}
.empty-state p{margin:0;font-weight:700}
.barcode-pill,
.barcode-line{
    display:inline-flex;align-items:center;gap:8px;margin-top:10px;padding:8px 12px;border-radius:999px;
    border:1px solid var(--line);background:var(--surface-2);color:var(--brand-dark);font-size:.88rem;font-weight:800
}
.barcode-line{display:flex;margin:12px 0 2px;width:max-content}

.category-pill.is-active .category-pill-media,
.category-pill-large.is-active .category-pill-media{
    border-color:var(--brand);box-shadow:0 14px 28px rgba(193,89,132,.22)
}
.category-pill.is-active .category-pill-name,
.category-pill-large.is-active .category-pill-name{color:var(--brand)}
.is-mobile-visible{display:inline-flex}

.media-section{padding-top:8px}
.media-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.media-card{padding:18px}
.media-card-head{display:flex;align-items:center;gap:12px;margin-bottom:12px}
.media-card-head h3{margin:0;font-size:1.05rem}
.media-badge{
    width:42px;height:42px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;
    background:var(--brand-soft);color:var(--brand-dark);font-size:1rem
}
.media-card p{margin:0 0 14px;color:#7f6471;line-height:1.8}
.media-embed{position:relative;padding-top:56.25%;overflow:hidden;border-radius:16px;background:#000;margin-bottom:14px}
.media-embed iframe{position:absolute;inset:0;width:100%;height:100%;border:0}

.share-row-icons{gap:10px}
.share-icon-only{width:40px;min-width:40px;height:40px}
.share-icon-only .share-icon{width:100%;height:100%;background:transparent;border-radius:50%;font-size:1rem}
.share-wa .share-icon{color:#16a34a}
.share-fb .share-icon{color:#2563eb}
.share-tg .share-icon{color:#0891b2}
.share-x .share-icon{color:#111827}
.share-copy .share-icon,.share-more .share-icon{color:var(--brand-dark)}
.share-chip{padding:0}

.site-footer a{color:var(--brand-dark);font-weight:800}
.site-footer a:hover{color:var(--brand)}

@media (max-width: 980px){
  .media-grid{grid-template-columns:1fr 1fr}
}
@media (max-width: 780px){
  .strip-nav{display:inline-flex!important}
  .category-strip-shell{grid-template-columns:auto 1fr auto;gap:8px;padding:12px}
  .category-pill,.category-pill-large{min-width:136px;max-width:136px;flex-basis:136px}
  .category-pill-media,.category-pill-large .category-pill-media{width:104px;height:104px}
  .search-form{width:100%}
  .search-form input{min-width:120px}
  .media-grid{grid-template-columns:1fr}
  .stack-mobile{align-items:stretch}
}

/* Product gallery lightbox */
.gallery-main-trigger{
    position:relative;
    display:block;
    width:100%;
    padding:0;
    border:0;
    background:transparent;
    cursor:zoom-in;
}
.product-main-view{
    width:100%;
    min-height:320px;
    max-height:760px;
    object-fit:contain;
    border-radius:20px;
    background:var(--surface-2);
}
.gallery-zoom-hint{
    position:absolute;
    inset-inline-end:16px;
    bottom:16px;
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:8px 12px;
    border-radius:999px;
    background:rgba(34,21,30,.74);
    color:#fff;
    font-size:.82rem;
    font-weight:800;
    pointer-events:none;
}
.product-thumb-grid{
    grid-template-columns:repeat(auto-fit,minmax(84px,1fr));
}
.gallery-thumb,
.lightbox-thumb{
    padding:0;
    border:2px solid transparent;
    background:transparent;
    border-radius:16px;
    overflow:hidden;
    cursor:pointer;
    transition:.2s ease;
}
.gallery-thumb img,
.lightbox-thumb img{
    width:100%;
    height:96px;
    object-fit:cover;
    background:var(--surface-2);
}
.gallery-thumb.is-active,
.lightbox-thumb.is-active{
    border-color:var(--brand);
    box-shadow:0 0 0 3px rgba(216,87,138,.14);
}
.product-lightbox{
    position:fixed;
    inset:0;
    z-index:120;
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transition:.2s ease;
}
.product-lightbox.is-open{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
}
.product-lightbox-backdrop{
    position:absolute;
    inset:0;
    background:rgba(14,10,15,.82);
    backdrop-filter:blur(8px);
}
.product-lightbox-dialog{
    position:relative;
    z-index:1;
    width:min(1120px, calc(100vw - 24px));
    height:min(92vh, 920px);
    margin:4vh auto;
    border-radius:28px;
    background:rgba(28,18,25,.96);
    border:1px solid rgba(255,255,255,.08);
    box-shadow:0 40px 90px rgba(0,0,0,.35);
    display:grid;
    grid-template-rows:1fr auto;
    padding:20px 20px 16px;
}
.lightbox-figure{
    margin:0;
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:0;
}
.lightbox-figure img{
    max-width:100%;
    max-height:100%;
    object-fit:contain;
    border-radius:18px;
    background:#fff;
}
.lightbox-close,
.lightbox-nav{
    position:absolute;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:52px;
    height:52px;
    border-radius:999px;
    border:1px solid rgba(255,255,255,.12);
    background:rgba(255,255,255,.08);
    color:#fff;
    cursor:pointer;
}
.lightbox-close{ top:16px; inset-inline-end:16px; z-index:2; }
.lightbox-nav{ top:50%; transform:translateY(-50%); z-index:2; }
.lightbox-prev{ inset-inline-start:16px; }
.lightbox-next{ inset-inline-end:16px; }
.lightbox-thumbs{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(72px,88px));
    gap:10px;
    justify-content:center;
    padding-top:16px;
}
body.is-lightbox-open{ overflow:hidden; }

/* Stronger dark-mode readability */
body[data-theme="dark"] .lead-text,
body[data-theme="dark"] .product-card p,
body[data-theme="dark"] .category-card p,
body[data-theme="dark"] .offer-card p,
body[data-theme="dark"] .share-note,
body[data-theme="dark"] .section-text,
body[data-theme="dark"] .brand small,
body[data-theme="dark"] .result-note,
body[data-theme="dark"] .footer-grid p{
    color:#e9d7df !important;
}
body[data-theme="dark"] .gallery-zoom-hint{
    background:rgba(255,255,255,.12);
    color:#fff;
}
body[data-theme="dark"] .lightbox-figure img{
    background:#1a141b;
}

@media (max-width: 768px){
    .product-main-view{min-height:240px;max-height:420px;}
    .gallery-thumb img,.lightbox-thumb img{height:78px;}
    .product-lightbox-dialog{width:min(100vw - 12px, 100%);height:min(94vh, 100vh);margin:3vh auto;padding:14px 12px 12px;}
    .lightbox-close,.lightbox-nav{width:44px;height:44px;}
    .lightbox-prev{inset-inline-start:8px;}
    .lightbox-next{inset-inline-end:8px;}
    .gallery-zoom-hint{bottom:10px;inset-inline-end:10px;font-size:.75rem;padding:7px 10px;}
}
