@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;700&display=swap');

:root {
    --maroon: #8c1d40; --maroon-dark: #6b142f; --maroon-light: #f5e8ed;
    --gold: #d4af37; --dark: #1a1a1a; --gray: #888; --light: #f8f6f3;
    --white: #fff; --border: #e8e0d8; --green: #25d366; --red: #e74c3c;
    --blue: #3498db; --orange: #f39c12;
}
* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Cairo', 'Tahoma', sans-serif; }
body { background: var(--light); color: var(--dark); direction: rtl; padding-bottom: 90px; }

.related-products-section {
    max-width: 900px;
    margin: 32px auto 10px;
    padding: 0 16px;
}
.related-products-section h2 {
    margin: 0 0 14px;
    color: var(--maroon);
    text-align: center;
    font-size: 1.2rem;
}
.related-products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.related-products-loading {
    grid-column: 1 / -1;
    padding: 20px;
    color: var(--gray);
    text-align: center;
}
.related-product-card {
    display: flex;
    min-width: 0;
    padding-bottom: 10px;
    overflow: hidden;
    flex-direction: column;
    color: var(--dark);
    text-decoration: none;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 13px;
    box-shadow: 0 4px 14px rgba(0,0,0,.06);
}
.related-product-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}
.related-product-card strong,
.related-product-card span {
    margin-inline: 9px;
}
.related-product-category {
    margin-top: 8px;
    color: var(--gray);
    font-size: .68rem;
}
.related-product-card strong {
    margin-top: 3px;
    overflow: hidden;
    font-size: .82rem;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.related-product-price {
    margin-top: 5px;
    color: var(--maroon);
    font-size: .86rem;
    font-weight: 800;
}
@media (max-width: 620px) {
    .related-products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ===== الهيدر ===== */
.header { background: linear-gradient(135deg,#000 0%,#1a1a1a 100%); display: flex; justify-content: center; align-items: center; padding: 0; height: 45px; position: sticky; top: 0; z-index: 100; }
.header > a { position:relative; z-index:2; display:block; line-height:0; }
.logo-img { max-height:180px; max-width:200px; object-fit:contain; filter:drop-shadow(0 6px 12px rgba(0,0,0,.6)); cursor:pointer; transition:transform .2s; }
.social-icons { display: flex; gap: 12px; margin-top: 6px; flex-wrap: wrap; justify-content: center; }
.social-icons a { display: inline-block; transition: transform .2s; }
.social-icons a:hover { transform: scale(1.15); }
.social-icons img { width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,0.1); padding: 2px; }

/* ===== الشريط العلوي ===== */
.sub-header { background: linear-gradient(135deg, #d4af37 0%, #f5d76e 100%); padding: 8px 16px; position: relative; top: 0px; z-index: 99; }
.sub-header-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: center; align-items: center; gap: 20px; flex-wrap: wrap; }
.sub-link { color: #1a1a1a; text-decoration: none; font-weight: 700; font-size: .85rem; padding: 4px 12px; border-radius: 20px; transition: all .25s; display: flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.2); }
.sub-link:hover { background: rgba(255,255,255,0.5); transform: scale(1.05); }
.sub-link.wa-link { background: #25d366; color: #fff; }
.sub-link.wa-link:hover { background: #1db954; }

/* الشعار ممدد في الهاتف؛ نترك مساحة أسفله حتى لا يحجب روابط الطمأنة. */
@media (max-width: 600px) {
    .sub-header { padding-top: 76px; }
    .sub-header-inner { column-gap: 24px; row-gap: 10px; }
    .sub-link { justify-content:center; min-width:142px; }
}

/* Trust shortcuts: transparent strip with compact premium buttons. */
.karmen-trust-strip{padding:9px 14px;background:transparent!important;box-shadow:none;border:0}
.karmen-trust-strip .sub-header-inner{gap:12px}
.karmen-trust-strip .sub-link{position:relative;isolation:isolate;overflow:hidden;min-width:0;padding:7px 15px;border:1px solid rgba(140,29,64,.28);border-radius:999px;background:linear-gradient(145deg,rgba(255,255,255,.96),rgba(249,240,226,.92));color:#3d1724;box-shadow:0 4px 12px rgba(71,24,39,.09),inset 0 1px 0 #fff;transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease}
.karmen-trust-strip .sub-link::before{content:"";position:absolute;z-index:-1;top:-70%;right:-35%;width:42%;height:240%;transform:rotate(22deg);background:linear-gradient(90deg,transparent,rgba(212,175,55,.28),transparent);transition:right .55s ease}
.karmen-trust-strip .sub-link:hover,.karmen-trust-strip .sub-link:focus-visible{transform:translateY(-2px);border-color:rgba(140,29,64,.55);box-shadow:0 7px 17px rgba(92,25,48,.16),0 0 0 3px rgba(212,175,55,.12);outline:0}
.karmen-trust-strip .sub-link:hover::before,.karmen-trust-strip .sub-link:focus-visible::before{right:105%}
.karmen-trust-strip .sub-link:active{transform:translateY(0) scale(.98)}
.karmen-trust-strip .guarantee-link{border-color:rgba(212,175,55,.55);background:linear-gradient(145deg,#fffdf7,#f8edd3)}
.karmen-trust-strip .guarantee-link{animation:karmenTrustFloat 3.4s ease-in-out infinite}
.karmen-trust-strip .guarantee-link:hover,.karmen-trust-strip .guarantee-link:focus-visible{animation-play-state:paused}
@keyframes karmenTrustFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-2px)}}
@media(max-width:600px){.karmen-trust-strip{padding:70px 8px 8px}.karmen-trust-strip .sub-header-inner{gap:8px;flex-wrap:nowrap}.karmen-trust-strip .sub-link{min-width:0;padding:6px 11px;font-size:.76rem}}
@media(prefers-reduced-motion:reduce){.karmen-trust-strip .guarantee-link{animation:none}.karmen-trust-strip .sub-link{transition:none}}

/* ===== شريط الفلترة ===== */
.filter-bar { display: flex; gap: 10px; padding: 14px 16px; max-width: 1200px; margin: 14px auto 0; flex-wrap: wrap; align-items: center; background: var(--white); border-radius: 14px; box-shadow: 0 2px 12px rgba(0,0,0,0.05); border: 1px solid var(--border); }
.filter-bar select, .filter-bar input { padding: 9px 14px; border: 1.5px solid var(--border); border-radius: 9px; font-size: .85rem; font-family: 'Cairo','Tahoma',sans-serif; background: var(--white); outline: none; flex: 1 1 auto; min-width: 100px; transition: border-color .2s; }
.filter-bar select:focus, .filter-bar input:focus { border-color: var(--maroon); }
.filter-bar .view-toggle { display: flex; gap: 4px; }
.filter-bar .view-toggle button { padding: 7px 13px; border: 1.5px solid var(--border); border-radius: 7px; background: var(--white); cursor: pointer; font-size: .85rem; transition: all .2s; }
.filter-bar .view-toggle button.active { background: var(--maroon); color: #fff; border-color: var(--maroon); }


/* ===== شبكة المنتجات ===== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 22px;
    padding: 24px 16px;
    max-width: 1260px;
    margin: 0 auto;
    align-items: stretch;
}
.grid.list-view { grid-template-columns: 1fr; max-width: 860px; }
.grid.list-view .card-inner { flex-direction:row; align-items:center; gap:18px; }
.grid.list-view .img-wrap { width:170px; min-width:170px; margin-bottom:0; }
.grid.list-view .card-front { flex:1; }

/* ===== بطاقة المنتج (بدون وجه خلفي) ===== */
.card {
    position: relative;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--white);
    border-radius: 18px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 18px rgba(0,0,0,0.07);
    overflow: hidden;
    transition: box-shadow .3s ease, transform .3s ease;
    display: flex;
    flex-direction: column;
    padding: 16px;
}
.card:hover .card-inner {
    box-shadow: 0 16px 48px rgba(140,29,64,0.14);
    transform: translateY(-4px);
}

.img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    background: #f0ebe6;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 14px;
    flex-shrink: 0;
}
.img-wrap .main-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
    transition: transform .4s;
}
.img-wrap:hover .main-img { transform: scale(1.04); }

.badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 30px;
    z-index: 5;
}
.badge-best  { background: var(--gold); color: var(--dark); }
.badge-hot   { background: var(--orange); color: #fff; }
.badge-trend { background: var(--blue); color: #fff; }
.badge-new   { background: var(--maroon); color: #fff; }
.badge-out   { background: var(--red); color: #fff; }
.badge-coming{ background: var(--gray); color: #fff; }

.prod-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--dark);
    line-height: 1.4;
    width: 100%;
}
.prod-price {
    font-size: 1.25rem;
    color: var(--maroon);
    font-weight: 900;
    margin-bottom: 10px;
}

.prod-quick-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px 12px;
    padding: 10px 14px;
    background: linear-gradient(135deg, #faf6f0, #f5ede4);
    border-radius: 12px;
    margin: 6px 0 14px 0;
    width: 100%;
    font-size: 0.8rem;
    border: 1px solid rgba(212,175,55,0.25);
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}
.prod-quick-info .qi-item {
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
    white-space: nowrap;
}
.prod-quick-info .qi-item strong {
    color: var(--maroon);
    font-weight: 700;
    font-size: 0.85rem;
}
.prod-quick-info .qi-divider {
    color: var(--gold);
    font-weight: 300;
    font-size: 1.1rem;
    opacity: 0.5;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
    width: 100%;
}
.swatches {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 2px;
}
.swatch {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    border: 2.5px solid transparent;
    transition: transform .2s, border-color .2s;
}
.swatch:hover, .swatch.active {
    border-color: var(--maroon);
    transform: scale(1.12);
}
.swatch.main-swatch {
      border-color: var(--gold);
      border-width: 3px;
  }

  /* صفحة المنتج: صور ألوان واضحة مع اسم اللون وحالة اختيار مرئية */
  .product-detail-page .product-color-picker { width: 100%; }
  .product-detail-page .option-heading { display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; font-size:.88rem; font-weight:700; color:var(--dark); }
  .product-detail-page .option-heading strong { color:var(--maroon); }
  .product-detail-page .swatches { justify-content:flex-start; gap:10px; }
  .product-detail-page .color-choice { width:76px; border:1px solid var(--border); background:var(--white); border-radius:10px; padding:4px 4px 6px; cursor:pointer; font:inherit; color:var(--dark); transition:transform .2s,border-color .2s,box-shadow .2s; }
  .product-detail-page .color-choice:hover, .product-detail-page .color-choice.active { border-color:var(--maroon); box-shadow:0 4px 12px rgba(140,29,64,.16); transform:translateY(-2px); }
  .product-detail-page .color-choice .swatch { width:66px; height:74px; display:block; border-radius:7px; margin:0 auto 4px; object-fit:cover; }
  .product-detail-page .color-choice span { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:.7rem; font-weight:700; }
  .size-guide-link { border:0; background:transparent; color:var(--maroon); font:inherit; font-weight:700; text-decoration:underline; cursor:pointer; padding:0; margin-right:8px; }

.size-label {
    font-size: 0.78rem;
    color: var(--gray);
    margin-bottom: 4px;
    text-align: center;
}
.sizes {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
    min-height: 36px;
    align-items: center;
}
.sizes span {
    padding: 5px 12px;
    border: 1.5px solid var(--border);
    border-radius: 7px;
    font-size: 0.8rem;
    cursor: pointer;
    background: var(--white);
    transition: all .2s;
    user-select: none;
    font-weight: 600;
}
.sizes span:hover,
.sizes span.active {
    background: var(--maroon);
    color: #fff;
    border-color: var(--maroon);
}

.btn-cart {
    width: 100%;
    padding: 12px;
    background: var(--maroon);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .25s;
    font-family: 'Cairo','Tahoma',sans-serif;
    margin-top: auto;
    flex-shrink: 0;
}
.btn-cart:hover {
    background: var(--maroon-dark);
    box-shadow: 0 5px 15px rgba(140,29,64,0.3);
}
.btn-cart:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-copy-product {
    display: block;
    width: fit-content;
    margin: 8px auto 0;
    padding: 6px 12px;
    border: 1px solid rgba(122, 24, 55, .24);
    border-radius: 9px;
    background: #fff;
    color: var(--maroon);
    font: inherit;
    font-size: .76rem;
    font-weight: 700;
    line-height: 1.4;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.btn-copy-product:hover {
    background: var(--maroon);
    color: #fff;
    transform: translateY(-1px);
}

/* ============================================================
   إخفاء الوجه الخلفي وأيقونة التفاصيل نهائياً
   ============================================================ */
.card-back {
    display: none !important;
}
.detail-icon-on-image {
    display: none !important;
}
.card.flipped .card-front,
.card.flipped .card-back {
    display: block !important; /* نمنع تأثير التبديل */
}
.card.flipped .card-back {
    display: none !important; /* نضمن الإخفاء */
}

/* ===== الشريط السفلي (الشفافية 70%) ===== */
.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.7); /* شفافية 70% */
    backdrop-filter: blur(16px);
    box-shadow: 0 -3px 25px rgba(0,0,0,0.09);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 16px;
    z-index: 9999;
    gap: 10px;
}
.bar-stat { font-size: .9rem; font-weight: 600; }
.bar-stat span { color: var(--maroon); font-weight: 900; font-size: 1rem; }
.btn-view-cart {
    background: var(--dark);
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 24px;
    font-weight: 700;
    font-size: .9rem;
    cursor: pointer;
    transition: all .25s;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Cairo','Tahoma',sans-serif;
}
.btn-view-cart:hover { background: var(--maroon); }

/* ===== السلة الجانبية (على الجانب الأيمن) ===== */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all .3s;
}
.drawer-overlay.show {
    opacity: 1;
    visibility: visible;
}

.drawer {
    position: fixed;
    top: 0;
    right: -100%; /* تغيير من left إلى right */
    width: 100%;
    max-width: 420px;
    height: 100%;
    background: var(--white);
    z-index: 1001;
    box-shadow: -5px 0 25px rgba(0,0,0,0.3); /* تغيير اتجاه الظل */
    transition: right .4s cubic-bezier(.16,1,.3,1);
    display: flex;
    flex-direction: column;
}
.drawer.open {
    right: 0; /* تغيير من left إلى right */
}

/* ===== بوب أب الطلب (في منتصف الشاشة) ===== */
.popup-wrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0);
    z-index: 300;
    display: flex;
    justify-content: center;
    align-items: center; /* توسيط عمودي وأفقي */
    pointer-events: none;
    transition: background 0.35s ease;
    visibility: hidden;
}
.popup-wrap.active {
    visibility: visible;
    pointer-events: all;
    background: rgba(0,0,0,0.6);
}

.popup-box.popup-luxury {
    background: #f0f0f0; /* خلفية رمادية فاتحة */
    width: 100%;
    max-width: 380px;
    border-radius: 16px;
    padding: 12px 14px 16px;
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.15);
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    max-height: 88vh;
    overflow-y: auto;
}
.popup-wrap.active .popup-box.popup-luxury {
    transform: scale(1);
    opacity: 1;
}

/* النوافذ المعلوماتية تشترك في نفس طبقة العرض والحركة، مع محتوى أخف من نافذة الطلب. */
.popup-box.popup-standard {
    position: relative;
    width: min(92vw, 460px);
    max-height: min(84vh, 620px);
    overflow-y: auto;
    padding: 26px 22px 20px;
    background: var(--light);
    border: 1px solid rgba(212,175,55,.55);
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0,0,0,.35);
    transform: scale(.94) translateY(12px);
    opacity: 0;
    transition: transform .3s cubic-bezier(.16,1,.3,1), opacity .3s ease;
}
.popup-wrap.active .popup-box.popup-standard { transform:scale(1) translateY(0); opacity:1; }
.popup-standard .popup-title { color:var(--maroon); font-size:1.15rem; font-weight:900; padding-left:42px; margin-bottom:6px; }
.popup-standard .popup-sub { color:var(--gray); font-size:.82rem; line-height:1.7; padding-bottom:14px; margin-bottom:16px; border-bottom:1px solid var(--border); }
.popup-standard .form-group { margin-bottom:14px; }
.popup-standard .form-label { display:block; color:var(--dark); font-size:.82rem; font-weight:700; margin-bottom:6px; }
.popup-standard .form-input { width:100%; min-height:42px; padding:9px 12px; border:1.5px solid var(--border); border-radius:9px; background:var(--white); color:var(--dark); font:inherit; }
.popup-standard .form-input:focus { outline:0; border-color:var(--maroon); box-shadow:0 0 0 3px rgba(140,29,64,.1); }
.popup-standard .btn-confirm, .popup-standard .btn-cancel { min-height:42px; padding:9px 14px; border-radius:9px; font:700 .85rem inherit; cursor:pointer; }
.popup-standard .btn-confirm { width:100%; border:0; color:#fff; background:var(--maroon); }
.popup-standard .btn-confirm:hover { background:var(--maroon-dark); }
.popup-standard .btn-cancel { border:1px solid var(--border); color:var(--maroon); background:var(--white); }
.popup-standard .popup-close { position:absolute; top:10px; left:10px; width:32px; height:32px; border:0; border-radius:50%; color:var(--maroon); background:var(--maroon-light); font-size:1.05rem; cursor:pointer; }
.popup-standard .popup-close:hover { color:#fff; background:var(--maroon); }

/* تخصيص شريط التمرير للبوب أب */
.popup-box.popup-luxury::-webkit-scrollbar {
    width: 4px;
}
.popup-box.popup-luxury::-webkit-scrollbar-track {
    background: #e0d6cc;
    border-radius: 4px;
}
.popup-box.popup-luxury::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 4px;
}

/* ─── الرأس مع الشعار ─── */
.popup-luxury .header-luxury {
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1.5px solid var(--gold);
    padding-bottom: 8px;
    margin-bottom: 12px;
}
.popup-luxury .header-luxury img {
    height: 30px;
    width: auto;
    border-radius: 4px;
}
.popup-luxury .header-luxury .title {
    font-size: 0.95rem;
    font-weight: 900;
    color: var(--dark);
}
.popup-luxury .header-luxury .sub {
    font-size: 0.6rem;
    color: var(--gray);
}
.popup-luxury .header-luxury .close-btn {
    font-size: 1rem;
    padding: 2px 6px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray);
}

/* ─── الحقول ─── */
.popup-luxury .field-group {
    margin-bottom: 8px;
}
.popup-luxury .field-group label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 2px;
}
.popup-luxury .form-input {
    width: 100%;
    padding: 5px 10px;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    font-size: 0.75rem;
    background: var(--white);
    transition: border-color 0.2s;
    font-family: inherit;
    color: var(--dark);
}
.popup-luxury .form-input:focus {
    border-color: var(--maroon);
    box-shadow: 0 0 0 2px rgba(140, 29, 64, 0.08);
    outline: none;
}
.popup-luxury .form-input::placeholder {
    color: #bbb;
    font-size: 0.7rem;
}

/* ─── صف الكوبون والشحن ─── */
.popup-luxury .row-flex {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.popup-luxury .coupon-group {
    flex: 2;
    min-width: 120px;
}
.popup-luxury .coupon-group label {
    font-size: 0.7rem;
    font-weight: 700;
}
.popup-luxury .coupon-row {
    display: flex;
    gap: 4px;
}
.popup-luxury .coupon-row input {
    flex: 1;
    padding: 4px 8px;
    border: 1.5px solid var(--border);
    border-radius: 4px;
    font-size: 0.7rem;
    background: var(--white);
}
.popup-luxury .coupon-row button {
    padding: 4px 10px;
    background: var(--maroon);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    cursor: pointer;
}
.popup-luxury .coupon-message {
    font-size: 0.6rem;
    min-height: 1em;
    margin-top: 2px;
}

/* ─── خيارات الشحن ─── */
.popup-luxury .ship-group {
    flex: 1;
    min-width: 100px;
}
.popup-luxury .ship-group label {
    font-size: 0.7rem;
    font-weight: 700;
}
.popup-luxury .ship-opt {
    flex: 1;
    text-align: center;
    padding: 4px 2px;
    border: 1.5px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
    background: var(--white);
}
.popup-luxury .ship-opt .ship-name {
    font-weight: 700;
    display: block;
    font-size: 0.6rem;
}
.popup-luxury .ship-opt .ship-price {
    color: var(--maroon);
    font-weight: 700;
    font-size: 0.55rem;
}
.popup-luxury .ship-opt.selected {
    border-color: var(--maroon);
    background: var(--maroon-light);
}

/* ─── ملخص الطلب المصغر ─── */
.popup-luxury .summary-box {
    background: #faf8f5;
    border-radius: 6px;
    padding: 6px 10px;
    margin-bottom: 8px;
    border: 1px solid rgba(212, 175, 55, 0.1);
}
.popup-luxury .summary-box .summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.popup-luxury .summary-box .summary-header span {
    font-size: 0.7rem;
    font-weight: 700;
}
.popup-luxury .summary-box .summary-header .total {
    color: var(--maroon);
    font-weight: 900;
    font-size: 0.8rem;
}
.popup-luxury #orderSummary {
    font-size: 0.65rem;
    max-height: 70px;
    overflow-y: auto;
    color: var(--gray);
    line-height: 1.4;
}
.popup-luxury #orderSummary::-webkit-scrollbar {
    width: 2px;
}
.popup-luxury #orderSummary::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 2px;
}

/* ─── الأزرار ─── */
.popup-luxury .btn-confirm {
    width: 100%;
    padding: 8px;
    background: var(--green);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.popup-luxury .btn-confirm:hover {
    background: #1db954;
    transform: scale(1.01);
}
.popup-luxury .btn-secondary {
    flex: 1;
    padding: 6px;
    background: none;
    border: 1.5px solid var(--border);
    border-radius: 4px;
    font-size: 0.65rem;
    cursor: pointer;
    color: var(--gray);
}
.popup-luxury .btn-secondary:hover {
    background: #f0f0f0;
}
.popup-luxury .btn-cart {
    flex: 1;
    padding: 6px;
    background: var(--maroon-light);
    border: none;
    border-radius: 4px;
    font-size: 0.65rem;
    cursor: pointer;
    color: var(--maroon);
    font-weight: 600;
}
.popup-luxury .btn-cart:hover {
    background: var(--maroon);
    color: #fff;
}

/* ─── فوتر الأمان ─── */
.popup-luxury .security-footer {
    margin-top: 8px;
    text-align: center;
    font-size: 0.55rem;
    color: var(--gray);
    border-top: 1px solid var(--border);
    padding-top: 6px;
}

/* ============================================================
   تحسينات الجوال للنسخة المصغرة
   ============================================================ */
@media (max-width: 480px) {
    .popup-box.popup-luxury {
        max-width: 100%;
        padding: 10px 10px 14px;
        border-radius: 12px;
    }
    .popup-box.popup-standard { width:94vw; max-height:88vh; padding:22px 16px 16px; border-radius:15px; }
    .popup-luxury .header-luxury img {
        height: 24px;
    }
    .popup-luxury .header-luxury .title {
        font-size: 0.85rem;
    }
    .popup-luxury .form-input {
        padding: 4px 8px;
        font-size: 0.7rem;
    }
    .popup-luxury .btn-confirm {
        font-size: 0.75rem;
        padding: 8px;
    }
    .popup-luxury .btn-secondary,
    .popup-luxury .btn-cart {
        font-size: 0.6rem;
        padding: 5px;
    }
    .popup-luxury .ship-opt .ship-name {
        font-size: 0.55rem;
    }
    .popup-luxury .ship-opt .ship-price {
        font-size: 0.5rem;
    }
    /* تعديل الشريط السفلي للجوال */
    .bottom-bar {
        padding: 8px 12px;
        gap: 6px;
    }
    .bar-stat {
        font-size: 0.75rem;
    }
    .btn-view-cart {
        padding: 6px 14px;
        font-size: 0.75rem;
    }
}

/* ============================================================
   تحسينات الشاشات المتوسطة والكبيرة
   ============================================================ */
@media (min-width: 481px) and (max-width: 768px) {
    .popup-box.popup-luxury {
        max-width: 90%;
    }
}

@media (min-width: 769px) {
    .popup-box.popup-luxury {
        max-width: 380px;
        border-radius: 16px;
    }
}
/* ============================================================
   ✅ تحسينات إضافية (لا تعديل على الأنماط القديمة، فقط إضافات)
   ============================================================ */

/* ===== 1) عرض بطاقتين في صف واحد على الهاتف + 2) تصغير/تحسين صندوق التفاصيل ===== */
@media (max-width: 600px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 14px 8px;
    }
    .grid.list-view { grid-template-columns:1fr; }
    .grid.list-view .card-inner { gap:10px; padding:10px; }
    .grid.list-view .img-wrap { width:105px; min-width:105px; }
    .card-inner { padding: 9px; border-radius: 13px; }
    .img-wrap { margin-bottom: 8px; border-radius: 10px; }
    .badge { top: 6px; right: 6px; font-size: 9px; padding: 3px 8px; }
    .prod-title { font-size: .78rem; margin-bottom: 2px; -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
    .prod-price { font-size: .95rem; margin-bottom: 6px; }

    /* صندوق التفاصيل السريعة: خط أوضح وحجم أصغر */
    .prod-quick-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
        padding: 7px 9px;
        margin: 4px 0 8px 0;
        border-radius: 9px;
        font-size: .66rem;
    }
    .prod-quick-info .qi-item {
        font-size: .66rem;
        font-weight: 500;
        white-space: normal;
        line-height: 1.35;
    }
    .prod-quick-info .qi-item strong { font-size: .66rem; }

    .options { gap: 6px; margin-bottom: 8px; }
    .swatch { width: 22px; height: 22px; border-width: 2px; }
    .size-label { font-size: .65rem; margin-bottom: 2px; }
    .sizes { min-height: 26px; gap: 4px; }
    .sizes span { padding: 3px 7px; font-size: .65rem; border-radius: 5px; }
    .btn-cart { padding: 8px; font-size: .75rem; border-radius: 8px; }
}

/* تحسين عام لخط صندوق التفاصيل على كل المقاسات */
.prod-quick-info {
    font-family: 'Cairo', 'Tahoma', sans-serif;
    letter-spacing: .1px;
}

/* ===== 3) مؤشر تنقل الصور (يظهر عند وجود أكثر من صورة) ===== */
.img-swipe-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 4;
}
.img-swipe-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.55);
    border: 1px solid rgba(0,0,0,0.15);
    transition: all .2s;
}
.img-swipe-dots span.active {
    background: var(--gold);
    width: 16px;
    border-radius: 4px;
}

/* ===== 4) تكبير الصورة بالضغط (Lightbox) ===== */
.img-zoom-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10,10,10,0.92);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease;
    padding: 20px;
}
.img-zoom-overlay.show {
    opacity: 1;
    visibility: visible;
}
.img-zoom-overlay img {
    max-width: 92vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.5);
    transform: scale(.92);
    transition: transform .25s ease;
    cursor: zoom-out;
}
.img-zoom-overlay.show img {
    transform: scale(1);
}
.img-zoom-close {
    position: absolute;
    top: 18px;
    left: 18px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}
.img-zoom-close:hover { background: rgba(255,255,255,0.3); }

/* ===== 7) تحسين مظهر السلة الجانبية ===== */
.drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    background: linear-gradient(135deg, var(--maroon), var(--maroon-dark));
    color: #fff;
    flex-shrink: 0;
}
.drawer-head-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.drawer-head-left h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}
.drawer-icon { font-size: 1.3rem; }
.drawer-count {
    background: rgba(255,255,255,0.25);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 20px;
    min-width: 22px;
    text-align: center;
}
.btn-close-drawer {
    background: rgba(255,255,255,0.18);
    border: none;
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 1.05rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}
.btn-close-drawer:hover { background: rgba(255,255,255,0.32); }

.drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: 6px 18px;
    background: var(--light);
}
.drawer-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    color: var(--gray);
}
.drawer-empty .empty-icon { font-size: 2.6rem; margin-bottom: 10px; opacity: .5; }
.drawer-empty p { font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.drawer-empty .empty-sub { font-size: .8rem; color: var(--gray); }

.drawer-content > div[style] {
    background: var(--white);
    border-radius: 12px !important;
    border: 1px solid var(--border) !important;
    padding: 12px 14px !important;
    margin: 10px 0 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.drawer-cart-product{display:flex;align-items:center;min-width:0;gap:10px}
.drawer-cart-image{flex:0 0 58px;width:58px;height:72px;border-radius:8px;object-fit:cover;object-position:center top;background:#f1ece7;border:1px solid var(--border)}
.drawer-cart-details{min-width:0}
.drawer-cart-details>strong{display:block;overflow:hidden;max-width:190px;white-space:nowrap;text-overflow:ellipsis}

/* ===== 8) رفع زر تأكيد الطلب فوق الشريط السفلي ===== */
.drawer-foot {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    padding: 16px 18px 20px;
    background: var(--white);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 16px rgba(0,0,0,0.05);
}

/* ترتيب العناصر داخل الشريط السفلي */
.drawer-foot .btn-checkout {
    order: 0; /* الزر أولاً */
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--maroon), var(--maroon-dark));
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all .25s;
    font-family: 'Cairo','Tahoma',sans-serif;
    box-shadow: 0 6px 18px rgba(140,29,64,0.28);
    margin-bottom: 14px; /* مسافة بين الزر والمحتوى تحته */
    position: relative;
    z-index: 2;
}

.drawer-foot .btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(140,29,64,0.38);
}

/* تأثير إضافي للزر */
.drawer-foot .btn-checkout::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--gold), transparent, var(--gold));
    z-index: -1;
    opacity: 0.3;
    filter: blur(4px);
    transition: opacity 0.3s;
}

.drawer-foot .btn-checkout:hover::before {
    opacity: 0.6;
}

/* حاوية الكوبون */
.drawer-foot .drawer-coupon {
    order: 1; /* الكوبون ثانياً */
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

/* حاوية المجموع */
.drawer-foot .drawer-total {
    order: 2; /* المجموع ثالثاً */
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    padding-top: 12px;
    border-top: 1px dashed var(--border);
}

/* ===== 9) تحسين الجوال للشريط السفلي ===== */
@media (max-width: 480px) {
    .drawer-foot {
        padding: 12px 14px 16px;
    }
    
    .drawer-foot .btn-checkout {
        padding: 12px;
        font-size: 0.9rem;
        margin-bottom: 10px;
        border-radius: 10px;
    }
    
    .drawer-foot .drawer-coupon {
        gap: 6px;
        margin-bottom: 8px;
    }
    
    .coupon-input {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .coupon-apply {
        padding: 8px 14px;
        font-size: 0.75rem;
    }
    
    .drawer-foot .drawer-total {
        padding-top: 10px;
    }
    
    .total-value {
        font-size: 1.15rem;
    }
}

/* ============================================================
   بوب ضمان الكارمن (Guarantee Modal) + بوب دليل المقاسات (Size Modal)
   ============================================================ */

/* ---- الطبقة المشتركة للمودالات ---- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    transition: background 0.35s ease, visibility 0.35s;
    pointer-events: none;
}
.modal-overlay.active {
    visibility: visible;
    pointer-events: all;
    background: rgba(0,0,0,0.65);
}

/* ---- صندوق المحتوى المشترك ---- */
.modal-box {
    background: #f0f0f0; /* خلفية رمادية فاتحة */
    border-radius: 20px;
    max-width: 560px;
    width: 92%;
    max-height: 88vh;
    overflow-y: auto;
    padding: 28px 28px 22px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
    transform: scale(0.94) translateY(12px);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    position: relative;
}
.modal-overlay.active .modal-box {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* ---- زر الإغلاق المشترك ---- */
.modal-close {
    position: absolute;
    top: 14px;
    left: 16px;
    background: var(--maroon-light);
    border: none;
    color: var(--maroon);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 3;
}
.modal-close:hover {
    background: var(--maroon);
    color: #fff;
    transform: rotate(90deg);
}

/* ---- عنوان المودال ---- */
.modal-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--maroon);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 40px; /* لإفساح مكان للزر */
}
.modal-title .icon {
    font-size: 1.6rem;
}
.modal-subtitle {
    font-size: 0.8rem;
    color: var(--gray);
    margin-bottom: 18px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
}

/* ============================================================
   1) بوب ضمان الكارمن (محتوى خاص)
   ============================================================ */
.guarantee-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.guarantee-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--white); /* خلفية بيضاء للتباين مع الرمادي */
    padding: 12px 16px;
    border-radius: 14px;
    border-right: 4px solid var(--gold);
    transition: background 0.2s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.guarantee-item:hover {
    background: #fafafa;
}
.guarantee-item .emoji-big {
    font-size: 1.6rem;
    line-height: 1.2;
    flex-shrink: 0;
}
.guarantee-item .text {
    font-size: 0.9rem;
    line-height: 1.5;
}
.guarantee-item .text strong {
    color: var(--maroon);
    display: block;
    font-size: 0.95rem;
    margin-bottom: 2px;
}
.guarantee-item .text .desc {
    color: var(--dark);
    font-weight: 400;
}

/* ============================================================
   2) بوب دليل المقاسات (جدول + أداة الحساب)
   ============================================================ */
.size-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.size-table-wrap {
    overflow-x: auto;
    background: var(--white); /* خلفية بيضاء للجدول */
    border-radius: 14px;
    padding: 4px;
    border: 1px solid var(--border);
}
.size-table-wrap table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    text-align: center;
    min-width: 280px;
}
.size-table-wrap th {
    background: var(--maroon);
    color: #fff;
    padding: 8px 4px;
    font-weight: 700;
}
.size-table-wrap td {
    padding: 8px 4px;
    border-bottom: 1px solid var(--border);
}
.size-table-wrap tr:last-child td {
    border-bottom: none;
}
.size-table-wrap tr:nth-child(even) {
    background: rgba(212,175,55,0.05);
}

/* أداة حساب المقاس */
.size-calculator {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px 18px;
    margin-top: 4px;
}
.size-calculator .calc-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--maroon);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.calc-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-end;
}
.calc-group {
    flex: 1;
    min-width: 100px;
}
.calc-group label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--gray);
    margin-bottom: 2px;
}
.calc-group input {
    width: 100%;
    padding: 6px 10px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 0.85rem;
    font-family: inherit;
    background: var(--white);
    transition: border-color 0.2s;
}
.calc-group input:focus {
    border-color: var(--maroon);
    outline: none;
}
.calc-btn {
    padding: 6px 18px;
    background: var(--maroon);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
    font-family: inherit;
}
.calc-btn:hover {
    background: var(--maroon-dark);
}
#sizeResult {
    margin-top: 10px;
    padding: 10px 14px;
    background: var(--maroon-light);
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--maroon);
    display: none;
    text-align: center;
    border: 1px solid rgba(140,29,64,0.15);
}

/* ============================================================
   تحسينات الجوال للمودالات
   ============================================================ */
@media (max-width: 600px) {
    .modal-box {
        padding: 20px 16px 16px;
        border-radius: 16px;
        max-height: 92vh;
        width: 96%;
    }
    .modal-title {
        font-size: 1.05rem;
        padding-left: 34px;
    }
    .modal-title .icon {
        font-size: 1.3rem;
    }
    .modal-close {
        top: 10px;
        left: 10px;
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    .guarantee-item {
        padding: 10px 12px;
        gap: 10px;
    }
    .guarantee-item .emoji-big {
        font-size: 1.3rem;
    }
    .guarantee-item .text {
        font-size: 0.8rem;
    }
    .guarantee-item .text strong {
        font-size: 0.85rem;
    }
    .size-table-wrap table {
        font-size: 0.7rem;
        min-width: 220px;
    }
    .calc-row {
        flex-direction: column;
        gap: 8px;
    }
    .calc-group {
        min-width: unset;
        width: 100%;
    }
    .calc-btn {
        width: 100%;
        padding: 10px;
        font-size: 0.85rem;
    }
    #sizeResult {
        font-size: 0.85rem;
        padding: 8px 12px;
    }
}

/* ============================================================
   إضافات لتوافق المودالات مع باقي المكونات
   ============================================================ */
/* التأكد من ظهور شريط التمرير بشكل لطيف */
.modal-box::-webkit-scrollbar {
    width: 4px;
}
.modal-box::-webkit-scrollbar-track {
    background: #e0d6cc;
    border-radius: 4px;
}
.modal-box::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 4px;
}
/* Accessible text that remains available to screen readers. */
.visually-hidden { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }

/* ===== نظام العروض وشاشة نجاح الطلب ===== */
/* ===== Home banners: isolated from products and offers ===== */
.site-banner{position:relative;width:min(1100px,calc(100% - 24px));aspect-ratio:1200/260;max-height:238px;margin:12px auto 14px;overflow:hidden;border-radius:14px;background:#eee;box-shadow:0 6px 18px rgba(0,0,0,.1)}
.site-banner__track,.site-banner__slide,.site-banner__link,.site-banner picture{display:block;width:100%;height:100%}
.site-banner__slide{position:absolute;inset:0;visibility:hidden;opacity:0;transition:opacity .45s ease,visibility .45s ease}
.site-banner__slide.is-active{visibility:visible;opacity:1}
.site-banner__image{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.site-banner__dots{position:absolute;z-index:2;right:50%;bottom:8px;display:flex;gap:6px;transform:translateX(50%)}
.site-banner__dot{width:8px;height:8px;padding:0;border:1px solid rgba(255,255,255,.9);border-radius:50%;background:rgba(0,0,0,.3);box-shadow:0 1px 4px rgba(0,0,0,.3);cursor:pointer}
.site-banner__dot.is-active{width:22px;border-radius:8px;background:#fff}
@media(max-width:600px){.site-banner{width:calc(100% - 16px);aspect-ratio:2/1;max-height:180px;margin:8px auto 10px;border-radius:10px}.site-banner__image{object-position:center}.site-banner__dots{bottom:6px}}

.active-offer-banner{font-family:inherit;text-align:center;font-weight:800}
.active-offer-top{position:relative;isolation:isolate;overflow:hidden;padding:13px 16px;border-block:1px solid rgba(224,187,87,.55);background:linear-gradient(115deg,#050505 0%,#2a0713 24%,#741a3a 52%,#3b0a1e 76%,#080506 100%);color:#fff8e8;box-shadow:0 7px 20px rgba(44,5,20,.2)}
.active-offer-top::before{content:"";position:absolute;z-index:-1;inset:0;background:radial-gradient(circle at 50% -80%,rgba(240,203,102,.3),transparent 48%),linear-gradient(90deg,transparent,rgba(255,255,255,.055),transparent);pointer-events:none}
.active-offer-top::after{content:"";position:absolute;right:50%;bottom:0;width:min(360px,65vw);height:2px;transform:translateX(50%);background:linear-gradient(90deg,transparent,#e3bd50,transparent);box-shadow:0 0 12px rgba(227,189,80,.72)}
.active-offer-top__inner{position:relative;display:flex;align-items:center;justify-content:center;gap:11px;width:min(100%,920px);margin:auto}
.active-offer-top__icon{display:grid;place-items:center;flex:0 0 32px;height:32px;border:1px solid rgba(240,207,111,.58);border-radius:50%;background:rgba(255,255,255,.06);color:#f0cf6f;font-size:1rem;box-shadow:inset 0 1px rgba(255,255,255,.12),0 3px 12px rgba(0,0,0,.3)}
.active-offer-top__copy{font-size:clamp(.94rem,2vw,1.18rem);font-weight:900;line-height:1.65;letter-spacing:-.015em;text-shadow:0 2px 8px rgba(0,0,0,.55)}
.active-offer-top__gift{flex:0 0 auto;font-size:1.15rem;filter:drop-shadow(0 2px 4px rgba(0,0,0,.45))}
@media(max-width:600px){.active-offer-top{padding:11px 10px}.active-offer-top__inner{gap:8px}.active-offer-top__icon{flex-basis:28px;height:28px;font-size:.85rem}.active-offer-top__copy{max-width:290px;font-size:.9rem;line-height:1.7}.active-offer-top__gift{font-size:1rem}}
.active-offer-cart{margin-bottom:8px;padding:7px;border:1px solid #ead17a;border-radius:10px;background:#fff8dc;color:#6d5000}
.active-offer-cart small{display:block;margin-top:4px;font-weight:600}
.offer-journey-applied{display:flex;align-items:center;gap:7px;padding:6px 8px;border-radius:8px;background:#e9f8f0;color:#13734b;text-align:right}
.offer-journey-applied>span{display:grid;place-items:center;flex:0 0 23px;height:23px;border-radius:50%;background:#198754;color:#fff;font-size:.78rem}
.offer-journey-applied div,.offer-journey-heading{display:flex;min-width:0;flex-direction:column;gap:2px;text-align:right}
.offer-journey-applied small,.offer-journey-heading small{margin:0;font-size:.6rem;font-weight:700;opacity:.78}
.offer-journey-applied strong,.offer-journey-heading strong{font-size:.76rem;line-height:1.35}
.offer-journey-next{margin-top:6px;padding:7px 8px;border:1px solid #ead17a;border-radius:8px;background:#fffdf4}
.offer-journey-target{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:5px;color:#7a5a00;font-size:.68rem}
.offer-journey-target strong{color:var(--maroon);font-size:.74rem}
.offer-journey-progress{height:6px;margin-top:6px;overflow:hidden;border-radius:999px;background:#eee3b9}
.offer-journey-progress span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#c99a2b,#efd05e);transition:width .3s ease}
.offer-journey-meta{display:flex;justify-content:space-between;gap:6px;margin-top:4px;color:#7a6227;font-size:.59rem;font-weight:700}
.offer-journey-button{width:100%;margin-top:6px;padding:6px 10px;border:0;border-radius:7px;background:var(--maroon);color:#fff;font-family:inherit;font-size:.7rem;font-weight:800;cursor:pointer}
.offer-journey-button:hover{filter:brightness(1.08)}
.offer-journey-complete{margin-top:8px;padding:7px;border-radius:8px;background:#fff;color:#7a5a00;font-size:.76rem}
.offer-applied-line{margin-top:10px;padding:9px;border-radius:8px;background:#e9f8f0;color:#13734b;text-align:center;font-weight:800}
.order-success-box{text-align:center;max-width:430px}
.order-success-icon{width:72px;height:72px;border-radius:50%;display:grid;place-items:center;margin:0 auto 14px;background:#def7e9;color:#148354;font-size:42px;font-weight:900}
.order-success-box .btn-confirm,.order-success-box .btn-secondary{display:block;width:100%;margin-top:10px;text-align:center;text-decoration:none}
