@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

:root {
    /* Premium Dark Red Color Palette */
    --bg-dark: #160707;
    --bg-medium: #210d0d;
    --bg-card: #2c1212;
    --bg-hover: #361717;
    --text-light: #f5dcdc;
    --text-muted: #d49c9c;
    --text-bright: #ffdede;
    --accent: #d83c3c;
    --accent-hover: #eb4d4d;
    --sale-color: #d83c3c;
    --border: rgba(255, 120, 120, 0.12);
    --border-light: rgba(255, 150, 150, 0.08);
    --white: #ffffff;
    --shadow: rgba(0, 0, 0, 0.4);

    /* Typography */
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Inter', sans-serif;
    --letter-spacing-sm: 1px;
    --letter-spacing-md: 2px;
    --letter-spacing-lg: 4px;

    /* Layout */
    --container-width: 1240px;
    --transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* ======================
   LENIS SMOOTH SCROLL
   ====================== */
html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-smooth iframe {
    pointer-events: none;
}

body {
    font-family: var(--font-body);
    color: var(--text-light);
    background-color: var(--bg-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-bright);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ======================
   ANIMATIONS
   ====================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* REVEAL ON SCROLL */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger {
    transition-delay: calc(var(--order) * 0.1s);
}

/* ======================
   TOP UTILITY BAR
   ====================== */
.top-bar {
    background: var(--bg-medium);
    border-bottom: 1px solid var(--border-light);
    padding: 8px 0;
    font-size: 0.8rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left,
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-icons a {
    color: var(--text-muted);
    margin-right: 10px;
    font-size: 0.85rem;
}

.social-icons a:hover {
    color: var(--accent);
    transform: translateY(-1px);
}

.top-bar-divider {
    width: 1px;
    height: 14px;
    background: var(--border);
    display: inline-block;
}

.top-contact {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.top-contact:hover {
    color: var(--text-light);
}

.language-switcher {
    display: flex;
    background: var(--bg-dark);
    border-radius: 20px;
    padding: 3px;
    gap: 5px;
    border: 1px solid var(--border);
}

.lang-btn {
    background: transparent;
    border: none;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0.5;
    padding: 0;
    overflow: hidden;
}

.flag-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.lang-btn.active {
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

.lang-btn:hover:not(.active) {
    opacity: 0.8;
}

.top-link {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.top-link:hover {
    color: var(--text-bright);
}

.top-link i {
    margin-right: 5px;
}

/* ======================
   MAIN HEADER
   ====================== */
.main-header {
    background: rgba(22, 7, 7, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-header.scrolled {
    background: rgba(22, 7, 7, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    gap: 15px;
}

.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.burger-menu span {
    width: 22px;
    height: 2px;
    background: var(--text-light);
    transition: var(--transition);
}

.logo {
    margin-left: 20px;
    /* Shifted slightly to the right */
}

.logo a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.logo h1 {
    font-size: 2.2rem;
    letter-spacing: 2px;
    line-height: 1;
    color: var(--text-bright);
    font-weight: 600;
}

.logo-sub {
    font-size: 0.65rem;
    letter-spacing: 12px;
    color: var(--text-muted);
    font-weight: 400;
    text-transform: uppercase;
    margin-top: 4px;
    margin-right: -13px;
    /* Compensate for letter-spacing on the last character to ensure perfect optical centering */
}

.footer-logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
    margin-bottom: 10px;
}

/* Navigation */
.main-nav ul {
    display: flex;
    gap: 28px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.main-nav a {
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-sm);
    color: var(--text-muted);
    position: relative;
    padding: 10px 0;
    white-space: nowrap;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.main-nav a:hover {
    color: var(--text-bright);
}

.main-nav a:hover::after {
    width: 100%;
}

.nav-sale {
    color: var(--sale-color) !important;
    font-weight: 700 !important;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.action-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.05rem;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.action-btn:hover {
    color: var(--text-bright);
}

.badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--accent);
    color: var(--white);
    font-size: 0.6rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* ======================
   SIDEBAR NAVIGATION
   ====================== */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar-nav {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100vh;
    background: var(--bg-medium);
    z-index: 2000;
    transition: 0.4s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.sidebar-nav.active {
    left: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid var(--border);
}

.sidebar-header h3 {
    font-size: 1.2rem;
}

.sidebar-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
}

.sidebar-close:hover {
    color: var(--accent);
}

.sidebar-user {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border);
}

.sidebar-user a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.sidebar-user a:hover {
    color: var(--text-bright);
}

.sidebar-user i {
    margin-right: 10px;
    font-size: 1.1rem;
}

.sidebar-lang {
    display: flex;
    gap: 10px;
    padding: 15px 25px;
    border-bottom: 1px solid var(--border);
}

.m-lang-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.m-lang-btn.active,
.m-lang-btn:hover {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

.sidebar-links {
    padding: 15px 0;
    flex: 1;
}

.sidebar-links li a {
    display: block;
    padding: 12px 25px;
    color: var(--text-light);
    font-size: 0.95rem;
    transition: var(--transition);
}

.sidebar-links li a:hover {
    background: var(--bg-hover);
    padding-left: 30px;
    color: var(--text-bright);
}

.sidebar-sale {
    color: var(--sale-color) !important;
    font-weight: 700;
}

.sale-tag {
    background: var(--sale-color);
    color: var(--white);
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 8px;
}

.sidebar-extras {
    padding: 15px 25px;
    border-top: 1px solid var(--border);
}

.sidebar-extras a {
    display: block;
    padding: 8px 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.sidebar-extras a:hover {
    color: var(--text-bright);
}

.sidebar-extras i {
    margin-right: 10px;
}

.sidebar-social {
    padding: 20px 25px;
    display: flex;
    gap: 15px;
}

.sidebar-social a {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.sidebar-social a:hover {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

/* ======================
   HERO SLIDER
   ====================== */
.hero-slider {
    position: relative;
    height: 75vh;
    overflow: hidden;
}

.slide {
    position: absolute;
    inset: 0;
    background-color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.8s ease;
    overflow: hidden;
}

/* Logo image natively contained to prevent any distortion */
.slide-bg-logo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: right center;
    pointer-events: none;
    user-select: none;
    z-index: 0;
    transition: transform 0.5s ease;
}

@media (max-width: 768px) {
    .slide-bg-logo {
        object-position: 70% center;
        /* Shift slightly to show focal point better on narrow screens */
        transform: scale(1.8);
        /* Slightly less aggressive scale */
    }
}

/* Dark tint overlay — sits above the logo */
.slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(80, 10, 10, 0.5), rgba(80, 10, 10, 0.5));
    z-index: 1;
}

/* Ensure slide content sits above everything */
.slide .slide-content {
    position: relative;
    z-index: 2;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    color: var(--white);
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    animation: fadeInUp 0.8s ease;
}

.slide-tag {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    padding: 5px 15px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 20px;
}

.slide-content h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 20px;
    color: var(--white);
    line-height: 1.1;
    font-weight: 500;
    letter-spacing: 1px;
}

.slide-content p {
    font-size: 1.15rem;
    margin-bottom: 35px;
    font-weight: 300;
    opacity: 0.95;
    color: var(--text-light);
}

.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    border: 1px solid var(--white);
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    font-size: 0.8rem;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--white);
    color: var(--bg-dark);
    border-color: var(--white);
}

/* ======================
   TRUST BAR
   ====================== */
.trust-bar {
    background: var(--bg-medium);
    padding: 40px 0;
    border-bottom: 1px solid var(--border-light);
    border-top: 1px solid var(--border-light);
}

.trust-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    padding-left: 40px;
    /* Shift items slightly to the right on desktop */
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1 1 200px;
    justify-content: flex-start;
    /* Aligned left as requested */
    text-align: left;
}

.trust-icon {
    font-size: 1.8rem;
    color: var(--accent);
}

.trust-text h5 {
    font-size: 1.1rem;
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 2px;
}

.trust-text p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

@media (max-width: 768px) {
    .trust-bar-content {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 0 20px;
    }

    .trust-item {
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 5px;
    }
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--accent);
    transform: scale(1.2);
}

/* ======================
   QUICK CATEGORIES
   ====================== */
.quick-categories {
    padding: 60px 0;
    background: var(--bg-medium);
}

.quick-cat-grid {
    display: flex;
    justify-content: flex-start;
    gap: 30px;
    overflow-x: auto;
    padding-top: 15px;
    /* Added to prevent hover clip */
    margin-top: -15px;
    /* Offset the padding visually */
    padding-bottom: 20px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    /* Firefox: hide scrollbar */
}

.quick-cat-grid::-webkit-scrollbar {
    display: none;
}

@media (min-width: 992px) {
    .quick-cat-grid {
        justify-content: center;
        overflow-x: visible;
    }
}

.quick-categories .container {
    position: relative;
}

/* Category swipe arrow button for mobile */
.category-scroll-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    box-shadow: -10px 0 20px rgba(0, 0, 0, 0.8);
    cursor: pointer;
    animation: bounceRight 2s infinite;
    z-index: 5;
    opacity: 0;
    pointer-events: none;
    /* hidden by default on desktop */
    transition: var(--transition);
}

.category-scroll-btn:hover {
    background: var(--accent);
    color: var(--white);
    animation: none;
}

@keyframes bounceRight {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(-50%) translateX(0);
    }

    40% {
        transform: translateY(-50%) translateX(5px);
    }

    60% {
        transform: translateY(-50%) translateX(3px);
    }
}

@media (max-width: 991px) {
    .category-scroll-btn {
        opacity: 0.9;
        pointer-events: auto;
        /* clickable on mobile */
    }

    .quick-cat-item {
        scroll-snap-align: start;
        min-width: 80px;
    }
}

.quick-cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
    text-align: center;
}

.quick-cat-item span {
    line-height: 1.2;
    word-break: break-word;
    width: 100%;
}

.quick-cat-item:hover {
    color: var(--text-bright);
    transform: translateY(-3px);
}

.quick-cat-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
    background: var(--bg-card);
    box-sizing: border-box;
    overflow: hidden;
    /* Ensures hover background doesn't bleed outside the circle */
}

.quick-cat-item:hover .quick-cat-icon {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(255, 77, 77, 0.1);
    box-shadow: 0 5px 15px rgba(255, 77, 77, 0.15);
}

.sale-cat .quick-cat-icon {
    border-color: var(--sale-color);
    color: var(--sale-color);
}

.sale-cat span {
    color: var(--sale-color);
    font-weight: 700;
}

/* ======================
   PRODUCTS SECTION
   ====================== */
.products-section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h3 {
    font-size: 2.8rem;
    margin-bottom: 25px;
    font-weight: 500;
    color: var(--text-bright);
}

.product-tabs {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.tab-btn {
    padding: 10px 25px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-body);
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 15px rgba(216, 60, 60, 0.15);
    border-color: rgba(216, 60, 60, 0.4);
}

.product-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/5;
    background: var(--bg-medium);
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

.skeleton-shimmer {
    background: linear-gradient(90deg, var(--bg-medium) 25%, var(--bg-hover) 50%, var(--bg-medium) 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite linear;
}

.product-info {
    padding: 20px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.product-info h4 {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 10px;
    line-height: 1.4;
}

.skeleton-text-line {
    height: 14px;
    background: var(--bg-medium);
    margin-bottom: 10px;
    border-radius: 2px;
}

.product-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    font-family: var(--font-heading);
}

.old-price {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.skeleton-text-short {
    height: 18px;
    width: 60px;
    background: var(--bg-medium);
    display: inline-block;
    border-radius: 2px;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.new-badge {
    background: var(--accent);
    color: var(--white);
}

.sale-badge {
    background: var(--sale-color);
    color: var(--white);
}

.out-of-stock-badge {
    background: rgba(40, 40, 40, 0.9);
    color: var(--text-muted);
}

.product-card.disabled {
    pointer-events: none;
}

.product-card.disabled .product-img {
    filter: grayscale(100%) opacity(0.5);
}

.product-card.disabled .product-wishlist {
    display: none;
}

.product-wishlist {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    border: none;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-wishlist:hover {
    background: var(--accent);
    transform: scale(1.1);
}

.product-info {
    padding: 15px;
}

.skeleton-text-line {
    height: 14px;
    background: linear-gradient(90deg, var(--bg-hover) 25%, var(--bg-card) 50%, var(--bg-hover) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    width: 75%;
    margin-bottom: 10px;
    border-radius: 3px;
}

.skeleton-text-short {
    display: inline-block;
    height: 14px;
    width: 60px;
    background: linear-gradient(90deg, var(--bg-hover) 25%, var(--bg-card) 50%, var(--bg-hover) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 3px;
}

.product-price {
    display: flex;
    gap: 10px;
    align-items: center;
}

.old-price {
    opacity: 0.5;
}

/* ======================
   CRAFTSMANSHIP SECTION
   ====================== */
.craftsmanship-section {
    padding: 100px 0;
    background: var(--bg-dark);
    /* Match the main site theme */
    overflow: hidden;
}

.craftsmanship-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.craft-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 500px;
    background: #000;
}

.craft-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(22, 7, 7, 0.4), transparent);
    pointer-events: none;
}

.craft-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

.craftsmanship-section:hover .craft-image img {
    transform: scale(1.1);
}

.section-tag {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent);
    margin-bottom: 15px;
    font-weight: 600;
}

.craft-text h2 {
    font-size: 2.8rem;
    margin-bottom: 25px;
    line-height: 1.2;
}

.craft-text p {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.craft-features {
    display: flex;
    gap: 40px;
}

.craft-feature {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.craft-feature i {
    font-size: 1.5rem;
    color: var(--accent);
}

.craft-feature span {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

@media (max-width: 991px) {
    .craftsmanship-content {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .craft-text p {
        margin-left: auto;
        margin-right: auto;
    }

    .craft-features {
        justify-content: center;
    }

    .craft-image {
        height: 300px;
        /* Shorter for mobile to prevent extreme cropping */
    }

    .craft-image img {
        transform: scale(1.2) !important;
        /* Managed by CSS instead of inline */
        object-position: center 20%;
        /* Keep subject's head/top in view */
    }
}

/* ======================
   NEWSLETTER
   ====================== */
.newsletter {
    padding: 60px 0;
    background: var(--bg-medium);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.newsletter-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.newsletter-text h3 {
    font-size: 1.6rem;
    margin-bottom: 5px;
}

.newsletter-text p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.newsletter-form {
    display: flex;
    gap: 0;
}

.newsletter-form input {
    padding: 14px 20px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-light);
    font-size: 0.9rem;
    outline: none;
    min-width: 280px;
    font-family: var(--font-body);
}

/* ======================
   OAUTH MODAL
   ====================== */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.auth-modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.close-auth {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: 0.3s;
}

.close-auth:hover {
    color: var(--text-bright);
}

.auth-header {
    text-align: center;
    margin-bottom: 25px;
}

.auth-header h2 {
    font-family: var(--font-heading);
    color: var(--text-bright);
    font-size: 2rem;
    margin-bottom: 5px;
}

.social-login-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    background: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 4px;
}

.btn-social.google:hover {
    border-color: #DB4437;
    color: #DB4437;
    background: rgba(219, 68, 55, 0.05);
}

.btn-social.facebook:hover {
    border-color: #4267B2;
    color: #4267B2;
    background: rgba(66, 103, 178, 0.05);
}

.auth-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: var(--border-light);
    z-index: 1;
}

.auth-divider span {
    background: var(--bg-card);
    padding: 0 15px;
    position: relative;
    z-index: 2;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.input-group {
    margin-bottom: 15px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.input-group input {
    width: 100%;
    padding: 12px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    color: var(--white);
    font-family: var(--font-body);
    border-radius: 4px;
    transition: 0.3s;
}

.input-group input:focus {
    border-color: var(--accent);
    outline: none;
}


.newsletter-form input:focus {
    border-color: var(--accent);
}

.newsletter-form input::placeholder {
    color: var(--text-muted);
}

.newsletter-form button {
    padding: 14px 30px;
    background: var(--accent);
    color: var(--white);
    border: 1px solid var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-body);
}

.newsletter-form button:hover {
    background: var(--accent-hover);
}

/* ======================
   FOOTER
   ====================== */
.main-footer {
    background: var(--bg-medium);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 50px;
}

.footer-logo h4 {
    font-size: 1.5rem;
    letter-spacing: 4px;
}

.footer-logo span {
    font-size: 0.6rem;
    letter-spacing: 8px;
    color: var(--text-muted);
}

.footer-col p {
    margin-top: 15px;
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

.footer-col h5 {
    font-size: 1rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul a {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-col ul a:hover {
    color: var(--text-bright);
}

.contact-list li {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.contact-list i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 25px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.footer-payment {
    display: flex;
    gap: 15px;
    font-size: 1.5rem;
    color: var(--text-muted);
}

/* ======================
   TOAST NOTIFICATIONS
   ====================== */
#toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
    pointer-events: none;
}

.toast {
    background: var(--bg-card);
    color: var(--text-bright);
    padding: 15px 25px;
    border-radius: 8px;
    border-left: 5px solid var(--accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.success {
    border-left-color: #28a745;
}

.toast.success i {
    color: #28a745;
}

.toast.error {
    border-left-color: #dc3545;
}

.toast.error i {
    color: #dc3545;
}

.toast i {
    font-size: 1.2rem;
}

/* ======================
   PROFILE & DASHBOARD LAYOUT
   ====================== */
.profile-layout {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    margin-bottom: 80px;
    align-items: flex-start;
}

.profile-sidebar {
    width: 250px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px 0;
    position: sticky;
    top: 100px;
}

.profile-sidebar a {
    display: block;
    padding: 15px 25px;
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    border-left: 3px solid transparent;
    font-size: 0.95rem;
}

.profile-sidebar a:hover,
.profile-sidebar a.active {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-bright);
    border-left-color: var(--accent);
}

.profile-sidebar a i {
    width: 25px;
    color: var(--text-muted);
}

.profile-sidebar a.active i {
    color: var(--accent);
}

.profile-content {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 40px;
    animation: fadeIn 0.4s ease;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-light);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid var(--border);
    object-fit: cover;
    background: var(--bg-dark);
}

.profile-header-info h2 {
    font-family: var(--font-heading);
    color: var(--text-bright);
    font-size: 2.2rem;
    margin-bottom: 5px;
}

.profile-header-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.info-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-group label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.info-group input {
    padding: 12px 15px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    color: var(--white);
    font-family: var(--font-body);
    border-radius: 4px;
}

.info-group input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ======================
   SEARCH OVERLAY
   ====================== */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 5, 5, 0.98);
    backdrop-filter: blur(10px);
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.close-search {
    position: absolute;
    top: 40px;
    right: 40px;
    background: none;
    border: none;
    color: var(--text-bright);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
}

.close-search:hover {
    color: var(--accent);
    transform: rotate(90deg);
}

.search-container {
    width: 100%;
    max-width: 600px;
    padding: 20px;
    text-align: center;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 10px;
}

.search-input-wrapper input {
    width: 100%;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.8rem;
    font-family: var(--font-heading);
    outline: none;
}

.search-input-wrapper button {
    background: none;
    border: none;
    color: var(--text-bright);
    font-size: 1.5rem;
    cursor: pointer;
}

.search-suggestions {
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.search-suggestions a {
    color: var(--text-light);
    margin: 0 5px;
    text-decoration: underline;
}

/* ======================
   SIDE DRAWERS (Cart & Fav)
   ====================== */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 2500;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.side-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: var(--bg-medium);
    border-left: 1px solid var(--border);
    z-index: 2600;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.side-drawer.active {
    right: 0;
}

.drawer-header {
    padding: 25px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-header h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-bright);
}

.close-drawer {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
}

.drawer-content {
    flex: 1;
    padding: 25px;
    overflow-y: auto;
}

.drawer-empty {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-muted);
    text-align: center;
    gap: 15px;
}

.drawer-empty i {
    font-size: 3rem;
    opacity: 0.2;
}

.drawer-footer {
    padding: 25px;
    border-top: 1px solid var(--border-light);
    background: var(--bg-dark);
}

.drawer-total {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--text-bright);
}

@media (max-width: 480px) {
    .side-drawer {
        width: 100%;
        right: -100%;
    }
}

/* ======================
   RESPONSIVE
   ====================== */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .main-nav ul {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .main-nav a {
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }

    .burger-menu {
        display: flex;
    }

    .main-nav {
        display: none;
    }

    .logo h1 {
        font-size: 1.4rem;
    }

    .hero-slider {
        height: 60vh;
    }

    .slide-content h2 {
        font-size: 2rem;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-categories {
        padding: 40px 0;
    }

    .quick-cat-grid {
        gap: 15px;
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 15px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .quick-cat-grid::-webkit-scrollbar {
        display: none;
    }

    .quick-cat-item {
        min-width: 80px;
        text-align: center;
    }

    .quick-cat-item span {
        font-size: 0.75rem;
        line-height: 1.2;
        word-break: break-word;
    }

    .quick-cat-icon {
        width: 55px;
        height: 55px;
        font-size: 1.1rem;
    }

    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }

    .newsletter-form {
        flex-direction: column;
        width: 100%;
    }

    .newsletter-form input {
        min-width: unset;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .section-header h3 {
        font-size: 1.6rem;
    }

    .product-tabs {
        flex-wrap: wrap;
    }

    /* Profile/Dashboard Mobile Fix */
    .profile-layout {
        flex-direction: column;
    }

    .profile-sidebar {
        width: 100%;
        position: relative;
        top: 0;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .slide-content h2 {
        font-size: 1.6rem;
    }

    .slide-content p {
        font-size: 0.9rem;
    }

    .btn-primary {
        padding: 12px 25px;
        font-size: 0.8rem;
    }
}