﻿:root {
    --color-primary: #1a1a1a;
    --color-secondary: #6b5b4d;
    --color-accent: #8b7355;
    --color-bg: #fafaf8;
    --color-surface: #ffffff;
    --color-border: #e8e6e1;
    --color-text: #2c2c2c;
    --color-text-light: #6b6b6b;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    padding-bottom: 88px;
    background-color: var(--color-bg);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--color-text);
    line-height: 1.6;
    font-size: 15px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--color-primary);
}

header {
    background-color: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1020;
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
}

.brand-logo {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--color-border);
}

.brand-name {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-primary);
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.brand-tagline {
    font-size: 0.75rem;
    color: var(--color-text-light);
    font-weight: 400;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.btn-chat {
    background-color: transparent;
    border: 1.5px solid var(--color-border);
    color: var(--color-text);
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    letter-spacing: 0.01em;
}

    .btn-chat:hover {
        background-color: var(--color-primary);
        border-color: var(--color-primary);
        color: white;
        transform: translateY(-1px);
        box-shadow: var(--shadow-md);
    }

.sticky-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--color-accent) transparent;
}

    .sticky-sidebar::-webkit-scrollbar {
        width: 5px;
    }

    .sticky-sidebar::-webkit-scrollbar-thumb {
        background-color: var(--color-accent);
        border-radius: 10px;
    }

    .sticky-sidebar::-webkit-scrollbar-track {
        background: transparent;
    }

.custom-card {
    background: var(--color-surface);
    border-radius: 12px;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

    .custom-card:hover {
        box-shadow: var(--shadow-md);
    }

.card-padding {
    padding: 2rem;
}

.main-product-img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    background: linear-gradient(135deg, #fafaf8 0%, #f5f5f3 100%);
    padding: 2rem;
    border-bottom: 1px solid var(--color-border);
}

.gallery-container {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 0;
}

.gallery-img {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid var(--color-border);
    object-fit: cover;
    transition: all 0.3s ease;
    background: #fafaf8;
}

    .gallery-img:hover {
        border-color: var(--color-accent);
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

    .gallery-img.active {
        border-color: var(--color-primary);
        box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.1);
    }

.product-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
    font-weight: 600;
}

.product-subtitle {
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.price-tag {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: -0.03em;
}

.stock-badge {
    background-color: #f0f7f4;
    color: #2d7a5a;
    border: 1px solid #d0e7dc;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.card-header-custom {
    background: linear-gradient(135deg, #fafaf8 0%, #f5f5f3 100%);
    border-bottom: 1px solid var(--color-border);
    padding: 1.25rem 2rem;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--color-primary);
}

.form-label {
    font-weight: 500;
    color: var(--color-text);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.01em;
}

.form-control {
    border: 1.5px solid var(--color-border);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background-color: var(--color-surface);
}

    .form-control:focus {
        border-color: var(--color-accent);
        box-shadow: 0 0 0 3px rgba(139, 115, 85, 0.1);
        outline: none;
    }

    .form-control::placeholder {
        color: #b8b8b8;
    }

textarea.form-control {
    resize: vertical;
}

.quantity-box {
    background: linear-gradient(135deg, #fafaf8 0%, #f5f5f3 100%);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.quantity-label {
    font-weight: 600;
    color: var(--color-text);
    font-size: 0.95rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qty-btn {
    background-color: var(--color-surface);
    border: 1.5px solid var(--color-border);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    color: var(--color-text);
    font-size: 1.1rem;
}

    .qty-btn:hover {
        background-color: var(--color-primary);
        border-color: var(--color-primary);
        color: white;
    }

#quantity {
    width: 60px;
    text-align: center;
    border: 1.5px solid var(--color-border);
    border-radius: 8px;
    font-weight: 600;
    padding: 0.5rem;
    font-size: 1rem;
}

.btn-primary-custom {
    background: linear-gradient(135deg, var(--color-primary) 0%, #2d2d2d 100%);
    border: none;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    color: white;
    font-size: 1rem;
    letter-spacing: 0.02em;
    box-shadow: var(--shadow-md);
    text-transform: uppercase;
    font-size: 0.875rem;
}

    .btn-primary-custom:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
        background: linear-gradient(135deg, #2d2d2d 0%, var(--color-primary) 100%);
    }

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--color-border);
    color: var(--color-primary);
}

.description-content {
    line-height: 1.8;
    color: var(--color-text);
    font-size: 0.95rem;
}

    .description-content h3 {
        font-size: 1.3rem;
        margin-top: 2rem;
        margin-bottom: 1rem;
        color: var(--color-primary);
    }

    .description-content p {
        margin-bottom: 1.25rem;
    }

    .description-content ul {
        padding-left: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .description-content li {
        margin-bottom: 0.5rem;
        padding-left: 0.5rem;
    }

    .description-content img {
        max-width: 100%;
        height: auto;
        border-radius: 12px;
        margin: 2rem 0;
        box-shadow: var(--shadow-md);
    }

    .description-content blockquote {
        border-left: 4px solid var(--color-accent);
        padding-left: 1.5rem;
        margin: 2rem 0;
        font-style: italic;
        color: var(--color-text-light);
        font-size: 1.05rem;
        background: #fafaf8;
        padding: 1.5rem;
        border-radius: 0 8px 8px 0;
    }

.related-product-card {
    border: 1px solid var(--color-border);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: var(--color-surface);
    height: 100%;
}

    .related-product-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-md);
        border-color: var(--color-accent);
    }

.related-product-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: linear-gradient(135deg, #fafaf8 0%, #f5f5f3 100%);
}

.related-product-info {
    padding: 1rem;
}

.related-product-title {
    font-weight: 600;
    color: var(--color-primary);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.related-product-price {
    font-family: 'Playfair Display', serif;
    color: var(--color-secondary);
    font-weight: 700;
    font-size: 1.1rem;
}

footer {
    background-color: var(--color-surface);
    border-top: 1px solid var(--color-border);
    margin-top: 4rem;
    padding: 2rem 0;
}

    footer small {
        color: var(--color-text-light);
        font-size: 0.875rem;
        letter-spacing: 0.01em;
    }

.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-border), transparent);
    margin: 1.5rem 0;
}

.messenger-btn {
    background-color: #0084FF;
    color: white;
    font-weight: 500;
    border: none;
    border-radius: 25px;
    padding: 6px 16px;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 132, 255, 0.4);
}

    .messenger-btn:hover {
        background-color: #0073e6;
        transform: scale(1.05);
        box-shadow: 0 0 15px rgba(0, 132, 255, 0.6);
    }

@media (max-width: 991px) {
    .sticky-sidebar {
        position: static;
        max-height: none;
        overflow: visible;
    }

    .content-column {
        order: 2 !important;
    }
    .sidebar-column {
        order: 1 !important;
    }
    .billing-column {
        order: 3 !important;
    }

    .card-padding {
        padding: 1.5rem;
    }

    .product-title {
        font-size: 1.5rem;
    }

    .price-tag {
        font-size: 1.75rem;
    }

    .card-header-custom {
        padding: 1rem 1.5rem;
    }
}

@media (max-width: 576px) {
    .brand-logo {
        width: 40px;
        height: 40px;
    }

    .brand-name {
        font-size: 1.1rem;
    }

    .brand-tagline {
        font-size: 0.7rem;
    }

    .card-padding {
        padding: 1.25rem;
    }

    .main-product-img {
        padding: 1.5rem;
        max-height: 300px;
    }

    .gallery-img {
        width: 60px;
        height: 60px;
    }

    .product-title {
        font-size: 1.3rem;
    }

    .price-tag {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .related-product-img {
        height: 140px;
    }
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.product-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: #111;
}

.mobile-bottom-nav {
    position: fixed;
    bottom: 12px;
    left: 12px;
    right: 12px;
    height: 64px;
    background: #ffffff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    z-index: 9999;
}

    .mobile-bottom-nav button {
        background: none;
        border: none;
        font-size: 14px;
        color: #333;
        display: flex;
        flex-direction: column;
        align-items: center;
        cursor: pointer;
    }

        .mobile-bottom-nav button span {
            font-size: 11px;
            margin-top: 4px;
            color: #666;
        }

.related-scroll {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
}

.related-scroll {
    scroll-behavior: smooth;
}

.related-product-card {
    min-width: 160px;
    max-width: 160px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    scroll-snap-align: start;
}

.related-product-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

.related-product-info {
    padding: 10px;
}

.related-product-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.related-product-price {
    font-size: 13px;
    font-weight: 600;
    color: #c99700;
}

.related-scroll::-webkit-scrollbar {
    height: 6px;
}

.related-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.related-scroll::-webkit-scrollbar-thumb {
    background: #cfcfcf;
    border-radius: 10px;
}

.related-scroll {
    scrollbar-width: thin;
    scrollbar-color: #cfcfcf #f1f1f1;
}

.related-product-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-product-link:hover .related-product-card {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.gallery-container {
    display: flex;
    gap: 12px;
    padding-bottom: 8px;
}

    .gallery-container::-webkit-scrollbar {
        height: 6px;
    }

    .gallery-container::-webkit-scrollbar-thumb {
        background: #d1d1d1;
        border-radius: 10px;
    }

    .gallery-container::-webkit-scrollbar-track {
        background: transparent;
    }



.gallery-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 6px 12px; /* 👈 critical: prevents left crop */
    margin: 0 -12px; /* aligns nicely with card padding */
    scroll-behavior: smooth;
    scrollbar-color: #ccc transparent;
}

    /* Hide scrollbar but keep scroll */
    .gallery-scroll::-webkit-scrollbar {
        height: 6px;
    }

    .gallery-scroll::-webkit-scrollbar-thumb {
        background-color: rgba(0,0,0,0.2);
        border-radius: 10px;
    }

.gallery-img {
    flex: 0 0 auto; /* 👈 prevents shrinking */
    width: 70px;
    height: 70px;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid var(--color-border);
    object-fit: cover;
    background: #fafaf8;
    transition: all 0.3s ease;
}

 .gallery-img:hover {
     border-color: var(--color-accent);
     transform: translateY(-2px);
 }

 .gallery-img.active {
     border-color: var(--color-primary);
     box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.1);
 }





@media (min-width: 768px) {
    .mobile-bottom-nav {
        display: none;
    }
}
