/**
 * هوية Dyani — الهيدر، البطاقات، السلايد الكبير، الفوتر، واتساب
 * يُحمَّل آخر الملفات. الألوان من tokens.css.
 */

/* ══════════════════════ الشعار ══════════════════════ */
.dy-logo {
    display: inline-flex;
    align-items: baseline;
    direction: ltr;              /* الشعار لا ينقلب في العربية */
    text-decoration: none;
    line-height: 1;
}
.dy-logo__d    { height: 54px; width: auto; display: block; flex: none; }
.dy-logo__word {
    font-family: 'Montserrat', 'Cairo', sans-serif;
    font-weight: 600; font-size: 56px; line-height: .8; letter-spacing: 0;
    color: var(--gp-teal-dark); margin-inline-start: 3px;
}
.dy-logo__mark { height: 19px; width: auto; display: block; flex: none; margin-inline-start: 5px; }

/* ══════════════════════ شريط الإعلان ══════════════════════ */
.ab-announcement-bar {
    background: var(--gp-teal);
    color: var(--gp-text-invert);
    font-weight: 700;
    font-size: 12.5px;
    letter-spacing: .2px;
    padding: 8px 16px;
    text-align: center;
}

/* ══════════════════════ الهيدر ══════════════════════ */
.dy-header.ab-main-header {
    background: var(--gp-surface);
    padding: 0;
    border-bottom: 1px solid var(--gp-border);
}
.dy-head-row.ab-nav-container {
    width: auto;
    max-width: 1240px;
    margin: 0 auto;
    padding: 12px 24px;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 12px 28px;
}
.dy-head-row .ab-logo-wrapper { flex: none; }

/*
 * العربية: صفّ الهيدر بنفس ترتيب الفرنسية والإنجليزية — الشعار يساراً،
 * اللغة والسلة يميناً. خانة البحث وحدها تبقى من اليمين لليسار للكتابة.
 */
[dir="rtl"] .dy-head-row.ab-nav-container { direction: ltr; }
[dir="rtl"] .dy-head-row .dy-head-search,
[dir="rtl"] .dy-head-row .dy-cart-label,
[dir="rtl"] .dy-head-row .ab-lang-dropdown { direction: rtl; }

/* البحث: عريض ودائم الظهور */
.dy-head-search.ab-search-wrapper { flex: 1 1 300px; min-width: 0; display: flex; }
.dy-head-search #abSearchBtn { display: none; }
.dy-head-search .ab-search-input-wrapper,
.ab-nav-icons.ab-search-active .dy-head-search .ab-search-input-wrapper { width: 100%; overflow: visible; }
.dy-head-search .dgwt-wcas-search-wrapp { max-width: none !important; width: 100% !important; min-width: 0; }
.dy-head-search .dgwt-wcas-search-form { width: 100%; }

/*
 * الإطار المستدير على الحاوية لا على الخانة: العدسة والخانة جنباً إلى جنب
 * داخله (flex)، فلا يمكن أن تخرج العدسة من الإطار مهما فعلت الإضافة.
 */
.dy-head-search .dgwt-wcas-sf-wrapp {
    position: relative;
    display: flex !important; align-items: center;
    height: 46px; padding: 0 6px !important; box-sizing: border-box;
    border: 1.5px solid var(--gp-teal); border-radius: 999px !important;
    background: var(--gp-surface) !important;
}
.dy-head-search .dgwt-wcas-sf-wrapp:focus-within { box-shadow: 0 0 0 3px rgba(27, 107, 115, .25); }

.dy-head-search .dgwt-wcas-search-submit {
    position: static !important; order: -1; flex: none;
    transform: none !important; inset: auto !important;
    width: 36px !important; height: 36px !important; min-height: 0 !important;
    padding: 0 !important; margin: 0 !important;
    display: flex !important; align-items: center; justify-content: center;
    background: transparent !important; border: 0 !important; border-radius: 50% !important;
    box-shadow: none !important; opacity: 1 !important; cursor: pointer;
}
.dy-head-search .dgwt-wcas-search-submit::before, .dy-head-search .dgwt-wcas-search-submit::after { display: none !important; }
.dy-head-search .dgwt-wcas-search-submit .dgwt-wcas-ico-magnifier {
    position: static !important; display: block !important;
    width: 18px !important; height: 18px !important; margin: 0 !important; top: auto !important;
    fill: var(--gp-text-soft) !important; opacity: 1 !important;
}
.dy-head-search .dgwt-wcas-search-submit:hover .dgwt-wcas-ico-magnifier { fill: var(--gp-teal-dark) !important; }
.dy-head-search .dgwt-wcas-ico-magnifier-handler { display: none !important; }

.dy-head-search .dgwt-wcas-search-input {
    flex: 1 1 auto; min-width: 0;
    height: 100% !important; width: auto !important; margin: 0 !important;
    border: 0 !important; border-radius: 999px !important; outline: 0 !important;
    background: transparent !important; box-shadow: none !important;
    padding-inline: 4px 44px !important; box-sizing: border-box !important;
    font-size: 14px !important; color: var(--gp-text) !important; pointer-events: auto !important;
}

/* زرّ المسح (X): فوق الخانة دائماً، في نهايتها حسب اتجاه الصفحة */
.dy-head-search .dgwt-wcas-preloader { z-index: 2 !important; }
.dy-head-search .dgwt-wcas-close { cursor: pointer; pointer-events: auto !important; }
[dir="rtl"] .dy-head-search .dgwt-wcas-preloader { right: auto !important; left: 6px !important; }   /* الخانة نفسها rtl */
[dir="ltr"] .dy-head-search .dgwt-wcas-preloader { right: 6px !important; left: auto !important; }

.dy-head-search.ab-search-wrapper { margin-inline-end: 4px; }

/* اللغة والسلة */
.dy-head-row .ab-nav-icons { flex: none; }
.dy-head-row .ab-interactive-group { display: flex; align-items: center; gap: 16px; }
.dy-head-row .ab-language-selector { font-weight: 700; font-size: 13px; min-height: 44px; display: flex; align-items: center; cursor: pointer; }

.dy-head-row .hd-cart-icon {
    display: flex; align-items: center; gap: 8px;
    min-height: 44px; padding: 0; background: transparent; border: 0;
    color: var(--gp-text); font-weight: 700; font-size: 13px; cursor: pointer;
}
.dy-head-row .hd-cart-icon-glyph { position: static; display: flex; }
.dy-head-row .hd-cart-icon .cart-count {
    position: static; transform: none;
    min-width: 22px; height: 22px; padding: 0 6px; box-sizing: border-box;
    border-radius: 999px; background: var(--gp-teal); color: var(--gp-text-invert);
    font-size: 12px; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
}
.dy-head-row .hd-cart-icon .cart-text { display: none; }

/* القائمة: صفّ ثانٍ في الوسط */
.dy-head-nav { border-top: 1px solid var(--gp-border-soft); }
.dy-head-nav .ab-top-nav-links {
    max-width: 1240px; margin: 0 auto; padding: 0 24px; box-sizing: border-box;
    display: flex; flex-wrap: wrap; justify-content: center; gap: 0 30px;
}
.dy-head-nav .ab-top-nav-links > li > a,
.dy-head-nav .ab-top-nav-links > li > .ab-nav-toggle {
    font-weight: 700; font-size: 12.5px; text-transform: uppercase;
    color: var(--gp-text); min-height: 44px; display: flex; align-items: center;
}
.dy-head-nav .ab-top-nav-links a:hover,
.dy-head-nav .ab-top-nav-links .ab-nav-open > a { color: var(--gp-teal-dark); }
.dy-head-nav .ab-nav-children a { text-transform: none; font-weight: 600; }

/* ══════════════════════ بطاقات المنتجات ══════════════════════ */
.perfume-product-card .perfume-image-wrapper {
    background: #f3f3f3;
    border-radius: 10px;
    overflow: hidden;
}
.perfume-product-card .perfume-product-title { font-weight: 700; font-size: 13px; color: var(--gp-text); }
.perfume-product-card .size-badge { color: var(--gp-text-muted); font-weight: 700; }
.perfume-product-card .perfume-product-price,
.perfume-product-card .perfume-product-price .price-amount,
.perfume-product-card .perfume-product-price .woocommerce-Price-amount {
    color: var(--gp-text);
    font-weight: 900;
}
.perfume-product-card .perfume-product-price { font-size: 16px; }
.perfume-product-card .price-from-label { font-size: 10.5px; color: var(--gp-text-muted); font-weight: 400; }

.perfume-card-cta {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; min-height: 44px; margin-top: 10px; box-sizing: border-box;
    border-radius: 999px; background: var(--gp-teal); color: var(--gp-text-invert);
    font-weight: 700; font-size: 13px; transition: background .15s;
}
.perfume-card-cta::before {
    content: ""; width: 17px; height: 17px; flex: none;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8h14l-1.2 11H6.2L5 8z'/%3E%3Cpath d='M9 8V6a3 3 0 016 0v2'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8h14l-1.2 11H6.2L5 8z'/%3E%3Cpath d='M9 8V6a3 3 0 016 0v2'/%3E%3C/svg%3E") center / contain no-repeat;
}
.perfume-product-card:hover .perfume-card-cta,
.perfume-product-card:focus-within .perfume-card-cta { background: var(--gp-teal-dark); }
.perfume-product-card.out-of-stock .perfume-card-cta { display: none; }

/* ══════════════════════ السلايد الكبير ══════════════════════ */
.aps-btn--primary {
    background: var(--gp-teal) !important;
    border-color: var(--gp-teal) !important;
    color: var(--gp-text-invert) !important;
}
.aps-btn--primary:hover { background: var(--gp-teal-dark) !important; border-color: var(--gp-teal-dark) !important; }
.aps-btn--ghost {
    background: transparent !important;
    border-color: var(--gp-teal) !important;
    color: var(--gp-teal-dark) !important;
}
.aps-price, .aps-price .woocommerce-Price-amount,
.aps-side-price, .aps-side-price .woocommerce-Price-amount { color: var(--gp-text) !important; }

/* ══════════════════════ أزرار التمرير — شكل واحد لكل السلايدات ══════════════════════
 * السلايد الكبير (aps-nav) · الماركات (hd-bs__nav-btn) · المنتجات (carousel-btn).
 * التموضع يبقى لكل سلايد كما هو — يتوحّد الشكل فقط.
 */
.aps-nav,
.hd-bs__section .hd-bs__nav-btn,
.products-slider-container .carousel-btn {
    width: 44px !important; height: 44px !important; min-width: 44px; padding: 0 !important;
    border-radius: 50% !important;
    background: var(--gp-surface) !important;
    border: 1px solid #e2e2e2 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12) !important;
    color: var(--gp-text) !important;
    align-items: center; justify-content: center;
    cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.aps-nav, .hd-bs__section .hd-bs__nav-btn,
.products-slider-container .carousel-btn:not([hidden]) { display: flex !important; }

.aps-nav svg,
.hd-bs__section .hd-bs__nav-btn svg { width: 18px !important; height: 18px !important; fill: currentColor !important; }

/* أسهم المنتجات: أيقونة Font Awesome غير محمّلة → سهم مرسوم */
.products-slider-container .carousel-btn i {
    display: block; width: 16px; height: 16px; font-size: 0;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 5l-7 7 7 7'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 5l-7 7 7 7'/%3E%3C/svg%3E") center / contain no-repeat;
}
.products-slider-container .carousel-btn.next-btn i { transform: scaleX(-1); }
[dir="rtl"] .products-slider-container .carousel-btn i { transform: scaleX(-1); }
[dir="rtl"] .products-slider-container .carousel-btn.next-btn i { transform: none; }

.aps-nav:hover, .aps-nav:focus-visible,
.hd-bs__section .hd-bs__nav-btn:hover, .hd-bs__section .hd-bs__nav-btn:focus-visible,
.products-slider-container .carousel-btn:hover, .products-slider-container .carousel-btn:focus-visible {
    background: var(--gp-teal) !important;
    border-color: var(--gp-teal) !important;
    color: var(--gp-text-invert) !important;
    box-shadow: 0 4px 12px rgba(27, 107, 115, .3) !important;
    outline: none;
}
.hd-bs__section .hd-bs__nav-btn:hover svg, .hd-bs__section .hd-bs__nav-btn:focus-visible svg { fill: currentColor !important; }

@media (max-width: 768px) {
    .aps-nav, .hd-bs__section .hd-bs__nav-btn, .products-slider-container .carousel-btn { width: 38px !important; height: 38px !important; min-width: 38px; }
    .aps-nav svg, .hd-bs__section .hd-bs__nav-btn svg { width: 16px !important; height: 16px !important; }
}

/* ══════════════════════ أداء السلايد الكبير ══════════════════════
 * زجاجات السلايد تطفو بلا توقّف (apsFloat) مع filter: drop-shadow.
 * طبقة رسم خاصة لكل زجاجة: الظلّ يُرسم مرّة ويتحرّك كصورة جاهزة.
 * وحين تُفتح قائمة في الهيدر يتوقّف الطفو حتى تُغلق.
 */
.aps .aps-bottle { will-change: transform; backface-visibility: hidden; }
/* انتقال أهدأ بين الشرائح (كان .5s) — مدّة العرض نفسها من إعدادات الإضافة */
.aps .aps-track { transition-duration: .8s !important; }
body:has(.ab-nav-open) .aps .aps-bottle,
body:has(.ab-lang-dropdown.show) .aps .aps-bottle { animation-play-state: paused; }

/* ══════════════════════ الفوتر ══════════════════════
 * يغلب تنسيق «CSS إضافي» القديم في المخصّص (خلفية رمادية، خط Arial،
 * عرض 80%، أيقونات Font Awesome غير المحمّلة فتظهر مربّعات سوداء).
 */
#footer-widgets.footer-widgets { display: none; }   /* منطقة ودجات فارغة = الفراغ الأبيض فوق الفوتر */

#main-footer.footer-custom-style {
    direction: ltr;                  /* الفوتر بنفس الترتيب في اللغات الثلاث — لا ينقلب في العربية */
    text-align: left;
    position: relative;
    background: var(--gp-surface);
    padding: 66px 0 32px;            /* 10px للشريط الزخرفي + 56px كما في التصميم */
    font-family: 'Cairo', sans-serif;
}
#main-footer.footer-custom-style::before {
    content: ""; position: absolute; inset-inline: 0; top: 0; height: 10px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10'%3E%3Crect x='2' y='2' width='6' height='6' fill='none' stroke='%23B58942' stroke-width='.7'/%3E%3Crect x='2' y='2' width='6' height='6' fill='none' stroke='%23B58942' stroke-width='.7' transform='rotate(45 5 5)'/%3E%3C/svg%3E") repeat-x;
}
#main-footer.footer-custom-style .footer-container {
    max-width: 1240px; width: 100%; margin: 0 auto; padding: 0 24px; box-sizing: border-box;
    display: flex; flex-wrap: wrap; flex-direction: row; align-items: flex-start;
    justify-content: space-between; gap: 36px;
}
#main-footer.footer-custom-style .footer-column { flex: 1 1 160px; min-width: 0; padding: 0; margin: 0; text-align: start; }
#main-footer.footer-custom-style .branding-info { flex: 1 1 260px; }
#main-footer.footer-custom-style .payment-section { flex: 1 1 180px; }

.dy-logo--footer .dy-logo__d    { height: 44px; }
.dy-logo--footer .dy-logo__word { font-size: 46px; margin-inline-start: 2px; }
.dy-logo--footer .dy-logo__mark { height: 15px; margin-inline-start: 4px; }

#main-footer.footer-custom-style .tagline,
#main-footer.footer-custom-style .contact-info p { font-size: 13px; line-height: 1.7; color: var(--gp-text-soft); margin: 12px 0 0; }
#main-footer.footer-custom-style .contact-info p { display: flex; align-items: flex-start; gap: 8px; margin-top: 10px; }
#main-footer.footer-custom-style .contact-info i {
    flex: none; width: 15px; height: 15px; margin-top: 4px;
    background: var(--gp-brand); font-size: 0;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s7-6.2 7-12a7 7 0 10-14 0c0 5.8 7 12 7 12z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s7-6.2 7-12a7 7 0 10-14 0c0 5.8 7 12 7 12z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
#main-footer.footer-custom-style .contact-info i.fa-whatsapp { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a9 9 0 00-7.8 13.5L3 21l4.6-1.2A9 9 0 1012 3z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a9 9 0 00-7.8 13.5L3 21l4.6-1.2A9 9 0 1012 3z'/%3E%3C/svg%3E"); }

#main-footer.footer-custom-style .social-icons { margin-top: 16px; display: flex; gap: 10px; justify-content: flex-start; }
#main-footer.footer-custom-style .icon-btn { width: 28px; height: 28px; border-radius: 6px; display: flex; align-items: center; justify-content: center; }
#main-footer.footer-custom-style .icon-btn i {
    width: 15px; height: 15px; background: #fff; font-size: 0;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h-3a4 4 0 00-4 4v3H6v4h2v7h4v-7h3l1-4h-4V7a1 1 0 011-1h2z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h-3a4 4 0 00-4 4v3H6v4h2v7h4v-7h3l1-4h-4V7a1 1 0 011-1h2z'/%3E%3C/svg%3E") center / contain no-repeat;
}
#main-footer.footer-custom-style .icon-btn.twitter i   { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4l16 16M20 4L4 20'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4l16 16M20 4L4 20'/%3E%3C/svg%3E"); }
#main-footer.footer-custom-style .icon-btn.instagram i { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='17.5' cy='6.5' r='.6'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='17.5' cy='6.5' r='.6'/%3E%3C/svg%3E"); }
#main-footer.footer-custom-style .icon-btn.whatsapp i  { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a9 9 0 00-7.8 13.5L3 21l4.6-1.2A9 9 0 1012 3z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a9 9 0 00-7.8 13.5L3 21l4.6-1.2A9 9 0 1012 3z'/%3E%3C/svg%3E"); }

#main-footer.footer-custom-style .footer-title {
    font-family: 'Cairo', sans-serif; font-size: 14px; font-weight: 900;
    text-transform: uppercase; color: var(--gp-text); margin: 0 0 14px; letter-spacing: .3px;
}
#main-footer.footer-custom-style .footer-list { display: flex; flex-direction: column; gap: 12px; text-align: start; }
#main-footer.footer-custom-style .footer-list li { margin: 0; }
#main-footer.footer-custom-style .footer-list a { font-size: 13px; color: var(--gp-text-soft); }
#main-footer.footer-custom-style a:hover { color: var(--gp-teal-dark); }
#main-footer.footer-custom-style .payment-logos { margin-top: 0; }
#main-footer.footer-custom-style .payment-logos img { max-height: 34px; }

@media (max-width: 768px) {
    #main-footer.footer-custom-style { padding: 50px 0 96px; }   /* مكان زرّي واتساب والسلة العائمين */
    #main-footer.footer-custom-style .footer-container { padding: 0 16px; gap: 28px 20px; }
    #main-footer.footer-custom-style .branding-info { flex: 1 1 100%; }
    #main-footer.footer-custom-style .menu-section,
    #main-footer.footer-custom-style .service-section { flex: 1 1 40%; }
    #main-footer.footer-custom-style .payment-section { flex: 1 1 100%; }
}

/* ══════════════════════ واتساب ══════════════════════ */
.dy-wa {
    position: fixed; inset-inline-end: 20px; inset-block-end: 20px; z-index: 1400;
    height: 56px; padding-inline: 16px 22px; box-sizing: border-box;
    display: flex; align-items: center; gap: 10px;
    border-radius: 999px; background: #0e7a41; color: #fff !important;
    font-weight: 700; font-size: 14px; text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}
.dy-wa svg { width: 30px; height: 30px; flex: none; }
.dy-wa:hover { background: #0b6535; }

/* ══════════════════════ نافذة المنتج (Popup) ══════════════════════
 * الشكل والحجم والمكان كما هي — التغيير في الأزرار والأحجام والألوان.
 */
.cart-buttons-wrapper { flex-wrap: nowrap; gap: 8px; }
.qv-ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.cart-buttons-wrapper .qv-fav-btn {
    flex: none; width: 54px; height: 54px; padding: 0; box-sizing: border-box;
    border-radius: 12px; border: 1.5px solid #dcdcdc; background: #f3f3f3;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    color: var(--gp-text);
}
.qv-fav-btn .qv-ico--heart { width: 20px; height: 20px; stroke-width: 1.8; }
.qv-fav-btn.is-on .qv-ico--heart { fill: var(--gp-sale); stroke: var(--gp-sale); }

.cart-buttons-wrapper .add-to-cart-btn {
    height: 54px; padding: 0 14px; box-sizing: border-box;
    border-radius: 12px; border-color: var(--gp-text); background: var(--gp-text); color: var(--gp-text-invert);
    font-size: 11.5px; letter-spacing: .6px; gap: 9px; white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
}
.add-to-cart-btn .qv-ico--bag { stroke: #d9b56a; }
.cart-buttons-wrapper .add-to-cart-btn:hover { opacity: 1; filter: brightness(1.12); }

.cart-buttons-wrapper .buy-now-btn {
    height: 54px; padding: 0 14px; box-sizing: border-box;
    border-radius: 12px; border: 2px solid var(--gp-brand); background: var(--gp-surface); color: #7a5b1f;
    font-weight: 800; font-size: 11.5px; letter-spacing: .6px; gap: 8px; white-space: nowrap;
}
.buy-now-btn .qv-ico--bolt { width: 16px; height: 16px; stroke: var(--gp-brand); stroke-width: 2; }
.cart-buttons-wrapper .buy-now-btn:hover { background: #fbf6ec; color: #7a5b1f; }

/* الأحجام والألوان */
.size-label .size-picked { font-weight: 600; color: var(--gp-text-soft); text-transform: none; letter-spacing: 0; }
.size-options .size-btn {
    min-width: 38px; height: 38px; padding: 0 10px; box-sizing: border-box;
    border-radius: 999px; border: 1.5px solid #dcdcdc;
    font-size: 11.5px; font-weight: 700; color: #555;
    display: inline-flex; align-items: center; justify-content: center;
}
.size-options .size-btn.is-ml {
    width: 44px; min-width: 44px; height: 44px; padding: 0; border-radius: 50%;
    flex-direction: column; gap: 1px; line-height: 1;
}
.size-btn .sz-num  { font-size: 13px; font-weight: 700; }
.size-btn .sz-unit { font-size: 9px; font-weight: 600; opacity: .75; }
.size-options .size-btn.selected,
.size-options .size-btn.active { background: var(--gp-text); border-color: var(--gp-text); color: var(--gp-text-invert); }

.size-options .size-btn.is-swatch {
    width: 38px; min-width: 38px; height: 38px; padding: 3px; border-radius: 50%;
    border: 2px solid transparent; background: var(--gp-surface);
}
.size-btn.is-swatch .sz-dot { display: block; width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .15); }
.size-options .size-btn.is-swatch:hover { border-color: #bbb; background: var(--gp-surface); }
.size-options .size-btn.is-swatch.selected,
.size-options .size-btn.is-swatch.active { border-color: var(--gp-text); background: var(--gp-surface); }
.size-options .size-btn.is-swatch.is-oos { opacity: .35; }

@media (max-width: 480px) {
    .cart-buttons-wrapper { flex-wrap: wrap; }
    .cart-buttons-wrapper .add-to-cart-btn { flex: 1 1 0; }
    .cart-buttons-wrapper .buy-now-btn { flex: 1 1 100%; }
}

/* ══════════════════════ القائمة المنسدلة الكبيرة (حاسوب) ══════════════════════ */
.dy-head-nav li.is-sale > a { color: var(--gp-sale-text); }

@media (min-width: 992px) {
    .dy-header.ab-main-header { position: relative; }
    .dy-head-nav .ab-top-nav-links > li.ab-has-children { position: static; gap: 2px; }
    .dy-head-nav .ab-nav-toggle { min-height: 44px; padding: 0 2px; }
    .dy-head-nav .ab-nav-chevron { stroke-width: 3; }
    .dy-head-nav .ab-has-children.ab-nav-open > a,
    .dy-head-nav .ab-has-children.ab-nav-open > .ab-nav-toggle { color: var(--gp-gold-text); }
    .dy-head-nav .ab-has-children.ab-nav-open > a { box-shadow: inset 0 -2px 0 var(--gp-brand); }

    .dy-head-nav .ab-top-nav-links .ab-nav-children-wrap {
        inset-inline: 0; top: 100%; margin-top: 0;
        min-width: 0; border-radius: 0;
        background: var(--gp-surface);
        border-top: 1px solid var(--gp-border-soft);
        box-shadow: 0 18px 30px rgba(0, 0, 0, .12);
        /*
         * ⚠️ أداء: الفتح كان بتحريك grid-template-rows، وهو يعيد حساب
         * تخطيط الصفحة في كل إطار — فوق سلايد كبير زجاجاته تطفو بظلّ
         * filter يُعاد رسمه باستمرار، فيحسّ الزائر بتقطّع. الآن شفافية
         * وإزاحة فقط: يتكفّل بهما معالج الرسوميات دون إعادة تخطيط.
         */
        grid-template-rows: 1fr;
        opacity: 0; transform: translateY(-6px);
        visibility: hidden; pointer-events: none;
        transition: opacity .16s ease, transform .16s ease, visibility 0s linear .16s;
        will-change: opacity, transform;
    }
    .dy-head-nav .ab-has-children.ab-nav-open .ab-nav-children-wrap {
        opacity: 1; transform: none; visibility: visible; pointer-events: auto;
        transition: opacity .16s ease, transform .16s ease, visibility 0s;
    }
    /* width:100% — بدونه يتقلّص عنصر الشبكة إلى عرض محتواه فتصير الفروع عموداً واحداً */
    .dy-head-nav .ab-top-nav-links .ab-nav-children {
        width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; box-sizing: border-box;
        display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0 28px;
    }
    .dy-head-nav .ab-top-nav-links .ab-nav-children { padding-block: 26px 30px; overflow: visible; }
    .dy-head-nav .ab-top-nav-links .ab-nav-children a,
    .dy-head-nav .ab-top-nav-links .ab-nav-children li:not(:last-child) a {
        display: flex; align-items: center; gap: 12px;
        min-height: 46px; padding: 0; background: none;
        font-weight: 600; font-size: 14px; text-transform: none; color: var(--gp-text);
        border-bottom: 1px solid var(--gp-border-soft); white-space: normal;
    }
    .dy-head-nav .ab-top-nav-links .ab-nav-children a::before {
        content: ""; flex: none; width: 6px; height: 6px;
        background: var(--gp-brand); transform: rotate(45deg);
    }
    .dy-head-nav .ab-top-nav-links .ab-nav-children a:hover { color: var(--gp-teal-dark); background: none; }
    .dy-head-nav .ab-nav-children-title { grid-column: 1 / -1; margin-bottom: 10px; }
    .dy-head-nav .ab-top-nav-links .ab-nav-children .ab-nav-children-title > span,
    .dy-head-nav .ab-top-nav-links .ab-nav-children .ab-nav-children-title a {
        display: inline-flex; min-height: 32px; border: 0;
        font-weight: 900 !important; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
        color: var(--gp-gold-text) !important;
    }
    .dy-head-nav .ab-top-nav-links .ab-nav-children .ab-nav-children-title a::before { display: none; }
    .dy-head-nav .ab-top-nav-links .ab-nav-children .ab-nav-children-title a:hover { text-decoration: underline; text-underline-offset: 4px; }
    .dy-head-nav .ab-top-nav-links > li > .ab-nav-toggle.ab-nav-parent { gap: 5px; }
    .dy-head-nav .ab-has-children.ab-nav-open > .ab-nav-toggle { box-shadow: inset 0 -2px 0 var(--gp-brand); }
}
/* الزرّ الذي يفتح القائمة يشبه الرابط تماماً */
.ab-nav-toggle.ab-nav-parent {
    font: inherit; color: inherit; background: none; border: 0; cursor: pointer;
    display: inline-flex; align-items: center; gap: 5px; padding: 0; margin: 0;
}

/* الهاتف: عنوان القائمة رابط «القسم ›» في أول الفروع */
.ab-nav-children-title a { font-weight: 800 !important; color: var(--gp-teal-dark) !important; }
.ab-nav-title-arrow { margin-inline-start: 6px; }
[dir="rtl"] .ab-nav-title-arrow { display: inline-block; transform: scaleX(-1); }
@media (max-width: 991px) {
    .ab-mobile-menu-panel .ab-nav-toggle.ab-nav-parent {
        flex: 1; justify-content: space-between; width: 100%;
        font-size: 17px; padding: 9px 0; text-align: start;
    }
    .ab-mobile-menu-panel .ab-nav-toggle.ab-nav-parent .ab-nav-chevron { width: 14px; height: 14px; }
}

/* ══════════════════════ بطاقة: ألوان ومقاسات الملابس ══════════════════════ */
.product-colors-display { display: flex; gap: 6px; justify-content: center; align-items: center; min-height: 28px; margin-top: 6px; }
.product-colors-display .color-dot {
    width: 18px; height: 18px; border-radius: 50%; flex: none;
    border: 1px solid rgba(0, 0, 0, .15);
}
.product-sizes-display.is-apparel { justify-content: center; }
.product-sizes-display .size-list { font-size: 11.5px; color: var(--gp-text-muted); font-weight: 600; }

/* ══════════════════════ صفحة المنتج — تصميم Dyani ══════════════════════ */
.gpchild-seo-product-page .sp-hero { max-width: 1150px; margin-inline: auto; gap: 28px 48px; }
.gpchild-seo-product-page .sp-gallery { max-width: 550px; }
.gpchild-seo-product-page .sp-main { background: #f5f5f5; border-radius: 14px; overflow: hidden; }
.gpchild-seo-product-page .sp-thumbs { gap: 10px; margin-top: 12px; }
.gpchild-seo-product-page .sp-thumbs .thumbnail-item {
    width: 64px; height: 64px; border-radius: 8px; border: 2px solid transparent; background: #f5f5f5; padding: 0; overflow: hidden;
}
.gpchild-seo-product-page .sp-thumbs .thumbnail-item.active { border-color: var(--gp-text); }

/* عمود المعلومات: مسافات ثابتة 16px كما في التصميم (كانت فجوات كبيرة بين المجموعات) */
.gpchild-seo-product-page .sp-info { gap: 16px; }
.gpchild-seo-product-page .sp-head { gap: 6px; }
.gpchild-seo-product-page .sp-brand { font-size: 10.5px; letter-spacing: 1.5px; color: var(--gp-text-soft); font-weight: 600; text-transform: uppercase; }
.gpchild-seo-product-page .sp-name { font-size: 34px; font-weight: 700; line-height: 1.2; color: #2a2a2a; text-transform: uppercase; margin: 0; }
.gpchild-seo-product-page .sp-price { font-size: 28px; font-weight: 700; color: var(--gp-text); line-height: 1.2; }
.gpchild-seo-product-page .sp-stock { font-weight: 700; font-size: 13px; color: #14603a; }
.gpchild-seo-product-page .sp-desc { margin: 0; font-size: 14.5px; color: #444; }

.gpchild-seo-product-page .sp-field,
.gpchild-seo-product-page .size-selector { gap: 0; margin: 0; }
.gpchild-seo-product-page .sp-label,
.gpchild-seo-product-page .size-label {
    display: block; margin: 0 0 8px;
    font-size: 10.5px; letter-spacing: 1px; font-weight: 700; color: #444; text-transform: uppercase;
}
.gpchild-seo-product-page .size-options { gap: 10px; min-height: 0; justify-content: flex-start; }
/* العربية: الأحجام والألوان تبدأ من اليمين تحت عنوانها مباشرة */
[dir="rtl"] .gpchild-seo-product-page .size-options { direction: rtl; justify-content: flex-start; margin: 0; }
[dir="rtl"] .gpchild-seo-product-page .sp-label,
[dir="rtl"] .gpchild-seo-product-page .size-label { text-align: right; }
.gpchild-seo-product-page .size-options .size-btn.is-ml { width: 46px; min-width: 46px; height: 46px; }

.gpchild-seo-product-page .sp-qty { width: 124px; height: 44px; background: #f3f3f3; border-radius: 8px; }
.gpchild-seo-product-page .sp-qty .qty-btn { width: 44px; height: 44px; font-size: 17px; }

.gpchild-seo-product-page .cart-buttons-wrapper { margin: 4px 0 0; }

.gpchild-seo-product-page .sp-trust {
    display: flex; flex-wrap: wrap; gap: 6px 24px;
    padding: 14px 0; margin: 6px 0 0;
    border-top: 1px solid #e8e8e8; border-bottom: 1px solid #e8e8e8;
    font-size: 12.5px; font-weight: 600; color: #7a5b1f;
}

@media (max-width: 768px) {
    .gpchild-seo-product-page .sp-name { font-size: 24px; }
    .gpchild-seo-product-page .sp-price { font-size: 22px; }
    .gpchild-seo-product-page .sp-gallery { max-width: none; }
}

/* ══════════════════════ الهاتف ══════════════════════ */
@media (max-width: 991px) {
    .ab-announcement-bar { font-size: 11.5px; padding: 7px 12px; }

    .dy-head-row.ab-nav-container { padding: 8px 12px 12px; gap: 8px; flex-wrap: wrap; }
    .dy-head-row .ab-hamburger-icon {
        display: flex; align-items: center; justify-content: center;
        width: 44px; height: 44px; order: 1;
    }
    .dy-head-row .ab-hamburger-icon svg { width: 24px; height: 24px; }
    .dy-head-row .ab-logo-wrapper { order: 2; flex: 1; justify-content: center; }
    .dy-head-row .ab-nav-icons    { order: 3; }
    .dy-head-search.ab-search-wrapper { display: flex !important; order: 4; flex: 1 1 100%; }

    .dy-logo__d    { height: 38px; }
    .dy-logo__word { font-size: 40px; }
    .dy-logo__mark { height: 14px; }

    .dy-head-row .dy-cart-label { display: none; }
    .dy-head-row .ab-interactive-group { gap: 10px; }
    .dy-head-nav { display: none; }

    /* واتساب: دائرة في الجهة المقابلة لزرّ السلة العائم */
    .dy-wa {
        inset-inline-end: auto; inset-inline-start: 16px;
        inset-block-end: calc(18px + env(safe-area-inset-bottom, 0px));
        width: 52px; height: 52px; padding: 0; justify-content: center;
    }
    .dy-wa span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .dy-wa svg { width: 28px; height: 28px; }
}

/* ══════════════════════ واتساب: دائماً يمين الشاشة ══════════════════════ */
.dy-wa { right: 20px !important; left: auto !important; inset-inline-start: auto; inset-inline-end: auto; }

/* ══════════════════════ الهاتف: هيدر التصميم + الشريط السفلي ══════════════════════ */
.dy-bnav { display: none; }
.dy-mobile-langs { display: none; }

@media (max-width: 991px) {
    .dy-ann-extra { display: none; }

    /* الهيدر ثابت أعلى الشاشة */
    .ab-hero-wrapper { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 1500; }
    .dy-header.ab-main-header { box-shadow: 0 1px 0 var(--gp-border); }
    .dy-head-row.ab-nav-container { padding: 6px 8px 10px; }

    /* اللغة تنتقل إلى القائمة الجانبية */
    .dy-head-row .ab-language-wrapper { display: none; }

    /* السلة: أيقونة وعدّاد فوقها */
    .dy-head-row .hd-cart-icon { position: relative; width: 52px; height: 44px; justify-content: center; gap: 0; }
    .dy-head-row .hd-cart-icon .cart-count {
        position: absolute; top: 3px; right: 2px;
        min-width: 20px; height: 20px; padding: 0 5px; font-size: 11.5px;
    }

    .dy-head-search .dgwt-wcas-search-input { font-size: 16px !important; }   /* 16px: لا تكبير تلقائي في iOS */

    /* روابط اللغة داخل القائمة الجانبية */
    .dy-mobile-langs { display: flex; gap: 8px; margin: 4px 0 14px; }
    .dy-mobile-langs a {
        flex: 1; text-align: center; min-height: 40px; display: flex; align-items: center; justify-content: center;
        border: 1.5px solid var(--gp-border); border-radius: 999px;
        font-weight: 700; font-size: 13px; color: var(--gp-text); text-decoration: none;
    }
    .dy-mobile-langs a.is-current { border-color: var(--gp-teal); background: var(--gp-teal-tint); color: var(--gp-teal-dark); }

    /* الشريط السفلي — ثابت، لا يتأثّر بالتمرير */
    .dy-bnav {
        display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; gap: 4px;
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 1450;
        padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
        background: var(--gp-surface); border-top: 1px solid #e0e0e0;
        box-shadow: 0 -4px 14px rgba(0, 0, 0, .08);
        direction: ltr;   /* نفس الترتيب في اللغات الثلاث */
    }
    .dy-bnav__i {
        position: relative;
        display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
        min-height: 50px; padding: 0; border: 0; background: transparent; cursor: pointer;
        font-family: inherit; font-weight: 700; font-size: 11px; color: #333; text-decoration: none;
    }
    .dy-bnav__i svg { width: 22px; height: 22px; }
    .dy-bnav__i:active { color: var(--gp-teal-dark); }
    .dy-bnav__count {
        position: absolute; top: 1px; left: 50%; margin-left: 5px;
        min-width: 18px; height: 18px; padding: 0 4px; box-sizing: border-box;
        border-radius: 999px; background: var(--gp-teal); color: #fff;
        font-size: 11px; line-height: 18px; text-align: center;
    }

    /* زرّ السلة العائم القديم: الشريط يحلّ محلّه */
    .gpc-cart-fab, .gpc-cart-fab.is-visible { display: none !important; }

    /* مكان للشريط أسفل الصفحة */
    body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }

    /* واتساب: دائرة يمين الشاشة فوق الشريط السفلي */
    .dy-wa {
        right: 14px !important; left: auto !important;
        bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important; inset-block-end: auto;
        width: 56px; height: 56px; padding: 0; justify-content: center;
    }
}

/* ══════════════════════ هيدر الهاتف: ☰ يساراً · الشعار في المنتصف · اللغة + السلة يميناً ══════════════════════
 * شبكة 1fr | auto | 1fr: العمودان الجانبيان متساويان مهما كان عرض محتواهما،
 * فيقع الشعار في منتصف الشاشة بالضبط.
 */
@media (max-width: 991px) {
    .dy-head-row.ab-nav-container {
        display: grid !important;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        gap: 6px 4px;
        padding: 6px 10px 10px;
    }
    .dy-head-row .ab-hamburger-icon { justify-self: start; margin: 0; }
    .dy-head-row .ab-logo-wrapper   { justify-self: center; flex: none; margin: 0; }
    .dy-head-row .ab-nav-icons      { justify-self: end; margin: 0; }
    .dy-head-search.ab-search-wrapper { grid-column: 1 / -1; margin: 0; }

    .dy-head-row .ab-interactive-group { gap: 2px; }
    .dy-head-row .ab-language-wrapper { display: block; }   /* اللغة بجانب السلة */
    .dy-head-row .ab-language-selector { font-size: 12px; min-height: 44px; padding: 0 6px; }
}

/* الهاتف: اللغة ملاصقة للسلة (كان زرّ السلة 52px وحشو اللغة يفصلان بينهما) */
@media (max-width: 991px) {
    .dy-head-row .ab-interactive-group { gap: 0; }
    .dy-head-row .ab-language-selector { padding: 0 2px 0 0; }
    .dy-head-row .hd-cart-icon { width: 40px; }
    .dy-head-row .hd-cart-icon .cart-count { right: -4px; }
    .dy-head-row .ab-lang-dropdown { min-width: 64px; }
    .dy-head-row .ab-lang-dropdown div { text-align: center; }
}

/* ══════════════════════ نافذة المنتج — نفس تعديلات صفحة المنتج ══════════════════════
 * العربية: الأحجام والألوان تبدأ من اليمين تحت عنوانها مباشرة،
 * والمسافات بين المجموعات 16px كما في صفحة المنتج.
 */
.gpchild-qv-container .qv-mid { gap: 16px; }
.gpchild-qv-container .size-selector { margin: 0; }
.gpchild-qv-container .size-label { margin: 0 0 8px; }
.gpchild-qv-container .size-options { justify-content: flex-start; gap: 10px; }
.gpchild-qv-container[dir="rtl"] .size-options { direction: rtl; justify-content: flex-start; margin: 0; }
.gpchild-qv-container[dir="rtl"] .size-label,
.gpchild-qv-container[dir="rtl"] .qv-label { text-align: right; }

/* نافذة المنتج: مسافة بين السعر والحجم، وبين الكمية والأزرار (= المسافة بين الأزرار نفسها) */
.gpchild-qv-container .qv-top { padding-bottom: 14px; }
.gpchild-qv-container .cart-buttons-wrapper { margin-top: 8px; }

/* ══════════════════════ البطاقة: عنوان وسعر في الوسط · دوائر ألوان قابلة للضغط ══════════════════════ */
.perfume-product-card .perfume-product-info { text-align: center; }
.perfume-product-card .perfume-product-price { justify-content: center; text-align: center; }
@media (max-width: 991px) {
    .perfume-product-card .perfume-product-info { text-align: center !important; }
    [dir="rtl"] .perfume-product-card .product-sizes-display { text-align: center; justify-content: center; }
}
.product-colors-display .color-dot {
    width: 22px; height: 22px; padding: 0; border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, .15);
    box-shadow: 0 0 0 2px var(--gp-surface), 0 0 0 3px transparent;
    cursor: pointer; transition: box-shadow .12s;
}
.product-colors-display .color-dot:hover { box-shadow: 0 0 0 2px var(--gp-surface), 0 0 0 3px #bbb; }
.product-colors-display .color-dot.is-on { box-shadow: 0 0 0 2px var(--gp-surface), 0 0 0 3.5px var(--gp-text); }

/* ══════════════════════ أحجام العطر على البطاقة: «5 10 20 30 100 ml» — سطر واحد ══════════════════════
 * .size-nums بارتفاع سطر واحد: ما لا يتّسع ينزل إلى سطر ثانٍ مخفي، فيختفي
 * الحجم كاملاً (لا نصف رقم). «ml» خارجها فتبقى ظاهرة دائماً.
 */
.perfume-product-card .product-sizes-display:not(.is-apparel) {
    display: flex; flex-wrap: nowrap; justify-content: center; align-items: center;
    gap: 0 6px; direction: ltr; text-align: center; min-width: 0;
}
.perfume-product-card .product-sizes-display .size-nums {
    flex: 0 1 auto; min-width: 0;
    display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
    gap: 0 12px;
    height: 20px; overflow: hidden;     /* سطر واحد فقط */
}
.perfume-product-card .product-sizes-display .size-num {
    flex: none; font-size: 12.5px; font-weight: 700; line-height: 20px; color: var(--gp-text-muted);
}
.perfume-product-card .product-sizes-display .size-unit {
    flex: none; font-size: 11px; font-weight: 400; line-height: 20px; color: #a0a0a0;
}

/* ══════════════════════ نافذة السلة — تصميم Dyani ══════════════════════
 * لوحة جانبية بكامل الارتفاع: كامل الشاشة في الهاتف، 420px في الحاسوب.
 */
.cart-modal-overlay { justify-content: flex-end; align-items: stretch; }
.cart-modal-overlay .cart-app-container {
    width: 100%; max-width: 420px; height: 100%; max-height: none;
    border-radius: 0; padding: 0; margin: 0; box-shadow: -8px 0 30px rgba(0, 0, 0, .15);
    display: flex; flex-direction: column; overflow: hidden;
    font-family: 'Cairo', sans-serif; color: var(--gp-text);
    transform: translateX(100%);
}
.cart-modal-overlay .cart-app-container[dir="rtl"] { transform: translateX(-100%); box-shadow: 8px 0 30px rgba(0, 0, 0, .15); }
.cart-modal-overlay.is-visible .cart-app-container { transform: none; }
@media (max-width: 600px) { .cart-modal-overlay .cart-app-container { max-width: none; } }

.cart-app-container .dy-ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.cart-app-container .cart-header {
    flex: none; display: flex; align-items: center; justify-content: space-between;
    padding: 8px 6px 8px 16px; margin: 0; border-bottom: 1px solid #eaeaea;
}
.cart-app-container[dir="rtl"] .cart-header { padding: 8px 16px 8px 6px; }
.cart-app-container .page-title { margin: 0; font-size: 19px; font-weight: 900; color: var(--gp-text); }
.cart-app-container .cart-head-count { color: var(--gp-text-soft); font-weight: 700; }
.cart-app-container .icon-btn.cart-back-btn {
    width: 44px; height: 44px; border: 0; background: transparent; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: var(--gp-text); box-shadow: none;
}

.cart-app-container .cart-free-ship {
    flex: none; display: flex; align-items: center; gap: 10px;
    padding: 10px 16px; background: #e6f4ec; color: #14603a; font-weight: 700; font-size: 13px;
}
.cart-app-container .cart-free-ship .dy-ico { width: 18px; height: 18px; stroke-width: 2.4; }

.cart-app-container .cart-inner { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 0; }
.cart-app-container .cart-items-list { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 16px 0; }

.cart-app-container .cart-item.cart-item-card {
    display: flex; gap: 14px; align-items: flex-start;
    padding: 16px 0; margin: 0; border: 0; border-bottom: 1px solid #f0f0f0;
    border-radius: 0; background: transparent; box-shadow: none;
}
.cart-app-container .item-image {
    flex: none; width: 84px; height: 84px; min-height: 0;
    border-radius: 10px; background: #f3f3f3; object-fit: contain;
}
.cart-app-container .item-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cart-app-container .item-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.cart-app-container .item-name { margin: 0; font-weight: 700; font-size: 14px; line-height: 1.4; color: var(--gp-text); }
.cart-app-container .price-total { flex: none; font-weight: 900; font-size: 15px; color: var(--gp-text); white-space: nowrap; }
.cart-app-container .item-desc { margin: 0; font-size: 12.5px; color: var(--gp-text-soft); }
.cart-app-container .item-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 2px; }

.cart-app-container .quantity-control {
    display: flex; align-items: center; height: 44px;
    border: 1.5px solid #d5d5d5; border-radius: 999px; background: transparent; padding: 0;
}
.cart-app-container .quantity-control .qty-btn {
    width: 44px; height: 100%; border: 0; background: transparent; border-radius: 50%;
    font-size: 20px; font-weight: 700; color: var(--gp-text); line-height: 1; padding: 0;
}
.cart-app-container .quantity-control .qty-value { min-width: 22px; text-align: center; font-weight: 700; font-size: 14px; }

.cart-app-container .remove-btn {
    width: auto; height: auto; min-height: 44px; padding: 0 4px;
    border: 0; border-radius: 0; background: transparent; color: var(--gp-text-soft);
    font-weight: 700; font-size: 12.5px; text-decoration: underline; text-underline-offset: 3px;
}
.cart-app-container .remove-btn:hover { color: var(--gp-sale-text); background: transparent; }

/* الملخّص أسفل اللوحة */
.cart-app-container .cart-summary {
    flex: none; margin: 0; padding: 14px 16px 16px; border-top: 1px solid #eaeaea;
    background: var(--gp-surface); box-shadow: 0 -6px 16px rgba(0, 0, 0, .05);
}
.cart-app-container .summary-card { background: transparent; border: 0; border-radius: 0; padding: 0; box-shadow: none; }
.cart-app-container .summary-line { display: flex; justify-content: space-between; font-size: 14px; color: #444; margin: 0 0 6px; }
.cart-app-container .summary-line .summary-value { font-weight: 700; color: var(--gp-text); }
.cart-app-container .summary-line.shipping-line .summary-value { color: #14603a; }
.cart-app-container .summary-line.total-line {
    align-items: baseline; margin: 4px 0 12px; padding-top: 10px; border-top: 1px solid #f0f0f0;
}
.cart-app-container .summary-line.total-line .summary-label { font-weight: 900; font-size: 16px; color: var(--gp-text); }
.cart-app-container .summary-line.total-line .summary-value { font-weight: 900; font-size: 21px; }

.cart-app-container .promo-code-section { display: flex; gap: 8px; margin: 0 0 12px; }
.cart-app-container .promo-input { flex: 1; min-width: 0; height: 40px; border: 1.5px solid #e0e0e0; border-radius: 999px; padding: 0 14px; font-size: 13px; }
.cart-app-container .apply-btn { height: 40px; padding: 0 16px; border: 1.5px solid var(--gp-teal); border-radius: 999px; background: #fff; color: var(--gp-teal-dark); font-weight: 700; font-size: 13px; }

.cart-app-container .checkout-btn {
    width: 100%; min-height: 54px; display: flex; align-items: center; justify-content: center; gap: 10px;
    border: 0; border-radius: 999px; background: var(--gp-teal); color: #fff;
    font-weight: 700; font-size: 16px; text-transform: none; letter-spacing: 0; cursor: pointer;
}
.cart-app-container .checkout-btn:hover { background: var(--gp-teal-dark); }
.cart-app-container .checkout-btn .dy-ico { width: 18px; height: 18px; stroke-width: 2; }
.cart-app-container .cart-continue {
    width: 100%; min-height: 44px; margin-top: 4px; border: 0; background: transparent; cursor: pointer;
    color: var(--gp-teal-dark); font-weight: 700; font-size: 13.5px; text-decoration: underline; text-underline-offset: 4px;
}
.cart-app-container .cart-secure {
    display: flex; justify-content: center; align-items: center; gap: 10px;
    font-size: 12px; color: var(--gp-text-soft); margin-top: 2px;
}
.cart-app-container .cart-secure .cmi { color: var(--gp-sale-text); font-weight: 900; }
.cart-app-container .cart-secure .visa { color: #1a1f71; font-weight: 900; font-style: italic; font-size: 13px; }
.cart-app-container .cart-secure .mc { display: flex; }
.cart-app-container .cart-secure .mc i { width: 14px; height: 14px; border-radius: 50%; background: #eb001b; display: block; }
.cart-app-container .cart-secure .mc i + i { background: #f79e1b; margin-inline-start: -5px; }

/* السلة الفارغة */
.cart-app-container .cart-empty-state { padding: 60px 24px; text-align: center; }
.cart-app-container .cart-empty-btn {
    min-height: 50px; padding: 0 30px; border: 0; border-radius: 999px;
    background: var(--gp-teal); color: #fff; font-weight: 700; font-size: 15px;
}

/* السلة: الكمية و«إزالة» في سطر واحد، والشريط المخفي لا يأخذ مكاناً */
.cart-app-container .item-actions { flex-direction: row !important; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 8px; width: 100%; }
.cart-app-container .cart-free-ship[hidden] { display: none !important; }
.cart-app-container .summary-line.shipping-line .summary-value { color: var(--gp-text); }   /* الأخضر يوحي بالمجّاني */

/* شريط التوصيل المجاني في السلة: نصّ + شريط تقدّم حين يكون دون المبلغ */
.cart-app-container .cart-free-ship { flex-wrap: wrap; }
.cart-app-container .cart-free-ship .cfs-bar { display: none; }
.cart-app-container .cart-free-ship.is-progress { background: #fbf8f1; color: #7a5b1f; }
.cart-app-container .cart-free-ship.is-progress .dy-ico { display: none; }
.cart-app-container .cart-free-ship.is-progress .cfs-bar {
    display: block; flex: 1 1 100%; height: 6px; border-radius: 999px; background: #ece3cf; overflow: hidden;
}
.cart-app-container .cart-free-ship.is-progress .cfs-bar i { display: block; height: 100%; width: 0; background: var(--gp-brand); border-radius: 999px; transition: width .3s; }

/* ══ السلة في الحاسوب: إلغاء تخطيط العمودين القديم (80% + 2fr/1fr) داخل اللوحة الجانبية ══ */
@media (min-width: 900px) {
    .cart-modal-overlay .cart-app-container {
        height: 100%; max-height: none; margin: 0; border-radius: 0;
    }
    .cart-modal-overlay .cart-app-container .cart-header { width: auto; margin: 0; padding: 8px 6px 8px 16px; border-bottom: 1px solid #eaeaea; }
    .cart-modal-overlay .cart-app-container[dir="rtl"] .cart-header { padding: 8px 16px 8px 6px; }
    .cart-modal-overlay .cart-app-container .page-title { font-size: 19px; font-weight: 900; }
    .cart-modal-overlay .cart-app-container .cart-inner {
        width: 100%; margin: 0; display: flex; flex-direction: column; gap: 0; padding: 0; overflow: hidden;
    }
    .cart-modal-overlay .cart-app-container .cart-items-list { padding: 4px 16px 0; }
    .cart-modal-overlay .cart-app-container .cart-summary {
        position: static; align-self: stretch; width: auto; margin: 0;
        padding: 14px 16px 16px; border-top: 1px solid #eaeaea;
    }
    .cart-modal-overlay .cart-app-container .item-image { width: 84px; min-height: 0; }
}

/* ══ السلة في الهاتف: أقل مساحة ممكنة للملخّص — بلا رمز خصم ولا «متابعة التسوّق» ══ */
@media (max-width: 600px) {
    .cart-app-container .promo-code-section,
    .cart-app-container .cart-continue { display: none !important; }
    .cart-app-container .cart-summary { padding: 8px 14px calc(10px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -4px 12px rgba(0, 0, 0, .06); }
    .cart-app-container .summary-line { font-size: 13px; margin: 0 0 2px; line-height: 1.5; }
    .cart-app-container .summary-line.total-line { margin: 4px 0 8px; padding-top: 6px; }
    .cart-app-container .summary-line.total-line .summary-label { font-size: 14.5px; }
    .cart-app-container .summary-line.total-line .summary-value { font-size: 18px; }
    .cart-app-container .checkout-btn { min-height: 48px; font-size: 15px; }
    .cart-app-container .cart-secure { margin-top: 6px; font-size: 11px; }
}

/* رسالة الخطأ («اختر كل الخيارات») في سطر مستقلّ تحت الأزرار — كانت تدخل صفّ الأزرار فتضغطها */
.cart-buttons-wrapper { flex-wrap: wrap; }
.cart-buttons-wrapper > .gp-feedback { flex: 1 1 100%; order: 10; margin: 4px 0 0; }

/* ══════════════════════ صفحة الدفع (Checkout) — تصميم Dyani ══════════════════════ */
body.woocommerce-checkout { background: #f8f9fa; }
body.woocommerce-checkout .site-content,
body.woocommerce-checkout .inside-article,
body.woocommerce-checkout .site-main { background: transparent; }
body.woocommerce-checkout .woocommerce { max-width: 1120px; margin: 0 auto; }
.cc-checkout-header, .woocommerce-checkout .woocommerce-form-coupon-toggle, .woocommerce-checkout .checkout_coupon { display: none !important; }

/* الخطوات */
.dy-co-steps {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px;
    padding: 16px 0 20px; margin: 0 0 4px; border-bottom: 1px solid #e5e5e5;
}
.dy-co-steps ol { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 13px; color: #666; }
.dy-co-steps li { display: flex; align-items: center; gap: 8px; margin: 0; }
.dy-co-step {
    width: 26px; height: 26px; box-sizing: border-box; border-radius: 50%; border: 1.5px solid #999;
    display: flex; align-items: center; justify-content: center; font-size: 13px;
}
.dy-co-step svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.dy-co-steps li.is-done { color: #14603a; }
.dy-co-steps li.is-done .dy-co-step { background: #14603a; border-color: #14603a; color: #fff; }
.dy-co-steps li.is-current { color: var(--gp-teal-dark); }
.dy-co-steps li.is-current .dy-co-step { background: var(--gp-teal); border-color: var(--gp-teal); color: #fff; }
.dy-co-steps .dy-co-line { width: 28px; height: 2px; background: #d5d5d5; }
.dy-co-steps .dy-co-line.is-done { background: var(--gp-teal); }
.dy-co-secure { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; color: #444; }
.dy-co-secure svg { width: 18px; height: 18px; fill: none; stroke: var(--gp-teal); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* البطاقات */
form.checkout.woocommerce-checkout { gap: 24px; margin-top: 24px; }
.woocommerce-checkout #customer_details {
    background: #fff; border: 1px solid #eaeaea; border-radius: 14px; padding: 22px 24px 24px; align-self: start;
}
.woocommerce-checkout #customer_details .col-1, .woocommerce-checkout #customer_details .col-2 { width: 100%; float: none; max-width: none; padding: 0; }
.woocommerce-checkout .dy-co-h {
    margin: 0 0 16px; font-size: 18px; font-weight: 900; color: var(--gp-text); text-transform: none; letter-spacing: 0;
    display: flex; align-items: center; gap: 10px;
}
.woocommerce-checkout .dy-co-h::before { content: ""; width: 9px; height: 9px; background: var(--gp-brand); transform: rotate(45deg); flex: none; }
.woocommerce-checkout .dy-co-h--addr { margin-top: 26px; padding-top: 22px; border-top: 1px solid #f0f0f0; grid-column: 1 / -1; }
.woocommerce-checkout .dy-co-note { grid-column: 1 / -1; margin: -2px 0 0; font-size: 12.5px; color: var(--gp-text-soft); }

.woocommerce-checkout .woocommerce-billing-fields__field-wrapper {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 16px;
}
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper .form-row { width: auto; float: none; margin: 0; padding: 0; }
.woocommerce-checkout #billing_city_field, .woocommerce-checkout #billing_address_1_field { grid-column: 1 / -1; }
.woocommerce-checkout .woocommerce-billing-fields label { font-weight: 700; font-size: 13.5px; color: #333; margin-bottom: 6px; display: block; }
.woocommerce-checkout .woocommerce-billing-fields input.input-text,
.woocommerce-checkout .woocommerce-billing-fields select {
    width: 100%; height: 50px; box-sizing: border-box; padding: 0 14px;
    border: 1.5px solid #cfcfcf; border-radius: 10px; background: #fff;
    font-family: inherit; font-size: 16px; color: var(--gp-text); box-shadow: none;
}
.woocommerce-checkout .woocommerce-billing-fields input.input-text:focus,
.woocommerce-checkout .woocommerce-billing-fields select:focus { outline: 0; border-color: var(--gp-teal); box-shadow: 0 0 0 3px rgba(27, 107, 115, .22); }
.woocommerce-checkout .woocommerce-billing-fields .required { color: var(--gp-sale-text); text-decoration: none; }

/* الملخّص */
.woocommerce-checkout .cc-order-title {
    background: #fff; border: 1px solid #eaeaea; border-bottom: 0; border-radius: 14px 14px 0 0;
    margin: 0; padding: 22px 22px 6px; font-size: 18px; font-weight: 900; color: var(--gp-text);
    text-transform: none; letter-spacing: 0; text-align: start;
}
.woocommerce-checkout #order_review.woocommerce-checkout-review-order {
    background: #fff; border: 1px solid #eaeaea; border-top: 0; border-radius: 0 0 14px 14px;
    padding: 0 22px 24px; margin: 0; box-shadow: none;
}
.woocommerce-checkout #order_review::before, .woocommerce-checkout #order_review::after { display: none !important; }
@media (min-width: 900px) {
    .woocommerce-checkout .cc-order-title, .woocommerce-checkout #order_review { position: sticky; }
}

.woocommerce-checkout .woocommerce-checkout-review-order-table { width: 100%; border: 0; margin: 0; background: transparent; }
.woocommerce-checkout .woocommerce-checkout-review-order-table thead { display: none; }
.woocommerce-checkout .woocommerce-checkout-review-order-table th,
.woocommerce-checkout .woocommerce-checkout-review-order-table td { border: 0; background: transparent; padding: 0; }
.woocommerce-checkout .woocommerce-checkout-review-order-table .cart_item td { padding: 12px 0; border-bottom: 1px solid #f0f0f0; vertical-align: middle; }
.woocommerce-checkout .cart_item .product-name { display: flex; align-items: center; gap: 12px; }
.woocommerce-checkout .dy-co-thumb { flex: none; position: relative; width: 58px; height: 58px; border-radius: 8px; background: #f3f3f3; }
.woocommerce-checkout .dy-co-thumb img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; display: block; }
.woocommerce-checkout .dy-co-thumb b {
    position: absolute; top: -7px; inset-inline-end: -7px; min-width: 22px; height: 22px; padding: 0 5px; box-sizing: border-box;
    border-radius: 999px; background: #444; color: #fff; font-size: 12px; display: flex; align-items: center; justify-content: center;
}
.woocommerce-checkout .dy-co-info { min-width: 0; display: flex; flex-direction: column; }
.woocommerce-checkout .dy-co-name { font-weight: 700; font-size: 13.5px; color: var(--gp-text); }
.woocommerce-checkout .dy-co-info .variation, .woocommerce-checkout .dy-co-info dl { font-size: 12px; color: var(--gp-text-soft); margin: 0; }
.woocommerce-checkout .cart_item .product-total { text-align: end; font-weight: 700; font-size: 14px; white-space: nowrap; }
.woocommerce-checkout .dy-co-edit td { padding: 4px 0 6px !important; }
.woocommerce-checkout .dy-co-edit a {
    display: inline-flex; align-items: center; min-height: 40px; color: var(--gp-teal-dark);
    font-weight: 700; font-size: 13px; text-decoration: underline; text-underline-offset: 4px;
}
.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot th,
.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot td { padding: 4px 0; font-size: 14px; color: #444; font-weight: 400; text-align: start; }
.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot td { text-align: end; font-weight: 700; color: var(--gp-text); }
.woocommerce-checkout .dy-co-ship.is-free td { color: #14603a; }
.woocommerce-checkout .woocommerce-checkout-review-order-table .order-total th,
.woocommerce-checkout .woocommerce-checkout-review-order-table .order-total td { padding-top: 12px; border-top: 1px solid #eaeaea; vertical-align: baseline; }
.woocommerce-checkout .woocommerce-checkout-review-order-table .order-total th { font-weight: 900; font-size: 16px; color: var(--gp-text); }
.woocommerce-checkout .woocommerce-checkout-review-order-table .order-total td,
.woocommerce-checkout .woocommerce-checkout-review-order-table .order-total .amount { font-weight: 900; font-size: 23px; color: var(--gp-text) !important; }

/* طرق الدفع: بطاقات */
.woocommerce-checkout #payment { background: transparent; border: 0; border-radius: 0; margin-top: 18px; }
.woocommerce-checkout #payment ul.payment_methods { padding: 0; margin: 0; border: 0; display: flex; flex-direction: column; gap: 10px; }
.woocommerce-checkout #payment ul.payment_methods li {
    list-style: none; margin: 0; padding: 12px 16px; border: 1.5px solid #cfcfcf; border-radius: 12px; background: #fff; cursor: pointer;
}
.woocommerce-checkout #payment ul.payment_methods li:has(input:checked) { border-color: var(--gp-teal); background: var(--gp-teal-tint); }
.woocommerce-checkout #payment ul.payment_methods li > input { width: 20px; height: 20px; accent-color: var(--gp-teal); vertical-align: middle; margin: 0 0 0 0; margin-inline-end: 10px; }
.woocommerce-checkout #payment ul.payment_methods li > label { font-weight: 700; font-size: 14.5px; color: var(--gp-text); cursor: pointer; display: inline; }
.woocommerce-checkout #payment .payment_box {
    background: transparent; margin: 6px 0 0; padding: 0; padding-inline-start: 30px; font-size: 12.5px; color: var(--gp-text-soft); box-shadow: none;
}
.woocommerce-checkout #payment .payment_box::before { display: none; }

/* الزرّ والموافقة والثقة */
.woocommerce-checkout #payment .place-order { padding: 0; margin: 16px 0 0; }
.woocommerce-checkout .woocommerce-privacy-policy-text p { margin: 0 0 12px; font-size: 12px; line-height: 1.7; color: var(--gp-text-soft); text-align: center; }
.woocommerce-checkout .woocommerce-privacy-policy-text a { color: var(--gp-teal-dark); text-decoration: underline; }
.woocommerce-checkout #place_order.btn-buy {
    width: 100%; min-height: 56px; border: 0; border-radius: 999px; background: var(--gp-teal) !important; color: #fff !important;
    font-family: inherit; font-weight: 700; font-size: 16px; text-transform: none; letter-spacing: 0;
    display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; box-shadow: none;
}
.woocommerce-checkout #place_order.btn-buy:hover { background: var(--gp-teal-dark) !important; }
.woocommerce-checkout #place_order svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dy-co-trust { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #f0f0f0; font-size: 13px; color: #333; }
.dy-co-trust > * { display: flex; align-items: center; gap: 10px; min-height: 32px; color: #333; text-decoration: none; }
.dy-co-trust svg { width: 18px; height: 18px; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.dy-co-trust svg.is-gold { stroke: var(--gp-brand); }
.dy-co-trust svg.is-wa { stroke: #0e7a41; }
.dy-co-trust b { color: #0e7a41; }

@media (max-width: 899px) {
    .dy-co-steps { justify-content: center; padding: 12px 0 14px; }
    .dy-co-steps ol { order: 3; width: 100%; justify-content: center; gap: 8px; font-size: 12px; }
    .dy-co-steps .dy-co-line { width: 14px; }
    .woocommerce-checkout #customer_details { padding: 18px 16px 20px; }
    .woocommerce-checkout .cc-order-title { padding: 18px 16px 6px; }
    .woocommerce-checkout #order_review.woocommerce-checkout-review-order { padding: 0 16px 20px; }
}

/* ⚠️ checkout.css كان يخفي سطر الشحن («المتجر يحتسبه لاحقاً») — بينما الإجمالي يتضمّنه. يظهر الآن دائماً */
.woocommerce-checkout table.shop_table tfoot .woocommerce-shipping-totals.dy-co-ship { display: table-row; }
.woocommerce-checkout .cart_item .product-quantity { display: none; }   /* الكمية في الشارة على الصورة */

/* الحقول: زوايا مستديرة كما في التصميم (قاعدة قديمة تغلب بدون !important) */
.woocommerce-checkout .woocommerce-billing-fields input.input-text,
.woocommerce-checkout .woocommerce-billing-fields select,
.woocommerce-checkout .woocommerce-billing-fields .select2-selection {
    border-radius: 10px !important; border: 1.5px solid #cfcfcf !important; height: 50px !important; background-color: #fff !important;
}

/* القفل في زرّ التأكيد: ووكومرس يعيد كتابة نصّ الزرّ عند تغيير طريقة الدفع فيمحو أيّ SVG داخله */
.woocommerce-checkout #place_order svg { display: none; }
.woocommerce-checkout #place_order.btn-buy::before {
    content: ""; width: 18px; height: 18px; flex: none; background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='9' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 018 0v3'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='9' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 018 0v3'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ══════════════════════ صفحة السلة (/cart/) — تصميم Dyani ══════════════════════ */
body.woocommerce-cart { background: #f8f9fa; }
body.woocommerce-cart .site-content, body.woocommerce-cart .inside-article, body.woocommerce-cart .site-main { background: transparent; }
body.woocommerce-cart .entry-header { display: none; }
body.woocommerce-cart .woocommerce { max-width: 1120px; margin: 0 auto; }

.dy-cp-cont { display: inline-flex; align-items: center; min-height: 44px; color: var(--gp-teal-dark); font-weight: 700; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.dy-cp-title { margin: 22px 0 18px; font-size: 26px; font-weight: 900; color: var(--gp-text); }
.dy-cp-title span { color: var(--gp-text-soft); font-weight: 700; font-size: 20px; }

.dy-cp { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px; }
.dy-cp-main { flex: 1 1 560px; min-width: 0; margin: 0; }
.dy-cp-side { flex: 1 1 320px; max-width: 400px; min-width: 0; float: none; width: auto; position: sticky; top: 20px; }
.dy-cp-card, .dy-cp-sum { background: #fff; border: 1px solid #eaeaea; border-radius: 14px; }
.dy-cp-card { padding: 6px 24px; }

.dy-cp-head, .dy-cp-row { display: grid; grid-template-columns: minmax(0, 1fr) 150px 120px 56px; gap: 16px; align-items: center; }
.dy-cp-head { padding: 12px 0; border-bottom: 1px solid #eaeaea; font-weight: 700; font-size: 12.5px; color: var(--gp-text-soft); text-transform: uppercase; letter-spacing: .5px; }
.dy-cp-head span:nth-child(2) { text-align: center; }
.dy-cp-head span:nth-child(3) { text-align: end; }
.dy-cp-row { padding: 18px 0; border-bottom: 1px solid #f0f0f0; }

.dy-cp-prod { display: flex; align-items: center; gap: 16px; min-width: 0; }
.dy-cp-thumb { flex: none; width: 92px; height: 92px; border-radius: 10px; background: #f3f3f3; overflow: hidden; }
.dy-cp-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.dy-cp-info { min-width: 0; }
.dy-cp-name { font-weight: 700; font-size: 15.5px; color: var(--gp-text); text-decoration: none; }
.dy-cp-name:hover { color: var(--gp-teal-dark); }
.dy-cp-var, .dy-cp-var dl, .dy-cp-var dd, .dy-cp-var dt, .dy-cp-var p { font-size: 13px; color: var(--gp-text-soft); margin: 2px 0 0; display: inline; }
.dy-cp-var:empty { display: none; }
.dy-cp-unit { font-size: 13px; color: var(--gp-text-soft); margin-top: 2px; }
.dy-cp-unit b { font-weight: 700; color: #333; }

.dy-cp-qty { display: flex; justify-content: center; }
.dy-q { display: flex; align-items: center; height: 44px; border: 1.5px solid #d5d5d5; border-radius: 999px; }
.dy-q-btn { width: 44px; height: 100%; border: 0; background: transparent; font-size: 20px; font-weight: 700; color: var(--gp-text); line-height: 1; cursor: pointer; padding: 0; }
.dy-q input.qty {
    width: 34px; height: 100%; border: 0 !important; background: transparent; text-align: center;
    font-weight: 700; font-size: 15px; padding: 0; -moz-appearance: textfield; box-shadow: none !important;
}
.dy-q input.qty::-webkit-outer-spin-button, .dy-q input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.dy-cp-total { text-align: end; font-weight: 900; font-size: 16.5px; color: var(--gp-text); white-space: nowrap; }
.dy-cp-rm { display: flex; justify-content: flex-end; }
.dy-cp-rm a.remove {
    width: 44px !important; height: 44px !important; border-radius: 50%; display: flex !important; align-items: center; justify-content: center;
    color: var(--gp-text-soft) !important; background: transparent !important; font-size: 0 !important; text-decoration: none;
}
.dy-cp-rm a.remove:hover { color: var(--gp-sale-text) !important; background: #fdf4f1 !important; }
.dy-cp-rm svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dy-cp-rm-t { display: none; }

.dy-cp-ship { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 0; font-weight: 700; font-size: 13.5px; }
.dy-cp-ship.is-free { color: #14603a; }
.dy-cp-ship svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dy-cp-ship.is-progress { color: #7a5b1f; }
.dy-cp-bar { flex: 1 1 100%; height: 6px; border-radius: 999px; background: #ece3cf; overflow: hidden; }
.dy-cp-bar i { display: block; height: 100%; background: var(--gp-brand); border-radius: 999px; }

.dy-cp-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 0 16px; border-top: 1px solid #f0f0f0; }
.dy-cp-coupon { display: flex; gap: 8px; flex: 1; max-width: 360px; }
.dy-cp-coupon input { flex: 1; min-width: 0; height: 42px; border: 1.5px solid #e0e0e0; border-radius: 999px; padding: 0 14px; font-size: 13px; }
.dy-cp-coupon .button { height: 42px; padding: 0 16px; border: 1.5px solid var(--gp-teal); border-radius: 999px; background: #fff; color: var(--gp-teal-dark); font-weight: 700; font-size: 13px; }
.dy-cp-update { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); padding: 0 !important; border: 0 !important; }

.dy-cp-sum { padding: 22px 22px 24px; }
.dy-cp-sum h2 { margin: 0 0 14px; font-size: 18px; font-weight: 900; color: var(--gp-text); }
.dy-cp-line { display: flex; justify-content: space-between; gap: 10px; font-size: 14.5px; color: #444; margin-bottom: 8px; }
.dy-cp-line b { font-weight: 700; color: var(--gp-text); }
.dy-cp-line.is-free b { color: #14603a; }
.dy-cp-line.is-total { align-items: baseline; padding-top: 14px; margin: 14px 0 18px; border-top: 1px solid #eaeaea; }
.dy-cp-line.is-total span { font-weight: 900; font-size: 16px; color: var(--gp-text); }
.dy-cp-line.is-total b, .dy-cp-line.is-total .amount { font-weight: 900; font-size: 24px; }
.dy-cp-order {
    display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; border-radius: 999px;
    background: var(--gp-teal); color: #fff !important; font-weight: 700; font-size: 16px; text-decoration: none;
}
.dy-cp-order:hover { background: var(--gp-teal-dark); }
.dy-cp-order svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dy-cp-secure { display: flex; justify-content: center; align-items: center; gap: 10px; font-size: 12.5px; color: var(--gp-text-soft); margin-top: 14px; }
.dy-cp-secure .cmi { color: var(--gp-sale-text); font-weight: 900; }
.dy-cp-secure .visa { color: #1a1f71; font-weight: 900; font-style: italic; font-size: 14px; }
.dy-cp-secure .mc { display: flex; }
.dy-cp-secure .mc i { width: 16px; height: 16px; border-radius: 50%; background: #eb001b; display: block; }
.dy-cp-secure .mc i + i { background: #f79e1b; margin-inline-start: -6px; }

.dy-cp-empty { background: #fff; border: 1px solid #eaeaea; border-radius: 14px; padding: 64px 24px; margin: 28px 0; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.dy-cp-empty svg { width: 64px; height: 64px; fill: none; stroke: var(--gp-brand); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.dy-cp-empty h1 { margin: 0; font-weight: 900; font-size: 20px; color: var(--gp-text); }
.dy-cp-empty p { margin: 0; font-size: 14.5px; color: var(--gp-text-soft); }
.dy-cp-empty .dy-cp-order { min-height: 50px; padding: 0 32px; font-size: 15px; }

/* الهاتف: كل منتج بطاقة — الصورة والمعلومات، ثم الكمية والمجموع وزرّ الحذف في سطر */
@media (max-width: 768px) {
    .dy-cp-steps .dy-cp-cont { display: none; }
    .dy-cp-title { margin: 16px 0 12px; font-size: 21px; }
    .dy-cp-title span { font-size: 16px; }
    .dy-cp-card { padding: 4px 14px; }
    .dy-cp-head { display: none; }
    .dy-cp-row { grid-template-columns: auto 1fr auto; grid-template-areas: "prod prod prod" "qty total rm"; gap: 10px 12px; padding: 14px 0; }
    .dy-cp-prod { grid-area: prod; gap: 12px; }
    .dy-cp-thumb { width: 72px; height: 72px; }
    .dy-cp-name { font-size: 14px; }
    .dy-cp-qty { grid-area: qty; justify-content: flex-start; }
    .dy-cp-total { grid-area: total; font-size: 15px; }
    .dy-cp-rm { grid-area: rm; }
    .dy-cp-actions { flex-wrap: wrap; }
    .dy-cp-coupon { max-width: none; }
    .dy-cp-side { flex-basis: 100%; max-width: none; position: static; }
    .dy-cp-sum { padding: 18px 16px 20px; }
}
.dy-cp { margin-bottom: 56px; }   /* مسافة قبل شريط الفوتر الزخرفي */
/* رسائل ووكومرس في صفحتي السلة والدفع */
body.woocommerce-cart .woocommerce-message, body.woocommerce-cart .woocommerce-info, body.woocommerce-cart .woocommerce-error,
body.woocommerce-checkout .woocommerce-message, body.woocommerce-checkout .woocommerce-error {
    margin: 14px 0 0; padding: 12px 16px; border: 0; border-radius: 10px; font-size: 13.5px; font-weight: 700; list-style: none;
    background: #e6f4ec; color: #14603a;
}
body.woocommerce-cart .woocommerce-error, body.woocommerce-checkout .woocommerce-error { background: #fdf4f1; color: var(--gp-sale-text); }
body.woocommerce-cart .woocommerce-message::before, body.woocommerce-cart .woocommerce-error::before,
body.woocommerce-checkout .woocommerce-message::before, body.woocommerce-checkout .woocommerce-error::before { display: none; }


/* ═══════════════════════════════════════════════════════════════
 *  صور المنتجات تذوب في الخلفية (بلا إزالة خلفية على الخادم)
 *  multiply: الأبيض يأخذ لون الإطار تحته فيختفي، والمنتج يبقى كما هو.
 * ═══════════════════════════════════════════════════════════════ */

/* السلايدر الكبير: خلفية التصميم (#F7F7F7) على الشريحة نفسها — الدمج يحتاج لوناً تحته
   داخل نفس الطبقة، والشريط (transform) طبقة مستقلّة. */
.aps .aps-view, .aps .aps-slide { background: #f7f7f7; }
.aps .aps-bottle {
    filter: none !important;              /* ظلّ drop-shadow كان يرسم مربّعاً حول الصورة كلها */
    mix-blend-mode: multiply;
    /* الحوافّ تذوب: صور بخلفية رمادية أو متدرّجة لا تظهر مربّعات */
    -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 64%, transparent 100%);
            mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 64%, transparent 100%);
}
.aps .aps-full img { mix-blend-mode: normal; -webkit-mask-image: none; mask-image: none; }

/* البطاقات، صفحة المنتج، النافذة السريعة: دمج فقط (بلا قصّ للحوافّ) */
.perfume-image-wrapper { background: #f3f3f3; }
.perfume-product-image,
.sp-main-img,
.main-image-container img { mix-blend-mode: multiply; }
/* الجانبيّتان: opacity/filter على الحاوية تعزل الصورة فيبطل الدمج — نُعتّم الصورة نفسها */
.aps .aps-side { opacity: 1; filter: none; }
.aps .aps-side .aps-bottle, .aps .aps-side .aps-side-price { opacity: .62; transition: opacity .25s; }
.aps .aps-side:hover .aps-bottle, .aps .aps-side:hover .aps-side-price { opacity: 1; }
