/* Product Detail Page Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.product-detail-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.product-detail-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* Left Side - Images */
.product-images {
    position: sticky;
    top: 20px;
}

.main-image-container {
    width: 100%;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    background: #f8f9fa;
    margin-bottom: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

    .main-image:hover {
        transform: scale(1.05);
    }

.thumbnail-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.thumbnail {
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

    .thumbnail:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    }

    .thumbnail.active {
        border-color: #8b5cf6;
    }

    .thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* Right Side - Product Info */
.product-info {
    padding: 10px 0;
}

.product-category {
    color: #8b5cf6;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.product-title {
    font-size: 42px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
    line-height: 1.2;
}

.stock-badge {
    display: inline-block;
    background: #10b981;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.stars {
    display: flex;
    gap: 3px;
}

.star {
    color: #e5e7eb;
    font-size: 20px;
}

    .star.filled {
        color: #fbbf24;
    }

    .star.half {
        background: linear-gradient(90deg, #fbbf24 50%, #e5e7eb 50%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

.rating-text {
    color: #6b7280;
    font-size: 14px;
}

.product-pricing {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.current-price {
    font-size: 42px;
    font-weight: 700;
    color: #1a1a1a;
}

.original-price {
    font-size: 28px;
    color: #9ca3af;
    text-decoration: line-through;
}

.discount-badge {
    background: #fee2e2;
    color: #dc2626;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
}

.product-description {
    color: #6b7280;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 35px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 15px;
}

/* Size Options */
.size-section {
    margin-bottom: 30px;
}

.size-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.size-option {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    background: white;
}

    .size-option:hover {
        border-color: #8b5cf6;
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(139, 92, 246, 0.2);
    }

    .size-option.active {
        border-color: #8b5cf6;
        background: #f5f3ff;
    }

.size-icon {
    font-size: 24px;
    display: block;
    margin-bottom: 5px;
}

.size-label {
    display: block;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.size-price {
    display: block;
    font-size: 14px;
    color: #6b7280;
}

/* Color Options */
.color-section {
    margin-bottom: 30px;
}

#selectedColor {
    font-weight: 700;
    color: #8b5cf6;
}

.color-options {
    display: flex;
    gap: 12px;
}

.color-option {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

    .color-option:hover {
        transform: scale(1.1);
    }

    .color-option.active {
        border-color: #1a1a1a;
        box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
    }

/* Message Section */
.message-section {
    margin-bottom: 30px;
}

.message-input {
    width: 100%;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 15px;
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s ease;
}

    .message-input:focus {
        outline: none;
        border-color: #8b5cf6;
    }

/* Product Actions */
.product-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 35px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: white;
}

.qty-btn {
    width: 45px;
    height: 50px;
    border: none;
    background: white;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.3s ease;
    color: #1a1a1a;
}

    .qty-btn:hover {
        background: #f3f4f6;
    }

.qty-input {
    width: 60px;
    height: 50px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    background: white;
}

.btn {
    flex: 1;
    height: 50px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cart {
    background: #8b5cf6;
    color: white;
}

    .btn-cart:hover {
        background: #7c3aed;
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(139, 92, 246, 0.3);
    }

.btn-buy {
    background: #ec4899;
    color: white;
}

    .btn-buy:hover {
        background: #db2777;
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(236, 72, 153, 0.3);
    }

.btn-wishlist {
    flex: 0 0 50px;
    background: white;
    border: 2px solid #e5e7eb;
    font-size: 24px;
    color: #6b7280;
}

    .btn-wishlist:hover {
        border-color: #ef4444;
        color: #ef4444;
        transform: scale(1.1);
    }

    .btn-wishlist.active {
        background: #fef2f2;
        color: #ef4444;
        border-color: #ef4444;
    }

/* Product Meta */
.product-meta {
    border-top: 2px solid #e5e7eb;
    padding-top: 25px;
}

.meta-item {
    margin-bottom: 12px;
    color: #6b7280;
    font-size: 15px;
}

    .meta-item strong {
        color: #1a1a1a;
        margin-right: 8px;
    }

/* Responsive Design */
@media (max-width: 1024px) {
    .product-detail-wrapper {
        gap: 40px;
    }

    .product-title {
        font-size: 36px;
    }

    .current-price {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .product-detail-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product-images {
        position: relative;
        top: 0;
    }

    .main-image-container {
        height: 400px;
    }

    .product-title {
        font-size: 28px;
    }

    .current-price {
        font-size: 32px;
    }

    .original-price {
        font-size: 22px;
    }

    .size-options {
        grid-template-columns: 1fr;
    }

    .product-actions {
        flex-wrap: wrap;
    }

    .quantity-selector {
        width: 100%;
    }

    .btn-cart,
    .btn-buy {
        flex: 1 1 calc(50% - 6px);
    }

    .btn-wishlist {
        flex: 0 0 100%;
    }
}

@media (max-width: 480px) {
    .product-detail-container {
        padding: 20px 15px;
    }

    .product-title {
        font-size: 24px;
    }

    .current-price {
        font-size: 28px;
    }

    .thumbnail-container {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .thumbnail {
        height: 70px;
    }

    .main-image-container {
        height: 300px;
    }
}


/* Product Tabs Section - Description Only */
.product-tabs-section {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 2px solid #e5e7eb;
}

.tabs-header {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 40px;
}

.tab-button {
    padding: 18px 40px;
    background: transparent;
    border: none;
    font-size: 17px;
    font-weight: 600;
    color: #1a1a1a;
    cursor: default;
    border-bottom: 3px solid #8b5cf6;
    position: relative;
}

.tabs-content {
    padding: 20px 0;
}

.tab-pane {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-pane p {
    color: #4b5563;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}

    .tab-pane p:last-child {
        margin-bottom: 0;
    }

/* Responsive Design for Description Section */
@media (max-width: 768px) {
    .product-tabs-section {
        margin-top: 50px;
        padding-top: 30px;
    }

    .tab-button {
        padding: 15px 25px;
        font-size: 15px;
    }

    .tab-pane p {
        font-size: 15px;
        line-height: 1.7;
    }
}

@media (max-width: 480px) {
    .product-tabs-section {
        margin-top: 40px;
        padding-top: 25px;
    }

    .tab-button {
        padding: 12px 20px;
        font-size: 14px;
    }

    .tabs-content {
        padding: 15px 0;
    }

    .tab-pane p {
        font-size: 14px;
        margin-bottom: 15px;
    }
}



.product-description-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    background-color: white;
    padding: 40px;
}

.description-tab-navigation {
    display: flex;
    gap: 60px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 30px;
}

.description-tab-item {
    padding: 15px 0;
    font-size: 16px;
    color: #333;
    cursor: pointer;
    position: relative;
    font-weight: 400;
}

    .description-tab-item.tab-active-state {
        color: #6c3fb5;
        font-weight: 500;
    }

        .description-tab-item.tab-active-state::after {
            content: '';
            position: absolute;
            bottom: -1px;
            left: 0;
            right: 0;
            height: 3px;
            background-color: #6c3fb5;
        }

.description-text-content {
    color: #333;
    line-height: 1.8;
    font-size: 15px;
}

    .description-text-content p {
        margin-bottom: 20px;
    }

        .description-text-content p:last-child {
            margin-bottom: 0;
        }