:root {
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
    --color-primary: #1a1a1a;
    --color-text: #333;
    --color-text-light: #666;
    --color-accent: #8b0000;
    --color-border: #e5e5e5;
    --color-bg: #fafafa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Announcement Bar */
.announcement {
    background: #000;
    color: #fff;
    text-align: center;
    padding: 10px;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

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

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
    gap: 25px;
    flex: 1;
}

.header-right {
    justify-content: flex-end;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.icon-btn:hover {
    opacity: 0.6;
}

.icon-btn svg {
    width: 22px;
    height: 22px;
    stroke: var(--color-primary);
    fill: none;
    stroke-width: 2;
}

.logo {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--color-primary);
}

.header-right .icon-btn {
    position: relative;
}

#cartBadge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #8b0000;
    color: #fff;
    font-size: 10px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    line-height: 1;
}

/* Navigation Drawer */
.nav-overlay,
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
}

.nav-overlay.active,
.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.nav-drawer,
.cart-drawer {
    position: fixed;
    top: 0;
    width: 400px;
    max-width: 90vw;
    height: 100vh;
    background: #fff;
    z-index: 1002;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.nav-drawer {
    left: 0;
    transform: translateX(-100%);
}

.cart-drawer {
    right: 0;
    transform: translateX(100%);
}

.nav-drawer.active {
    transform: translateX(0);
}

.cart-drawer.active {
    transform: translateX(0);
}

.drawer-header {
    padding: 25px 30px;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-title {
    font-family: var(--font-serif);
    font-size: 20px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.close-btn:hover {
    color: #000;
    transform: rotate(90deg);
}

.nav-content {
    padding: 20px 0;
}

.nav-item {
    border-bottom: 1px solid var(--color-border);
}

.nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 30px;
    text-decoration: none;
    color: var(--color-primary);
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: all 0.2s;
}

.nav-link:hover {
    background: var(--color-bg);
    padding-left: 35px;
}

/* Cart Styles */
.cart-items {
    padding: 20px 30px;
    min-height: 300px;
}

.cart-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.cart-item-image {
    width: 80px;
    height: 100px;
    object-fit: cover;
    background: #f5f5f5;
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-family: var(--font-serif);
    font-size: 15px;
    margin-bottom: 5px;
}

.cart-item-price {
    color: var(--color-accent);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

.qty-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--color-border);
    width: fit-content;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s;
}

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

.qty-value {
    padding: 0 15px;
    font-size: 13px;
    min-width: 40px;
    text-align: center;
}

.remove-btn {
    background: none;
    border: none;
    color: #999;
    font-size: 12px;
    cursor: pointer;
    text-decoration: underline;
    margin-left: 15px;
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.cart-footer {
    padding: 25px 30px;
    border-top: 1px solid var(--color-border);
    background: #fafafa;
    position: sticky;
    bottom: 0;
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 600;
}

.checkout-btn {
    width: 100%;
    padding: 16px;
    background: #000;
    color: #fff;
    border: none;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s;
}

.checkout-btn:hover {
    background: #333;
}

/* Search Modal */
.search-modal {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.98);
    z-index: 1003;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 150px;
}

.search-modal.active {
    opacity: 1;
    visibility: visible;
}

.search-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #999;
}

.search-container {
    width: 100%;
    max-width: 600px;
    padding: 0 30px;
}

.search-input-wrapper {
    position: relative;
    border-bottom: 2px solid var(--color-primary);
    margin-bottom: 40px;
}

.search-input {
    width: 100%;
    padding: 15px 40px 15px 0;
    border: none;
    font-size: 24px;
    outline: none;
}

/* Breadcrumb */
.breadcrumb {
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 30px;
    font-size: 13px;
    color: #666;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #000;
}

.breadcrumb span {
    margin: 0 8px;
}

/* Page Views */
.page-view {
    display: none;
}

.page-view.active {
    display: block;
}

/* Home Page */
.home-section {
    padding: 20px 30px;
}

.welcome {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 100px 30px;
}

.welcome__title {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 25px;
}

.welcome__text {
    font-family: var(--font-serif);
    font-size: 18px;
    font-style: italic;
    color: var(--color-text-light);
    line-height: 1.8;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 400;
    font-style: italic;
    margin-bottom: 15px;
}

/* Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 30px;
    }
}


.product-card {
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    background: #eee;
    aspect-ratio: 3/4;
    margin-bottom: 20px;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
    display: block;
}

.product-img-hover {
    position: absolute;
    inset: 0;
    opacity: 0;
}

.product-card:hover .product-img-main {
    opacity: 1;
}

.product-card:hover .product-img-hover {
    opacity: 1;
}

.product-info {
    text-align: center;
}

.product-title {
    font-family: var(--font-serif);
    font-size: 15px;
    font-weight: 400;
    margin-bottom: 10px;
}

.product-price {
    font-size: 13px;
    color: var(--color-text-light);
}

.price-original {
    text-decoration: line-through;
    margin-right: 8px;
    color: #999;
}

.price-current {
    color: var(--color-accent);
    font-weight: 600;
}

/* Product Detail Page */
.product-detail {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

@media (max-width: 900px) {
    .product-detail {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Image Gallery */
.product-gallery {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.main-image {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    background: #f5f5f5;
    margin-bottom: 20px;
}

.thumbnail-list {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.thumbnail {
    width: 80px;
    height: 100px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 1;
    transition: all 0.2s;
}

.thumbnail.active,
.thumbnail:hover {
    border-color: #000;
    opacity: 1;
}

/* Product Info */
.product-info-detail {
    padding-top: 20px;
}

.product-vendor {
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 10px;
}

.product-name {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 20px;
    max-width: 500px;
}

.product-price-detail {
    font-size: 18px;
    margin-bottom: 10px;
}

.product-tax {
    font-size: 12px;
    color: #999;
    margin-bottom: 25px;
}

.product-tax a {
    color: #999;
    text-decoration: underline;
}

/* Quantity & Buttons */
.product-actions {
    margin-bottom: 30px;
}

.quantity-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.quantity-label {
    font-size: 13px;
    color: #666;
}

.qty-selector.large {
    height: 50px;
}

.qty-selector.large .qty-btn {
    width: 50px;
    height: 100%;
    font-size: 18px;
}

.qty-selector.large .qty-value {
    font-size: 16px;
    padding: 0 25px;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-primary {
    width: 100%;
    padding: 18px;
    background: #fff;
    color: #000;
    border: 1px solid #000;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.btn-primary:hover {
    background: #000;
    color: #fff;
}

.btn-secondary {
    width: 100%;
    padding: 18px;
    background: #000;
    color: #fff;
    border: 1px solid #000;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.btn-secondary:hover {
    background: #333;
}

/* Share */
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    color: #666;
    margin-bottom: 40px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.share-btn:hover {
    color: #000;
}

/* Description */
.product-description {
    margin-bottom: 30px;
    font-size: 15px;
    line-height: 1.8;
    color: #444;
    max-width: 500px;
}

.product-description em {
    font-family: var(--font-serif);
    font-style: italic;
}

.bullet-list {
    list-style: none;
    margin: 20px 0;
}

.bullet-list li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    font-size: 14px;
    line-height: 1.6;
}

.bullet-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #000;
    font-weight: bold;
}

.note-text {
    font-size: 13px;
    color: #666;
    margin-top: 20px;
    max-width: 500px;
    line-height: 1.6;
}

/* Accordions */
.accordions {
    border-top: 1px solid var(--color-border);
    max-width: 500px;
}

.accordion-item {
    border-bottom: 1px solid var(--color-border);
}

.accordion-header {
    width: 100%;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-family: var(--font-sans);
    color: var(--color-text);
}

.accordion-header:hover {
    color: #000;
}

.accordion-icon {
    transition: transform 0.3s;
    font-size: 12px;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-item.active .accordion-content {
    max-height: 300px;
}

.accordion-body {
    padding: 0 0 20px;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

/* Footer */
.footer {
    background: #000;
    color: #fff;
    padding: 80px 30px 40px;
    margin-top: 100px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 60px;
}

.footer-block h3 {
    font-family: var(--font-serif);
    font-size: 16px;
    margin-bottom: 25px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 400;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-text {
    color: #999;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    border-bottom: 1px solid #444;
}

.newsletter-input {
    flex: 1;
    background: none;
    border: none;
    padding: 12px 0;
    color: #fff;
    outline: none;
}

.newsletter-input::placeholder {
    color: #666;
}

.newsletter-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-bottom {
    max-width: 1200px;
    margin: 60px auto 0;
    padding-top: 30px;
    border-top: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright {
    color: #666;
    font-size: 13px;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #000;
    color: #fff;
    padding: 12px 30px;
    font-size: 13px;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 2000 !important;
    border-radius: 2px;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .header-inner {
        padding: 0 20px;
        height: 60px;
    }

    .logo {
        font-size: 18px;
    }

    .product-name {
        font-size: 24px;
    }

    .home-section {
        padding: 60px 20px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

.visit-store-btn {
    display: inline-block;
    padding: 16px 40px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    text-decoration: none;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    background: transparent;
}

.visit-store-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #fff;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.visit-store-btn:hover {
    color: #000;
    border-color: #fff;
    letter-spacing: 4px;
}

.visit-store-btn:hover::before {
    left: 0;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ================= Collections Section ================= */

.collections-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .collections-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.collection-card {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    cursor: pointer;
    border-radius: 30px;
}

.collection-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.collection-card:hover img {
    transform: scale(1.08);
}

.collection-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.collection-overlay span {
    font-family: var(--font-serif);
    font-size: 22px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
}

@media (max-width: 900px) {
    .product-gallery {
        position: relative;
        top: auto;
    }
}

@media (max-width: 900px) {
    .main-image {
        max-height: 70vh;
        object-fit: cover;
    }
}

.product-info-detail {
    position: relative;
    z-index: 2;
    margin-top: 20px;
}

.product-card a {
    text-decoration: none;
    color: inherit;
}

.product-card a:hover {
    text-decoration: none;
}

/* Account button specific styles */
#accountBtn {
    position: relative;
}

#accountBtn .user-initial {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: #8b0000;
    color: white;
    font-size: 9px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* When user is logged in, show name on desktop */
@media (min-width: 768px) {
    #accountBtn.logged-in {
        display: flex;
        align-items: center;
        gap: 6px;
        width: auto;
        padding: 0 8px;
    }

    #accountBtn.logged-in .user-name-display {
        font-size: 12px;
        color: var(--color-primary);
        max-width: 80px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* Product Gallery Styles */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 100px;
    height: fit-content;
}

.main-image-container {
    width: 100%;
    aspect-ratio: 3/4;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* thumbnails column */
.thumbnail-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 600px;
    overflow-y: auto;
}

/* thumbnail container */
.thumbnail-wrapper {
    width: 80px;
    height: 100px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all .25s ease;
}

/* hover */
.thumbnail-wrapper:hover {
    opacity: 1;
}

/* ACTIVE thumbnail */
.thumbnail-wrapper.active {
    opacity: 1;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* thumbnail image */
.thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Responsive */
@media (max-width: 968px) {
    .product-detail {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

/* Loading state */
.image-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.product-gallery {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: flex-start;
}

/* thumbnails on left */
.thumbnail-list {
    display: flex;
    flex-direction: row;
    gap: 12px;
    max-height: 600px;
    overflow-y: auto;
}

/* each thumbnail */
.thumbnail-wrapper {
    width: 80px;
    height: 100px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all .25s ease;
}

.thumbnail-wrapper.active {
    opacity: 1;
}

/* main image */
.main-image-container {
    flex: 1;
    aspect-ratio: 3/4;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media(max-width:900px) {

    .product-gallery {
        flex-direction: column;
    }

    .thumbnail-list {
        flex-direction: row;
        overflow-x: auto;
        max-height: none;
    }

}

/* Tab Navigation */
.account-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e5e5e5;
    margin-bottom: 30px;
}

.tab-btn {
    padding: 15px 30px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
    transition: all 0.3s;
}

.tab-btn:hover {
    color: #333;
}

.tab-btn.active {
    color: #8b0000;
    border-bottom-color: #8b0000;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Profile Section Styles */
.profile-section {
    background: #fafafa;
    padding: 30px;
    margin-bottom: 30px;
}

.profile-section h3 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e5e5e5;
    font-size: 20px;
}

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

.profile-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.profile-field label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
    font-weight: 500;
}

.profile-field .value {
    font-size: 15px;
    color: #333;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.profile-field .value.empty {
    color: #999;
    font-style: italic;
}

.edit-profile-btn {
    margin-top: 25px;
    padding: 12px 30px;
    background: #8b0000;
    color: white;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.edit-profile-btn:hover {
    background: #6b0000;
}

/* Edit Profile Form */
.edit-profile-form {
    display: none;
    background: white;
    padding: 25px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    margin-top: 20px;
}

.edit-profile-form.active {
    display: block;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
    font-weight: 500;
}

.form-group input {
    padding: 12px;
    border: 1px solid #e5e5e5;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    border-radius: 4px;
}

.form-group input:focus {
    outline: none;
    border-color: #8b0000;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.save-btn {
    padding: 12px 30px;
    background: #8b0000;
    color: white;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
}

.cancel-btn {
    padding: 12px 30px;
    background: none;
    color: #666;
    border: 1px solid #e5e5e5;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
}

/* Orders Section Styles */
.orders-section {
    background: #fafafa;
    padding: 30px;
}

.orders-section h3 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e5e5e5;
    font-size: 20px;
}

.order-card {
    background: white;
    border: 1px solid #e5e5e5;
    margin-bottom: 25px;
    border-radius: 4px;
    overflow: hidden;
}

.order-header {
    background: #f5f5f5;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.order-number {
    font-weight: 600;
    font-family: monospace;
    font-size: 16px;
    color: #333;
}

.order-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #666;
}

.order-status {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-processing {
    background: #cce5ff;
    color: #004085;
}

.status-shipped {
    background: #d1ecf1;
    color: #0c5460;
}

.status-delivered {
    background: #d4edda;
    color: #155724;
}

.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.order-items {
    padding: 20px;
}

.order-item-row {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s;
}

.order-item-row:hover {
    background-color: #fafafa;
}

.order-item-row:last-child {
    border-bottom: none;
}

.order-item-image {
    width: 80px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.order-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.order-item-name {
    font-weight: 500;
    margin-bottom: 5px;
    color: #333;
}

.order-item-details {
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
}

.order-item-price {
    color: #8b0000;
}

.order-footer {
    background: #f9f9f9;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e5e5e5;
}

.order-total {
    font-size: 16px;
}

.order-total strong {
    color: #8b0000;
    font-size: 18px;
}

.view-order-btn {
    padding: 8px 20px;
    background: #8b0000;
    color: white;
    text-decoration: none;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.view-order-btn:hover {
    background: #6b0000;
}

.no-orders {
    text-align: center;
    padding: 40px;
    color: #666;
}

.loading-spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #8b0000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.click-hint {
    font-size: 11px;
    color: #999;
    margin-top: 5px;
    font-style: italic;
}

.logout-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e5e5e5;
}

.logout-btn {
    padding: 12px 30px;
    border: 1px solid #333;
    background: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s;
}

.logout-btn:hover {
    background: #333;
    color: white;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 12px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: none;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: none;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.edit-profile-form input {
    width: 100%;
    border: none;
    border-bottom: 1px solid #ddd;
    padding: 8px 0;
    font-size: 16px;
    background: transparent;
    outline: none;
}

.edit-profile-form input:focus {
    border-bottom: 1px solid #8b0000;
}

.auth-container {
    padding-top: 5px;
    min-height: calc(100vh - 70px);
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e5e5e5;
}

.drawer-title {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
}

/* Google Button */

.primary-btn {
    background: #111;
    color: #fff;
    border: none;
}

.primary-btn:hover {
    background: #000;
}

.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s;
    margin-bottom: 10px;
}

.google-btn img {
    width: 18px;
    height: 18px;
}

.google-btn:hover {
    background: #f7f7f7;
}

/* Divider */

.divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0;
    color: #888;
    font-size: 14px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #eee;
}

/* Auth Switch */

.auth-switch {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
    color: #666;
}

.auth-switch span {
    color: #000;
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
}

.auth-switch span:hover {
    opacity: .7;
}

/* Footer */

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    margin-bottom: 10px;
}

.footer-text {
    font-size: 14px;
    color: #777;
    line-height: 1.6;
    max-width: 260px;
}

.footer-social {
    margin-top: 18px;
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e5e5;
    border-radius: 50%;
    color: #bbb;
    transition: all .25s;
}

.social-icon svg {
    width: 18px;
    height: 18px;
}

.social-icon:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #fff;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 11px;
    color: #333;
    background: none;
    border: none;
}

.mobile-nav-item svg {
    width: 22px;
    height: 22px;
    margin-bottom: 2px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

body {
    padding-bottom: 60px;
}

.header-inner {
    position: relative;
    display: flex;
    align-items: center;
    height: 60px;
}

.header-left {
    position: absolute;
    left: 16px;
}

.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Playfair Display', serif;
    font-size: 24px;
}

.search-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
}

.product-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
}

.add-cart-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-cart-btn:hover {
    background: #8b0000;
    color: #fff;
    border-color: #8b0000;
}

.remove-icon:hover svg {
    fill: #cc0000;
    transform: scale(1.1);
    transition: 0.2s;
}





/* ================= PRODUCT IMAGE GALLERY ================= */

/* Gallery layout */

.product-gallery{
    display:flex;
    flex-direction:column;
    gap:10px;
}

/* Main image slider */

.main-image-container{
    display:flex;
    overflow-x:auto;
    scroll-snap-type:x mandatory;
    gap:0;
    width:100%;
}

.main-image-container::-webkit-scrollbar{
    display:none;
}

.slider-image{
    width:100%;
    flex-shrink:0;
    scroll-snap-align:center;
    object-fit:cover;
    aspect-ratio:3/4;
}

/* Thumbnails (desktop only) */

.thumbnail-list{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
}

.thumbnail{
    width:80px;
    height:100px;
    object-fit:cover;
    cursor:pointer;
    border:2px solid transparent;
    transition:all 0.2s ease;
}

.thumbnail:hover{
    opacity:0.8;
}

.thumbnail.active{
    border-color:#000;
}

/* Progress bar */

.image-progress{
    width:100%;
    height:4px;
    background:#eee;
    border-radius:4px;
    overflow:hidden;
}

.image-progress-bar{
    height:100%;
    width:0%;
    background:#8b0000;
    transition:width 0.25s ease;
}

/* ================= MOBILE ================= */

@media (max-width:768px){

.product-gallery{
    gap:12px;
}

/* hide thumbnails on mobile */

.thumbnail-list{
    display:none;
}

/* full width slider */

.main-image-container{
    width:100%;
}

.slider-image{
    width:100%;
}

}

/* ================= PRODUCT CARD ================= */

.product-card{
    background:#fff;
    border-radius:12px;
    overflow:hidden;
    transition:all 0.3s ease;
    position:relative;
    box-shadow:0 10px 30px rgba(0,0,0,0.05);
}

.product-card:hover{
    transform:translateY(-5px);
    box-shadow:0 10px 30px rgba(0,0,0,0.1);
}

/* Image */

.product-image-wrapper{
    position:relative;
    overflow:hidden;
    aspect-ratio:3/4;
    background:#f5f5f5;
}

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

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

/* Stock overlay */

.stock-overlay{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,0.6);
    display:flex;
    align-items:center;
    justify-content:center;
    color:white;
    font-size:14px;
    text-transform:uppercase;
    letter-spacing:2px;
    font-weight:600;
}

/* Product info */

.product-info{
    padding:16px;
}

.product-title{
    font-family:var(--font-serif);
    font-size:16px;
    margin-bottom:10px;
    line-height:1.4;
}

/* Price row */

.product-price-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.price-current{
    color:#8b0000;
    font-weight:600;
    font-size:14px;
}

/* Add cart button */

.add-cart-btn{
    width:32px;
    height:32px;
    border-radius:50%;
    border:1px solid #ddd;
    background:white;
    font-size:18px;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:all 0.2s ease;
}

.add-cart-btn:hover{
    background:#8b0000;
    color:white;
    border-color:#8b0000;
}