/* Product Details Page Styles */

.product-details-section {
    padding: 60px 0;
}

/* Product Images */
.product-images {
    position: sticky;
    top: 100px;
}

.main-image {
    border: 2px solid #ff2020;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    background: #fff;
    padding: 10px;
}

.main-image img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    border-radius: 8px;
}

.thumbnail-images {
    margin-top: 20px;
}

.thumbnail-images .col-3 {
    padding: 5px;
}

.thumbnail {
    border: 2px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 5px;
    background: #fff;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: #ff2020;
    box-shadow: 0 3px 10px rgba(255, 32, 32, 0.3);
}

.thumbnail img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
}

/* Product Info */
.product-info {
    padding: 20px;
}

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

.product-price {
    margin-bottom: 20px;
}

.product-price .price {
    font-size: 2rem;
    font-weight: 700;
    color: #ff2020;
}

.product-description {
    margin-bottom: 30px;
    color: #666;
    line-height: 1.8;
}

/* Product Options */
.product-options {
    margin-bottom: 25px;
}

.product-options h5 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.size-btn {
    width: 50px;
    height: 50px;
    border: 2px solid #ddd;
    background: #fff;
    color: #333;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.size-btn:hover {
    border-color: #ff2020;
    background: #fff5f5;
}

.size-btn.active {
    border-color: #ff2020;
    background: #ff2020;
    color: #fff;
}

/* Color Options */
.color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.color-btn {
    width: 50px;
    height: 50px;
    border: 2px solid #ddd;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.color-btn:hover,
.color-btn.active {
    border-color: #ff2020;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #ff2020;
}

/* Quantity Selector */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #007bff;
    background: #007bff;
    color: white;
    border-radius: 5px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: #0056b3;
    border-color: #0056b3;
}

.quantity-selector input {
    width: 80px;
    height: 40px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
}

/* Add to Cart Button */
.product-actions {
    margin-top: 30px;
}

.add-to-cart-btn {
    width: 100%;
    padding: 15px 30px;
    background: linear-gradient(135deg, #ff2020, #ff6b6b);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 32, 32, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 32, 32, 0.4);
}

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

.add-to-cart-btn i {
    font-size: 1.2rem;
}

/* Size Guide */
.size-guide {
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.btn-link {
    background: none;
    border: none;
    color: #007bff;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.95rem;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-link:hover {
    color: #0056b3;
}

/* Size Guide Modal */
.size-guide-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.size-guide-modal .modal-content {
    background: white;
    border-radius: 10px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.size-guide-modal .modal-header {
    padding: 20px 30px;
    border-bottom: 2px solid #f1f3f4;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.size-guide-modal .modal-header h3 {
    margin: 0;
    color: #333;
}

.close-modal {
    background: none;
    border: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
}

.close-modal:hover {
    color: #ff2020;
}

.size-guide-modal .modal-body {
    padding: 30px;
}

.size-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.size-table th,
.size-table td {
    padding: 12px;
    text-align: center;
    border: 1px solid #ddd;
}

.size-table th {
    background: #000;
    color: white;
    font-weight: 600;
}

.size-table tbody tr:hover {
    background: #fff5f5;
}

.measurement-tips {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #ff2020;
}

.measurement-tips h5 {
    color: #333;
    margin-bottom: 15px;
}

.measurement-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.measurement-tips li {
    padding: 8px 0;
    color: #666;
    line-height: 1.6;
}

.measurement-tips strong {
    color: #333;
}

/* Responsive */
@media (max-width: 991px) {
    .product-images {
        position: static;
        margin-bottom: 30px;
    }

    .main-image img {
        max-height: 400px;
    }

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

    .product-price .price {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .product-details-section {
        padding: 30px 0;
    }

    .product-info {
        padding: 10px;
    }

    .main-image img {
        max-height: 300px;
    }

    .thumbnail img {
        height: 70px;
    }

    .add-to-cart-btn {
        font-size: 1rem;
        padding: 12px 20px;
    }

    .size-guide-modal .modal-content {
        margin: 10px;
    }

    .size-guide-modal .modal-body {
        padding: 20px 15px;
    }

    .size-table {
        font-size: 0.85rem;
    }

    .size-table th,
    .size-table td {
        padding: 8px 5px;
    }
}

@media (max-width: 480px) {
    .size-btn {
        width: 45px;
        height: 45px;
        font-size: 0.9rem;
    }

    .quantity-selector input {
        width: 60px;
    }

    .qty-btn {
        width: 35px;
        height: 35px;
    }
}
