/* =========================================================
   WOOW — PRODUCT PAGE
   Celia Theme
   ========================================================= */


/* =========================================================
   1) OPTIONAL ALTERATIONS
   ========================================================= */

.woow-pdp .woow-alt,
.woow-pdp .woow-trust {
    box-sizing: border-box;
    direction: rtl;
    text-align: right;
    font-family: inherit;
}

.woow-pdp .woow-alt {
    margin: 12px 0;
    padding: 12px 14px;
    background: #ffffff;
    border: 1px dashed #000000;
    border-radius: 10px;
}

.woow-pdp .woow-alt__t {
    margin: 0 0 6px;
    color: #000000;
    font-size: 14px;
    font-weight: 700;
}

.woow-pdp .woow-alt ul {
    margin: 0 0 6px;
    padding: 0 18px 0 0;
    list-style: disc;
}

.woow-pdp .woow-alt li {
    color: #000000;
    font-size: 13.5px;
    line-height: 1.8;
}

.woow-pdp .woow-alt__h {
    margin: 0;
    color: #4a4a4a;
    font-size: 12.5px;
    line-height: 1.7;
}

.woow-pdp .woow-alt__h a {
    color: #000000;
    text-decoration: underline;
}


/* =========================================================
   2) TRUST STRIP
   ========================================================= */

.woow-pdp .woow-trust {
    margin: 12px 0 0;
    padding: 0;
    overflow: hidden;

    border: 1px solid #e5e5e5;
    border-radius: 10px;

    list-style: none;
}

.woow-pdp .woow-trust li + li {
    border-top: 1px solid #e5e5e5;
}

.woow-pdp .woow-trust a {
    display: block;

    padding: 10px 14px;

    color: #000000;
    text-decoration: none;
}

.woow-pdp .woow-trust b {
    display: block;

    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.5;
}

.woow-pdp .woow-trust span {
    display: block;

    color: #4a4a4a;

    font-size: 12.5px;
    line-height: 1.6;
}

.woow-pdp .woow-trust a:hover b {
    text-decoration: underline;
}


/* =========================================================
   3) MOBILE STICKY PURCHASE BAR
   ========================================================= */

.woow-sticky {
    display: none;
}

@media (max-width: 991px) {

    .woow-sticky {
        position: fixed;
        inset-inline: 0;
        bottom: 0;
        z-index: 60;

        display: flex;
        align-items: center;

        gap: 12px;

        padding:
            10px 16px
            calc(10px + env(safe-area-inset-bottom));

        box-sizing: border-box;

        direction: rtl;

        background: #ffffff;
        border-top: 1px solid #e5e5e5;

        transform: translateY(110%);
        transition: transform 0.25s ease;
    }

    .woow-sticky.is-on {
        transform: translateY(0);
    }

    .woow-sticky__n {
        flex: 1;

        min-width: 0;

        overflow: hidden;

        color: #000000;

        font-size: 14px;
        font-weight: 700;

        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .woow-sticky__b {
        flex: none;

        height: 46px;

        padding: 0 22px;

        border: 0;
        border-radius: 10px;

        background: #000000;
        color: #ffffff;

        font: inherit;
        font-size: 14.5px;
        font-weight: 700;

        cursor: pointer;
    }

    html.woow-sticky-on body {
        padding-bottom: 72px;
    }
}


/* =========================================================
   4) WOOW SIZE CALCULATOR — CELIA
   ========================================================= */

#woowSizeCalculator {
    width: 100%;
}

.woow-size-calculator-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;

    gap: 14px;

    direction: rtl;
}

.woow-size-calculator-info {
    display: flex;
    align-items: center;

    min-width: 0;

    gap: 10px;
}


/* Icon */

.woow-size-calculator-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 24px;

    width: 24px;
    height: 24px;

    color: var(--color-primary);
}

.woow-size-calculator-icon svg {
    width: 22px;
    height: 22px;

    fill: none;
    stroke: currentColor;

    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* Text */

.woow-size-calculator-title {
    color: #111111;

    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
}

.woow-size-calculator-sub {
    margin-top: 2px;

    color: #777777;

    font-size: 11px;
    line-height: 1.5;
}


/* Open button */

.woow-size-calculator-btn {
    appearance: none;
    -webkit-appearance: none;

    flex-shrink: 0;

    margin: 0 !important;
    padding: 8px 11px !important;

    border: 1px solid var(--color-primary) !important;
    border-radius: 8px !important;

    background: transparent !important;

    color: var(--color-primary) !important;
    -webkit-text-fill-color: var(--color-primary) !important;

    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;

    cursor: pointer;

    box-shadow: none !important;
}

.woow-size-calculator-btn:hover {
    background: var(--color-primary) !important;

    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}


/* =========================================================
   5) SIZE CALCULATOR MODAL
   ========================================================= */

.woow-size-modal,
.woow-size-modal * {
    box-sizing: border-box;
}

.woow-size-modal {
    position: fixed;
    inset: 0;
    z-index: 99999999;

    display: none;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    padding: 20px;

    direction: rtl;

    background: rgba(0, 0, 0, 0.58);
}

.woow-size-modal.is-open {
    display: flex;
}

html.woow-size-modal-open,
html.woow-size-modal-open body {
    overflow: hidden !important;
}


/* Modal Card */

.woow-size-modal-card {
    position: relative;

    width: 100%;
    max-width: 500px;
    max-height: 90vh;

    overflow-y: auto;
    overflow-x: hidden;

    padding: 34px 30px 28px;

    background: #ffffff;
    color: #111111;

    border-radius: 16px;

    box-shadow:
        0 20px 60px
        rgba(0, 0, 0, 0.22);

    animation:
        woowSizeModalShow
        0.2s ease both;
}

@keyframes woowSizeModalShow {

    from {
        opacity: 0;
        transform: translateY(10px) scale(0.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* Close Button */

.woow-size-modal-close {
    appearance: none !important;
    -webkit-appearance: none !important;

    position: absolute;
    top: 12px;
    left: 14px;

    width: 38px;
    height: 38px;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;

    background: transparent !important;

    color: #111111 !important;
    -webkit-text-fill-color: #111111 !important;

    font-family: Arial, sans-serif !important;
    font-size: 27px !important;
    font-weight: 400 !important;
    line-height: 1 !important;

    cursor: pointer;

    box-shadow: none !important;
}


/* Modal Content */

.woow-size-modal-brand {
    margin-bottom: 6px;

    color: var(--color-primary);

    text-align: center;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 1px;
}

.woow-size-modal-title {
    margin: 0 !important;

    color: #111111 !important;

    text-align: center;

    font-size: 24px !important;
    font-weight: 800 !important;
    line-height: 1.45 !important;
}

.woow-size-modal-desc {
    max-width: 390px;

    margin: 8px auto 0 !important;

    color: #777777;

    text-align: center;

    font-size: 13px;
    line-height: 1.8;
}

.woow-size-divider {
    width: 100%;
    height: 1px;

    margin: 22px 0;

    background: #eeeeee;
}


/* =========================================================
   6) SIZE INPUTS
   ========================================================= */

.woow-size-fields {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    width: 100%;

    gap: 12px;
}

.woow-size-field {
    display: block;

    min-width: 0;

    margin: 0 !important;
}

.woow-size-field > span {
    display: block;

    margin-bottom: 7px;

    color: #555555;

    font-size: 13px;
    font-weight: 700;
}

.woow-size-input-wrap {
    position: relative;

    width: 100%;
}

.woow-size-input-wrap input {
    appearance: none;
    -webkit-appearance: none;

    display: block;

    width: 100% !important;
    height: 52px !important;
    min-height: 52px !important;

    margin: 0 !important;
    padding: 0 13px 0 46px !important;

    border: 1px solid #dedede !important;
    border-radius: 10px !important;

    outline: 0 !important;

    background: #ffffff !important;

    color: #111111 !important;
    -webkit-text-fill-color: #111111 !important;

    text-align: right;

    font-size: 15px !important;
    font-weight: 600 !important;

    box-shadow: none !important;
}

.woow-size-input-wrap input:focus {
    border-color: var(--color-primary) !important;

    outline: 0 !important;
    box-shadow: none !important;
}

.woow-size-input-wrap b {
    position: absolute;
    top: 50%;
    left: 13px;

    transform: translateY(-50%);

    color: #999999;

    font-size: 11px;
    font-weight: 600;

    pointer-events: none;
}


/* =========================================================
   7) CALCULATE BUTTON
   ========================================================= */

.woow-size-calculate {
    appearance: none !important;
    -webkit-appearance: none !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;
    height: 52px !important;
    min-height: 52px !important;

    margin: 18px 0 0 !important;
    padding: 0 20px !important;

    border: 0 !important;
    border-radius: 10px !important;

    background: var(--color-primary) !important;

    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;

    font-size: 14px !important;
    font-weight: 800 !important;

    cursor: pointer;

    box-shadow: none !important;
}

.woow-size-calculate:hover,
.woow-size-calculate:focus,
.woow-size-calculate:active {
    opacity: 0.92;
}


/* =========================================================
   8) ERROR
   ========================================================= */

.woow-size-error {
    display: none;

    margin-top: 12px;

    color: #b42318;

    text-align: center;

    font-size: 12px;
    font-weight: 600;
    line-height: 1.6;
}


/* =========================================================
   9) RESULT
   ========================================================= */

.woow-size-result {
    display: none;

    margin-top: 18px;
    padding: 20px 15px;

    background: #f8f7f8;

    border-top: 3px solid var(--color-primary);
    border-radius: 10px;

    text-align: center;
}

.woow-size-result > span {
    display: block;

    color: #666666;

    font-size: 12px;
    font-weight: 700;
}

.woow-size-result strong {
    display: block;

    margin: 5px 0;

    color: var(--color-primary) !important;

    font-size: 46px !important;
    font-weight: 900 !important;
    line-height: 1.1 !important;
}

.woow-size-result p {
    margin: 5px auto 0 !important;

    color: #777777;

    font-size: 11px;
    line-height: 1.7;
}


/* =========================================================
   10) MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .woow-size-calculator-inner {
        gap: 8px;
    }

    .woow-size-calculator-info {
        gap: 8px;
    }

    .woow-size-calculator-icon {
        flex-basis: 21px;

        width: 21px;
        height: 21px;
    }

    .woow-size-calculator-icon svg {
        width: 20px;
        height: 20px;
    }

    .woow-size-calculator-title {
        font-size: 13px;
    }

    .woow-size-calculator-sub {
        font-size: 10px;
    }

    .woow-size-calculator-btn {
        padding: 7px 9px !important;

        font-size: 11px !important;
    }


    /* Modal Bottom Sheet */

    .woow-size-modal {
        align-items: flex-end;

        padding: 0;
    }

    .woow-size-modal-card {
        max-width: none;
        max-height: 92vh;

        padding: 30px 17px 24px;

        border-radius: 20px 20px 0 0;
    }

    .woow-size-modal-title {
        font-size: 21px !important;
    }

    .woow-size-modal-desc {
        font-size: 12px;
    }

    .woow-size-fields {
        gap: 9px;
    }

    .woow-size-input-wrap input {
        height: 50px !important;
        min-height: 50px !important;

        font-size: 14px !important;
    }

    .woow-size-calculate {
        height: 50px !important;
        min-height: 50px !important;

        font-size: 13px !important;
    }
}

/* =========================================================
   11) LOW STOCK NOTICE
   عنصر حقيقي يضاف بالجافاسكربت أسفل حاسبة المقاس
   ========================================================= */

#woowSizeCalculator {
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
}

#woow-low-stock-notice {
    display: flex !important;
    align-items: center;
    justify-content: center;

    width: 100% !important;

    gap: 6px;

    margin: 10px 0 0 !important;
    padding: 11px 12px !important;

    box-sizing: border-box !important;

    direction: rtl;
    text-align: center;

    background: #f5f7fb !important;
    color: #111111 !important;

    border: 1px solid #dfe4ec !important;
    border-radius: 9px !important;

    font-family: inherit !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;

    visibility: visible !important;
    opacity: 1 !important;
}

#woow-low-stock-notice .woow-stock-icon {
    flex: 0 0 auto;
    font-size: 14px;
}

@media (max-width: 640px) {

    #woow-low-stock-notice {
        margin-top: 8px !important;
        padding: 9px 8px !important;

        font-size: 11.5px !important;
        border-radius: 7px !important;
    }

    #woow-low-stock-notice .woow-stock-icon {
        font-size: 12px;
    }
}


/* =========================================================
   12) CUSTOM OFFER COUNTDOWN
   يضاف بالجافاسكربت بعد عنصر أهدِ من تحب
   ========================================================= */

#woow-offer-countdown,
#woow-offer-countdown * {
    box-sizing: border-box;
}

#woow-offer-countdown {
    width: 100%;
    margin: 18px 0 8px;

    direction: rtl;
    font-family: inherit;
}

#woow-offer-countdown .woow-save-title {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;

    gap: 10px;
    margin-bottom: 9px;
}

#woow-offer-countdown .woow-save-title span {
    flex: 1;

    height: 1px;

    background: #bdbdbd;
}

#woow-offer-countdown .woow-save-title strong {
    flex: 0 0 auto;

    color: #111111;

    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

#woow-offer-countdown .woow-save-countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

    width: 100%;

    gap: 8px;
    padding: 10px 12px;

    background: #000000;
    color: #ffffff;

    border-radius: 8px;
}

#woow-offer-countdown .woow-save-message {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 5px;

    color: #ffffff;

    font-size: 12.5px;
    line-height: 1.4;
    white-space: nowrap;
}

#woow-offer-countdown .woow-save-message strong {
    color: #ffffff;
    font-weight: 800;
}

#woow-offer-countdown .woow-alarm {
    font-size: 14px;
}

#woow-offer-countdown .woow-countdown-time {
    display: flex;
    align-items: baseline;
    justify-content: center;

    gap: 3px;

    direction: rtl;

    color: #ffffff;
}

#woow-offer-countdown .woow-countdown-time span {
    color: #ffffff;

    font-size: 14px;
    font-weight: 800;
}

#woow-offer-countdown .woow-countdown-time small {
    color: #d0d0d0;

    font-size: 8px;
    font-weight: 500;
}

#woow-offer-countdown .woow-countdown-time b {
    margin: 0 1px;

    color: #ffffff;

    font-size: 12px;
    font-weight: 700;
}

@media (max-width: 640px) {

    #woow-offer-countdown {
        margin: 14px 0 6px;
    }

    #woow-offer-countdown .woow-save-title {
        gap: 8px;
        margin-bottom: 7px;
    }

    #woow-offer-countdown .woow-save-title strong {
        font-size: 12.5px;
    }

    #woow-offer-countdown .woow-save-countdown {
        gap: 5px;
        padding: 9px 8px;
    }

    #woow-offer-countdown .woow-save-message {
        width: 100%;
        font-size: 11.5px;
    }

    #woow-offer-countdown .woow-countdown-time {
        width: 100%;
    }

    #woow-offer-countdown .woow-countdown-time span {
        font-size: 13px;
    }

    #woow-offer-countdown .woow-countdown-time small {
        font-size: 7.5px;
    }
}


/* =========================================================
   13) SALLA OFFER COUNTDOWN
   تصغير المسافات + زر أبيض ونص أسود
   ========================================================= */

section.s-block--offer-countdown {
    margin-top: 6px !important;
    margin-bottom: 6px !important;

    padding-top: 0 !important;
    padding-bottom: 0 !important;

    min-height: 0 !important;
    height: auto !important;
}

section.s-block--offer-countdown .offer-countdown-container {
    margin-top: 0 !important;
    margin-bottom: 0 !important;

    padding: 8px 12px !important;

    min-height: 0 !important;
    height: auto !important;
}

section.s-block--offer-countdown .offer-countdown-content {
    gap: 4px !important;

    margin-top: 0 !important;
    margin-bottom: 0 !important;

    padding-top: 0 !important;
    padding-bottom: 0 !important;

    min-height: 0 !important;
}

section.s-block--offer-countdown .offer-countdown-content > * {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

section.s-block--offer-countdown .offer-countdown-title {
    margin: 0 !important;
    padding: 0 !important;

    line-height: 1.25 !important;
}

section.s-block--offer-countdown .offer-countdown-timer {
    margin: 2px 0 !important;
    padding: 0 !important;
}

section.s-block--offer-countdown .offer-countdown-cta {
    margin: 2px 0 0 !important;
    padding: 0 !important;
}

section.s-block--offer-countdown .offer-countdown-button,
section.s-block--offer-countdown .offer-countdown-button * {
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
}

section.s-block--offer-countdown .offer-countdown-button {
    margin: 0 !important;
    padding: 6px 12px !important;

    min-height: 0 !important;
    height: auto !important;

    background: #ffffff !important;

    border: 0 !important;
    border-radius: 5px !important;

    font-weight: 700 !important;
    line-height: 1.3 !important;

    box-shadow: none !important;
}

section.s-block--offer-countdown .offer-countdown-button:hover,
section.s-block--offer-countdown .offer-countdown-button:focus,
section.s-block--offer-countdown .offer-countdown-button:active {
    background: #eeeeee !important;
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
}

@media (max-width: 640px) {

    section.s-block--offer-countdown {
        margin-top: 4px !important;
        margin-bottom: 4px !important;
    }

    section.s-block--offer-countdown .offer-countdown-container {
        padding: 6px 10px !important;
    }

    section.s-block--offer-countdown .offer-countdown-content {
        gap: 3px !important;
    }

    section.s-block--offer-countdown .offer-countdown-title {
        font-size: 14px !important;
        line-height: 1.2 !important;
    }

    section.s-block--offer-countdown .offer-countdown-timer {
        margin: 1px 0 !important;
    }

    section.s-block--offer-countdown .offer-countdown-cta {
        margin-top: 1px !important;
    }

    section.s-block--offer-countdown .offer-countdown-button {
        padding: 5px 10px !important;
        font-size: 12px !important;
    }
}