/* ===================================== */
/* PRODUCT PAGE STYLES - CRUSTHOOD      */
/* ===================================== */

:root {
    --gold-primary: #d4af37;
    --gold-light: #f4e4c1;
    --gold-dark: #b8941e;
    --dark-bg: #0a0a0a;
    --dark-secondary: #1a1a1a;
    --dark-tertiary: #2a2a2a;
    --text-primary: #f5f5f5;
    --text-secondary: #c0c0c0;
    --text-muted: #808080;
    --border-color: rgba(212, 175, 55, 0.15);
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.product-page {
    padding: 2rem 0 4rem;
    min-height: 100vh;
}

/* ===================================== */
/* BREADCRUMB                            */
/* ===================================== */

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--gold-primary);
}

.breadcrumb .separator {
    color: var(--text-muted);
}

.breadcrumb .current {
    color: var(--gold-primary);
}

/* ===================================== */
/* PRODUCT DETAILS                       */
/* ===================================== */

.product-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

/* Product Images */
.product-images {
    position: sticky;
    top: 90px;
    height: fit-content;
}

.main-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background: var(--dark-secondary);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.main-image:hover img {
    transform: scale(1.05);
}

.discount-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.thumbnail-images {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    cursor: pointer;
    object-fit: cover;
    transition: all 0.3s ease;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--gold-primary);
    transform: scale(1.05);
}

/* Product Info */
.product-info {
    padding: 1rem 0;
}

.product-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.product-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.product-meta strong {
    color: var(--gold-primary);
}

.stock {
    padding: 0.4rem 1rem;
    border-radius: 6px;
    font-weight: 600;
}

.stock.in-stock {
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.stock.out-of-stock {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.product-price {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.selling-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold-primary);
}

.mrp {
    font-size: 1.5rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.discount-label {
    padding: 0.4rem 0.8rem;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
}

.short-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

/* Product Options */
.product-options {
    margin-bottom: 2rem;
}

.option-label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.size-btn {
    min-width: 60px;
    padding: 0.75rem 1.25rem;
    background: var(--dark-secondary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.size-btn:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    transform: translateY(-2px);
}

.size-btn.selected {
    background: var(--gold-primary);
    border-color: var(--gold-primary);
    color: var(--dark-bg);
}

.color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.color-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 3px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.color-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.color-btn.selected {
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.3);
}

.color-btn.selected::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}

/* Quantity Selector */
.quantity-selector {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--dark-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem;
}

.qty-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--gold-primary);
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.qty-btn:hover {
    background: rgba(212, 175, 55, 0.15);
}

.qty-btn .material-symbols-outlined {
    font-size: 20px;
}

#quantity {
    width: 60px;
    text-align: center;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

/* Action Buttons */
.product-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    letter-spacing: 0.5px;
}

.btn .material-symbols-outlined {
    font-size: 22px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: var(--dark-bg);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
}

.btn-secondary {
    background: var(--dark-secondary);
    color: var(--gold-primary);
    border: 2px solid var(--gold-primary);
}

.btn-secondary:hover {
    background: rgba(212, 175, 55, 0.15);
    transform: translateY(-3px);
}

.btn-disabled {
    background: var(--dark-tertiary);
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Product Features */
.product-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 2rem;
    background: var(--dark-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.feature-item .material-symbols-outlined {
    color: var(--gold-primary);
    font-size: 24px;
}

/* Manufacturer Info */
.manufacturer-info {
    padding: 1.5rem;
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.manufacturer-info strong {
    color: var(--text-primary);
}

/* ===================================== */
/* PRODUCT TABS                          */
/* ===================================== */

.product-tabs {
    background: var(--dark-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
}

.tab-headers {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}

.tab-header {
    flex: 1;
    padding: 1.25rem 2rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-header:hover {
    color: var(--text-primary);
    background: rgba(212, 175, 55, 0.05);
}

.tab-header.active {
    color: var(--gold-primary);
    background: rgba(212, 175, 55, 0.1);
}

.tab-header.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gold-primary);
}

.tab-contents {
    padding: 2.5rem;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.tab-content h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.description-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* Specifications Table */
.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid var(--border-color);
}

.specs-table tr:last-child {
    border-bottom: none;
}

.specs-table td {
    padding: 1rem 0;
    font-size: 0.95rem;
}

.specs-table td:first-child {
    color: var(--text-muted);
    width: 30%;
    font-weight: 500;
}

.specs-table td:last-child {
    color: var(--text-primary);
    font-weight: 600;
}

/* Reviews */
.no-reviews {
    color: var(--text-muted);
    font-size: 1rem;
    text-align: center;
    padding: 2rem;
}

/* ===================================== */
/* ANIMATIONS                            */
/* ===================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================== */
/* RESPONSIVE DESIGN                     */
/* ===================================== */

@media (max-width: 1200px) {
    .product-details {
        gap: 3rem;
    }

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

    .selling-price {
        font-size: 2rem;
    }
}

@media (max-width: 992px) {
    .product-details {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-images {
        position: relative;
        top: 0;
    }

    .product-features {
        grid-template-columns: 1fr;
    }

    .tab-headers {
        flex-wrap: wrap;
    }

    .tab-header {
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
    }

    .tab-contents {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .product-page {
        padding: 1.5rem 0 3rem;
    }

    .breadcrumb {
        font-size: 0.8rem;
        gap: 0.3rem;
        margin-bottom: 1.5rem;
    }

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

    .product-meta {
        flex-direction: column;
        gap: 0.75rem;
        margin-bottom: 1rem;
        padding-bottom: 1rem;
    }

    .product-price {
        flex-wrap: wrap;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }

    .selling-price {
        font-size: 1.75rem;
    }

    .mrp {
        font-size: 1.25rem;
    }

    .short-description {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .product-options {
        margin-bottom: 1.5rem;
    }

    .size-btn {
        min-width: 50px;
        padding: 0.6rem 1rem;
        font-size: 0.875rem;
    }

    .color-btn {
        width: 40px;
        height: 40px;
    }

    .product-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .btn {
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
    }

    .product-features {
        padding: 1.5rem;
        gap: 0.75rem;
    }

    .feature-item {
        font-size: 0.85rem;
    }

    .manufacturer-info {
        padding: 1.25rem;
        font-size: 0.85rem;
    }

    .tab-header {
        flex: 1 1 100%;
        padding: 1rem;
        font-size: 0.875rem;
    }

    .tab-contents {
        padding: 1.5rem;
    }

    .tab-content h2 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .description-text {
        font-size: 0.9rem;
        line-height: 1.7;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .product-page {
        padding: 1rem 0 2rem;
    }

    .breadcrumb {
        font-size: 0.75rem;
        overflow-x: auto;
        white-space: nowrap;
    }

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

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

    .mrp {
        font-size: 1.1rem;
    }

    .discount-label {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }

    .size-options,
    .color-options {
        gap: 0.5rem;
    }

    .size-btn {
        min-width: 45px;
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }

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

    .quantity-selector {
        padding: 0.3rem;
    }

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

    #quantity {
        width: 50px;
        font-size: 1rem;
    }

    .btn {
        padding: 0.8rem 1.25rem;
        font-size: 0.875rem;
        gap: 0.5rem;
    }

    .product-features {
        grid-template-columns: 1fr;
        padding: 1.25rem;
        gap: 0.5rem;
    }

    .feature-item {
        font-size: 0.8rem;
    }

    .feature-item .material-symbols-outlined {
        font-size: 20px;
    }

    .manufacturer-info {
        padding: 1rem;
        font-size: 0.8rem;
    }

    .tab-header {
        padding: 0.875rem;
        font-size: 0.8rem;
    }

    .tab-contents {
        padding: 1.25rem;
    }

    .tab-content h2 {
        font-size: 1.1rem;
    }

    .description-text {
        font-size: 0.85rem;
    }

    .specs-table td {
        padding: 0.75rem 0;
        font-size: 0.85rem;
    }

    .discount-badge {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        top: 0.75rem;
        right: 0.75rem;
    }

    .thumbnail {
        width: 60px;
        height: 60px;
    }
}

/* ===================================== */
/* PRINT STYLES                          */
/* ===================================== */

@media print {
    .product-actions,
    .breadcrumb,
    .product-tabs {
        display: none;
    }

    .product-details {
        grid-template-columns: 1fr;
    }

    .product-images {
        page-break-after: always;
    }
}



/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid var(--gold-primary);
    color: var(--text-primary);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.6);
    opacity: 0;
    transform: translateY(40px);
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 5000;
    font-size: 0.95rem;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.toast .material-symbols-outlined {
    color: var(--gold-primary);
    font-size: 24px;
}
