﻿
:root {
    --primary: #13357B;
    --secondary: #FF5A5F;
    --dark: #2D3436;
    --light: #F5F5F5;
    --gray: #636E72;
    --success: #25D366;
    --danger: #E23A2E;
}

/* Base Styles */
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--light);
    color: var(--dark);
}

/* Product Gallery */
.product-gallery {
    position: relative;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.main-image {
    width: 100%;
    height: 350px;
    object-fit: contain;
    background: white;
}

.thumbnail-container {
    display: flex;
    gap: 8px;
    padding: 12px;
    overflow-x: auto;
    scrollbar-width: none;
}

    .thumbnail-container::-webkit-scrollbar {
        display: none;
    }

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}

    .thumbnail.active {
        border-color: var(--primary);
    }

/* Product Info */
.product-info {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-top: 16px;
}

.product-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-container {
    margin: 12px 0;
}

.current-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary);
}

.original-price {
    font-size: 1.2rem;
    text-decoration: line-through;
    color: var(--gray);
    margin-left: 8px;
}

.discount-badge {
    background-color: var(--secondary);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-left: 8px;
}

.meta-info {
    display: flex;
    gap: 16px;
    margin: 16px 0;
    color: var(--gray);
    font-size: 0.9rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.verified-badge {
    color: var(--primary);
    margin-left: 4px;
}

.specs-list {
    margin: 16px 0;
    padding: 0;
    list-style: none;
}

.spec-item {
    display: flex;
    margin-bottom: 8px;
}

.spec-label {
    font-weight: 600;
    min-width: 120px;
    color: var(--gray);
}

.spec-value {
    color: var(--dark);
}

/* Action Buttons */
.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 24px;
}

.btn-primary {
    background-color: var(--primary);
    border: none;
    color: white;
    padding: 14px;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-outline {
    background-color: white;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 14px;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-danger {
    background-color: var(--danger);
    color: white;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
}

.quantity-input {
    width: 80px;
    text-align: center;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-weight: 600;
}

/* Related Products */
.related-products {
    margin-top: 40px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark);
    position: relative;
    padding-bottom: 8px;
}

    .section-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 60px;
        height: 3px;
        background-color: var(--primary);
    }

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.2s;
}

    .product-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

.product-card-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.product-card-body {
    padding: 12px;
}

.product-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-card-price {
    font-weight: 700;
    color: var(--secondary);
}

.product-card-original-price {
    font-size: 0.8rem;
    color: var(--gray);
    text-decoration: line-through;
    margin-left: 4px;
}

/* Modal */
.modal-content {
    border-radius: 16px;
    border: none;
}


.share-menu {
    display: none;
    position: absolute;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 10px;
    z-index: 1000;
    width: 180px;
}

.share-option {
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
}

    .share-option:hover {
        background-color: #f5f5f5;
    }

    .share-option i {
        font-size: 1.2rem;
    }

/* Responsive Adjustments */
@media (min-width: 768px) {
    .product-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .product-gallery {
        margin-top: 0;
    }

    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .main-image {
        height: 450px;
    }
}