/* ============================================
   PRODUCT PAGE - Stylesheet (Clean Version)
   Golden Luxury Theme
   ============================================ */

/* ========== 1. Global Overrides ========== */
input[type="tel"] {
    direction: rtl !important;
    text-align: right !important;
}

/* ========== 2. Page Layout ========== */
.product-page {
    padding: 110px 0 60px;
}

.product-page__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

/* ========== 3. Product Gallery ========== */
.product-gallery {
    position: sticky;
    top: 90px;
    min-width: 0;
    overflow: hidden;
}

.gallery__main {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--gray-300);
    margin-bottom: 16px;
    cursor: zoom-in;
}

.gallery__main-img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery__main:hover .gallery__main-img {
    transform: scale(1.05);
}

.gallery__badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #e74c3c, #fd79a8);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 3;
    animation: pulse-glow 2s ease-in-out infinite;
}

.gallery__zoom-btn {
    position: absolute;
    bottom: 16px;
    left: 16px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 3;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    border: none;
}

.gallery__zoom-btn:hover {
    background: var(--primary);
    transform: scale(1.1);
}

/* Thumbnails Slider & Arrows */
.gallery__thumbs-slider {
    overflow: hidden;
}

.thumbs-next,
.thumbs-prev {
    color: var(--primary-dark) !important;
    background: var(--white);
    width: 28px !important;
    height: 28px !important;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    margin-top: -14px !important;
}

.thumbs-next::after,
.thumbs-prev::after {
    font-size: 12px !important;
    font-weight: 900 !important;
}

.thumbs-prev {
    left: 0 !important;
}

.thumbs-next {
    right: 0 !important;
}

.swiper-button-disabled {
    display: none !important;
}

.gallery__thumb {
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid var(--gray-300);
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
    background: var(--white);
}

.gallery__thumb img {
    width: 100%;
    height: 85px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery__thumb:hover {
    border-color: var(--primary);
}

.gallery__thumb.active {
    border-color: var(--primary-dark);
    box-shadow: 0 0 0 2px rgba(180, 134, 11, 0.3);
}

/* ========== 4. Product Details ========== */
.details__category {
    display: inline-block;
    font-size: 0.82rem;
    color: var(--primary-dark);
    background: var(--primary-light);
    padding: 4px 14px;
    border-radius: 50px;
    font-weight: 700;
    margin-bottom: 12px;
}

.details__title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.4;
    margin-bottom: 14px;
}

.details__rating {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    font-size: 0.9rem;
}

.rating__stars {
    color: #F1C40F;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.rating__count {
    color: var(--gray-700);
}

/* Price Box */
.details__price-box {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.08), rgba(245, 232, 199, 0.15));
    padding: 18px 22px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    border: 1px solid var(--primary-light);
}

.details__price-current {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--primary-dark) !important;
}

.details__price-old {
    font-size: 1.3rem;
    color: var(--danger) !important;
    text-decoration: line-through;
    opacity: 0.8;
}

.details__discount {
    background: var(--danger);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    animation: pulse-glow 2s ease-in-out infinite;
}

/* ========== 5. Trust Badges & Short Description ========== */
.details__trust {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.trust__badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-300);
    transition: var(--transition);
}

.trust__badge:hover {
    border-color: var(--primary);
    background: rgba(212, 165, 116, 0.05);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.trust__icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.trust__text {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.3;
}

.details__short-desc {
    margin-bottom: 24px;
    padding: 16px;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    border-right: 4px solid var(--primary);
}

.details__short-desc p {
    font-size: 0.92rem;
    color: var(--gray-700);
    line-height: 1.9;
}

/* ========== 6. Order Form (COD) ========== */
.order-form {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 2px solid var(--primary);
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(180, 134, 11, 0.15);
}

.order-form__header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white);
    padding: 24px 28px;
    text-align: center;
}

.order-form__title {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.order-form__subtitle {
    font-size: 0.85rem;
    opacity: 0.9;
}

.order-form__body {
    padding: 28px;
}

/* Form Fields */
.form__group {
    margin-bottom: 20px;
}

.form__label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.label__icon {
    font-size: 1rem;
}

.form__input {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--font);
    font-size: 0.95rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-sm);
    background: var(--gray-100);
    color: var(--dark);
    transition: var(--transition);
    outline: none;
    box-sizing: border-box;
}

.form__input:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(212, 165, 116, 0.15);
}

.form__select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23636E72' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 16px center;
    cursor: pointer;
}

.form__textarea {
    resize: vertical;
    min-height: 90px;
}

/* Quantity Control */
.form__quantity {
    display: flex;
    align-items: center;
    gap: 0;
    width: fit-content;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--gray-100);
}

.qty__btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
    background: var(--white);
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.qty__btn:hover {
    background: var(--primary);
    color: var(--white);
}

.qty__input {
    width: 60px;
    height: 48px;
    text-align: center;
    font-family: var(--font);
    font-size: 1.1rem;
    font-weight: 800;
    border: none;
    outline: none;
    background: var(--gray-100);
    color: var(--dark);
}

/* Order Summary */
.form__summary {
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--gray-300);
}

.summary__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 0.92rem;
    color: var(--gray-700);
}

.summary__row:not(:last-child) {
    border-bottom: 1px solid var(--gray-300);
}

.summary__free {
    color: var(--success);
    font-weight: 700;
}

.summary__total {
    padding-top: 14px;
    margin-top: 6px;
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--dark);
}

.summary__total span:last-child {
    color: var(--primary-dark);
    font-size: 1.4rem;
}

/* Submit Button */
.btn--submit {
    width: 100%;
    padding: 16px 30px;
    font-size: 1.1rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    box-shadow: 0 6px 25px rgba(180, 134, 11, 0.4);
    transition: var(--transition);
    cursor: pointer;
}

.btn--submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(180, 134, 11, 0.5);
}

/* ========== 7. Product Tabs ========== */
.product-tabs {
    padding: 0 0 60px;
}

.tabs__header {
    display: flex;
    gap: 4px;
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 6px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-300);
}

.tab__btn {
    flex: 1;
    padding: 14px 20px;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gray-700);
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    cursor: pointer;
}

.tab__btn:hover {
    background: var(--gray-100);
    color: var(--primary-dark);
}

.tab__btn.active {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(180, 134, 11, 0.3);
}

.tab__content {
    display: none;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-300);
    animation: fadeInUp 0.4s ease;
}

.tab__content.active {
    display: block;
}

.tab__body {
    padding: 30px;
}

.tab__body p {
    font-size: 0.95rem;
    color: var(--gray-700);
    line-height: 2;
    margin-bottom: 14px;
}

/* Review Form */
.review-form-wrapper {
    background: var(--gray-100);
    padding: 30px;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-300);
    max-width: 600px;
    margin: 0 auto;
}

.review-form-wrapper h3 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: var(--dark);
    font-weight: 800;
}

/* ========== 8. Image Zoom Overlay ========== */
.zoom__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    cursor: zoom-out;
}

.zoom__overlay.active {
    opacity: 1;
    visibility: visible;
}

.zoom__img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    transform: scale(0.8);
    transition: transform 0.4s ease;
}

.zoom__overlay.active .zoom__img {
    transform: scale(1);
}

.zoom__close {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border-radius: 50%;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    border: none;
    cursor: pointer;
}

.zoom__close:hover {
    background: var(--danger);
    transform: rotate(90deg);
}

/* ========== 9. Success Modal ========== */
.modal__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal__overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal__card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 40px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    transform: scale(0.8) translateY(30px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-xl);
}

.modal__overlay.active .modal__card {
    transform: scale(1) translateY(0);
}

/* ========== 10. Keyframes ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   11. RESPONSIVE - Tablet (max-width: 992px)
   ============================================ */
@media (max-width: 992px) {
    .product-page__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product-gallery {
        position: relative;
        top: auto;
    }
}

/* ============================================
   12. RESPONSIVE - Mobile (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
    /* Layout */
    .product-page {
        padding: 80px 0 40px;
    }

    /* Gallery */
    .gallery__main-img {
        height: 350px;
    }

    .gallery__thumb img {
        height: 70px;
    }

    /* Details */
    .details__title {
        font-size: 1.8rem !important;
    }

    .details__rating {
        font-size: 1.15rem !important;
    }

    .details__price-box {
        padding: 14px 16px;
        gap: 12px;
    }

    .details__price-current {
        font-size: 1.6rem !important;
    }

    .details__price-old {
        font-size: 1.1rem !important;
    }

    /* Trust Badges */
    .details__trust {
        display: flex !important;
        justify-content: space-between !important;
        gap: 6px !important;
    }

    .trust__badge {
        padding: 8px 4px !important;
        flex: 1;
        justify-content: center;
    }

    .trust__text {
        font-size: 0.65rem !important;
    }

    .trust__icon {
        font-size: 0.9rem !important;
    }

    /* Order Form */
    .order-form__header {
        padding: 18px 20px;
    }

    .order-form__title {
        font-size: 1.1rem;
    }

    .order-form__body {
        padding: 20px;
    }

    /* Tabs */
    .tabs__header {
        flex-direction: column !important;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        gap: 10px;
    }

    .tab__btn {
        width: 100% !important;
        border: 1px solid var(--gray-300) !important;
        background: var(--white) !important;
    }

    .tab__btn.active {
        background: linear-gradient(135deg, var(--primary-dark), var(--primary)) !important;
        color: var(--white) !important;
        border-color: transparent !important;
    }
}

/* ============================================
   13. RESPONSIVE - Small Mobile (max-width: 480px)
   ============================================ */
@media (max-width: 480px) {
    .gallery__main-img {
        height: 280px;
    }

    .gallery__thumb img {
        height: 55px;
    }

    .details__title {
        font-size: 1.35rem;
    }

    .details__price-current {
        font-size: 1.4rem !important;
    }

    .zoom__img {
        max-width: 95%;
    }

    .zoom__close {
        top: 14px;
        left: 14px;
        width: 42px;
        height: 42px;
        font-size: 1.6rem;
    }
}