﻿:root {
    --primary-color: #f97316;
    --primary-hover: #ea580c;
    --text-dark: #1c1917;
    --text-muted: #78716c;
    --bg-light: #fafaf9;
    --bg-cream: #f5f5f0;
    --border-color: #e7e5e4;
    --footer-bg: #1c1917;
}

body {   
    color: var(--text-dark);
    background-color: #fff;
}

/* Header */
.shop-header {
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1000;
}

.brand-logo {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: 0.05em;
}

.nav-link-custom {
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
    padding: 0.5rem 0;
    text-decoration: none;
}

    .nav-link-custom:hover,
    .nav-link-custom.active {
        color: var(--primary-color);
    }

        .nav-link-custom.active::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 2px;
            background: var(--primary-color);
        }

.icon-btn {
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.2s;
    color: var(--text-dark);
    border: none;
    background: transparent;
    text-decoration: none;
}

    .icon-btn:hover {
        background-color: var(--bg-light);
    }

.login-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
}

    .login-link:hover {
        text-decoration: underline;
    }

/* Breadcrumb Banner */
.breadcrumb-banner {
    background-color: var(--bg-cream);
    padding: 1rem 0;
}

.breadcrumb-custom {
    font-size: 0.875rem;
    margin: 0;
}

    .breadcrumb-custom a {
        color: var(--text-dark);
        text-decoration: none;
        transition: color 0.2s;
    }

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

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

/* Product Gallery */
.product-gallery {
    background-color: var(--bg-cream);
    padding: 2rem 0 3rem;
}

.thumbnail-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.thumbnail-item {
    width: 70px;
    height: 70px;
    border-radius: 0.5rem;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

    .thumbnail-item:hover,
    .thumbnail-item.active {
        border-color: var(--primary-color);
    }

    .thumbnail-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.main-image-wrapper {
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
    background: transparent;
}

.main-image {
    width: 100%;
    max-width: 500px;
    border-radius: 0.5rem;
}

.zoom-btn {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

    .zoom-btn:hover {
        background: #fff;
    }

/* Product Details Section */
.product-details-section {
    padding: 3rem 0;
}

/* Product Details Right */
.product-details-right {
    padding-left: 2rem;
}

.product-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    text-align: left;
}

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

.rating-stars {
    display: flex;
    gap: 0.125rem;
}

.star-filled {
    color: var(--primary-color);
}

.star-empty {
    color: #d1d5db;
}

.review-count {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.product-price {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.product-short-desc {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

/* Quantity Selector */
.quantity-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    overflow: hidden;
}

.quantity-btn {
    width: 2.5rem;
    height: 2.5rem;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

    .quantity-btn:hover {
        background: var(--bg-light);
    }

.quantity-input {
    width: 3rem;
    height: 2.5rem;
    border: none;
    text-align: center;
    font-weight: 500;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
}

    .quantity-input:focus {
        outline: none;
    }

.add-to-cart-btn {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 0.375rem;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background 0.2s;
}

    .add-to-cart-btn:hover {
        background: var(--primary-hover);
    }

    .add-to-cart-btn:disabled {
        opacity: 0.55;
        cursor: not-allowed;
    }

        .add-to-cart-btn:disabled:hover {
            background: var(--primary-color);
        }

.wishlist-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.875rem;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 1.5rem;
    transition: color 0.2s;
}

    .wishlist-link:hover {
        color: var(--primary-color);
    }

/* Safe Checkout */
.safe-checkout {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.safe-checkout-title {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-align: center;
}

.payment-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.payment-icon {
    height: 24px;
    opacity: 0.8;
}

/* Category */
.product-category-link {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

    .product-category-link a {
        color: var(--primary-color);
        text-decoration: none;
    }

        .product-category-link a:hover {
            text-decoration: underline;
        }

/* Tabs */
.product-tabs {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.nav-tabs-custom {
    border-bottom: 1px solid var(--border-color);
    gap: 2rem;
}

    .nav-tabs-custom .nav-link {
        border: none;
        color: var(--text-muted);
        font-weight: 500;
        padding: 0.75rem 0;
        background: transparent;
        position: relative;
    }

        .nav-tabs-custom .nav-link:hover {
            color: var(--text-dark);
        }

        .nav-tabs-custom .nav-link.active {
            color: var(--primary-color);
            background: transparent;
        }

            .nav-tabs-custom .nav-link.active::after {
                content: '';
                position: absolute;
                bottom: -1px;
                left: 0;
                right: 0;
                height: 2px;
                background: var(--primary-color);
            }

.tab-content {
    padding-top: 1.5rem;
}

.tab-pane h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.tab-pane p {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.7;
}

/* Footer */
.site-footer {
    background: var(--footer-bg);
    color: #fff;
    padding: 3rem 0 0;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-desc {
    color: #a1a1aa;
    font-size: 0.875rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-payment-icons {
    display: flex;
    gap: 0.5rem;
}

    .footer-payment-icons img {
        height: 24px;
        opacity: 0.8;
    }

.footer-title {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-links li {
        margin-bottom: 0.5rem;
    }

    .footer-links a {
        color: #a1a1aa;
        text-decoration: none;
        font-size: 0.875rem;
        transition: color 0.2s;
    }

        .footer-links a:hover {
            color: var(--primary-color);
        }

.newsletter-input-wrapper {
    display: flex;
    margin-top: 0.5rem;
}

.newsletter-input {
    flex: 1;
    padding: 0.625rem 1rem;
    border: 1px solid #3f3f46;
    background: transparent;
    color: #fff;
    border-radius: 0.375rem 0 0 0.375rem;
    font-size: 0.875rem;
}

    .newsletter-input::placeholder {
        color: #71717a;
    }

    .newsletter-input:focus {
        outline: none;
        border-color: var(--primary-color);
    }

.newsletter-btn {
    background: var(--primary-color);
    border: none;
    padding: 0.625rem 1rem;
    border-radius: 0 0.375rem 0.375rem 0;
    cursor: pointer;
    transition: background 0.2s;
}

    .newsletter-btn:hover {
        background: var(--primary-hover);
    }

.footer-bottom {
    border-top: 1px solid #3f3f46;
    padding: 1.5rem 0;
    margin-top: 2rem;
}

.copyright {
    color: #71717a;
    font-size: 0.875rem;
    text-align: center;
    margin: 0;
}

/* Enhanced detail elements ---------------------------------------------- */
.detail-brand {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary-color);
    margin-bottom: 0.4rem;
}

.detail-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 5;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.3rem 0.7rem;
    border-radius: 9999px;
}

.detail-badge--sale {
    background: #b91c1c;
    color: #fff;
}

.detail-price-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

    .detail-price-row .product-price {
        margin-bottom: 0;
        color: var(--primary-color);
    }

.detail-price-original {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.detail-price-save {
    font-size: 0.75rem;
    font-weight: 700;
    background: #fef2f2;
    color: #dc2626;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
}

.detail-meta {
    list-style: none;
    padding: 1.25rem 0 0;
    margin: 1.25rem 0 0;
    border-top: 1px solid var(--border-color);
}

    .detail-meta li {
        font-size: 0.875rem;
        color: var(--text-muted);
        margin-bottom: 0.5rem;
    }

    .detail-meta li span:first-child {
        font-weight: 600;
        color: var(--text-dark);
        margin-right: 0.4rem;
    }

    .detail-meta a {
        color: var(--primary-color);
        text-decoration: none;
    }

        .detail-meta a:hover {
            text-decoration: underline;
        }

.detail-stock.in {
    color: #16a34a;
    font-weight: 600;
}

.detail-stock.out {
    color: #dc2626;
    font-weight: 600;
}

.detail-spec {
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: 28rem;
}

    .detail-spec li {
        display: flex;
        justify-content: space-between;
        padding: 0.6rem 0;
        border-bottom: 1px solid var(--border-color);
        font-size: 0.9rem;
    }

    .detail-spec li span:first-child {
        color: var(--text-muted);
    }

    .detail-spec li span:last-child {
        font-weight: 600;
        color: var(--text-dark);
    }

/* Size selector --------------------------------------------------------- */
.size-selector {
    margin-bottom: 1.25rem;
}

.size-selector__head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.6rem;
}

.size-selector__label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
}

    .size-selector__label .size-req {
        color: var(--primary-color);
    }

.size-error {
    font-size: 0.8rem;
    color: #dc2626;
    font-weight: 600;
}

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

.size-option {
    min-width: 2.75rem;
    height: 2.75rem;
    padding: 0 0.5rem;
    border: 1px solid var(--border-color);
    background: #fff;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.15s;
}

    .size-option:hover {
        border-color: var(--primary-color);
        color: var(--primary-color);
    }

    .size-option.active {
        background: var(--primary-color);
        border-color: var(--primary-color);
        color: #fff;
    }

    .size-option--disabled {
        opacity: 0.4;
        cursor: not-allowed;
        text-decoration: line-through;
    }

        .size-option--disabled:hover {
            border-color: var(--border-color);
            color: var(--text-dark);
        }

.detail-colour {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

    .detail-colour strong {
        color: var(--text-dark);
    }

/* Out of stock visual --------------------------------------------------- */
.main-image-wrapper.is-out-of-stock .main-image {
    filter: blur(2px) grayscale(60%);
    opacity: 0.65;
}

.out-of-stock-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 6;
    background: rgba(28, 25, 23, 0.85);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.5rem 1.1rem;
    border-radius: 9999px;
}

/* Related products ------------------------------------------------------ */
.related-section {
    padding: 3.5rem 0 1rem;
}

.related-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 1.75rem;
}

.related-head__eyebrow {
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.related-head__title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.related-head__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s;
}

    .related-head__link:hover {
        color: var(--primary-color);
    }

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.related-card {
    display: block;
    border: 1px solid var(--border-color);
    border-radius: 0.6rem;
    overflow: hidden;
    background: #fff;
    text-decoration: none;
    transition: transform 0.25s, box-shadow 0.25s;
}

    .related-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 18px 30px -16px rgba(0, 0, 0, 0.25);
    }

.related-card__img {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

    .related-card__img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s;
    }

.related-card:hover .related-card__img img {
    transform: scale(1.05);
}

.related-card__badge {
    position: absolute;
    top: 0.6rem;
    left: 0.6rem;
    background: #b91c1c;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
}

.related-card__body {
    padding: 0.85rem;
}

.related-card__cat {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin: 0 0 0.25rem;
}

.related-card__title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 0.4rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.related-card__price .cur {
    font-weight: 700;
    color: var(--primary-color);
    margin-right: 0.4rem;
}

.related-card__price .orig {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

@media (max-width: 767.98px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .related-head__title {
        font-size: 1.3rem;
    }
}

/* Responsive */
@media (max-width: 991.98px) {
    .thumbnail-list {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }

    .thumbnail-item {
        flex-shrink: 0;
    }
}

@media (max-width: 767.98px) {
    .product-title {
        font-size: 1.25rem;
    }

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

    .quantity-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .add-to-cart-btn {
        width: 100%;
    }

    /* Gallery: stack full-width on mobile — big main image on top, thumbnail strip below */
    .product-gallery .row > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .product-gallery .col-9 { order: 1; }      /* main image first */
    .product-gallery .col-3 { order: 2; }      /* thumbnails strip */
    .product-gallery .col-lg-6 { order: 3; }   /* details last */
    .main-image { max-width: 100%; }
    .thumbnail-list { justify-content: center; }
}

/* Low-stock note shown under the quantity selector */
.qty-stock-note {
    margin-top: 10px;
    margin-bottom: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: #b45309;
    display: flex;
    align-items: center;
    gap: 6px;
}
.qty-stock-note::before {
    content: "\F33A"; /* bi-exclamation-triangle */
    font-family: "bootstrap-icons";
    font-weight: normal;
}
