@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@500&display=swap');
@import url('https://api.fontshare.com/v2/css?f[]=satoshi@400,500,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600&display=swap');

:root {
    --deep-teal: #024A58;
    --mid-teal: #4C8D94;
    --sky-blue: #CAEAF0;
    --off-white: #DFE0E2;
    --font-headline: 'IBM Plex Mono', monospace;
    --font-body: 'Satoshi', sans-serif;
    --font-wordmark: 'Playfair Display', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

::-webkit-scrollbar {
    display:none;
}

.modal-content::-webkit-scrollbar {
    display: none;
}

body {
    background: linear-gradient(180deg, var(--off-white) 0%, var(--sky-blue) 25%, var(--mid-teal) 60%, var(--deep-teal) 100%);
    background-attachment: fixed;
    font-family: var(--font-body);
    color: var(--deep-teal);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Product Link Styles */
.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
    transition: transform 0.3s ease;
}

.product-link:hover {
    transform: translateY(-5px);
}

.product-item {
    cursor: pointer;
    overflow: hidden;
}

#p5-canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    opacity: 0.4;
}

/* ========== HEADER ========== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 160px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    transition: all 0.6s ease;
    z-index: 1000;
}

.header-container {
    width: 75%;
    margin: auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    transition: all 0.6s ease;
}

nav {
    display: flex;
    justify-content: center;
    margin-left: 10%
}

nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

nav ul li a {
    text-decoration: none;
    color: var(--deep-teal);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 16px;
    border-radius: 6px;
    display: inline-block;
    cursor: pointer;
    pointer-events: none;
}

nav ul li a:hover {
    background: rgba(2, 74, 88, 0.1);
    transform: translateY(-2px);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--deep-teal);
    transition: width 0.3s ease;
    pointer-events: none;
}

nav ul li a:hover::after {
    width: 80%;
}

nav ul li a.active-nav {
    background: rgba(2, 74, 88, 0.15);
    font-weight: 600;
}

nav ul li a.active-nav::after {
    width: 80%;
    pointer-events: none;
}

.dropdown{
    position: relative;
    display: inline-block;
}
/* Dropdown specific styles */
.dropdown-content {
    display: none;
    position: absolute;
    background: rgba(255, 255, 255, 0.6);
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    border-radius: 20px;
    backdrop-filter: blur(80px);
    padding: 20px;
    z-index: 1300;
    top: 23px;
    left: -30px; 
}

.dropdown-content a {
    color: var(--deep-teal);
    padding: 15px 5px 0px 5px;
    text-decoration: none;
    display: block;
    text-align: left;
}

a.first{
    padding-top: 0px !important;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.icons {
    display: flex;
    gap:15px;
    align-items: center;
    justify-content: right;
    width: 250px;
}

.icons a {
    color: var(--deep-teal);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    position: relative;
}

.icons a:hover {
    transform: translateY(-2px);
    color: var(--mid-teal);
}

.cart-count,
.wishlist-count {
    position: absolute;
    top: -10px;
    right: -14px;
    color: var(--deep-teal);
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 18px;
    text-align: center;
}

.wishlist-icon {
    position: relative;
}

.wishlist-icon i , .cart-icon i{
    transition: all 0.3s ease;
}

.wishlist-icon:hover i {
    color: #ff6b6b;
    transform: scale(1.1);
}

.cart-icon:hover i {
    color: var(--mid-teal);
    transform: scale(1.1);
}

.wishlist-icon:hover .wishlist-count {
    color: #ff6b6b;
}

.cart-icon:hover .cart-count {
    color: var(--mid-teal);
}

.logo-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-wordmark);
    font-size: 3.5rem; /* Increased from 3rem to 3.5rem */
    font-weight: 600;
    letter-spacing: 5px; /* Slightly increased from 4px for better spacing */
    text-decoration: none;
    color: var(--deep-teal);
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 10;
    text-shadow: 0 2px 4px rgba(2, 74, 88, 0.2); /* Added subtle shadow for pop */
}

.small-logo-link {
    position: absolute;
    top: 50%;
    left: 40px;
    transform: translateY(-50%) scale(1);
    opacity: 0;
    width: auto;
    display: block;
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
    z-index: 11;
}

.small-logo {
    height: 50px;
    width: auto;
    display: block;
    transition: none;
    pointer-events: none;
}

header.scrolled {
    height: 80px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(15px) ;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 15px 10px;
}

header.scrolled .logo-center {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
    pointer-events: all;
}

header.scrolled .small-logo-link {
    opacity: 1;
    transform: translateY(-50%) scale(1);
    pointer-events: all;
}

header.scrolled nav {
    display: flex;
    justify-content: center;
}

header.scrolled nav ul {
    opacity: 1;
}

header.scrolled a{
    pointer-events: all;
}

header.scrolled .header-container {
    justify-content: space-between;
    gap: 0;
}

header.scrolled .small-logo-link {
    opacity: 1;
    transform: translateY(-50%) scale(1);
    pointer-events: all;
}

/* ========== HAMBURGER MENU ========== */
.hamburger {
    display: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: var(--deep-teal);
    margin: 5px 0;
    transition: 0.4s;
}

.hamburger-menu {
    opacity: 0;
    visibility: hidden;
    position: fixed;
    top: 120px;
    right: 10px;
    width: 40%;
    height: auto;
    background: rgba(255, 255, 255, 0.2);
    z-index: 1000;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
    border-radius: 20px;
    transform: translateX(100%);
    backdrop-filter: blur(10px);
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease,
        transform 0.3s ease;
}

.hamburger-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    backdrop-filter: blur(20px);
}

.hamburger-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hamburger-menu li {
    margin: 20px 0;
}

.hamburger-menu a {
    text-decoration: none;
    color: var(--deep-teal);
    font-size: 18px;
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    nav ul {
        display: none;
    }
    .hamburger-menu.active {
        transform: translateX(0);
        backdrop-filter: blur(20px);
    }
    .icons {
        display: none;
        width: auto;
    }
    .header-container{
        flex-direction:row-reverse;
        width: 100%;
        margin:0;
    }
    .cart-icon{
        display:none;
    }

    .wishlist-icon{
        display:none;
    }

    .logo-center {
        left: 30%;
    }

    .small-logo-link{
        margin-left: 20px;
    }

    /* Navbar Search Input - positioned absolutely */
    .navbar-search-input {
        top: 50px; /* Align to the right of its relative parent (.search-container-nav) */
        left: 15px;
        z-index: 1005; /* Lower than icon when collapsed, but will expand over others */
    }

    /* State when search bar is active */
    .search-container-nav.active .navbar-search-input {
        top: 50px; 
        left: 15px;
    }
}

/* CART MODAL (New) */
.cart-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(2, 74, 88, 0.7);
    backdrop-filter: blur(10px);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cart-modal-overlay.active {
    display: flex;
}

.cart-modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px);
    border-radius: 20px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    position: relative;
}

.cart-modal-inner h2 {
    font-family: var(--font-headline);
    font-size: 2rem;
    color: var(--deep-teal);
    margin-bottom: 20px;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    gap: 15px;
    background: rgba(255, 255, 255, 0.3);
    padding: 15px;
    border-radius: 10px;
    align-items: center;
}

.cart-item img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h4 {
    font-family: var(--font-headline);
    font-size: 1.2rem;
    color: var(--deep-teal);
    margin-bottom: 5px;
}

.cart-item-info p {
    font-size: 1rem;
    color: var(--deep-teal);
    opacity: 0.85;
}

.cart-empty {
    text-align: center;
    color: var(--deep-teal);
    font-size: 1.1rem;
    opacity: 0.7;
    margin: 20px 0;
    display: none;
}

.cart-empty.visible {
    display: block;
}

.checkout-btn {
    width: 100%;
    padding: 16px;
    background: var(--mid-teal);
    color: white;
    border: none;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkout-btn:hover {
    background: var(--deep-teal);
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle svg {
    width: 24px;
    height: 24px;
    stroke: var(--deep-teal);
    stroke-width: 2;
}

/* HERO */
.cover-hero {
    position: relative;
    z-index: 2;
    padding: clamp(72px, 10vh, 120px) 24px 24px;
}

.cover-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    gap: min(6vw, 60px);
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
}

.slider-container{
    position: relative;
    width: 50%; 
    height: 700px; 
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    object-fit: cover;
}

.slider{
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
    width: 100%;
}

.slider img{
    width: 100%;
    height: auto;
    object-fit: cover;
    flex-shrink: 0;
}

.cover-title {
    font-size: clamp(48px, 10vw, 110px);
    letter-spacing: 0.08em;
    margin: 0 0 12px;
}

.cover-sub {
    opacity: 1;
    color: var(--off-white);
    max-width: 46ch;
    margin: 0 0 20px;
}

.cover-ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
    will-change: transform;
}

.cta:hover { transform: translateY(-2px); }

.cta.primary {
    background: rgba(255, 255, 255, 0.14);
    color: inherit;
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(6px);
}

.cta.ghost {
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--off-white);
}

.trust-line {
    display: flex;
    gap: 8px;
    opacity: 1;
    font-size: 0.95rem;
    color:var(--off-white);
}

.cover-media {
    position: relative;
    aspect-ratio: 3 / 4;
    max-height: 72vh;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.cover-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: translateZ(0);
}

.hero-image-container {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); /* Smooth swipe animation */
}

.hero-image {
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    object-fit: cover;
    display: block;
    transform: translateZ(0);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.2; /* Translucent by default */
    transition: opacity 0.3s ease, background 0.3s ease;
    z-index: 10;
}

.hero-arrow:hover {
    opacity: 0.8; /* More visible on hover */
    background: rgba(255, 255, 255, 0.4);
}

.hero-arrow-left { left: 20px; }
.hero-arrow-right { right: 20px; }

.hero-arrow svg {
    width: 20px;
    height: 20px;
    stroke: var(--deep-teal);
    stroke-width: 2;
    fill: none;
}

.media-tag {
    position: absolute;
    left: 12px;
    bottom: 12px;
    font-size: 0.85rem;
    opacity: 0.9;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0,0,0,0.35);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(6px);
}

.glass {
    padding: clamp(18px, 2.5vw, 28px);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 10px 30px rgba(0,0,0,0.25);
    backdrop-filter: blur(8px);
}

.cover-chips {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 18px auto 0;
    max-width: 1000px;
}

.chip {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.16);
    color: var(--off-white);
    text-decoration: none;
    opacity: 0.9;
    transition: background 0.2s ease, transform 0.2s ease;
}

.chip:hover {
    background: rgba(255,255,255,0.08);
    transform: translateY(-1px);
}

/* FEATURED SECTION */
.featured-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 40px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-family: var(--font-headline);
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 5px;
    color: var(--deep-teal);
}

.section-header p {
    color: var(--deep-teal);
    font-size: 1.1rem;
    opacity: 0.85;
    font-weight: 500;
    margin-bottom: 10px;
}

.search-container {
    max-width: 700px;
    margin: 0 auto 20px;
    position: relative;
}

.premium-search {
    width: 100%;
    padding: 22px 60px 22px 30px;
    border: 2px solid rgba(2, 74, 88, 0.15);
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 1.05rem;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px);
    color: var(--deep-teal);
    transition: all 0.4s ease;
    font-weight: 500;
}

.premium-search:focus {
    outline: none;
    border-color: var(--deep-teal);
    background: rgba(255, 255, 255, 0.35);
    box-shadow: 0 10px 40px rgba(2, 74, 88, 0.15);
}

.premium-search::placeholder {
    color: rgba(2, 74, 88, 0.5);
}

.search-icon {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    pointer-events: none;
}

.search-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--deep-teal);
    opacity: 0.6;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
}

/* Above-the-fold cover hero (keeps your p5 background visible) */
.cover-hero { 
    position: relative;
    z-index: 2; /* sits above the p5 canvas */
    padding: 170px 10px 20px 10px;
}

.cover-hero-inner {
    width: 90%;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.cover-copy.glass{
    width: 50%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cover-title {
    font-size: clamp(48px, 10vw, 110px);
    letter-spacing: 0.08em;
    margin: 0 0 12px;
}

.cover-sub {
    opacity: 0.9;
    max-width: 46ch;
    margin: 0 0 20px;
}

.cover-ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
    will-change: transform;
}
.cta:hover { transform: translateY(-2px); }

.cta.primary {
    background: rgba(255, 255, 255, 0.14);
    color: inherit;
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(6px);
}
.cta.ghost {
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: inherit;
}

.trust-line {
    display: flex;
    gap: 8px;
    opacity: 0.8;
    font-size: 0.95rem;
}

.cover-media {
    position: relative;
    aspect-ratio: 3 / 4;
    max-height: 72vh;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}
.cover-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: translateZ(0);
}

.media-tag {
    position: absolute;
    left: 12px;
    bottom: 12px;
    font-size: 0.85rem;
    opacity: 0.9;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0,0,0,0.35);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(6px);
}

/* "Glass" card vibe without changing your color scheme */
.glass {
    padding: clamp(18px, 2.5vw, 28px);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.06),
        0 10px 30px rgba(0,0,0,0.25);
    backdrop-filter: blur(8px);
}

/* Category chips (optional) */
.cover-chips {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 18px auto 0;
    max-width: 1000px;
}
.chip {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.16);
    color: var(--off-white);
    text-decoration: none;
    opacity: 0.9;
    transition: background 0.2s ease, transform 0.2s ease;
}
.chip:hover {
    background: rgba(255,255,255,0.08);
    transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 980px) {
    .cover-hero-inner {
        flex-direction: column-reverse;
    }
    .cover-media {
        order: -1; /* image on top on mobile */
    }
    .cover-copy.glass{
        width: 100%;
    }
    
    
}

/* Optional: make the product grid feel cleaner by removing extra details */
.minimal-cards .product-details p,
.minimal-cards .product-badge {
    display: none !important;
}

/* PRODUCT SHOWCASE */
.product-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 400px));
    gap: 40px;
    margin-bottom: 20px;
    justify-content: center;
}

.product-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(223, 224, 226, 0.3);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    opacity: 1;
    max-width: 100%;
    display: flex;
    flex-direction: column;
}

.product-item.hidden {
    display: none;
}

.product-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(2, 74, 88, 0.2);
    background: rgba(255, 255, 255, 0.25);
}

.product-image {
    width: 100%;
    aspect-ratio: 3 / 4;
    max-height: 500px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); /* Smoother image zoom */
}

.product-item:hover .product-image img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--deep-teal);
    color: var(--off-white);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.product-details {
    padding: 20px;
    background: rgba(255, 255, 255, 0.25);
    height: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-details h3 {
    font-family: var(--font-headline);
    font-size: 1.2rem;
    margin-bottom: 6px;
    color: var(--deep-teal);
    font-weight: 600;
}

.product-details p {
    color: var(--deep-teal);
    margin-bottom: 10px; /* Reduced from 15px */
    font-size: 0.9rem; /* Reduced from 0.95rem */
    opacity: 0.75; /* Slightly more subtle */
    font-weight: 500;
    height: 40px !important;
    overflow:hidden;
}

.product-price {
    font-size: 1.3rem; /* Slightly reduced for balance */
    font-weight: 700;
    color: var(--deep-teal);
}

.no-results {
    text-align: center;
    padding: 80px 20px;
    display: none;
}

.no-results.visible {
    display: block;
}

.no-results h3 {
    font-family: var(--font-headline);
    font-size: 1.8rem;
    color: var(--deep-teal);
    margin-bottom: 15px;
}

.no-results p {
    color: var(--deep-teal);
    opacity: 0.7;
    font-size: 1.05rem;
}

.ai-button {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--deep-teal), var(--mid-teal));
    cursor: pointer;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(2, 74, 88, 0.4);
    transition: all 0.3s ease;
}

.ai-button:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 40px rgba(2, 74, 88, 0.5);
}

.ai-button svg {
    width: 28px;
    height: 28px;
    stroke: white;
    fill: none;
    stroke-width: 2;
}

.ai-chat-panel {
    position: fixed;
    bottom: 120px;
    right: 40px;
    width: 380px;
    max-height: 520px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(223, 224, 226, 0.25);
    border-radius: 20px;
    z-index: 1999;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 20px 60px rgba(2, 74, 88, 0.25);
    display: flex;
    flex-direction: column;
}

.ai-chat-panel.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.ai-header {
    padding: 25px 25px 20px;
    border-bottom: 1px solid rgba(223, 224, 226, 0.2);
}

.ai-header h3 {
    font-family: var(--font-headline);
    font-size: 1.1rem;
    color: var(--deep-teal);
    margin: 0;
    font-weight: 600;
}

.ai-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px 25px;
    max-height: 350px;
}

.ai-message {
    margin-bottom: 15px;
    display: flex;
    gap: 12px;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.message-avatar svg {
    width: 16px;
    height: 16px;
    stroke: white;
    fill: none;
    stroke-width: 2;
}

.message-content {
    flex: 1;
}

.message-text {
    background: rgba(255, 255, 255, 0.25);
    padding: 12px 16px;
    border-radius: 12px;
    color: var(--deep-teal);
    font-size: 0.92rem;
    line-height: 1.5;
    font-weight: 500;
}

.user-message .message-text {
    background: rgba(2, 74, 88, 0.15);
}

.product-card-mini {
    display: flex;
    gap: 12px;
    background: rgba(255, 255, 255, 0.3);
    padding: 12px;
    border-radius: 10px;
    margin-top: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-card-mini:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateX(3px);
}

.product-card-mini img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.product-card-info h4 {
    font-size: 0.9rem;
    color: var(--deep-teal);
    margin-bottom: 4px;
    font-weight: 600;
}

.product-card-info p {
    font-size: 0.85rem;
    color: var(--deep-teal);
    opacity: 0.7;
    font-weight: 500;
}

.ai-input-area {
    padding: 20px 25px;
    border-top: 1px solid rgba(223, 224, 226, 0.2);
}

.ai-input-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

.ai-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid rgba(2, 74, 88, 0.2);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.25);
    color: var(--deep-teal);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.ai-input:focus {
    outline: none;
    border-color: var(--deep-teal);
    background: rgba(255, 255, 255, 0.35);
}

.ai-input::placeholder {
    color: rgba(2, 74, 88, 0.5);
}

.ai-send {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--deep-teal);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.ai-send:hover {
    background: var(--mid-teal);
    transform: scale(1.05);
}

.ai-send svg {
    width: 16px;
    height: 16px;
    stroke: white;
    fill: none;
    stroke-width: 2;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(2, 74, 88, 0.7);
    backdrop-filter: blur(10px);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px);
    border-radius: 20px;
    max-width: 90vw;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    position: relative;
}

.modal-close {
    position: sticky;
    top:0;
    margin-bottom: -35px;
    left: 100%;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--deep-teal);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 110;
}

@media (max-width: 768px) {
    .modal-close {
        margin-top: -25px;
    }
}

.modal-close:hover {
    transform: rotate(90deg);
}

.modal-close svg {
    width: 20px;
    height: 20px;
    stroke: var(--off-white);
    stroke-width: 2;
}

.modal-product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.modal-image img {
    width: 100%;
    border-radius: 12px;
}

.modal-info h2 {
    font-family: var(--font-headline);
    font-size: 2rem;
    color: var(--deep-teal);
    margin-bottom: 15px;
}

.modal-info .price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--deep-teal);
    margin-bottom: 20px;
}

.modal-info p {
    color: var(--deep-teal);
    line-height: 1.7;
    margin-bottom: 25px;
    opacity: 0.85;
}

.add-to-cart-btn {
    width: 100%;
    padding: 16px;
    background: var(--mid-teal);
    color: white;
    border: none;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.add-to-cart-btn:hover {
    background: var(--deep-teal);
    transform: translateY(-2px);
}

.style-assistant-btn {
    width: 100%;
    padding: 16px;
    background: var(--deep-teal);
    color: white;
    border: none;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.style-assistant-btn:hover {
    background: var(--mid-teal);
    transform: translateY(-2px);
}

.styling-suggestions {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid rgba(2, 74, 88, 0.1);
}

.styling-suggestions h3 {
    font-family: var(--font-headline);
    font-size: 1.3rem;
    color: var(--deep-teal);
    margin-bottom: 20px;
}

.suggestion-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.suggestion-item {
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.suggestion-item:hover {
    transform: translateY(-5px);
}

.suggestion-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.suggestion-item p {
    padding: 10px;
    background: rgba(2, 74, 88, 0.05);
    text-align: center;
    font-size: 0.85rem;
    margin: 0;
}

/* Footer - improved: high contrast and visible over dark background */
.site-footer {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px);
    color: #ffffff;
    padding: 48px 20px;
    font-weight: 500;
    border-radius: 10px 10px 0 0;
}
.site-footer .footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 30px;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
}
.footer-brand {
    max-width: 260px;
}
.footer-logo {
    height: 48px;
    width: auto;
    display: block;
    margin-bottom: 8px;
}
.footer-brand p {
    color: rgba(255,255,255,0.9);
    margin-top: 6px;
    font-size: 0.95rem;
    line-height: 1.4;
}
.footer-links {
    display: flex;
    gap: 28px;
    align-items: flex-start;
}
.footer-links .col h4 {
    margin-bottom: 10px;
    font-size: 0.95rem;
}
.footer-links .col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links .col ul li { margin: 6px 0; }
.footer-links a {
    color: rgba(255,255,255,0.95);
    text-decoration: none;
    font-size: 0.95rem;
}
.footer-links a:hover { color: var(--sky-blue); text-decoration: underline; }
.footer-social { display: flex; gap: 12px; align-items: center; }
.footer-social a {
    color: rgba(255,255,255,0.95);
    font-size: 1.05rem;
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--mid-teal);
    text-decoration: none;
}
.footer-bottom {
    text-align: center;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: 20px;
    color: rgba(255,255,255,0.75);
    font-size: 0.92rem;
}

@media (max-width: 768px) {
    .site-footer .footer-inner { flex-direction: column; gap: 18px; align-items: flex-start; }
    .footer-links { flex-wrap: wrap; gap: 16px; }
    .footer-social { margin-top: 6px; }
}

@media (max-width: 768px) {
    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        padding: 20px;
    }

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        gap: 20px;
        opacity: 1;
    }

    .menu-toggle {
        display: block;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 12; /* Ensure hamburger is above other elements */
    }

    header.scrolled nav {
        display: none;
    }

    header.scrolled nav.active {
        display: block;
    }

    .cover-sub{
        color: var(--deep-teal);
    }

    span{
        color: var(--deep-teal);
    }

    .icons {
        position: absolute;
        right: 80px; /* Place icons to the right of the small logo */
        top: 50%;
        transform: translateY(-50%);
        display: flex;
        gap: 15px;
        font-size: 1rem; /* Smaller icons */
        z-index: 11;
    }
    .menu-toggle {
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 12;
    }
    .hero-arrow {
        display: none; /* Arrows hidden on mobile for swipe-only control */
    }

    .cover-hero{
        padding-top: 160px
    }
    
    .slider-container{
        width: 100%;
        height: 400px;
    }

    .cover-title img{
        width: 40%;
    }

    .product-showcase { 
        grid-template-columns: 1fr;
        max-width: 100%;
        padding: 0 20px;
    }
    .ai-chat-panel { width: calc(100% - 40px); right: 20px; }
    .ai-button { bottom: 40px; right: 30px; }
    .modal-product { grid-template-columns: 1fr; }
    .cart-modal-content { padding: 20px; } /* Smaller padding for cart modal on mobile */
    .suggestion-grid { grid-template-columns: 1fr; }
    .logo-center { 
        font-size: 2.5rem; /* Adjusted from 2rem to 2.5rem for mobile */
        letter-spacing: 4px; /* Slightly reduced for mobile */
    }
    .small-logo-link { left: 20px; }
    .header-container { justify-content: space-between; gap: 0; }
}

.minimal-cards .product-details p,
.minimal-cards .product-badge {
    display: none !important;
}

/* FADE-IN ANIMATION */
.fade-in {
    opacity: 0;
    transform: translateY(30px) scale(0.95); /* Added scale for smoother entrance */
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1); /* Smoother easing, reduced duration */
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.ai-messages::-webkit-scrollbar {
    width: 6px;
}

.ai-messages::-webkit-scrollbar-track {
    background: rgba(2, 74, 88, 0.05);
    border-radius: 10px;
}

.ai-messages::-webkit-scrollbar-thumb {
    background: rgba(2, 74, 88, 0.2);
    border-radius: 10px;
}

.ai-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(2, 74, 88, 0.3);
}

#backToTop {
    display: none;
    position: fixed;
    bottom: 40px;
    left: 40px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    box-shadow: 0 4px 12px rgba(2, 74, 88, 0.3);
    transition: all 0.3s;
}

#backToTop i {
    font-size: 1.2rem;
    color: var(--deep-teal);
}

#backToTop:hover{
    background: var(--mid-teal);
    transform: translateY(-4px);
}

#backToTop:hover i{
    color:var(--off-white);
}

@media (max-width: 800px) {
    #backToTop {
        bottom: 16px;
        left: 10px;
    }
    #backToTop i {
        font-size: 1rem;
    }
}
