/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

:root {
    --primary-color: #8b6f47;
    --secondary-color: #d4a574;
    --accent-color: #6b4423;
    --text-dark: #2c2c2c;
    --text-light: #666;
    --bg-light: #f9f6f1;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Navigation */
.navbar {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: transform 0.35s ease-in-out, background-color 0.3s ease;
    transform: translateY(0);
}

.navbar.hidden {
    transform: translateY(-100%);
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    width: 100%;
    overflow-x: visible;
    flex-wrap: wrap;
}

.logo {
    flex: 0 0 auto;
}

.menu-toggle {
    display: none;
    background-color: var(--white);
    border: none;
    cursor: pointer;
    padding: 3px;
    color: var(--white);
    transition: all 0.3s ease;
    opacity: 1;
    position: relative;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    border-radius: 6px;
}

.menu-toggle:hover {
    opacity: 1;
}

.menu-toggle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 2px;
    background-color: var(--primary-color);
    box-shadow: 0 6px 0 0 var(--primary-color), 0 -6px 0 0 var(--primary-color);
    transition: all 0.3s ease;
}

.menu-toggle.active::before {
    box-shadow: 0 6px 0 0 var(--primary-color), 0 -6px 0 0 var(--primary-color);
    transform: translate(-50%, -50%) rotate(360deg);
}

.logo h1 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
}

.logo img {
    height: 50px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    width: auto;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

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

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--white);
    padding: 120px 20px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="white" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--white);
    color: var(--primary-color);
}

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

.btn-secondary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

/* Section Title */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

/* Categories Section */
.categories {
    padding: 80px 20px;
    background-color: var(--bg-light);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.category-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.category-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.category-card p {
    color: var(--text-light);
}

/* Products Section */
.products {
    padding: 80px 20px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column; /* preserve existing spacing/visuals */
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
}

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

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1 1 auto; /* allow the info area to grow so footer can stick to bottom */
}

.product-info h3 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.product-description {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between; /* price left, button right */
    gap: 0.5rem;
    margin-top: auto; /* push footer to bottom of product-card */
}

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

/* Reviews Section */
.reviews {
    padding: 80px 20px;
    background-color: var(--bg-light);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.review-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.stars {
    color: #ffa500;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.review-text {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.reviewer {
    display: flex;
    flex-direction: column;
}

.reviewer strong {
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.reviewer span {
    color: var(--text-light);
    font-size: 0.85rem;
}

/* About Section */
.about {
    padding: 80px 20px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat p {
    color: var(--text-light);
    margin: 0;
}

.about-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: fill
}

/* Contact Section */
.contact {
    padding: 80px 20px;
    background-color: var(--bg-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.info-item {
    margin-bottom: 2rem;
}

.info-item strong {
    display: block;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.info-item p {
    color: var(--text-light);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-extra { display: none; }

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form textarea {
    resize: vertical;
}

/* Footer */
.footer {
    background-color: var(--text-dark);
    color: var(--white);
    text-align: center;
    padding: 2rem 20px;
}

.footer p {
    margin: 0.5rem 0;
}

/* About owner styles */
.about-owner {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.owner-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.owner-photo {
    width: 220px;    /* square box */
    height: 220px;   /* square box */
    flex: 0 0 220px;
    overflow: hidden;
    background: #f5f5f5;
    display: block;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.owner-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* ensures image fills the square */
    display: block;
}

.owner-bio {
    flex: 1;
    min-width: 220px;
}

/* responsive tweak */
@media (max-width: 600px) {
    .owner-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .owner-photo {
        width: 180px;
        height: 180px;
        flex: 0 0 180px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 0;
    }

    .logo {
        order: 1;
        flex: 0 1 auto;
    }

    .menu-toggle {
        display: block;
        order: 2;
        flex: 0 0 auto;
        margin-left: auto;
    }

    .nav-menu {
        order: 3;
        width: 100%;
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
    }

    .nav-menu.active {
        max-height: 500px;
    }

    .nav-menu li {
        padding: 0.75rem 20px;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-link {
        font-size: 0.95rem;
    }

    .nav-link::after {
        display: none;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .stat h3 {
        font-size: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 80px 20px 60px;
    }

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

    .products-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }
}

/* Keep product cards aligned: footer stays at bottom, price left, button right */
.product-card {
    display: flex;
    flex-direction: column;
    /* preserve existing spacing/visuals */
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1 1 auto; /* allow the info area to grow so footer can stick to bottom */
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between; /* price left, button right */
    gap: 0.5rem;
    margin-top: auto; /* push footer to bottom of product-card */
}

/* optional: ensure consistent button sizing */
.product-footer .btn {
    white-space: nowrap;
}

/* Responsive Design */

/* Tablet and below (768px) */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .nav-container {
        flex-wrap: wrap;
        gap: 1rem;
        padding: 0.75rem 15px;
        max-height: 50px;
    }

    .menu-toggle {
        display: block;
        order: 3;
        width: 40px;
        text-align: right;
        padding-right: 0;
    }

    .nav-menu {
        order: 4;
        width: 100%;
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
    }

    .nav-menu.active {
        background-color: #ffffff;
        max-height: 500px;
    }

    .nav-menu li {
        padding: 0.75rem 20px;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-link {
        font-size: 0.95rem;
    }

    .nav-link::after {
        display: none;
    }

    .logo {
        flex: 1;
        order: 1;
    }

    .logo img {
        height: 40px;
    }

    /* Hero section */
    .hero {
        padding: 100px 20px 60px;
    }

    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        line-height: 1.5;
    }

    /* Section adjustments */
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .categories,
    .products,
    .reviews,
    .about,
    .contact {
        padding: 60px 20px;
    }

    /* Categories */
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .category-card {
        padding: 1.5rem;
    }

    /* Products */
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .product-image {
        height: 250px;
    }

    /* Reviews */
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .review-card {
        padding: 1.5rem;
    }

    /* About */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .stat h3 {
        font-size: 2rem;
    }

    .about-image {
        order: -1;
    }

    /* Contact */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    /* Modal adjustments */
    .modal {
        width: 95%;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-body {
        flex-direction: column;
        padding: 15px;
    }

    .modal-body .img-wrap {
        max-width: 100%;
    }

    .modal-footer {
        flex-direction: column;
        gap: 10px;
    }

    .modal-footer .btn {
        width: 100%;
    }
}

/* Mobile devices (480px and below) */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    /* Navigation */
    .nav-container {
        padding: 0.5rem 12px;
    }

    .logo img {
        height: 35px;
    }

    /* Hero */
    .hero {
        padding: 80px 15px 50px;
    }

    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 0.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .btn {
        padding: 10px 24px;
        font-size: 0.95rem;
    }

    /* Sections */
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }

    .section-title::after {
        width: 60px;
    }

    .categories,
    .products,
    .reviews,
    .about,
    .contact {
        padding: 50px 15px;
    }

    /* Categories */
    .category-icon {
        font-size: 2.5rem;
    }

    .category-card h3 {
        font-size: 1.15rem;
    }

    .category-card p {
        font-size: 0.9rem;
    }

    /* Products */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .product-image {
        height: 220px;
    }

    .product-info {
        padding: 1.25rem;
    }

    .product-info h3 {
        font-size: 1.1rem;
    }

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

    .price {
        font-size: 1.3rem;
    }

    .product-footer {
        flex-direction: row;
        align-items: center;
    }

    .product-footer .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    /* Reviews */
    .review-card {
        padding: 1.25rem;
    }

    .stars {
        font-size: 1.25rem;
    }

    .review-text {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    /* About */
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stat h3 {
        font-size: 1.75rem;
    }

    .owner-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .owner-photo {
        width: 160px;
        height: 160px;
        flex: 0 0 160px;
    }

    .owner-bio {
        min-width: 100%;
    }

    /* Contact */
    .info-item {
        margin-bottom: 1.5rem;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 10px;
        font-size: 0.95rem;
    }

    /* Modal */
    .modal {
        width: 98%;
        border-radius: 6px;
    }

    .modal-header,
    .modal-footer {
        padding: 12px 15px;
    }

    .modal-body {
        padding: 12px;
        gap: 15px;
    }

    .modal h3 {
        font-size: 1.15rem;
    }

    .modal-extras .scroll-area {
        max-height: 180px;
        font-size: 0.9rem;
    }

    /* Footer */
    .footer {
        padding: 1.5rem 15px;
        font-size: 0.9rem;
    }
}

/* Very small devices (360px and below) */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .product-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .product-footer .btn {
        width: 100%;
    }

    .stat h3 {
        font-size: 1.5rem;
    }

    /* ---------- Hamburger next to logo (patch) ---------- */
    /* Ensure nav container layout */
    .nav-container {
        display: flex;
        align-items: center;
        gap: 12px; /* spacing between logo and toggle */
    }

    /* Keep logo as a horizontal block and vertically center */
    .logo {
        display: flex;
        align-items: center;
        gap: 8px;
        order: 1;
        flex: 0 0 auto;
    }

    /* Show the menu toggle on all sizes and place it right after the logo */
    .nav-container .menu-toggle {
        display: block !important;  /* override previous rules */
        order: 2;
        flex: 0 0 auto;
        margin-left: 8px;           /* space between logo and hamburger */
        background: transparent;
        border: none;
        width: 40px;
        height: 40px;
        padding: 6px;
        border-radius: 6px;
        cursor: pointer;
        position: relative;
        align-self: center;
    }

    /* Keep visual hamburger lines (uses the existing style approach) */
    .nav-container .menu-toggle::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 22px;
        height: 2px;
        background-color: var(--primary-color);
        box-shadow: 0 7px 0 0 var(--primary-color), 0 -7px 0 0 var(--primary-color);
        transition: all 0.25s ease;
    }

    /* Push the main nav menu to the far right */
    .nav-menu {
        order: 3;
        margin-left: auto;
        display: flex;
        align-items: center;
    }

    /* Slight hover affordance */
    .nav-container .menu-toggle:hover {
        transform: translateY(-1px);
    }

    /* Small screens: keep same grouping but allow nav-menu collapsing rules to still work */
    @media (max-width: 768px) {
        .nav-container { gap: 8px; padding-right: 8px; }
        .nav-container .menu-toggle { width: 44px; height: 44px; margin-left: 6px; }
    }

}
/* ── Image Keychain side selector ── */
.keychain-side-selector {
    display: flex;
    gap: 10px;
    margin: 10px 0 4px;
}
.side-option {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 500;
    color: #555;
    padding: 5px 12px;
    border: 1.5px solid #ddd;
    border-radius: 20px;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    user-select: none;
}
.side-option input[type="radio"] {
    accent-color: #8B6F47;
    width: 14px;
    height: 14px;
    cursor: pointer;
}
.side-option:has(input:checked) {
    border-color: #8B6F47;
    color: #8B6F47;
    background: #fdf6ee;
}

/* ── Modal side selector (Image Keychain) ── */
.modal-side-selector {
    display: flex;
    gap: 10px;
    margin: 12px 0;
}
.modal-side-btn {
    padding: 6px 16px;
    border: 1.5px solid #ddd;
    border-radius: 20px;
    background: transparent;
    font-size: 0.88rem;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.modal-side-btn:hover {
    border-color: #8B6F47;
    color: #8B6F47;
}
.modal-side-btn.active {
    border-color: #8B6F47;
    color: #8B6F47;
    background: #fdf6ee;
    font-weight: 600;
}

/* ═══════════════════════════════════════════════
   PRODUCT IMAGE CAROUSEL (inside modal)
═══════════════════════════════════════════════ */
.carousel {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f0ea;
    user-select: none;
}

.carousel-track-wrap {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.35s cubic-bezier(.4,0,.2,1);
    will-change: transform;
}

.carousel-slide {
    min-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 0;
    display: block;
    cursor: zoom-in;
    transition: opacity 0.2s;
}

.carousel-slide img:hover {
    opacity: 0.92;
}

/* Arrow buttons */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-60%);
    z-index: 5;
    background: rgba(255,255,255,0.88);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 22px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #8B6F47;
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
    transition: background 0.2s, opacity 0.2s;
    padding: 0;
}
.carousel-arrow:hover { background: #fff; }
.carousel-arrow:disabled { opacity: 0.3; cursor: default; }
.carousel-prev { left: 8px; }
.carousel-next { right: 8px; }

/* Dot indicators */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 8px 0 6px;
    background: #f5f0ea;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #c9b49a;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}
.carousel-dot.active {
    background: #8B6F47;
    transform: scale(1.25);
}

/* Zoom hint */
.carousel-zoom-hint {
    text-align: center;
    font-size: 0.72rem;
    color: #aaa;
    padding: 2px 0 5px;
    background: #f5f0ea;
    letter-spacing: 0.02em;
}

/* Hide arrows & dots when only 1 image */
.carousel.single .carousel-arrow,
.carousel.single .carousel-dots,
.carousel.single .carousel-zoom-hint {
    /* still show hint even for single */
}
.carousel.single .carousel-arrow { display: none; }
.carousel.single .carousel-dots  { display: none; }

/* ═══════════════════════════════════════════════
   ZOOM LIGHTBOX
═══════════════════════════════════════════════ */
.zoom-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(10,8,6,0.93);
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.zoom-lightbox.open {
    display: flex;
}

.zoom-container {
    position: relative;
    flex: 1 1 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: grab;
}
.zoom-container.grabbing { cursor: grabbing; }

#zoomImage {
    max-width: 90vw;
    max-height: 78vh;
    object-fit: contain;
    transform-origin: center center;
    transition: transform 0.2s ease;
    pointer-events: none;
    border-radius: 4px;
    display: block;
}

/* Close button */
.zoom-close {
    position: absolute;
    top: 14px;
    right: 18px;
    z-index: 10;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-size: 18px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.zoom-close:hover { background: rgba(255,255,255,0.22); }

/* Prev/Next nav in lightbox */
.zoom-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.18);
    color: #fff;
    font-size: 36px;
    width: 48px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s;
    padding: 0;
    line-height: 1;
}
.zoom-nav:hover { background: rgba(255,255,255,0.2); }
.zoom-nav:disabled { opacity: 0.2; cursor: default; }
.zoom-nav-prev { left: 10px; }
.zoom-nav-next { right: 10px; }

/* Zoom controls toolbar */
.zoom-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0 14px;
    flex-shrink: 0;
}
.zoom-btn {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-size: 18px;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    font-weight: 700;
}
.zoom-btn:hover { background: rgba(255,255,255,0.22); }
.zoom-reset { font-size: 13px; width: auto; padding: 0 14px; font-weight: 600; }
.zoom-level-label {
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    min-width: 46px;
    text-align: center;
}

/* Counter (2 / 4) */
.zoom-counter {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.6);
    font-size: 0.8rem;
    background: rgba(0,0,0,0.35);
    padding: 3px 10px;
    border-radius: 20px;
}

/* Responsive */
@media (max-width: 600px) {
    .carousel-slide img { height: 220px; }
    .zoom-nav { font-size: 28px; width: 38px; height: 52px; }
    #zoomImage { max-width: 96vw; max-height: 72vh; }
}