/* CSS Design System for YEDAMIGNOU */

:root {
    /* Colors */
    --black: #ffffff;
    --deep-carbon: #f9f9f9;
    --gold: #D4AF37;
    --gold-light: #F1D382;
    --white: #1a1a1a;
    --grey-light: #f5f5f5;
    --grey-medium: #666666;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Layout */
    --container-max: 1440px;
    --header-height: 80px;

    /* Transitions */
    --transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--black);
    color: var(--white);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 400;
    text-transform: uppercase;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 40px;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease-in-out;
}

.preloader-logo {
    width: 120px;
    filter: none;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

.loader-line {
    width: 60px;
    height: 1px;
    background: var(--gold);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.loader-line::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--black);
    left: -100%;
    animation: loading 1.5s infinite;
}


@keyframes pulse {
    0% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.5;
    }
}

@keyframes loading {
    100% {
        left: 100%;
    }
}

/* Navigation */
#main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: transparent;
    z-index: 1000;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

#main-nav.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.mobile-only {
    display: none;
}

.nav-container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

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

.nav-center {
    flex: 0;
}

.nav-logo {
    height: 40px;
    filter: brightness(1.2);
}

.nav-left a,
.nav-right a {
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 300;
    position: relative;
}

#cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--gold);
    color: #ffffff;
    font-size: 10px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
}

.nav-left a:hover,
.nav-right a:hover,
.nav-left a.active {
    color: var(--gold);
}

/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
}

.hero-content {
    z-index: 2;
    text-align: center;
    max-width: 800px;
    animation: floatContent 6s ease-in-out infinite;
}

.hero-content h1 {
    font-size: 8vw;
    margin-bottom: 10px;
    letter-spacing: 15px;
    opacity: 0;
}

.hero-content p {
    font-size: 1.2rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 40px;
    opacity: 0;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 12px;
    transition: var(--transition);
    opacity: 0;
}

.cta-button:hover {
    background: var(--gold);
    color: var(--black);
}

/* Shop Hero */
.shop-hero {
    height: 60vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.shop-hero .container.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin-top: var(--header-height);
    /* Offset for header */
}

.shop-hero h1 {
    font-size: 5vw;
    letter-spacing: 12px;
    line-height: 1.2;
}

.shop-hero p {
    font-size: 1.1rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-top: 25px;
}

/* Section Styling */
.section {
    padding: 120px 0;
}

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

.section-header h2 {
    font-size: 2.5rem;
    letter-spacing: 8px;
    margin-bottom: 20px;
}

.gold-line {
    width: 50px;
    height: 1px;
    background: var(--gold);
    margin: 0 auto;
}

/* Shop Controls (Search & Filter) */
.shop-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    gap: 30px;
    flex-wrap: wrap;
}

.search-bar {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-bar i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--grey-medium);
    font-size: 14px;
}

.search-bar input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    background: #fdfdfd;
    border: 1px solid rgba(0, 0, 0, 0.05);
    font-family: var(--font-body);
    font-size: 13px;
    letter-spacing: 1px;
    transition: var(--transition);
}

.search-bar input:focus {
    outline: none;
    border-color: var(--gold);
    background: #ffffff;
}

.filter-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 10px 20px;
    font-family: var(--font-body);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--grey-medium);
}

.filter-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.filter-btn.active {
    background: var(--gold);
    color: #ffffff;
    border-color: var(--gold);
}

@media (max-width: 768px) {
    .shop-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .search-bar {
        max-width: 100%;
    }

    .filter-group {
        justify-content: center;
    }
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* More dense grid */
    gap: 20px;
    /* Reduced gap */
}

.product-grid-3 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4-col grid for Featured to make them smaller */
    gap: 20px;
}

@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.product-card {
    position: relative;
    background: transparent;
    transition: var(--transition);
    border: none;
    box-shadow: none;
}

.product-img-wrapper {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    background: var(--deep-carbon);
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.8s ease;
}

.product-img.secondary {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

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

.product-card:hover .product-img:not(.secondary) {
    opacity: 0;
    transform: scale(1.05);
}

/* Editorial Card */
.editorial-card {
    grid-column: 1 / -1;
    margin: 60px 0;
    background: var(--deep-carbon);
    overflow: hidden;
}

.editorial-content {
    display: flex;
    align-items: center;
    height: 600px;
}

.editorial-img {
    width: 60%;
    height: 100%;
    object-fit: cover;
}

.editorial-text {
    width: 40%;
    padding: 0 80px;
}

.editorial-text h3 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    letter-spacing: 5px;
}

.editorial-text p {
    font-size: 1.1rem;
    color: var(--grey-medium);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

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

.quick-view,
.add-to-cart-btn {
    padding: 12px 25px;
    background: var(--white);
    color: var(--black);
    border: none;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 2px;
    cursor: pointer;
    transition: var(--transition);
}

.quick-view:hover,
.add-to-cart-btn:hover {
    background: var(--gold);
}

.product-info {
    padding: 20px 0;
    text-align: center;
}

.product-info h3 {
    font-size: 0.95rem;
    letter-spacing: 1.5px;
    margin-bottom: 5px;
}

.price {
    color: var(--gold);
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.section-footer {
    text-align: center;
    margin-top: 60px;
}

/* Lifestyle Mosaic */
.lifestyle-section {
    padding: 100px 0;
    background: var(--black);
}

.grid-mosaic {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 400px);
    gap: 20px;
    padding: 0 40px;
}

.mosaic-item {
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}

.mosaic-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s ease;
}

.mosaic-item:hover img {
    transform: scale(1.1);
}

.mosaic-item.tall {
    grid-row: span 2;
}

.mosaic-item.wide {
    grid-column: span 2;
}

@media (max-width: 1024px) {
    .grid-mosaic {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .mosaic-item.wide {
        grid-column: span 1;
    }

    .grid-mosaic {
        grid-template-rows: repeat(4, 300px);
    }
}

@media (max-width: 768px) {
    .grid-mosaic {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        padding: 0 20px;
    }

    .mosaic-item.tall {
        grid-row: span 1;
    }
}

/* About Section */
.about-section {
    background: var(--deep-carbon);
    padding: 100px 0;
}

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

.about-img {
    height: 80vh;
    opacity: 0;
    transform: translateX(-50px);
}

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

.about-text {
    padding: 0 100px;
}

.subtitle {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 5px;
    font-size: 0.8rem;
    display: block;
    margin-bottom: 20px;
}

.about-text h2 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 30px;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--white);
    /* Using deep carbon/black for maximum visibility on white */
    margin-bottom: 40px;
    max-width: 500px;
    opacity: 0.9;
}

.link-gold {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
    border-bottom: 1px solid var(--gold);
    padding-bottom: 5px;
}

/* Footer */
footer {
    padding: 100px 40px 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    margin-bottom: 80px;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    height: 40px;
    margin-bottom: 20px;
}

.footer-brand p {
    color: var(--grey-medium);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 80px;
}

.link-group h4 {
    font-size: 0.9rem;
    margin-bottom: 25px;
    letter-spacing: 3px;
}

.link-group ul li {
    margin-bottom: 12px;
}

.link-group a {
    color: var(--grey-medium);
    font-size: 0.85rem;
}

.link-group a:hover {
    color: var(--gold);
}

.social-icons {
    display: flex;
    gap: 20px;
}

.footer-bottom {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.75rem;
    color: var(--grey-medium);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Animations */
.fade-in {
    animation: fadeIn 1.2s forwards;
}

.delay-1 {
    animation-delay: 0.3s;
}

.delay-2 {
    animation-delay: 0.6s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

@keyframes floatContent {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Reveal Animations */
.reveal-up,
.reveal-down,
.reveal-left,
.reveal-right,
.reveal-text {
    opacity: 0;
    transition: 1s cubic-bezier(0.215, 0.61, 0.355, 1);
    will-change: transform, opacity;
}

.reveal-up {
    transform: translateY(30px);
}

.reveal-down {
    transform: translateY(-30px);
}

.reveal-left {
    transform: translateX(-30px);
}

.reveal-right {
    transform: translateX(30px);
}

.reveal-text {
    transform: translateY(10px);
}

.reveal-blur {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(20px);
}

.reveal-zoom-in {
    opacity: 0;
    transform: scale(0.95);
}

.reveal-zoom-out {
    opacity: 0;
    transform: scale(1.05);
}

/* Animation Delays */
.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

.delay-4 {
    transition-delay: 0.8s;
}

.delay-5 {
    transition-delay: 1s;
}

@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .about-text {
        padding: 80px 40px;
    }

    .editorial-content {
        flex-direction: column;
        height: auto;
    }

    .editorial-img,
    .editorial-text {
        width: 100%;
    }

    .editorial-text {
        padding: 60px 40px;
    }
}

@media (max-width: 768px) {

    .nav-left {
        display: none;
    }

    .nav-right {
        display: flex;
        gap: 20px;
    }

    .nav-right a:not(.mobile-only) {
        display: none;
        /* Hide PC-only icons if needed, but keeping bag/search usually good */
    }

    .nav-right .mobile-only {
        display: block;
    }

    /* Show bag icon specially on mobile if it was in nav-right */
    .nav-right a[href="panier.html"],
    .nav-right a#search-btn {
        display: block;
    }

    .nav-center {
        flex: 1;
        text-align: left;
    }

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

    .hero-content h1 {
        font-size: 3rem;
        letter-spacing: 5px;
    }

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

    .footer-container {
        flex-direction: column;
        gap: 60px;
    }

    .about-text h2 {
        font-size: 2.5rem;
    }

    .sidebar {
        width: 100%;
        right: -100%;
    }
}

/* Sidebar & Cart */
.sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: var(--black);
    z-index: 2000;
    transition: right 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    padding: 40px;
    border-left: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
}

.sidebar.active {
    right: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.sidebar-header h3 {
    font-size: 1.2rem;
    letter-spacing: 3px;
}

#close-cart {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 30px;
}

.empty-cart-msg {
    text-align: center;
    color: var(--grey-medium);
    margin-top: 40px;
    font-size: 0.9rem;
}

.cart-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.cart-item-img {
    width: 80px;
    height: 100px;
    object-fit: cover;
}

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

.cart-item-info h4 {
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.cart-item-price {
    color: var(--gold);
    font-size: 0.85rem;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
}

.qty-btn {
    background: none;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--white);
    padding: 2px 8px;
    cursor: pointer;
    font-size: 0.8rem;
}

.remove-item {
    background: none;
    border: none;
    color: var(--grey-medium);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    margin-top: 10px;
}

.sidebar-footer {
    padding-top: 30px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.checkout-btn {
    width: 100%;
    padding: 18px;
    background: var(--gold);
    color: var(--black);
    border: none;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.checkout-btn:hover {
    background: var(--white);
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1500;
    display: none;
    backdrop-filter: blur(5px);
}

#overlay.active {
    display: block;
}

/* Product Details Modal */
#product-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 1000px;
    height: 85vh;
    background: var(--black);
    z-index: 2500;
    display: none;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: none;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
    /* Minimal soft shadow for elevation only */
}

#product-modal.active {
    display: flex;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
}

.modal-content {
    display: flex;
    width: 100%;
    height: 100%;
}

.modal-gallery {
    flex: 1.2;
    background: var(--deep-carbon);
    display: flex;
    flex-direction: column;
    padding: 20px;
}

#modal-main-img {
    width: 100%;
    height: 80%;
    object-fit: contain;
    /* Better for details */
    margin-bottom: 20px;
    background: #fdfdfd;
}

.modal-thumbnails {
    display: flex;
    gap: 10px;
    height: 15%;
    overflow-x: auto;
    padding-bottom: 5px;
}

.modal-thumbnails img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition);
    border: 1px solid transparent;
}

.modal-thumbnails img:hover,
.modal-thumbnails img.active {
    opacity: 1;
    border-color: var(--gold);
}

.modal-details {
    flex: 1;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--black);
}

#modal-name {
    font-size: 2rem;
    margin-bottom: 10px;
    letter-spacing: 3px;
    font-family: var(--font-heading);
    text-transform: uppercase;
}

#modal-price {
    font-size: 1.2rem;
    color: var(--gold);
    margin-bottom: 30px;
    letter-spacing: 1px;
}

#modal-description {
    color: var(--white);
    opacity: 0.8;
    margin-bottom: 40px;
    line-height: 1.8;
    font-size: 0.95rem;
}

.modal-actions {
    margin-top: auto;
}

@media (max-width: 1024px) {
    .modal-details {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    #product-modal {
        flex-direction: column;
        height: 95vh;
        width: 95%;
        top: 2.5%;
        left: 2.5%;
        transform: none;
        display: block;
        /* Important for flex-direction: column child height */
        overflow-y: auto;
    }

    #product-modal.active {
        display: block;
        transform: none;
    }

    .modal-content {
        flex-direction: column;
    }

    .modal-gallery {
        height: 400px;
        flex: none;
    }

    .modal-details {
        padding: 30px;
        flex: none;
    }
}

/* Cart Page Styles */
.cart-page-header {
    text-align: center;
    padding: 180px 0 60px;
    background: var(--black);
}

.cart-page-header h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    letter-spacing: 10px;
    text-transform: uppercase;
}

.cart-page-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 40px 100px;
}

.cart-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
}

.cart-items-list {
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.cart-page-item {
    display: flex;
    gap: 30px;
    padding: 40px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.cart-page-item img {
    width: 150px;
    height: 180px;
    object-fit: cover;
}

.cart-page-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cart-page-item-content h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.cart-page-item-qty {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

/* Order Form */
.order-form-card {
    background: var(--deep-carbon);
    padding: 50px;
    border: none;
    position: sticky;
    top: 120px;
}

.order-form-card h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 40px;
    text-align: center;
    letter-spacing: 3px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    color: var(--grey-medium);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: #fdfdfd;
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: var(--transition);
}

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

.order-summary-box {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.summary-row.total {
    margin-top: 25px;
    font-size: 1.3rem;
    color: var(--gold);
    font-weight: 700;
}

@media (max-width: 1024px) {
    .cart-grid {
        grid-template-columns: 1fr;
    }

    .order-form-card {
        position: static;
    }
}

@media (max-width: 768px) {
    .cart-page-item {
        flex-direction: column;
    }

    .cart-page-item img {
        width: 100%;
        height: 300px;
    }
}

/* Floating Actions */
.floating-actions {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.floating-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--black);
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    position: relative;
    opacity: 1;
    pointer-events: all;
}

#scroll-to-top {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

#scroll-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.floating-btn:hover {
    background: var(--white);
    transform: translateY(-5px);
}

.floating-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--white);
    color: var(--black);
    font-size: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
}

/* =========================================
   PRO MOBILE ENHANCEMENTS & TYPOGRAPHY
   ========================================= */
@media (max-width: 768px) {

    /* Base Spacing & Layout */
    #preloader {
        width: 100vw !important;
        height: 100dvh !important;
    }

    .floating-actions {
        bottom: 20px;
        right: 20px;
        gap: 10px;
    }

    .floating-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    .container,
    .nav-container,
    .footer-container {
        padding: 0 20px !important;
    }

    .section,
    .lifestyle-section,
    .about-section {
        padding: 60px 0 !important;
    }

    .cart-page-container {
        padding: 0 20px 80px !important;
    }

    /* Headings & Typography */
    h1,
    h2 {
        line-height: 1.2;
    }

    .section-header {
        margin-bottom: 40px !important;
    }

    .section-header h2 {
        font-size: 2rem !important;
        letter-spacing: 4px !important;
        margin-bottom: 12px;
    }

    /* Navigation Header */
    #main-nav {
        height: 70px !important;
    }

    .shop-hero .container.hero-content {
        margin-top: 70px !important;
    }

    .nav-logo {
        height: 40px !important;
    }

    .nav-right {
        gap: 25px !important;
    }

    .nav-right a {
        font-size: 20px !important;
    }

    #cart-count {
        top: -6px !important;
        right: -10px !important;
        width: 18px !important;
        height: 18px !important;
        font-size: 10px !important;
    }

    /* Hamburger Menu Overlay */
    .nav-left {
        display: none !important;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100dvh - 70px);
        background: var(--black);
        flex-direction: column !important;
        justify-content: center;
        align-items: center;
        z-index: 1000;
        padding-bottom: 70px;
    }

    .nav-left.active {
        display: flex !important;
        animation: fadeIn 0.3s ease;
    }

    .nav-left a {
        font-size: 1.5rem !important;
        margin-bottom: 30px;
        color: var(--white);
        letter-spacing: 4px;
    }

    /* Hero Section */
    .hero-content h1 {
        font-size: 10vw !important;
        letter-spacing: 5px !important;
        margin-bottom: 20px !important;
    }

    .hero-content p {
        font-size: 0.9rem !important;
        letter-spacing: 2px !important;
        margin-bottom: 30px !important;
    }

    .cta-button {
        padding: 12px 30px !important;
        font-size: 11px !important;
    }

    /* Shop Hero */
    .shop-hero {
        height: 40vh !important;
    }

    .shop-hero h1 {
        font-size: 9vw !important;
        letter-spacing: 5px !important;
    }

    .shop-hero p {
        font-size: 0.8rem !important;
        letter-spacing: 2px !important;
        margin-top: 15px !important;
    }

    /* Grids & Product Cards */
    .product-grid,
    .product-grid-3 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }

    /* Lifestyle Gallery Mobile Aesthetic Fix */
    .grid-mosaic {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        grid-auto-rows: 15px !important;
        gap: 10px !important;
        padding: 0 10px !important;
    }

    .mosaic-item {
        height: 100% !important;
        border-radius: 4px;
        grid-row: span 12;
        /* Default height */
    }

    /* Asymmetric masonry look based on child order */
    .mosaic-item:nth-child(1) {
        grid-row: span 18;
    }

    .mosaic-item:nth-child(2) {
        grid-row: span 14;
    }

    .mosaic-item:nth-child(3) {
        grid-row: span 16;
    }

    .mosaic-item:nth-child(4) {
        grid-row: span 12;
    }

    .mosaic-item:nth-child(5) {
        grid-row: span 15;
        grid-column: span 2;
    }

    .mosaic-item:nth-child(6) {
        grid-row: span 18;
    }

    .product-info {
        padding: 15px 0 !important;
    }

    .product-info h3 {
        font-size: 0.8rem !important;
        letter-spacing: 1px !important;
    }

    .price {
        font-size: 0.75rem !important;
    }

    /* Product Overlay - Touch Friendly */
    .product-overlay {
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%) !important;
        flex-direction: column !important;
        justify-content: flex-end !important;
        padding: 10px !important;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    /* Show overlay if device supports hover, or on active (tap) */
    @media (hover: none) {
        .product-overlay {
            opacity: 1 !important;
        }
    }

    .quick-view,
    .add-to-cart-btn {
        width: 100% !important;
        padding: 8px 0 !important;
        font-size: 9px !important;
        margin-top: 5px !important;
        text-align: center;
    }

    /* Controls */
    .shop-controls {
        margin-bottom: 40px !important;
        gap: 20px !important;
    }

    .search-bar input {
        padding: 10px 15px 10px 40px !important;
        font-size: 12px !important;
    }

    .filter-btn {
        padding: 8px 15px !important;
        font-size: 10px !important;
    }

    /* Cart Sidebar */
    .sidebar {
        width: 100% !important;
        right: -100% !important;
        padding: 25px 20px !important;
    }

    .sidebar.active {
        right: 0 !important;
    }

    .cart-item {
        gap: 15px !important;
        padding-bottom: 20px !important;
        margin-bottom: 20px !important;
    }

    .cart-item-img {
        width: 65px !important;
        height: 85px !important;
    }

    .cart-item-info h4 {
        font-size: 0.85rem !important;
    }

    .checkout-btn {
        padding: 15px !important;
        font-size: 12px !important;
    }

    /* Product Modal */
    #product-modal {
        width: 100% !important;
        height: 100dvh !important;
        /* dVH to handle browser UI */
        top: 0 !important;
        left: 0 !important;
        border-radius: 0 !important;
        display: flex !important;
        flex-direction: column !important;
    }

    #product-modal:not(.active) {
        display: none !important;
    }

    .modal-gallery {
        height: 45vh !important;
        padding: 15px !important;
    }

    #modal-main-img {
        height: 75% !important;
        margin-bottom: 10px !important;
    }

    .modal-thumbnails img {
        width: 60px !important;
        height: 60px !important;
    }

    .modal-details {
        padding: 25px 20px !important;
        height: 55vh !important;
        overflow-y: auto !important;
    }

    #modal-name {
        font-size: 1.6rem !important;
        margin-bottom: 8px !important;
    }

    #modal-price {
        font-size: 1.1rem !important;
        margin-bottom: 20px !important;
    }

    #modal-description {
        font-size: 0.9rem !important;
        margin-bottom: 25px !important;
    }

    /* Footer */
    footer {
        padding: 60px 20px 30px !important;
        text-align: center !important;
    }

    .footer-container {
        gap: 50px !important;
        margin-bottom: 50px !important;
        align-items: center !important;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-links {
        flex-direction: column !important;
        gap: 40px !important;
        align-items: center !important;
    }

    .link-group h4 {
        margin-bottom: 15px !important;
    }

    .footer-bottom {
        flex-direction: column !important;
        align-items: center !important;
        gap: 15px !important;
        text-align: center !important;
        padding-top: 25px !important;
    }

    /* Cart Page Items */
    .cart-page-header {
        padding: 100px 0 40px !important;
    }

    .cart-page-header h1 {
        font-size: 2.2rem !important;
    }

    .cart-page-item {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 20px !important;
        padding: 30px 0 !important;
    }

    .cart-page-item img {
        width: 120px !important;
        height: 150px !important;
        object-fit: cover !important;
    }

    .cart-page-item-content h3 {
        font-size: 1.2rem !important;
    }

    .cart-page-item-qty {
        justify-content: center !important;
    }

    .order-form-card {
        padding: 30px 20px !important;
        margin-top: 40px !important;
    }

    .order-form-card h2 {
        font-size: 1.5rem !important;
    }
}