/* === Base & Font === */
#nerkh-arz-popup, #nerkh-arz-button-wrap {
    font-family: inherit;
}

/* === Scrollbar === */
.nerkh-arz-popup-content::-webkit-scrollbar {
    width: 6px;
}
.nerkh-arz-popup-content::-webkit-scrollbar-track {
    background: #0F0F10;
    border-radius: 3px;
}
.nerkh-arz-popup-content::-webkit-scrollbar-thumb {
    background: #BC8D22;
    border-radius: 3px;
}
.nerkh-arz-popup-content::-webkit-scrollbar-thumb:hover {
    background: #BA9C5E;
}

/* === Animations === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.nerkh-arz-popup.active .nerkh-arz-popup-content {
    animation: fadeInUp 0.4s ease forwards;
}
.nerkh-arz-section {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}
.nerkh-arz-section:nth-child(2) { animation-delay: 0.05s; }
.nerkh-arz-section:nth-child(3) { animation-delay: 0.1s; }
.nerkh-arz-section:nth-child(4) { animation-delay: 0.15s; }
.nerkh-arz-section:nth-child(5) { animation-delay: 0.2s; }

/* === Toggle Button === */
#nerkh-arz-button-wrap {
    position: fixed;
    bottom: 90px;
    left: 25px;
    z-index: 99999;
}
.nerkh-arz-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    padding: 0;
    background: #BC8D22 !important;
    color: #0F0F10 !important;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-family: inherit;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}
.nerkh-arz-btn:hover,
.nerkh-arz-btn:active,
.nerkh-arz-btn:focus,
.nerkh-arz-btn:focus-visible,
.nerkh-arz-btn:visited {
    background: #BC8D22 !important;
    color: #0F0F10 !important;
    outline: none !important;
    box-shadow: none !important;
}
.nerkh-arz-btn-shortcode {
    position: static !important;
    display: inline-flex !important;
    box-shadow: none !important;
    width: auto !important;
    height: auto !important;
    border-radius: 10px !important;
    padding: 14px 28px !important;
    gap: 10px !important;
}
.nerkh-arz-btn-shortcode .nerkh-arz-label {
    display: inline !important;
}
#nerkh-arz-button-wrap .nerkh-arz-label {
    display: none;
}
.nerkh-arz-icon {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
}

/* === Popup Overlay === */
.nerkh-arz-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
    direction: rtl;
}
.nerkh-arz-popup.active {
    display: flex;
    align-items: center;
    justify-content: center;
}
.nerkh-arz-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* === Popup Content (Glassmorphism) === */
.nerkh-arz-popup-content {
    position: relative;
    z-index: 1;
    width: 92%;
    max-width: 550px;
    max-height: 85vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: rgba(15, 15, 16, 0.85);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    border: 1px solid rgba(200, 169, 107, 0.18);
    border-radius: 24px;
    padding: 32px 28px;
    box-shadow: 0 10px 30px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.08);
}
.nerkh-arz-close {
    position: absolute;
    top: 28px;
    left: 28px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(200, 169, 107, 0.18);
    border-radius: 10px;
    font-size: 22px;
    cursor: pointer;
    color: #BC8D22;
    line-height: 1;
    padding: 4px 12px 6px;
    transition: all .3s ease;
    font-family: inherit;
}
.nerkh-arz-close:hover {
    background: rgba(188, 141, 34, 0.15);
    border-color: #BC8D22;
    transform: translateY(-2px);
}
.nerkh-arz-title {
    text-align: center;
    margin: 0 0 24px;
    font-size: 22px;
    font-weight: 700;
    color: #BC8D22;
    letter-spacing: 0.5px;
}

/* === Loader === */
.nerkh-arz-loader {
    text-align: center;
    padding: 50px 0;
    color: rgba(255,255,255,0.5);
    font-size: 14px;
}
.nerkh-arz-loader span {
    display: inline-block;
    animation: fadeInUp 0.6s ease infinite alternate;
}
.nerkh-cached-label {
    color: rgba(255,255,255,0.35);
    font-size: 11px;
    margin-right: 4px;
}

/* === Sections (Glassmorphism) === */
.nerkh-arz-section {
    margin-bottom: 16px;
    padding: 18px 20px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(200, 169, 107, 0.18);
    border-radius: 24px;
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    box-shadow: 0 10px 30px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.08);
    transition: all .3s ease;
}
.nerkh-arz-section:hover {
    border-color: rgba(200, 169, 107, 0.4);
    box-shadow: 0 15px 40px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.12);
    transform: translateY(-2px);
}
.nerkh-arz-section h3 {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 700;
    color: #BA9C5E;
    border-bottom: 1px solid rgba(200, 169, 107, 0.18);
    padding-bottom: 10px;
}

/* === Rows === */
.nerkh-arz-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 14px;
}
.nerkh-arz-row:last-child {
    border-bottom: none;
}
.nerkh-arz-row .label {
    color: rgba(255,255,255,0.6);
    font-weight: 400;
}
.nerkh-arz-row .value {
    font-weight: 700;
    color: #fff;
    direction: ltr;
    text-align: left;
}

/* === Last Update === */
.nerkh-arz-last-update {
    text-align: center;
    font-size: 11px;
    color: rgba(255,255,255,0.35);
    margin-bottom: 18px;
    padding: 6px 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(200, 169, 107, 0.12);
    border-radius: 10px;
}

/* === Responsive === */
@media (max-width: 480px) {
    .nerkh-arz-popup-content {
        width: 94%;
        padding: 24px 16px;
        border-radius: 20px;
    }
    .nerkh-arz-close {
        top: 20px;
        left: 16px;
    }
    #nerkh-arz-button-wrap {
        bottom: 90px;
        left: 25px;
    }
    #nerkh-arz-button-wrap .nerkh-arz-btn {
        width: 55px;
        height: 55px;
    }
    .nerkh-arz-icon {
        font-size: 20px;
    }
}

/* === Price Row (Shortcode) === */
.nerkh-arz-price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0px 10px;
    direction: rtl;
    margin-top: 50px;
}
.nerkh-arz-price-item {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    border: 0.7px solid #BC8D22;
    border-radius: 15px;
    background: transparent;
    flex: 1 1 0;
    min-width: 0;
}
.nerkh-arz-price-text {
    font-size: 14px;
    font-weight: 500;
    color: #BC8D22;
    line-height: 1.7em;
    text-align: center;
    white-space: nowrap;
}
.nerkh-arz-shipping-trigger {
    cursor: pointer;
    flex: 2 1 0; /* Desktop: 2x width */
}

/* Tablet: 3 per row, shipping full width */
@media (max-width: 1024px) {
    .nerkh-arz-price-row {
        gap: 15px;
        margin-top: 30px;
        justify-content: center;
    }
    .nerkh-arz-price-item:not(.nerkh-arz-shipping-trigger) {
        flex: 0 0 32%;
        padding: 10px;
    }
    .nerkh-arz-shipping-trigger {
        flex: 0 0 100%;
    }
    .nerkh-arz-price-text {
        font-size: 14px;
    }
}

/* Mobile: 2 per row, shipping full width */
@media (max-width: 767px) {
    .nerkh-arz-price-row {
        gap: 10px;
        margin-top: 20px;
    }
    .nerkh-arz-price-item:not(.nerkh-arz-shipping-trigger) {
        flex: 0 0 48%;
        padding: 10px 5px;
    }
    .nerkh-arz-shipping-trigger {
        flex: 0 0 100%;
    }
    .nerkh-arz-price-text {
        font-size: 15px;
    }
}

/* === Shipping Popup === */
.nerkh-arz-ship-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
    direction: rtl;
    font-family: inherit;
}
.nerkh-arz-ship-popup.active {
    display: flex;
    align-items: center;
    justify-content: center;
}
.nerkh-arz-ship-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.nerkh-arz-ship-content {
    position: relative;
    z-index: 1;
    width: 92%;
    max-width: 480px;
    max-height: 80vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: rgba(15, 15, 16, 0.88);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    border: 1px solid rgba(200, 169, 107, 0.18);
    border-radius: 24px;
    padding: 28px 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.08);
}
.nerkh-arz-ship-content::-webkit-scrollbar {
    width: 4px;
}
.nerkh-arz-ship-content::-webkit-scrollbar-track {
    background: transparent;
}
.nerkh-arz-ship-content::-webkit-scrollbar-thumb {
    background: #BC8D22;
    border-radius: 2px;
}
.nerkh-arz-ship-close {
    position: absolute;
    top: 24px;
    left: 24px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(200, 169, 107, 0.18);
    border-radius: 10px;
    font-size: 20px;
    cursor: pointer;
    color: #BC8D22;
    line-height: 1;
    padding: 4px 10px 5px;
    transition: all .3s ease;
}
.nerkh-arz-ship-close:hover {
    background: rgba(188, 141, 34, 0.15);
    border-color: #BC8D22;
}
.nerkh-arz-ship-title {
    text-align: center;
    margin: 0 0 20px;
    font-size: 18px;
    font-weight: 700;
    color: #BC8D22;
}
.nerkh-arz-ship-list {
    border: 1px solid rgba(188, 141, 34, 0.2);
    border-radius: 12px;
    overflow: hidden;
}
.nerkh-arz-ship-list .nerkh-arz-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 0.7px solid rgba(188, 141, 34, 0.1);
    background: transparent;
}
.nerkh-arz-ship-list .nerkh-arz-row:last-child {
    border-bottom: none;
}
.nerkh-arz-ship-list .nerkh-arz-row .label {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    font-weight: 400;
}
.nerkh-arz-ship-list .nerkh-arz-row .value {
    color: #BC8D22;
    font-size: 13px;
    font-weight: 700;
    direction: ltr;
}
