.persian-datepicker-container {
    position: fixed;
    z-index: 99999;
    background: #1a1920;
    border: 1px solid rgba(201, 161, 74, 0.35);
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.85), 0 20px 45px -15px rgba(201, 161, 74, 0.15);
    direction: rtl;
    min-width: 320px;
    max-width: 380px;
    font-family: 'Vazirmatn', sans-serif;
    color: #d9d4c8;
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
}

@media (max-width: 576px) {
    .persian-datepicker-container {
        min-width: 290px;
        max-width: calc(100vw - 20px);
        padding: 12px;
    }
}

.pdp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(201, 161, 74, 0.16);
}

.pdp-nav-btn {
    background: rgba(201, 161, 74, 0.08);
    border: 1px solid rgba(201, 161, 74, 0.25);
    color: #c9a14a;
    cursor: pointer;
    padding: 6px 14px;
    font-size: 1rem;
    border-radius: 10px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: inherit;
}

.pdp-nav-btn:hover {
    background: rgba(201, 161, 74, 0.18);
    border-color: #c9a14a;
    color: #e8c97a;
    transform: translateY(-1px);
}

.pdp-month-label {
    color: #f3efe7;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.pdp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.pdp-table thead th {
    padding: 6px;
    text-align: center;
    color: #c9a14a;
    font-weight: 600;
    border-bottom: 1px solid rgba(201, 161, 74, 0.16);
    font-size: 0.78rem;
}

.pdp-table tbody td {
    text-align: center;
    padding: 3px;
}

.pdp-day-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    color: #d9d4c8;
    cursor: pointer;
    padding: 6px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    font-family: inherit;
}

.pdp-day-btn:hover {
    background: rgba(201, 161, 74, 0.15);
    border-color: rgba(201, 161, 74, 0.5);
    color: #e8c97a;
}

.pdp-day-btn.is-today {
    border: 1px dashed #c9a14a;
    color: #c9a14a;
}

.pdp-day-btn.is-selected {
    background: linear-gradient(135deg, #c9a14a, #8a6f33);
    color: #0b0b0d;
    font-weight: 700;
    border-color: #c9a14a;
    box-shadow: 0 6px 16px rgba(201, 161, 74, 0.4);
}

.pdp-footer {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(201, 161, 74, 0.16);
}

.pdp-today-btn,
.pdp-clear-btn {
    flex: 1;
    padding: 9px 14px;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.pdp-today-btn {
    background: rgba(201, 161, 74, 0.1);
    border: 1px solid rgba(201, 161, 74, 0.3);
    color: #c9a14a;
}

.pdp-today-btn:hover {
    background: rgba(201, 161, 74, 0.2);
    color: #e8c97a;
}

.pdp-clear-btn {
    background: rgba(92, 26, 43, 0.12);
    border: 1px solid rgba(122, 36, 56, 0.35);
    color: #c47a8a;
}

.pdp-clear-btn:hover {
    background: rgba(92, 26, 43, 0.22);
}

.persian-date-picker {
    cursor: pointer !important;
}

.persian-date-picker[readonly] {
    cursor: pointer !important;
    opacity: 1;
    background-color: var(--color-surface) !important;
    color: var(--color-ivory-dim) !important;
}

.persian-date-picker::placeholder {
    color: var(--color-muted);
    opacity: 0.7;
}

.persian-date-picker:focus {
    border-color: #c9a14a !important;
    box-shadow: 0 0 0 3px rgba(201, 161, 74, 0.2) !important;
    outline: none;
}

.pdp-input-initialized {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16' fill='%23c9a14a'%3E%3Cpath d='M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5zM2 2a1 1 0 0 0-1 1v1h14V3a1 1 0 0 0-1-1H2zm13 3H1v9a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 14px center;
    padding-left: 38px;
}


.related-products-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(201, 161, 74, 0.16);
    direction: rtl;
}

.related-products-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f3efe7;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    padding-right: 16px;
}

.related-products-title::before {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 28px;
    background: linear-gradient(180deg, #c9a14a, #8a6f33);
    border-radius: 2px;
}

.related-products-title i {
    color: #c9a14a;
    font-size: 1.6rem;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}

@media (max-width: 768px) {
    .related-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 12px;
    }
}

@media (max-width: 576px) {
    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .related-products-title {
        font-size: 1.2rem;
    }
}

.related-product-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;
}

.related-product-card:hover {
    border-color: rgba(201, 161, 74, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 20px 45px -15px rgba(201, 161, 74, 0.25);
}

.related-product-card__image-wrap {
    width: 100%;
    aspect-ratio: 3 / 4;
    background: var(--color-surface-2);
    overflow: hidden;
    position: relative;
}

.related-product-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.related-product-card:hover .related-product-card__image {
    transform: scale(1.05);
}

.related-product-card__image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-surface-2), var(--color-bg-soft));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-muted-2);
    font-size: 2rem;
}

.related-product-card__body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
    background: var(--color-surface);
}

.related-product-card__brand {
    font-size: 0.72rem;
    color: var(--color-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.related-product-card__name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-ivory);
    margin: 0 0 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 2.5em;
    line-height: 1.4;
}

.related-product-card__price {
    font-size: 1rem;
    font-weight: 700;
    color: #c9a14a;
    margin-bottom: 10px;
    direction: rtl;
}

.related-product-card__price-currency {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--color-muted);
    margin-right: 3px;
}

.related-product-card__buy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 14px;
    margin-top: auto;
    background: linear-gradient(135deg, #c9a14a, #8a6f33);
    color: #0b0b0d;
    border: none;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
    width: 100%;
}

.related-product-card__buy-btn:hover {
    background: linear-gradient(135deg, #e8c97a, #c9a14a);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(201, 161, 74, 0.35);
}


.developer-credit-section {
    border-top: 1px solid rgba(201, 161, 74, 0.16);
    margin-top: 16px;
    padding-top: 16px;
}

.developer-credit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    background: linear-gradient(135deg, rgba(201, 161, 74, 0.08), rgba(201, 161, 74, 0.02));
    border: 1px solid rgba(201, 161, 74, 0.2);
    border-radius: 999px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.developer-credit:hover {
    background: linear-gradient(135deg, rgba(201, 161, 74, 0.15), rgba(201, 161, 74, 0.05));
    border-color: rgba(201, 161, 74, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -8px rgba(201, 161, 74, 0.25);
}

.developer-credit__line {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--color-muted);
    font-weight: 500;
}

.developer-credit__icon {
    color: #c9a14a;
    font-size: 1rem;
}

.developer-credit__text {
    color: var(--color-muted);
}

.developer-credit__name {
    color: #e8c97a;
    font-weight: 700;
    margin: 0 4px;
    background: linear-gradient(135deg, #c9a14a, #e8c97a);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.3px;
}

.developer-credit__heart {
    color: #c47a8a;
    font-size: 0.85rem;
    animation: heartBeat 2.5s ease-in-out infinite;
}

@keyframes heartBeat {
    0%, 50%, 100% { transform: scale(1); }
    25%, 75% { transform: scale(1.15); }
}

@media (max-width: 576px) {
    .developer-credit {
        padding: 8px 16px;
    }
    .developer-credit__line {
        font-size: 0.78rem;
    }
}


.admin-footer-credit {
    text-align: center;
    padding: 16px 0;
    margin-top: 20px;
    border-top: 1px solid rgba(201, 161, 74, 0.16);
    color: var(--text-muted, #9a958c);
    font-size: 0.82rem;
}

.admin-footer-credit__name {
    color: #c9a14a;
    font-weight: 700;
    margin: 0 4px;
}

.admin-footer-credit__heart {
    color: #c47a8a;
    margin-right: 4px;
    font-size: 0.78rem;
}


.mobile-cta-mini {
    position: fixed !important;
    bottom: 95px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 1050 !important;
    background: linear-gradient(135deg, #c9a14a, #8a6f33) !important;
    color: #0b0b0d !important;
    border: none !important;
    border-radius: 999px !important;
    padding: 12px 28px !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: opacity 0.3s ease, transform 0.3s ease !important;
    box-shadow: 0 10px 30px -4px rgba(201, 161, 74, 0.5) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-family: inherit !important;
    text-decoration: none !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    min-width: 180px;
    justify-content: center;
}

.mobile-cta-mini.is-visible {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) translateY(0) !important;
    pointer-events: auto !important;
}


.mobile-cta-mini:hover {
    background: linear-gradient(135deg, #e8c97a, #c9a14a) !important;
    transform: translateX(-50%) translateY(-2px) scale(1.02) !important;
    box-shadow: 0 12px 28px -4px rgba(201, 161, 74, 0.5) !important;
}

.mobile-cta-mini:active {
    transform: translateX(-50%) translateY(0) scale(0.98) !important;
}

.mobile-cta-mini i {
    font-size: 1rem;
}

@media (min-width: 992px) {
    .mobile-cta-mini {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .mobile-cta-mini {
        bottom: 85px !important;
        padding: 10px 22px !important;
        font-size: 0.85rem !important;
        min-width: 160px;
    }
}


.pdp-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 99998;
    transition: background 0.25s ease;
    pointer-events: none;
}

.pdp-overlay.is-visible {
    background: rgba(0, 0, 0, 0.6);
    pointer-events: auto;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

@media (min-width: 768px) {
    .pdp-overlay {
        display: none !important;
    }
}


@media (max-width: 767px) {
    .persian-datepicker-container {
        position: fixed !important;
        top: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        border-radius: 18px 18px 0 0 !important;
        border-bottom: none !important;
        z-index: 99999;
        animation: pdp-slide-up 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        max-height: 80vh;
        overflow-y: auto;
    }

    .pdp-table {
        font-size: 0.95rem;
    }

    .pdp-day-btn {
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
    }

    .pdp-nav-btn {
        padding: 8px 16px;
        font-size: 1.1rem;
    }

    .pdp-month-label {
        font-size: 1.05rem;
    }

    .pdp-today-btn,
    .pdp-clear-btn {
        padding: 12px 14px;
        font-size: 0.9rem;
    }
}

@keyframes pdp-slide-up {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}


@media (min-width: 768px) {
    .persian-datepicker-container {
        animation: pdp-fade-in 0.2s ease;
    }
}

@keyframes pdp-fade-in {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}


.pdp-month-year-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pdp-select-month,
.pdp-select-year {
    background: rgba(201, 161, 74, 0.08);
    border: 1px solid rgba(201, 161, 74, 0.25);
    color: #f3efe7;
    padding: 6px 10px;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 12 8'%3E%3Cpath fill='%23c9a14a' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 8px center;
    padding-left: 24px;
}

.pdp-select-month:hover,
.pdp-select-year:hover {
    background-color: rgba(201, 161, 74, 0.2);
    border-color: #c9a14a;
}

.pdp-select-month:focus,
.pdp-select-year:focus {
    outline: none;
    border-color: #c9a14a;
    box-shadow: 0 0 0 3px rgba(201, 161, 74, 0.18);
}

.pdp-select-month option,
.pdp-select-year option {
    background: #1a1920;
    color: #f3efe7;
}

@media (max-width: 576px) {
    .pdp-select-month,
    .pdp-select-year {
        font-size: 0.92rem;
        padding: 8px 12px;
    }
}
