/* ========================================
   PRODUCT DETAIL PAGE - Modern Clean Design
   Reference: Shopify Product Page Style
   ======================================== */

.product-detail-section {
    padding: 40px 0 80px;
    background: var(--white);
}

/* ========================================
   MAIN PRODUCT WRAPPER
   ======================================== */
.product-main-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

/* ========================================
   PRODUCT GALLERY
   ======================================== */
.product-gallery-section {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.main-image-container {
    position: relative;
    background: #F9FAFB;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.main-product-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

.product-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 8px 16px;
    border-radius: 6px;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    z-index: 10;
}

.product-badge.sale {
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
}

.zoom-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.zoom-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.thumbnail-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.thumbnail {
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    background: #F9FAFB;
}

.thumbnail:hover {
    border-color: var(--primary-color);
}

.thumbnail.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 1px var(--primary-color);
}

.thumbnail img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

/* ========================================
   PRODUCT DETAILS
   ======================================== */
.product-details-section {
    padding-top: 10px;
}

.product-brand {
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    font-weight: 600;
}

.product-name {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    line-height: 1.2;
}

.product-rating-review {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.rating-stars {
    display: flex;
    gap: 4px;
}

.rating-stars i {
    color: #FFC107;
    font-size: 1rem;
}

.rating-text {
    font-size: 0.95rem;
    color: var(--text-light);
}

.product-price-section {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #E5E7EB;
}

.current-price {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.original-price {
    font-size: 1.4rem;
    color: #9CA3AF;
    text-decoration: line-through;
}

.product-short-description {
    margin-bottom: 32px;
}

.product-short-description p {
    color: #6B7280;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ========================================
   PRODUCT OPTIONS
   ======================================== */
.product-options-wrapper {
    margin-bottom: 32px;
}

.option-block {
    margin-bottom: 28px;
}

.option-label {
    display: block;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.option-label .selected-value {
    color: var(--text-light);
    font-weight: 400;
}

/* Color Selector */
.color-selector {
    display: flex;
    gap: 12px;
}

.color-option {
    position: relative;
    cursor: pointer;
}

.color-option input {
    display: none;
}

.color-box {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    display: block;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.color-option:hover .color-box {
    transform: scale(1.1);
}

.color-option.active .color-box {
    border-color: var(--text-dark);
    box-shadow: 0 0 0 2px white, 0 0 0 4px var(--text-dark);
}

/* Size Selector */
.size-selector {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.size-option {
    min-width: 90px;
    padding: 12px 20px;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    background: white;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    cursor: pointer;
    color: var(--text-dark);
}

.size-option:hover:not(.disabled) {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.size-option.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.size-option.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    position: relative;
}

.size-option.disabled::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #9CA3AF;
    transform: rotate(-45deg);
}

/* Quantity Selector */
.quantity-wrapper {
    display: flex;
    align-items: center;
}

.quantity-selector {
    display: inline-flex;
    align-items: center;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    overflow: hidden;
}

.qty-btn {
    width: 44px;
    height: 44px;
    background: white;
    border: none;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-dark);
}

.qty-btn:hover {
    background: #F3F4F6;
}

.qty-btn:active {
    background: var(--primary-color);
    color: white;
}

.quantity-selector input[type="number"] {
    width: 60px;
    height: 44px;
    border: none;
    border-left: 2px solid #E5E7EB;
    border-right: 2px solid #E5E7EB;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    background: white;
    -moz-appearance: textfield;
}

.quantity-selector input[type="number"]::-webkit-outer-spin-button,
.quantity-selector input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ========================================
   ACTION BUTTONS
   ======================================== */
.product-actions-wrapper {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
}

.btn-add-to-cart-main {
    flex: 1;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--primary-color), #FF8FAB);
    color: white;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-add-to-cart-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 107, 157, 0.3);
}

.btn-add-to-cart-main:active {
    transform: translateY(0);
}

.btn-wishlist-main {
    width: 56px;
    height: 56px;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    font-size: 1.4rem;
    color: #6B7280;
    background: white;
    cursor: pointer;
    transition: var(--transition);
}

.btn-wishlist-main:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #FFF1F3;
}

.btn-wishlist-main.active {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #FFF1F3;
}

.btn-wishlist-main.active i {
    font-weight: 900;
}

/* ========================================
   PRODUCT FEATURES
   ======================================== */
.product-features-list {
    margin-bottom: 32px;
    padding: 24px;
    background: #F9FAFB;
    border-radius: 8px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: #4B5563;
    font-size: 0.9rem;
}

.feature-item i {
    color: var(--orange);
    font-size: 1.1rem;
    width: 24px;
    flex-shrink: 0;
}

.feature-item strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* ========================================
   PRODUCT META
   ======================================== */
.product-meta-info {
    padding-top: 24px;
    border-top: 1px solid #E5E7EB;
}

.meta-row {
    display: flex;
    gap: 12px;
    padding: 8px 0;
    font-size: 0.9rem;
}

.meta-label {
    color: #6B7280;
    min-width: 80px;
}

.meta-value {
    color: var(--text-dark);
}

.meta-value a {
    color: var(--primary-color);
    transition: var(--transition);
}

.meta-value a:hover {
    text-decoration: underline;
}

/* ========================================
   PRODUCT TABS
   ======================================== */
.product-tabs-section {
    margin: 60px 0;
}

.tab-navigation {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #E5E7EB;
    margin-bottom: 40px;
    overflow-x: auto;
}

.tab-link {
    padding: 16px 32px;
    background: none;
    border: none;
    color: #6B7280;
    font-weight: 600;
    font-size: 1rem;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    position: relative;
    margin-bottom: -2px;
}

.tab-link:hover {
    color: var(--primary-color);
}

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

.tab-contents {
    min-height: 400px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-content-inner {
    max-width: 900px;
}

.tab-content-inner h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.tab-content-inner h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 32px 0 16px;
    color: var(--text-dark);
}

.tab-content-inner p {
    color: #6B7280;
    line-height: 1.8;
    margin-bottom: 16px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.feature-list li {
    padding: 12px 0 12px 32px;
    position: relative;
    color: #4B5563;
    line-height: 1.6;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #22C55E;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Specifications Table */
.specifications-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.specifications-table tbody tr {
    border-bottom: 1px solid #E5E7EB;
}

.specifications-table tbody tr:last-child {
    border-bottom: none;
}

.specifications-table td {
    padding: 16px;
    vertical-align: top;
}

.spec-label {
    font-weight: 600;
    color: var(--text-dark);
    width: 200px;
}

.spec-value {
    color: #6B7280;
}

/* ========================================
   REVIEWS SECTION
   ======================================== */
.reviews-header {
    margin-bottom: 40px;
}

.reviews-header h3 {
    margin-bottom: 24px;
}

.rating-summary {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 32px;
    background: #F9FAFB;
    border-radius: 12px;
}

.rating-number {
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.rating-details {
    flex: 1;
}

.rating-details .stars {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}

.rating-details .stars i {
    color: #FFC107;
    font-size: 1.4rem;
}

.rating-details p {
    margin: 0;
    color: #6B7280;
    font-size: 0.95rem;
}

.reviews-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}

.review-card {
    padding: 28px;
    background: #F9FAFB;
    border-radius: 12px;
    transition: var(--transition);
}

.review-card:hover {
    background: #F3F4F6;
}

.review-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.reviewer-avatar {
    flex-shrink: 0;
}

.reviewer-avatar img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
}

.reviewer-info {
    flex: 1;
}

.reviewer-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.review-stars {
    display: flex;
    gap: 4px;
}

.review-stars i {
    color: #FFC107;
    font-size: 0.9rem;
}

.review-date {
    font-size: 0.85rem;
    color: #9CA3AF;
    margin-left: auto;
}

.review-body p {
    color: #4B5563;
    line-height: 1.7;
    margin: 0;
}

.btn-load-more {
    padding: 14px 32px;
    background: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-load-more:hover {
    background: var(--primary-color);
    color: white;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .product-main-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .product-gallery-section {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .product-name {
        font-size: 1.8rem;
    }
    
    .current-price {
        font-size: 2rem;
    }
    
    .original-price {
        font-size: 1.2rem;
    }
    
    .product-actions-wrapper {
        flex-direction: column;
    }
    
    .btn-wishlist-main {
        width: 100%;
    }
    
    .tab-navigation {
        gap: 0;
    }
    
    .tab-link {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .thumbnail-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .size-selector {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .rating-summary {
        flex-direction: column;
        text-align: center;
    }
    
    .review-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .review-date {
        margin-left: 0;
    }
}
