/**
 * Product Details Page Styles - Clean Version
 * Based on millet-chikki.php design structure
 * Simplified and optimized for performance
 */

/* ===== BASIC RESET AND VARIABLES ===== */
* {
    box-sizing: border-box;
}

:root {
    --primary-color: #007bff;
    --secondary-color: #000;
    --text-color: #333;
    --text-muted: #6c757d;
    --border-radius: 8px;
    --border-radius-lg: 20px;
    --transition: all 0.3s ease;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* ===== MAIN CONTAINER ===== */
.container.mt-5.p-5.rounded {
    margin-top: 3rem !important;
    padding: 3rem !important;
    border-radius: 0.5rem !important;
}

.container {
    position: relative;
}

/* ===== PRODUCT IMAGES SECTION ===== */
.product-images-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.main-product-image {
    width: 100% !important;
    height: auto;
    display: none;
    object-fit: contain;
    border-radius: 8px;
    transition: var(--transition);
}

.main-product-image.active {
    display: block !important;
}

.main-product-image:hover {
    transform: scale(1.02);
}

/* ===== THUMBNAIL GALLERY ===== */
.xzoom-thumbs {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 15px;
}

.xzoom-thumbs a {
    flex-shrink: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.xzoom-thumbs a:hover,
.xzoom-thumbs a.active {
    border-color: #007bff;
    transform: scale(1.05);
}

.xzoom-gallery {
    width: 80px !important;
    height: 80px !important;
    margin: 0px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.xzoom-gallery.xactive {
    border: 2px solid var(--primary-color);
}

/* ===== PRODUCT INFO SECTION ===== */
.product-data {
    padding: 20px;
    position: relative;
}

.product-data h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* ===== PRICING SECTION ===== */
.price {
    margin: 15px 0;
}

.price p {
    margin: 5px 0;
    font-size: 1.2rem;
}

.text-decoration-line-through {
    text-decoration: line-through;
    color: var(--text-muted);
    margin-right: 10px;
}

#price-button {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1.3rem;
}

.text-muted {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===== PACK OPTIONS ===== */
.pack-options {
    margin: 20px 0;
}

.pack-options p {
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.switch-image {
    margin-right: 8px;
    margin-bottom: 8px;
    border-radius: var(--border-radius-lg);
    width: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.switch-image:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.switch-image.btn-dark {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

/* ===== QUANTITY SELECTOR ===== */
.quantity {
    margin: 20px 0;
}

.quantity p {
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.quantity .d-inline-flex {
    border: 1px solid var(--secondary-color);
    border-radius: 25px;
    padding: 5px 15px;
    background: white;
}

.quantity button {
    border: none;
    background: transparent;
    color: var(--secondary-color);
    font-weight: 700;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    transition: var(--transition);
}

.quantity button:hover {
    background: var(--primary-color);
    color: white;
}

.quantity .fw-bold {
    color: var(--secondary-color);
    font-size: 1.1rem;
    min-width: 30px;
    text-align: center;
}

/* ===== ACTION BUTTONS ===== */
.btn {
    border-radius: var(--border-radius-lg);
    padding: 8px 20px;
    font-weight: 600;
    transition: var(--transition);
    margin-right: 10px;
    margin-bottom: 10px;
}

.btn-outline-dark {
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    background: transparent;
}

.btn-outline-dark:hover {
    background: var(--secondary-color);
    color: white;
}

.btn-dark {
    background: var(--secondary-color);
    border: 1px solid var(--secondary-color);
    color: white;
}

.btn-dark:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-success {
    background: #28a745;
    border: 1px solid #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
    border-color: #218838;
}

/* ===== PRODUCT FEATURES ===== */
.product-details {
    margin-top: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.product-details h6 {
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 15px;
}

.product-details ul {
    list-style: none;
    padding-left: 0;
}

.product-details li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: var(--text-color);
}

.product-details li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.product-details .text-uppercase {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 0.9rem;
}

/* ===== SOCIAL ICONS ===== */
.social-icons {
    position: absolute;
    right: 6%;
    top: 50%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: black;
    padding: 10px;
    border-radius: 30px;
    z-index: 100;
}

.social-icons a {
    color: white;
    font-size: 20px;
    text-align: center;
    padding: 8px;
    transition: 0.3s;
    text-decoration: none;
}

.social-icons i {
    color: #fff;
}

.social-icons a:hover {
    color: #ffcc00;
}

/* ===== CART INDICATORS ===== */
.in-cart-indicator {
    display: inline-flex;
    align-items: center;
    background: #28a745;
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.current-package-info .alert {
    border-left: 4px solid var(--primary-color);
    background: rgba(0, 123, 255, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* ===== RELATED PRODUCTS ===== */
#productList {
    background-color: #fff;
    padding: 50px 0;
}

#productList h3 {
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 1.8rem;
}

.product-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    transition: var(--transition);
    height: 100%;
    box-shadow: var(--shadow);
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.pen img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    transition: var(--transition);
}

.pen:hover img {
    transform: scale(1.05);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .row {
        margin: 0;
    }

    .col-md-4,
    .col-md-8,
    .col-md-6 {
        padding: 10px;
    }

    .product-images-container {
        margin-bottom: 20px;
    }

    .main-product-image {
        max-height: 300px;
        width: 100% !important;
        object-fit: contain;
    }

    .product-data {
        margin-top: 20px;
        padding: 15px;
    }

    .product-data h2 {
        font-size: 1.8rem;
    }

    .social-icons {
        display: none;
    }

    .xzoom-thumbs {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .xzoom-thumbs::-webkit-scrollbar {
        height: 4px;
    }

    .xzoom-thumbs::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 2px;
    }

    .xzoom-thumbs::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 2px;
    }

    .xzoom-gallery {
        width: 60px !important;
        height: 60px !important;
    }
}

@media (max-width: 480px) {
    .main-product-image {
        max-height: 250px;
    }

    .product-data h2 {
        font-size: 1.6rem;
    }

    .xzoom-gallery {
        width: 50px !important;
        height: 50px !important;
    }

    .xzoom-thumbs {
        gap: 8px;
    }

    .btn {
        font-size: 0.9rem;
        padding: 6px 16px;
    }

    .switch-image {
        width: 45px;
        font-size: 0.9rem;
    }
}/* ===== UTILITY CLASSES ===== */
.text-center {
    text-align: center;
}

.fw-bold {
    font-weight: 700;
}

.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }

.p-5 { padding: 3rem; }

.rounded { border-radius: var(--border-radius); }
