/* LUXURY THEME PRODUCT DETAIL */

/* Product Variations */
.product-variations {
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 12px;
    margin-bottom: 18px;
}
.variation-label {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 8px;
}
.btn-variation {
    padding: 6px 14px;
    border: 1px solid #e0e0e0;
    background: #fff;
    cursor: pointer;
    border-radius: 2px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.25s ease;
    color: #333;
}
.btn-variation:hover {
    border-color: #333;
}
.btn-variation.active {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.btn-variation.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    text-decoration: line-through;
}


.product-detail-wrapper {
    display: grid;
    grid-template-columns: 3.5fr 4.2fr 2.3fr;
    gap: 20px;
    margin-bottom: 50px;
}

/* Campaigns Sidebar */
.product-campaigns-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.campaign-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.campaign-card-title {
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
}

.campaign-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.campaign-item {
    display: flex;
    gap: 12px;
    padding: 8px;
    background: #fcfcfc;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.campaign-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.flash-sale-item {
    background: #fff5f5;
    border-color: #ffe3e3;
}

.camp-icon {
    width: 32px;
    height: 32px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.85rem;
}

.flash-sale-item .camp-icon {
    background: #ff4d4f;
}

.camp-content {
    flex: 1;
}

.camp-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 2px;
}

.camp-desc {
    font-size: 0.75rem;
    color: #666;
    line-height: 1.3;
}

.product-specs-short {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #fcfcfc;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #f2f2f2;
}

.spec-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.75rem;
}

.spec-label {
    font-weight: 600;
    color: #333;
    min-width: 100px;
}

.spec-value {
    color: #666;
    font-weight: 400;
}

.info-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #555;
    padding: 8px;
    background: #f9f9f9;
    border-radius: 8px;
}

@media (max-width: 1200px) {
    .product-detail-wrapper {
        grid-template-columns: 40% 60%;
    }
    .product-campaigns-sidebar {
        grid-column: span 2;
    }
}

@media (max-width: 991px) {
    .product-detail-wrapper {
        grid-template-columns: 1fr;
    }
    .product-campaigns-sidebar {
        grid-column: span 1;
    }
}

.product-gallery {
    position: sticky;
    top: 100px;
}

.main-image-container img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.breadcrumb-luxury {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 22px;
    margin-bottom: 20px;
    color: #999;
}

.breadcrumb-luxury a {
    color: #999;
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcrumb-luxury a:hover {
    color: var(--accent);
}

.breadcrumb-luxury i {
    font-size: 0.6rem;
    opacity: 0.5;
}

.breadcrumb-luxury span {
    color: var(--primary);
    font-weight: 700;
}

.product-brand-row {
    margin-bottom: 8px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.brand-name {
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.product-full-name {
    color: #666;
    font-size: 0.75rem;
}

.product-meta-new {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
    font-size: 0.8rem;
    color: #555;
    /* Removed padding and border from here */
}

.rating-info {
    display: flex;
    align-items: center;
    gap: 5px;
}

.rating-value {
    font-weight: 700;
    color: #333;
}

.rating-stars-inline-wrapper {
    position: relative;
    display: inline-block;
    cursor: pointer;
    padding: 5px 0;
}

.rating-stars-inline {
    color: #ddd;
    display: flex;
    gap: 2px;
}

.rating-stars-inline i.active {
    color: #ffc107;
}

.rating-tooltip {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    border-radius: 12px;
    padding: 20px;
    width: 260px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.rating-stars-inline-wrapper:hover .rating-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(5px);
}

.tooltip-header {
    text-align: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f8f8f8;
}

.tooltip-avg {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 4px;
}

.tooltip-label {
    font-size: 0.7rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.tooltip-distribution {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dist-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
}

.dist-star {
    width: 55px;
    color: #555;
    flex-shrink: 0;
    font-weight: 500;
}

.dist-bar-bg {
    flex: 1;
    height: 6px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
}

.dist-bar-fill {
    height: 100%;
    background: #ffc107;
    border-radius: 10px;
    width: var(--fill-percent, 0%);
    transition: width 0.6s ease;
}

.dist-count {
    width: 25px;
    text-align: right;
    color: #bbb;
    flex-shrink: 0;
    font-size: 0.75rem;
}

.meta-separator {
    width: 1px;
    height: 14px;
    background: #ccc;
}

.review-info a, .qa-info a {
    color: #555;
    text-decoration: underline;
    transition: color 0.2s;
}

.review-info a:hover, .qa-info a:hover {
    color: var(--accent);
}

.photo-icon {
    color: #999;
}

.favorite-info-row {
    margin-bottom: 12px;
    display: flex;
}

.favorite-info {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #000;
    font-weight: 500;
}

.fav-count-num {
    color: #ff4d4f;
    font-weight: 700;
}


.product-meta {
    display: none;
}


.price-wrapper {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.discount-badge {
    display: inline-block;
    background: #222;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.3px;
    vertical-align: middle;
}

.product-purchase-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.qty-input {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    width: 125px;
    height: 48px;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
}

.qty-input button {
    width: 45px;
    height: 100%;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.qty-input button:hover {
    background: #f8f8f8;
}

.qty-input input {
    flex: 1;
    width: 50px;
    height: 100%;
    border: none;
    background: transparent;
    text-align: center;
    font-weight: 600;
    color: var(--primary);
    -moz-appearance: textfield;
    appearance: textfield;
    padding: 0;
}

.qty-input input::-webkit-outer-spin-button,
.qty-input input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.btn-add-cart,
.btn-buy-now {
    flex: 1;
    height: 50px !important;
    min-height: 50px !important;
    padding: 0 15px;
    font-size: 0.85rem !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    border-radius: 4px;
}

.btn-add-cart {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-add-cart:hover {
    background: #f8f8f8;
    color: var(--accent);
    border-color: var(--accent);
}

.btn-buy-now {
    background: var(--primary);
    color: #fff;
    border: 1px solid var(--primary);
}

.btn-buy-now:hover {
    background: #000000 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Remove old action-buttons if present */
.action-buttons {
    display: none;
}

.trust-badges {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: #666;
    font-size: 0.9rem;
}

/* Tabs */
.tab-nav {
    display: flex;
    gap: 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.tab-link {
    background: none;
    border: none;
    font-size: 0.85rem;
    font-family: var(--font-heading);
    padding: 10px 0;
    cursor: pointer;
    position: relative;
    color: #999;
}

.tab-link.active {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

/* --- Desktop Extracted Styles --- */
.flash-sale-badge {
    background: #fff5f8;
    border: 1px solid #f1416c;
    border-radius: 8px;
    padding: 10px 15px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.fs-title {
    font-size: 0.9rem;
}

.fs-timer {
    font-size: 0.8rem;
}

.product-description-short {
    background: #fdfdfd;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
    margin-bottom: 25px;
    position: relative;
}

.short-desc-content {
    font-size: 0.8rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s ease;
}

.read-more-wrapper {
    text-align: right;
    margin-top: 5px;
}

.read-more-luxury {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    margin-top: 15px;
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
}

.read-more-luxury i {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.read-more-luxury:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.read-more-luxury:hover i {
    transform: translateX(5px);
}

/* Quantity and actions managed above */

.qty-btn {
    width: 45px;
    background: #fff;
    border: none;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: background-color 0.2s;
    cursor: pointer;
}

.qty-btn:hover {
    background-color: #f8f9fa;
}

.qty-btn i {
    font-size: 0.8rem;
}

.qty-number {
    width: 50px;
    text-align: center;
    border: none;
    border-left: 1px solid #eee;
    border-right: 1px solid #eee;
    font-weight: 600;
    color: #000;
    font-size: 1.1rem;
    padding: 0;
}

.personalization-wrapper {
    flex: 1;
}

.custom-note-textarea {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 0.8rem;
    min-height: 45px;
    height: 45px;
    resize: vertical;
    transition: border-color 0.3s, height 0.3s;
}

.custom-note-textarea:focus {
    border-color: #222222;
    height: 80px;
    outline: none;
}

/* Allow reverting back if empty on blur */

/* Action buttons managed above */

.btn-wishlist-icon {
    width: 55px;
    height: 55px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border: 1px solid #ddd;
    font-size: 1.4rem;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-wishlist-icon:hover {
    background: #fff;
    border-color: #ccc;
}

.btn-wishlist-icon.active {
    color: #e60023;
}

/* --- Mobile Breakpoints --- */
@media(max-width: 768px) {
    .product-detail-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 40px;
    }

    .product-gallery {
        position: static;
        margin-top: 10px;
    }

    .product-info-detail {
        padding: 0 10px;
    }

    .product-title {
        font-size: 1.8rem;
    }

    .price-wrapper {
        font-size: 1.6rem;
    }

    .product-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding-bottom: 15px;
        margin-bottom: 12px;
    }

    .product-purchase-options {
        flex-direction: column;
        gap: 15px;
    }

    .personalization-wrapper {
        width: 100%;
    }

    .product-purchase-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .qty-input {
        width: 100% !important;
        height: 50px;
        justify-content: space-between;
    }

    .btn-add-cart,
    .btn-buy-now {
        width: 100%;
        height: 50px;
        font-size: 1rem;
    }

    .btn-wishlist-icon {
        width: 100%;
        height: 50px;
    }

    .product-description-short {
        padding: 15px;
        margin-bottom: 20px;
    }

    .trust-badges {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }

    .tab-nav {
        gap: 15px;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 10px;
    }

    .tab-link {
        font-size: 1rem;
        padding: 10px 0;
    }
}

/* --- Added Refined Styles --- */
.qty-selection-wrapper {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    border: 1px solid #f0f0f0;
}
.qty-label-group {
    display: flex;
    flex-direction: column;
}
.qty-label-group .qty-title {
    font-weight: 700;
    font-size: 0.85rem;
    color: #333;
    margin: 0;
}
.qty-label-group .qty-limit {
    font-size: 0.7rem;
    color: #777;
    margin-top: 2px;
}
.qty-input-group {
    display: flex;
    align-items: center;
    gap: 12px;
}
.qty-btn-circle {
    width: 45px;
    height: 28px;
    border-radius: 20px;
    border: 1px solid #eee;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1.1rem;
    padding: 0;
    line-height: 1;
}
.qty-btn-circle:hover {
    background: #f0f0f0;
    border-color: #ddd;
}
.qty-input-field-rect {
    width: 20px;
    height: 28px;
    border: 1px solid #eee;
    border-radius: 4px;
    text-align: center;
    font-weight: 600;
    font-size: 0.8rem;
    color: #333;
    background: #fff;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: textfield;
    padding: 0;
}

.delivery-estimate-card {
    background: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 0;
    margin-top: 20px;
    /* Removed overflow: hidden to prevent tooltip clipping */
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    position: relative;
    z-index: 10;
}
.estimate-top {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    font-size: 0.75rem;
    color: #444;
    background: #fafafa;
    border-radius: 12px 12px 0 0;
}
.estimate-top i {
    color: #777;
    font-size: 0.8rem;
}
.estimate-divider {
    height: 1px;
    background: #eee;
    margin: 0 18px;
}
.estimate-bottom {
    padding: 15px 18px;
}
.logistics-info {
    display: flex;
    align-items: center;
    gap: 15px;
}
.logistics-logo {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 0.6rem;
    font-weight: 800;
    color: #f27a1a;
    text-transform: uppercase;
    line-height: 1.1;
    text-align: center;
}
.delivery-date-info {
    display: flex;
    flex-direction: column;
}
.delivery-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #444;
    display: flex;
    align-items: center;
    gap: 5px;
}
.delivery-tooltip-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: help;
}
.delivery-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    border-radius: 12px;
    padding: 15px;
    width: 280px;
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.4;
    color: #555;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    text-align: left;
    text-transform: none;
    letter-spacing: normal;
}
.delivery-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #fff transparent transparent transparent;
}
.delivery-tooltip-wrapper:hover .delivery-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}
.delivery-title i {
    font-size: 0.7rem;
    color: #999;
}
.delivery-date {
    font-size: 0.75rem;
    color: #333;
    margin-top: 1px;
}
/* All Features Button */
.all-features-btn-wrapper {
    display: flex;
    justify-content: center;
    padding: 24px 0;
    border-top: 1px dashed #eee;
    margin-top: 10px;
}
.btn-all-features {
    background: #f8f8f8;
    border: 1px solid #eee;
    padding: 14px 40px;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #333;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-all-features i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}
.btn-all-features:hover {
    background: #fff;
    border-color: #333;
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}
.btn-all-features:hover i {
    transform: translateY(3px);
}

/* Product Info Grid */
.product-info-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    padding: 30px 10px;
}
.info-column {
    min-width: 0;
}
.info-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: #222;
    position: relative;
    padding-bottom: 10px;
}
.info-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: #333;
}
.extra-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.extra-info-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    font-size: 0.8rem;
    color: #555;
    line-height: 1.7;
}
.extra-info-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #333;
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1;
}
.return-info-item a {
    color: #333;
    text-decoration: underline;
    font-weight: 600;
}
.return-info-item a:hover {
    color: #333;
}

@media (max-width: 992px) {
    .product-info-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}
