/**
 * ZIN Fashion - Product Page Styles (Matching main.css exactly)
 * Location: /public_html/dev_staging/assets/css/product.css
 * Version: Final - Exact match with main.css homepage styles
 */

/* ========================================
   Product Section
   ======================================== */
.product-section {
    padding: 60px 0;
    min-height: 80vh;
    background: var(--bg-primary);
}

.product-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

/* ========================================
   Product Gallery
   ======================================== */
.product-gallery {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.gallery-main {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.main-image-container {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
    background: var(--bg-secondary);
}

.main-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.main-image-container:hover .main-image {
    transform: scale(1.05);
}

.zoom-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50%;
    z-index: 10;
}

.zoom-btn:hover {
    background: var(--gold-primary);
    color: #000;
    border-color: var(--gold-primary);
}

/* Gallery Thumbnails */
.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
}

.thumb-item {
    position: relative;
    padding-top: 100%;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.thumb-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-item:hover,
.thumb-item.active {
    border-color: var(--gold-primary);
}

.thumb-item.active {
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

/* ========================================
   Product Info
   ======================================== */
.product-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.sku {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rating i {
    color: var(--gold-primary);
    font-size: 14px;
}

.rating span {
    color: var(--text-secondary);
    font-size: 14px;
}

.product-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    font-family: 'Playfair Display', serif;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 15px;
}

.price-old {
    font-size: 20px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.price-current {
    font-size: 28px;
    font-weight: 700;
    color: var(--gold-primary);
}

.discount-badge {
    padding: 4px 12px;
    background: linear-gradient(135deg, #ff4444, #ff6666);
    color: white;
    font-size: 14px;
    font-weight: 600;
    border-radius: 20px;
}

.product-excerpt {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 15px;
}

/* ========================================
   Product Options Form
   ======================================== */
#productForm,
.product-options {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-group > label:first-child {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Color Options */
.color-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.color-option {
    position: relative;
    cursor: pointer;
}

.color-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.color-swatch {
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
}

.color-option:hover .color-swatch {
    transform: scale(1.1);
    border-color: var(--gold-primary);
}

.color-option input:checked + .color-swatch {
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.color-option input:checked + .color-swatch::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.color-name {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.color-option:hover .color-name {
    opacity: 1;
}

/* Size Options */
.size-guide-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gold-primary);
    font-size: 13px;
    text-decoration: underline;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: auto;
    transition: color 0.3s ease;
    padding: 0;
}

.size-guide-link:hover {
    color: var(--gold-secondary);
}

.size-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.size-option {
    position: relative;
}

.size-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.size-label {
    display: inline-block;
    padding: 10px 20px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    min-width: 60px;
    text-align: center;
}

.size-option:hover .size-label {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

.size-option input:checked + .size-label {
    background: var(--gold-primary);
    color: #000;
    border-color: var(--gold-primary);
}

.size-option input:disabled + .size-label {
    opacity: 0.5;
    cursor: not-allowed;
    text-decoration: line-through;
}

.quantity-section {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 8px;
}

/* Quantity Selector - Compact */
.option-group.quantity-group {
    flex-direction: row;
    align-items: center;
    margin: 0;
}

.option-group.quantity-group label {
    margin-right: 15px;
    margin-bottom: 0;
}

.quantity-selector {
    display: flex;
    align-items: center;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.qty-btn {
    width: 35px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.qty-btn:hover {
    background: var(--gold-primary);
    color: #000;
}

#quantity {
    width: 50px;
    height: 40px;
    text-align: center;
    background: transparent;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 500;
}

/* Product Detail Action Buttons - MATCHING MAIN.CSS EXACTLY */
.product-detail-actions {
    display: flex;
    gap: 10px;
    flex: 1;
}

/* MATCHING main.css .btn-add-to-cart EXACTLY */
.btn-detail-cart {
    width: 100%;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-detail-cart:hover {
    background: var(--gold-primary);
    color: var(--bg-primary);
}

.btn-detail-cart:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* MATCHING main.css .btn-icon EXACTLY */
.btn-detail-wishlist {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.btn-detail-wishlist:hover {
    background: var(--gold-primary);
    color: var(--bg-primary);
    transform: scale(1.1);
}

/* Stock Info - Separate section */
.stock-info {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.in-stock {
    color: #27ae60;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.out-of-stock {
    color: #e74c3c;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.stock-count {
    color: var(--text-muted);
    font-size: 14px;
}

/* ========================================
   Product Share Section
   ======================================== */
.product-share {
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.share-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.share-btn.facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
    color: white;
}

.share-btn.whatsapp:hover {
    background: #25d366;
    border-color: #25d366;
    color: white;
}

.share-btn.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: #e6683c;
    color: white;
}

.share-btn.tiktok:hover {
    background: #000000;
    border-color: #ff0050;
    color: white;
}

.share-btn.copy-link:hover {
    background: var(--gold-primary);
    border-color: var(--gold-primary);
    color: #000;
}

/* Product Features */
.product-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 25px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature i {
    font-size: 20px;
    color: var(--gold-primary);
}

.feature span {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ========================================
   Product Tabs
   ======================================== */
.product-tabs {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.tabs-nav {
    display: flex;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    flex: 1;
    padding: 15px 20px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn:hover {
    color: var(--gold-primary);
    background: var(--bg-hover);
}

.tab-btn.active {
    color: var(--gold-primary);
    background: var(--bg-card);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gold-primary);
}

.tabs-content {
    padding: 30px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.content-wrapper {
    max-width: 100%;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Details Table */
.details-table {
    width: 100%;
    border-collapse: collapse;
}

.details-table tr {
    border-bottom: 1px solid var(--border-color);
}

.details-table td {
    padding: 12px 0;
}

.details-table td:first-child {
    font-weight: 600;
    color: var(--text-primary);
    width: 150px;
}

/* Size Chart */
.size-chart {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.size-chart th,
.size-chart td {
    padding: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.size-chart th {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--gold-primary);
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
}

.size-chart td {
    background: var(--bg-primary);
}

.size-guide-tips {
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 4px;
}

.size-guide-tips h4 {
    color: var(--gold-primary);
    margin-bottom: 15px;
}

.size-guide-tips ul {
    list-style: none;
    padding: 0;
}

.size-guide-tips li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: var(--text-secondary);
}

.size-guide-tips li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--gold-primary);
}

/* Reviews */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 30px;
}

.review-item {
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.reviewer-info strong {
    color: var(--text-primary);
}

.verified {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #27ae60;
    font-size: 13px;
}

.review-date {
    color: var(--text-muted);
    font-size: 13px;
}

.review-rating {
    margin-bottom: 10px;
}

.review-rating i {
    color: var(--gold-primary);
    font-size: 14px;
}

.review-title {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.review-text {
    color: var(--text-secondary);
    line-height: 1.6;
}

.no-reviews {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

/* ========================================
   Related Products Section - USING MAIN.CSS CLASSES
   ======================================== */
.related-products {
    padding: 80px 0;
    background: var(--bg-primary);
}

.related-products h2 {
    text-align: center;
    margin-bottom: 50px;
    color: var(--gold-primary);
    position: relative;
    font-size: 2.5rem;
    font-family: 'Playfair Display', serif;
}

.related-products h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, #d4af37 0%, #f4e5c2 50%, #d4af37 100%);
}

/* USE THE EXACT SAME CLASSES AS MAIN.CSS */
/* Products Grid - FROM main.css line 1067 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* Product Card - FROM main.css line 1374 */
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold-primary);
}

/* Product Badge - FROM main.css line 1388 */
.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2;
}

.badge-new {
    background: var(--gold-primary);
    color: var(--bg-primary);
}

.badge-sale {
    background: #ff4444;
    color: white;
}

.badge-bestseller {
    background: var(--bg-primary);
    color: var(--gold-primary);
    border: 1px solid var(--gold-primary);
}

/* Product Image - FROM main.css line 1414 */
.product-image {
    position: relative;
    height: 350px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

/* Product Actions - FROM main.css line 1429 */
.product-actions {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-actions {
    opacity: 1;
}

/* Button Icon - FROM main.css line 1444 */
.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    background: var(--gold-primary);
    color: var(--bg-primary);
    transform: scale(1.1);
}

/* Product Info - FROM main.css line 1463 */
.product-info {
    padding: 20px;
}

.product-category {
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.product-name {
    margin-bottom: 10px;
}

.product-name a {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.product-name a:hover {
    color: var(--gold-primary);
}

/* Product Price - FROM main.css line 1488 */
.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.price-old {
    color: var(--text-muted);
    text-decoration: line-through;
    font-size: 14px;
}

.price-current {
    color: var(--gold-primary);
    font-size: 18px;
    font-weight: 600;
}

/* Add to Cart Button - FROM main.css line 1504 */
.btn-add-to-cart {
    width: 100%;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add-to-cart:hover {
    background: var(--gold-primary);
    color: var(--bg-primary);
}

/* ========================================
   Modals
   ======================================== */
.image-zoom-modal,
.review-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.zoom-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.zoom-modal-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.zoom-close,
.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.zoom-close:hover,
.modal-close:hover {
    background: var(--gold-primary);
    color: #000;
}

.review-modal-content {
    background: var(--bg-card);
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.review-modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.review-modal-header h3 {
    margin: 0;
    color: var(--gold-primary);
}

.review-form {
    padding: 20px;
}

.review-form .form-group {
    margin-bottom: 20px;
}

.review-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
}

.review-form input[type="text"],
.review-form textarea {
    width: 100%;
    padding: 10px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 4px;
}

.star-rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 5px;
}

.star-rating-input input {
    display: none;
}

.star-rating-input label {
    cursor: pointer;
    font-size: 24px;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.star-rating-input input:checked ~ label,
.star-rating-input label:hover,
.star-rating-input label:hover ~ label {
    color: var(--gold-primary);
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1199px) {
    .product-container {
        gap: 40px;
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .product-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .product-gallery {
        position: static;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .product-features {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Stack purchase section on tablet */
    .purchase-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    .option-group.quantity-group {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .option-group.quantity-group label {
        margin-bottom: 10px;
    }
    
    .product-detail-actions {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .product-section {
        padding: 40px 0;
    }
    
    .product-title {
        font-size: 24px;
    }
    
    .price-current {
        font-size: 24px;
    }
    
    .tabs-nav {
        flex-direction: column;
    }
    
    .tab-btn {
        text-align: left;
        padding: 12px 20px;
    }
    
    .tab-btn.active::after {
        width: 3px;
        height: 100%;
        left: 0;
        bottom: 0;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .product-image {
        height: 250px;
    }
    
    .product-info {
        padding: 15px;
    }
    
    .product-share {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .share-buttons {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 575px) {
    .gallery-thumbs {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .color-options {
        gap: 8px;
    }
    
    .color-swatch {
        width: 35px;
        height: 35px;
    }
    
    .size-options {
        gap: 8px;
    }
    
    .size-label {
        padding: 8px 15px;
        font-size: 14px;
    }
    
    .related-products h2 {
        font-size: 1.8rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-card {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .product-image {
        height: 300px;
    }
}