/* ==============================================
   PRODUCT DETAIL PAGE - ORIGINAL + RESPONSIVE FIX
   Gap fixed | Mobile fixed | Kuch delete nahi
   ============================================== */

.product-detail {
    padding: 25px 0 60px;
    background: #fff;
}

.product-detail-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* ==========================================
   PRODUCT GALLERY
   ========================================== */
.product-gallery {
    position: sticky;
    top: 100px;
    height: fit-content;
    width: 100%;
    min-width: 0;
}

.product-main-image {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    margin-bottom: 15px;
    position: relative;
    cursor: zoom-in;
    border: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.product-main-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.4s ease;
}

.product-main-image:hover img {
    transform: scale(1.05);
}

.product-zoom-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 5;
}

.product-main-image:hover .product-zoom-icon {
    opacity: 1;
}

.product-discount-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #EF4444;
    color: #fff;
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    z-index: 3;
}

.product-thumbnails {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.product-thumbnail {
    aspect-ratio: 1/1;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    cursor: pointer;
    border: 2px solid #f0f0f0;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.product-thumbnail:hover {
    border-color: #D4AF37;
}

.product-thumbnail.is-active {
    border-color: #D4AF37;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

.product-thumbnail img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* ==========================================
   PRODUCT INFO
   ========================================== */
.product-info {
    padding: 10px 0;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.product-info-category {
    display: inline-block;
    background: #F5E6A8;
    color: #B8941F;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    text-decoration: none;
}

.product-info-title {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 700;
    color: #000;
    line-height: 1.2;
    margin: 0 0 15px;
    word-wrap: break-word;
}

.product-info-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #F3F3F3;
    flex-wrap: wrap;
}

.product-info-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-info-rating .stars {
    color: #D4AF37;
    font-size: 14px;
    display: flex;
    gap: 2px;
}

.product-info-rating .rating-text {
    font-size: 13px;
    color: #525252;
}

.product-info-sku {
    font-size: 12px;
    color: #737373;
}

.product-info-sku strong {
    color: #000;
}

.product-info-stock {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
}

.product-info-stock.in-stock {
    background: #D1FAE5;
    color: #065F46;
}

.product-info-stock.out-of-stock {
    background: #FEE2E2;
    color: #991B1B;
}

/* Price */
.product-info-price {
    display: flex;
    align-items: baseline;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.product-info-current-price {
    font-family: 'Playfair Display', serif;
    font-size: 38px;
    font-weight: 700;
    color: #000;
    line-height: 1;
}

.product-info-old-price {
    font-size: 22px;
    color: #A3A3A3;
    text-decoration: line-through;
}

.product-info-save {
    background: #D1FAE5;
    color: #065F46;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
}

/* Description */
.product-info-description {
    font-size: 15px;
    color: #525252;
    line-height: 1.7;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #F3F3F3;
}

/* Variants */
.product-variant {
    margin-bottom: 25px;
}

.product-variant-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #000;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-variant-label span {
    color: #D4AF37;
    margin-left: 8px;
    text-transform: none;
    font-weight: 500;
}

.variant-colors,
.variant-sizes {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.variant-color,
.variant-size {
    padding: 10px 18px;
    background: #F9F9F9;
    border: 2px solid #E5E5E5;
    border-radius: 8px;
    font-size: 13px;
    color: #404040;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    text-align: center;
}

.variant-size {
    min-width: 60px;
    padding: 10px 15px;
    font-weight: 600;
}

.variant-color:hover,
.variant-size:hover {
    border-color: #D4AF37;
    background: #FEF9E7;
}

.variant-color.is-selected {
    border-color: #D4AF37;
    background: linear-gradient(135deg, #D4AF37, #E5C158);
    color: #000;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.variant-size.is-selected {
    border-color: #000;
    background: #000;
    color: #D4AF37;
}

/* Actions */
.product-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    align-items: stretch;
}

.product-quantity {
    display: inline-flex;
    align-items: center;
    border: 2px solid #E5E5E5;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    flex-shrink: 0;
}

.product-quantity button {
    width: 45px;
    height: 50px;
    background: #fff;
    border: none;
    color: #000;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.product-quantity button:hover {
    background: linear-gradient(135deg, #D4AF37, #E5C158);
    color: #000;
}

.product-quantity input {
    width: 55px;
    height: 50px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: #000;
    outline: none;
    background: #fff;
    -moz-appearance: textfield;
}

.product-quantity input::-webkit-outer-spin-button,
.product-quantity input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.btn-product-cart {
    flex: 1;
    min-width: 180px;
    height: 50px;
    background: #000;
    color: #fff;
    border: 2px solid #000;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.btn-product-cart::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #D4AF37, #E5C158);
    transition: left 0.4s;
    z-index: -1;
}

.btn-product-cart:hover::before {
    left: 0;
}

.btn-product-cart:hover {
    color: #000;
    border-color: #D4AF37;
}

.btn-product-buy {
    flex: 1;
    min-width: 180px;
    height: 50px;
    background: linear-gradient(135deg, #D4AF37, #E5C158);
    color: #000;
    border: 2px solid #D4AF37;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-product-buy:hover {
    background: #000;
    color: #D4AF37;
    border-color: #000;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-product-wishlist {
    width: 50px;
    height: 50px;
    background: #fff;
    color: #000;
    border: 2px solid #E5E5E5;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s;
    flex-shrink: 0;
}

.btn-product-wishlist:hover,
.btn-product-wishlist.is-active {
    background: #EF4444;
    color: #fff;
    border-color: #EF4444;
}

.product-quantity.is-disabled {
    opacity: 0.5;
    pointer-events: none;
}

.btn-product-cart.is-disabled,
.btn-product-buy.is-disabled {
    background: #F3F3F3 !important;
    color: #A3A3A3 !important;
    border-color: #E5E5E5 !important;
    cursor: not-allowed;
    pointer-events: auto;
}

.btn-product-cart.is-disabled::before {
    display: none;
}

/* WhatsApp */
.btn-whatsapp-order {
    width: 100%;
    padding: 14px;
    background: #25D366;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.3s;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.btn-whatsapp-order:hover {
    background: #1EA952;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

/* Features (purana section - wapas) */
.product-features {
    background: #FAFAFA;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.product-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 13px;
    color: #404040;
}

.product-feature:not(:last-child) {
    border-bottom: 1px solid #E5E5E5;
}

.product-feature i {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #D4AF37, #E5C158);
    color: #000;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

/* Share */
.product-share {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid #F3F3F3;
    flex-wrap: wrap;
}

.product-share-label {
    font-size: 13px;
    color: #525252;
    font-weight: 600;
}

.product-share-icons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.product-share-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #F3F3F3;
    color: #404040;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.product-share-icon:hover {
    background: linear-gradient(135deg, #D4AF37, #E5C158);
    color: #000;
    transform: translateY(-3px);
}

/* ==========================================
   PRODUCT TABS
   ========================================== */
.product-tabs {
    max-width: 1400px;
    margin: 50px auto 0;
    padding: 0 20px;
    box-sizing: border-box;
}

.product-tabs-nav {
    display: flex;
    gap: 5px;
    border-bottom: 2px solid #F3F3F3;
    margin-bottom: 30px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.product-tabs-nav::-webkit-scrollbar {
    height: 0;
}

.product-tab-btn {
    padding: 15px 30px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #737373;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: -2px;
    white-space: nowrap;
    font-family: 'Poppins', sans-serif;
}

.product-tab-btn:hover {
    color: #000;
}

.product-tab-btn.is-active {
    color: #000;
    border-bottom-color: #D4AF37;
}

.product-tab-content {
    display: none;
    padding: 20px 0;
}

.product-tab-content.is-active {
    display: block;
    animation: tabFadeIn 0.4s;
}

@keyframes tabFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-content-body {
    font-size: 15px;
    color: #404040;
    line-height: 1.8;
}

.tab-content-body h4 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    color: #000;
    margin: 20px 0 12px;
}

.tab-content-body ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.tab-content-body ul li {
    margin-bottom: 8px;
    list-style: disc;
}

.tab-content-body p {
    margin-bottom: 15px;
}

/* Related */
.related-products {
    padding: 60px 0;
    background: #FAFAFA;
    margin-top: 50px;
}

/* No image */
.product-no-image {
    width: 100%;
    aspect-ratio: 1/1;
    background: #FAFAFA;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #cccccc;
    gap: 15px;
}

.product-no-image i {
    font-size: 60px;
}

.product-no-image p {
    margin: 0;
    font-size: 14px;
    color: #999;
}

/* Out of stock ribbon */
.product-main-image.is-out-of-stock img {
    filter: grayscale(30%) opacity(0.85);
    transition: all 0.3s ease;
}

.product-detail-corner-ribbon {
    position: absolute;
    top: 25px;
    right: -45px;
    background: linear-gradient(135deg, #DC2626, #991B1B);
    color: #FFFFFF;
    padding: 8px 55px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    transform: rotate(45deg);
    z-index: 5;
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.5);
    text-transform: uppercase;
    font-family: 'Poppins', sans-serif;
}

/* =========================================================
   VVIP DELIVERY + TRUST BANNER
   ========================================================= */
.apd-delivery-trust-box {
    background: #FAFAFA;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    margin-bottom: 25px;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.apd-delivery-trust-box * {
    box-sizing: border-box;
}

.apd-delivery-top {
    padding: 15px;
    border-bottom: 1px solid #E5E5E5;
}

.apd-delivery-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.apd-delivery-title i {
    color: #D4AF37;
    font-size: 16px;
}

.apd-delivery-row {
    display: flex;
    justify-content: space-between;
    background: #fff;
    border: 1px solid #F0F0F0;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 10px;
    gap: 10px;
}

.apd-city {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.apd-city-name {
    font-size: 11px;
    color: #737373;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 2px;
}

.apd-city-time {
    font-size: 13px;
    color: #000;
    font-weight: 600;
}

.apd-delivery-free {
    font-size: 12px;
    color: #10B981;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    background: #ECFDF5;
    padding: 8px;
    border-radius: 6px;
    flex-wrap: wrap;
}

.apd-trust-badges {
    display: flex;
    justify-content: space-between;
    padding: 12px 10px;
    background: #fff;
    gap: 6px;
}

.apd-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    min-width: 0;
}

.apd-badge i {
    font-size: 18px;
    color: #D4AF37;
    margin-bottom: 6px;
}

.apd-badge span {
    font-size: 10px;
    color: #525252;
    font-weight: 500;
    line-height: 1.2;
}

/* ==========================================
   RESPONSIVE - Desktop pehle jaisa, mobile tight
   ========================================== */
@media (max-width: 1199px) {
    .product-detail-wrapper {
        gap: 40px;
        padding: 0 20px;
    }
    .product-info-title {
        font-size: 30px;
    }
    .product-info-current-price {
        font-size: 32px;
    }
}

@media (max-width: 991px) {
    .product-detail {
        padding: 20px 0 40px;
    }
    .product-detail-wrapper {
        grid-template-columns: 1fr;
        gap: 25px;
        max-width: 700px;
    }
    .product-gallery {
        position: relative;
        top: 0;
    }
    .product-main-image {
        max-width: 500px;
        margin: 0 auto 15px;
    }
    .product-thumbnails {
        max-width: 500px;
        margin: 0 auto;
    }
    .product-info-title {
        font-size: 26px;
    }
    .product-info-current-price {
        font-size: 30px;
    }
}

@media (max-width: 767px) {
    .product-detail {
        padding: 15px 0 35px;
    }
    .product-detail-wrapper {
        gap: 20px;
        padding: 0 15px;
    }
    .product-main-image {
        border-radius: 10px;
        max-width: 100%;
    }
    .product-thumbnails {
        grid-template-columns: repeat(5, 1fr);
        gap: 8px;
        max-width: 100%;
    }
    .product-info {
        padding: 0;
    }
    .product-info-category {
        font-size: 10px;
        padding: 4px 12px;
        margin-bottom: 10px;
    }
    .product-info-title {
        font-size: 22px;
        margin-bottom: 10px;
    }
    .product-info-meta {
        gap: 10px;
        margin-bottom: 12px;
        padding-bottom: 12px;
    }
    .product-info-rating .stars {
        font-size: 12px;
    }
    .product-info-rating .rating-text,
    .product-info-sku {
        font-size: 11px;
    }
    .product-info-stock {
        font-size: 10px;
        padding: 3px 10px;
    }
    .product-info-price {
        gap: 10px;
        margin-bottom: 12px;
    }
    .product-info-current-price {
        font-size: 26px;
    }
    .product-info-old-price {
        font-size: 16px;
    }
    .product-info-save {
        font-size: 10px;
        padding: 4px 10px;
    }
    .product-info-description {
        font-size: 13px;
        margin-bottom: 18px;
        padding-bottom: 18px;
    }
    .product-variant {
        margin-bottom: 16px;
    }
    .product-variant-label {
        font-size: 12px;
        margin-bottom: 8px;
    }
    .variant-color,
    .variant-size {
        padding: 8px 14px;
        font-size: 12px;
    }
    .product-actions {
        gap: 8px;
        margin-bottom: 16px;
    }
    .product-quantity {
        order: 1;
    }
    .product-quantity button {
        width: 40px;
        height: 45px;
        font-size: 16px;
    }
    .product-quantity input {
        width: 45px;
        height: 45px;
        font-size: 14px;
    }
    .btn-product-cart {
        order: 2;
        flex: 1;
        min-width: 140px;
        height: 45px;
        font-size: 11px;
        padding: 0 12px;
    }
    .btn-product-buy {
        order: 3;
        width: 100%;
        min-width: 100%;
        height: 48px;
        font-size: 12px;
    }
    .btn-product-wishlist {
        order: 4;
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    .btn-whatsapp-order {
        padding: 12px;
        font-size: 13px;
        margin-bottom: 16px;
    }
    .product-features {
        padding: 15px;
        margin-bottom: 18px;
    }
    .product-feature {
        font-size: 12px;
        padding: 8px 0;
    }
    .product-feature i {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    .product-share {
        padding-top: 14px;
        gap: 10px;
    }
    .product-share-label {
        font-size: 12px;
    }
    .product-share-icon {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }
    .product-tabs {
        margin-top: 35px;
        padding: 0 15px;
    }
    .product-tab-btn {
        padding: 12px 16px;
        font-size: 11px;
        letter-spacing: 0.5px;
    }
    .product-tab-content {
        padding: 12px 0;
    }
    .tab-content-body {
        font-size: 13px;
    }
    .tab-content-body h4 {
        font-size: 16px;
    }
    .related-products {
        padding: 40px 0;
        margin-top: 35px;
    }
    .product-detail-corner-ribbon {
        top: 18px;
        right: -35px;
        padding: 6px 40px;
        font-size: 11px;
    }
    .apd-delivery-title {
        font-size: 13px;
    }
    .apd-city-time {
        font-size: 12px;
    }
    .apd-badge i {
        font-size: 16px;
    }
    .apd-badge span {
        font-size: 9px;
    }
}

@media (max-width: 575px) {
    .product-detail-wrapper {
        padding: 0 12px;
    }
    .product-thumbnails {
        grid-template-columns: repeat(4, 1fr);
    }
    .product-info-title {
        font-size: 18px;
    }
    .product-info-current-price {
        font-size: 22px;
    }
    .product-info-old-price {
        font-size: 14px;
    }
    .product-actions {
        gap: 6px;
    }
    .btn-product-cart {
        min-width: 120px;
        font-size: 10px;
        padding: 0 10px;
    }
    .btn-product-buy {
        font-size: 11px;
    }
    .product-tabs {
        padding: 0 12px;
    }
    .product-tab-btn {
        padding: 10px 14px;
        font-size: 10px;
    }
    .apd-delivery-free {
        font-size: 11px;
    }
}

@media (max-width: 359px) {
    .product-thumbnails {
        grid-template-columns: repeat(3, 1fr);
    }
    .product-info-title {
        font-size: 16px;
    }
    .product-actions {
        flex-direction: column;
    }
    .product-quantity,
    .btn-product-cart,
    .btn-product-buy,
    .btn-product-wishlist {
        width: 100%;
        flex: none;
        min-width: 100%;
    }
    .product-quantity {
        justify-content: center;
    }
    .apd-trust-badges {
        flex-wrap: wrap;
    }
    .apd-badge {
        min-width: 45%;
        margin-bottom: 8px;
    }
}
