:root {
    --primary-color: #1a1a1a;
    --secondary-color: #f4f4f4;
    --accent-color: #2b0000; /* Darkest Maroon */
    --text-color: #333;
    --light-text: #fff;
    --border-color: #ddd;
    --success-color: #28a745;
    --error-color: #dc3545;
    --transition: all 0.3s ease;
    --container-width: 1200px;
    --font-main: 'Lora', serif;
    --font-body: 'Lora', serif;
    --bottom-nav-height: 70px;
}

@font-face {
    font-family: 'Lora';
    src: url('../Lora/Lora-VariableFont_wght.ttf') format('truetype');
    font-weight: 400 700;
    font-style: normal;
}

@font-face {
    font-family: 'Lora';
    src: url('../Lora/Lora-Italic-VariableFont_wght.ttf') format('truetype');
    font-weight: 400 700;
    font-style: italic;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    overflow-x: hidden;
    padding-bottom: 0; /* Adjusted for mobile below */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-main);
    color: var(--primary-color);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.2rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utility Classes */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--accent-color);
    color: var(--light-text);
    border: 1px solid var(--accent-color);
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.btn:hover {
    background-color: transparent;
    color: var(--accent-color);
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.product-link:focus-visible,
.cart-qty-btn:focus-visible,
.cart-remove-btn:focus-visible,
.nav-links a:focus-visible,
.bottom-nav .nav-item:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
    border-radius: 4px;
}

.btn-outline {
    background-color: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
}

.btn-outline:hover {
    background-color: var(--accent-color);
    color: var(--light-text);
}

.section-padding {
    padding: 60px 0;
}

.text-center {
    text-align: center;
}

.is-hidden {
    display: none;
}

.pt-0 {
    padding-top: 0 !important;
}

.section-heading {
    margin: 0 0 16px;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.section-desc {
    text-align: center;
    color: #666;
    font-size: 0.95rem;
    margin: -4px 0 16px;
}

.btn--full {
    display: block;
    width: 100%;
    text-align: center;
}

.btn--block-center {
    display: block;
    text-align: center;
}

.cart-empty,
.cart-empty-message {
    text-align: center;
    margin-top: 20px;
    color: #777;
}

.section-title {
    font-size: 2.3rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 10px auto 0;
}

/* Header & Navigation */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

.globe-icon-mobile i {
    color: var(--accent-color);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    height: 50px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.mobile-nav-right, .bottom-nav {
    display: none;
}

.desktop-nav {
    display: flex;
    align-items: center;
}

.cart-icon-desktop {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-left: 20px;
    cursor: pointer;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.cart-icon-desktop:hover {
    color: var(--accent-color);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -12px;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    background-color: var(--accent-color);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 18px;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.cart-badge.is-visible {
    display: inline-flex;
}

@media (min-width: 769px) {
    .cart-icon-desktop {
        font-size: 1.1rem;
        margin-left: 30px;
    }
}

/* Featured Collection FAB (Sticky Icon) */
.featured-fab {
    display: none; /* Hidden on desktop */
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 9999; /* Ensure high z-index to be on top of everything */
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.featured-fab:hover {
    transform: scale(1.1);
    color: white;
}

.featured-fab i {
    font-size: 1rem;
}

/* Mobile positioning (adjust if needed to avoid overlapping bottom nav) */
@media (max-width: 768px) {
    .featured-fab {
        display: flex; /* Show only on mobile */
        bottom: calc(var(--bottom-nav-height, 60px) + env(safe-area-inset-bottom) + 16px);
        right: 16px;
        width: 36px;
        height: 36px;
        z-index: 10000; /* Higher than mobile nav and cart overlay if needed */
    }
    
    .featured-fab i {
        font-size: 0.9rem;
    }
}

.toast-container {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    z-index: 4000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: rgba(20, 20, 20, 0.92);
    color: #fff;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.9rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    max-width: min(360px, calc(100vw - 40px));
    text-align: center;
}

.toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.globe-icon {
    border: 2px dotted currentColor;
    border-radius: 50%;
    padding: 5px;
}

/* Checkout */
.checkout-container {
    padding: 40px 0;
    margin-top: 80px;
}

.checkout-back-link {
    font-weight: 500;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
}

.checkout-section {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.order-summary {
    background: #fafafa;
    position: sticky;
    top: 100px;
}

.checkout-header {
    text-align: center;
    margin-bottom: 40px;
}

.checkout-form {
    margin-top: 20px;
}

.contact-form--flat {
    box-shadow: none;
    padding: 0;
}

.checkout-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.checkout-payment-title {
    margin-top: 30px;
    margin-bottom: 20px;
}

.checkout-submit {
    margin-top: 20px;
}

.checkout-cart-items {
    margin-top: 20px;
}

.checkout-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.checkout-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
}

.checkout-item-details {
    flex: 1;
}

.checkout-item-title {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.checkout-item-qty {
    color: #666;
    font-size: 0.85rem;
}

.checkout-item-amount {
    font-weight: 600;
}

.checkout-total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 1rem;
}

.checkout-total-row.final {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-top: 20px;
    border-top: 1px solid #ddd;
    padding-top: 15px;
}

/* Hero Section */
.hero {
    height: 100vh;
    /* Use secure API endpoint for background image */
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('../../backend/api/image.php?file=gallery-02.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--light-text);
    padding-top: 80px; /* Header height */
}

.hero--compact {
    height: 50vh;
    min-height: 50vh;
    background-attachment: scroll;
}

.hero--about {
    background-position: center top;
}

.hero--legal {
    height: 40vh;
    min-height: 40vh;
    background-attachment: scroll;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--light-text);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero .btn {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.hero .btn:hover {
    background-color: transparent;
    color: var(--light-text);
    border-color: var(--light-text);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-img img {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Products/Services Section */
.products {
    background-color: var(--secondary-color);
}

#top-sales-section .section-heading {
    margin-top: 20px; /* Added explicit gap for Top Sales title */
}

.products .container {
    padding-left: 8px;
    padding-right: 8px;
}

/* Filters */
.filter-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.filter-container .btn {
    padding: 8px 20px;
    font-size: 0.8rem;
    min-width: auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.product-card {
    background: #fff;
    border: 1px solid transparent;
    border-radius: 4px; /* Slightly sharper corners */
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    border-color: var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transform: translateY(-5px);
}

.product-img {
    height: 345px;
    overflow: hidden;
    position: relative;
    background-color: #f9f9f9;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img img {
    transform: scale(1.05);
}

.product-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
}

.product-details-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    padding-right: 10px;
}

.product-action-right {
    flex-shrink: 0;
}

.product-info h3 {
    margin-bottom: 5px;
    font-size: 0.82rem;
    font-weight: 400;
    font-family: var(--font-main);
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.product-link {
    display: block;
    color: inherit;
}

.product-category {
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-price {
    margin-top: 0;
    margin-bottom: 0;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0;
    color: #b28b1f;
    font-size: 0.7rem;
    letter-spacing: 0.2px;
}

.rating-stars {
    font-size: 0.65rem;
    line-height: 1;
}

.rating-value {
    color: #777;
    font-size: 0.65rem;
}

.product-price strong {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
}

.product-price small {
    text-decoration: line-through;
    color: #aaa;
    margin-left: 8px;
    font-size: 0.7rem;
}

.product-info .btn {
    display: inline-block;
    width: auto;
    margin-top: 0;
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 8px 12px;
    font-size: 0.8rem;
}

.product-info .btn:hover {
    background-color: var(--primary-color);
    color: #fff;
}

@media (max-width: 768px) {
    .product-img {
        height: 460px;
    }

    .product-info {
        flex-direction: column;
        align-items: stretch;
    }

    .product-details-left {
        padding-right: 0;
        margin-bottom: 5px;
    }

    .product-action-right {
        width: 100%;
    }

    .product-info h3 {
        font-size: 0.75rem;
    }
    .product-price strong {
        font-size: 0.8rem;
    }
    .product-price small {
        font-size: 0.65rem;
    }
    .product-rating {
        font-size: 0.65rem;
    }
    .rating-stars {
        font-size: 0.6rem;
    }
    .rating-value {
        font-size: 0.6rem;
    }
    .product-info .btn {
        display: block;
        width: 100%;
        padding: 6px 10px;
        font-size: 0.75rem;
    }
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 24px;
}

.contact-container--center {
    grid-template-columns: 1fr;
    justify-items: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.contact-intro {
    margin-bottom: 16px;
    color: #666;
}

.contact-info .section-title {
    margin-bottom: 16px;
}

.contact-info .section-title::after {
    margin-left: 0;
}

.about-text--center {
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.visit-section {
    background-color: var(--secondary-color);
}

.contact-info-item {
    margin-bottom: 30px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-info-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.contact-form {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 18px; /* Reduced vertical padding */
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-feedback {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    display: none;
}

.form-feedback.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-feedback.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 20px;
}

.footer-col h4 {
    color: var(--light-text);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.footer-links a i {
    width: 20px;
    text-align: center;
    transition: var(--transition);
}

.footer-links a:hover {
    padding-left: 5px;
    color: #fff; /* Keep text white on hover */
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
}

/* Cart Drawer */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    backdrop-filter: blur(2px);
}
.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    max-width: 90%;
    height: 100%;
    background: #fff;
    z-index: 2001;
    transition: var(--transition);
    box-shadow: -5px 0 30px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
}
.cart-drawer.open {
    right: 0;
}

.cart-header {
    padding: 20px 25px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
}
.cart-header h3 { 
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    font-family: var(--font-main);
    letter-spacing: 0.5px;
}
.close-cart {
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    color: #333;
    transition: color 0.2s;
}
.close-cart:hover {
    color: var(--error-color);
}

.cart-items {
    flex: 1;
    padding: 25px;
    overflow-y: auto;
}

.cart-empty,
.cart-empty-message {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: #999;
    font-size: 1rem;
    text-align: center;
}
.cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid #f5f5f5;
    padding-bottom: 15px;
}
.cart-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
}
.cart-item-details h4 {
    font-size: 0.95rem;
    margin-bottom: 5px;
    font-weight: 500;
}
.cart-item-price {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.cart-qty-control {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.cart-qty-btn {
    background: none;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 1rem;
    color: #555;
    transition: background 0.2s;
}

.cart-qty-btn:hover {
    background-color: #f5f5f5;
    color: var(--primary-color);
}

.cart-qty-value {
    padding: 0 5px;
    font-size: 0.9rem;
    font-weight: 500;
    min-width: 20px;
    text-align: center;
}

.cart-remove-btn {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.2s;
    padding: 5px;
}

.cart-remove-btn:hover {
    color: var(--error-color);
}

.cart-footer {
    padding: 25px;
    border-top: 1px solid #f0f0f0;
    background: #fff;
}
.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
}
.cart-total span:first-child {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
}
.cart-total span:last-child {
    font-size: 1.25rem;
    color: var(--primary-color);
}

.cart-footer .btn {
    display: block;
    width: 100%;
    padding: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 4px;
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.cart-footer .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    background-color: #3d0000;
}

/* Product Details Page */
.details-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    padding-top: 120px;
    padding-bottom: 80px;
    align-items: start;
}

.image-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.main-image {
    width: 100%;
    height: auto;
    max-height: 700px;
    object-fit: cover;
    border-radius: 4px;
}

.thumbnail-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    width: 100%;
    overflow: hidden; /* Ensure no scrollbar */
}

.thumbnail {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4; /* Taller aspect ratio */
    object-fit: cover;
    cursor: pointer;
    border-radius: 2px;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.thumbnail:hover, .thumbnail.active {
    opacity: 1;
    border: 1px solid var(--primary-color);
}

.product-details-content {
    padding-top: 10px;
    text-align: left;
}

.product-details-content h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    font-weight: 400;
    line-height: 1.1;
}

.details-price-tag {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 15px;
}

.details-price-tag small {
    text-decoration: line-through;
    color: #999;
    font-size: 1.1rem;
    font-weight: normal;
}

.meta-info {
    margin-bottom: 30px;
    color: #555;
    font-size: 0.95rem;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

.description {
    margin-bottom: 40px;
    line-height: 1.8;
    font-size: 1.05rem;
    color: #444;
}

.options-wrapper {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 40px;
}

.option-label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.size-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.size-btn {
    min-width: 50px;
    height: 50px;
    padding: 0 15px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.size-btn:hover {
    border-color: var(--primary-color);
}

.size-btn.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* Quantity Selector */
.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    width: fit-content;
}

.qty-btn {
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: #333;
    transition: background 0.2s;
}

.qty-btn:hover {
    background: #f5f5f5;
}

.qty-input {
    width: 50px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 1rem;
    font-family: inherit;
    appearance: textfield;
    -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.action-buttons {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.add-to-cart-btn {
    flex: 1;
    padding: 18px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.add-to-cart-btn:hover {
    background: #333;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        position: relative;
    }
    
    body {
        padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom));
        scrollbar-width: none;
    }

    body::-webkit-scrollbar {
        width: 0;
        height: 0;
    }

    header {
        position: fixed !important;
        top: 0 !important;
        width: 100%;
        z-index: 9999;
    }

    /* Smaller Header */
    .navbar {
        height: 60px; /* Reduced from 80px */
    }
    
    .section-padding {
        padding: 30px 0;
    }

    .hero, .details-container {
        padding-top: 60px; /* Adjust top padding for fixed header */
    }

    .section-title {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 0.75rem;
        text-align: center;
    }

    .section-heading {
        font-size: 1.1rem;
        letter-spacing: 0.6px;
        margin: 0 0 0.75rem;
        text-align: center;
    }

    .logo img {
        height: 35px; /* Reduced from 50px */
    }

    .footer-logo img {
        height: 45px;
    }

    .desktop-nav {
        display: none;
    }

    .mobile-nav-right {
        display: block;
    }

    .cart-icon {
        font-size: 1.1rem; /* Smaller icon on mobile */
        color: var(--primary-color);
    }

    .bottom-nav {
        display: flex;
        align-items: center;
        justify-content: space-around;
        position: fixed !important;
        bottom: 0 !important;
        left: 0;
        width: 100%;
        height: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom));
        background-color: #2b0000; /* Darkest Maroon */
        box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
        z-index: 9999;
        padding-bottom: env(safe-area-inset-bottom);
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        transform: translateZ(0); /* Hardware acceleration */
    }

    .cart-drawer {
        width: 90vw;
        right: -90vw;
    }

    .nav-indicator-line,
    .nav-spotlight {
        position: absolute;
        top: 0;
        left: 0;
        width: 0;
        transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        will-change: transform;
        pointer-events: none;
    }

    .bottom-nav.items-5 .nav-indicator-line,
    .bottom-nav.items-5 .nav-spotlight { width: 20%; }
    .bottom-nav.items-4 .nav-indicator-line,
    .bottom-nav.items-4 .nav-spotlight { width: 25%; }
    .bottom-nav.items-3 .nav-indicator-line,
    .bottom-nav.items-3 .nav-spotlight { width: 33.3333%; }

    .nav-indicator-line.pos-0, .nav-spotlight.pos-0 { transform: translateX(0%); }
    .nav-indicator-line.pos-1, .nav-spotlight.pos-1 { transform: translateX(100%); }
    .nav-indicator-line.pos-2, .nav-spotlight.pos-2 { transform: translateX(200%); }
    .nav-indicator-line.pos-3, .nav-spotlight.pos-3 { transform: translateX(300%); }
    .nav-indicator-line.pos-4, .nav-spotlight.pos-4 { transform: translateX(400%); }
    .nav-indicator-line.pos-5, .nav-spotlight.pos-5 { transform: translateX(500%); }

    .nav-indicator-line.no-transition,
    .nav-spotlight.no-transition { transition: none !important; }

    /* Spotlight Indicator Line */
    .nav-indicator-line {
        height: 3px;
        z-index: 2;
        display: flex;
        justify-content: center;
    }
    
    .nav-indicator-line::after {
        content: '';
        width: 40px;
        height: 100%;
        background-color: #fff;
        border-radius: 0 0 4px 4px;
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    }

    /* Spotlight Gradient */
    .nav-spotlight {
        height: 100%;
        background: radial-gradient(circle at top, rgba(255, 255, 255, 0.1), transparent 70%);
        z-index: 0;
    }

    .nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
        font-size: 0.75rem;
        color: rgba(255,255,255,0.5);
        transition: color 0.3s ease;
        text-decoration: none;
        position: relative;
        z-index: 1;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .bottom-nav .nav-item .cart-badge {
        top: 8px;
        left: 50%;
        right: auto;
        transform: translateX(10px);
    }

    .toast-container {
        bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom) + 16px);
    }

    .nav-item i {
        font-size: 1.2rem;
        margin-bottom: 4px;
        transition: transform 0.3s ease, color 0.3s ease;
    }

    .nav-item.active {
        color: #fff;
    }
    
    .nav-item.active i {
        transform: translateY(-2px);
        color: #fff;
        text-shadow: 0 0 8px rgba(255,255,255,0.4);
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 20px;
        max-width: 520px;
    }

    .about-grid,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .about-img {
        order: -1;
    }

    /* Swipeable Filters */
    .filter-container {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
        flex-wrap: nowrap;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-left: 20px;
        padding-right: 20px;
        margin-left: -20px;
        margin-right: -20px;
    }
    
    .filter-container::-webkit-scrollbar {
        display: none; /* Chrome/Safari/Webkit */
    }

    .filter-container .btn {
        flex-shrink: 0;
        white-space: nowrap;
        font-size: 0.75rem;
        padding: 6px 15px;
    }

    /* 2 Column Compact Product Grid on Mobile */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        margin-top: 20px;
    }
    
    .product-card {
        box-shadow: none; /* Cleaner look on mobile */
        border: 1px solid #eee;
    }

    .product-img {
        height: 210px;
    }
    
    .product-info {
        padding: 10px;
        text-align: left; /* Align to left as requested */
    }
    
    .product-info h3 {
        font-size: 0.75rem;
        margin-bottom: 3px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .product-category {
        font-size: 0.65rem;
        margin-bottom: 4px;
    }

    .product-price {
        margin-bottom: 4px;
    }

    .product-price strong {
        font-size: 0.8rem;
    }
    
    .product-price small {
        font-size: 0.65rem;
    }

    .product-rating {
        margin-bottom: 4px;
        font-size: 0.7rem;
    }

    .rating-stars {
        font-size: 0.65rem;
    }

    .rating-value {
        font-size: 0.65rem;
    }

    .product-info .btn {
        padding: 4px;
        font-size: 0.7rem;
        margin-top: 5px;
        border-width: 1px;
    }

    /* Product Details Mobile */
    .details-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding-top: 80px;
    }
    .image-gallery,
    .thumbnail-list,
    .main-image {
        width: 100%;
    }
    .main-image {
        height: auto;
        aspect-ratio: 3/4;
    }
    .product-details-content h1 {
        font-size: 2rem;
    }
    .thumbnail {
        width: 100%;
        height: auto;
    }

    .checkout-grid {
        grid-template-columns: 1fr;
    }

    .order-summary {
        order: -1;
        position: relative;
        top: 0;
    }

    .checkout-form-grid {
        grid-template-columns: 1fr;
    }
    .products .filter-container {
        padding-left: 8px;
        padding-right: 8px;
        margin-left: -8px;
        margin-right: -8px;
    }
}

/* Contact Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow: auto;
}

.modal.open {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--primary-color);
}

/* Globe */
html.page-globe,
body.page-globe {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #f9f9f9;
    touch-action: none;
}

.globe-container {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.sphere-wrapper {
    position: relative;
    width: 600px;
    height: 600px;
    transform-style: preserve-3d;
    cursor: grab;
    user-select: none;
    transform: translateX(-32px);
}

.sphere-wrapper:active {
    cursor: grabbing;
}

.sphere-item {
    position: absolute;
    top: 50%;
    left: 50%;
    transform-origin: center center;
    transition: transform 0.1s linear, opacity 0.1s linear;
    will-change: transform, opacity, z-index;
}

.sphere-item-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: 2px solid rgba(255,255,255,0.8);
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sphere-item:hover .sphere-item-inner {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    border-color: var(--accent-color);
}

.sphere-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.globe-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    color: #666;
    pointer-events: none;
}

.home-btn {
    position: absolute;
    top: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    z-index: 100;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.home-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    color: var(--accent-color);
}

.product-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 3000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.product-modal-content {
    background: #fff;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    cursor: pointer;
}

.product-modal-overlay.active .product-modal-content {
    transform: scale(1);
}

.modal-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.modal-details {
    padding: 20px;
    text-align: center;
}

.modal-prices {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.modal-selling-price {
    color: var(--accent-color);
    font-weight: 800;
    font-size: 1.2rem;
}

.modal-original-price {
    color: #999;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: line-through;
}

.globe-add-to-cart {
    width: fit-content;
    margin: 0 auto;
    padding: 8px 18px;
    font-size: 0.75rem;
    letter-spacing: 0.8px;
}

.modal-details h3 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.modal-details p {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.modal-hint {
    font-size: 0.8rem;
    color: #888;
    margin-top: 10px;
}

.close-globe-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
}

.close-globe-modal:hover {
    background: var(--accent-color);
}

@media (max-width: 768px) {
    .sphere-wrapper {
        width: 100%;
        height: 100%;
        transform: translateX(-20px);
    }
    .home-btn {
        top: 20px;
        left: 20px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    .modal-img {
        height: 200px;
    }
    .product-modal-content {
        width: 85%;
    }
    footer {
        padding: 30px 0 15px;
    }
    .footer-grid {
        gap: 16px;
        margin-bottom: 20px;
        grid-template-columns: 1fr;
    }
    .footer-col { text-align: left; }
    .footer-logo img {
        height: 45px;
        margin-bottom: 12px;
    }
    .footer-col h4 {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    .footer-logo p,
    .footer-links a {
        font-size: 0.9rem;
    }
    .footer-links li {
        margin-bottom: 6px;
    }
    .section-title { text-align: center; }
    .about-text { text-align: center; }
    .about-text .btn { margin-left: auto; margin-right: auto; }
}

/* Mobile Stories FAB */
.mobile-stories-fab {
    display: none;
    position: fixed;
    bottom: 90px; /* Above bottom nav */
    right: 20px;
    width: 56px;
    height: 56px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 999;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 1.25rem;
    text-decoration: none;
}

.mobile-stories-fab:active {
    transform: scale(0.9);
}

@media (max-width: 768px) {
    .mobile-stories-fab {
        display: flex;
    }
}

