/* style.css */
:root {
    --color-bg: #fafafa;
    --color-text: #111111;
    --color-text-light: #666666;
    --color-border: #e0e0e0;
    --color-accent: #111111;
    --color-white: #ffffff;
    
    --font-main: 'Outfit', sans-serif;
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

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

ul {
    list-style: none;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-main);
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 500;
    line-height: 1.2;
}

h1 {
    font-size: clamp(3rem, 5vw + 1rem, 6rem);
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2rem, 3vw + 1rem, 3rem);
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 100;
    transition: var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(250, 250, 250, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo, .logo-footer {
    font-size: 1.6rem;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
}

.logo strong, .logo-footer strong {
    font-weight: 800;
}

.logo span, .logo-footer span {
    font-weight: 300;
}

.logo-footer {
    margin-bottom: 1rem;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--color-text-light);
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--color-text);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-text);
    transition: width var(--transition-fast);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.nav-icons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-icons i {
    font-size: 1.5rem;
    color: var(--color-text);
    transition: transform var(--transition-fast);
}

.nav-icons button:hover i {
    transform: scale(1.1);
}

.cart-btn {
    position: relative;
    margin-right: 8px;
    transform: translateY(2px);
}

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

.mobile-menu-btn {
    display: none;
    transform: translateY(2px);
}

/* Language Switcher */
.lang-switcher {
    position: relative;
    display: flex;
    align-items: center;
}

.lang-btn {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-text);
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: transparent;
    transition: var(--transition-fast);
}

.lang-btn:hover {
    background: var(--color-text);
    color: var(--color-white);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding: 8rem 2rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: 2.5rem;
    max-width: 450px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 1rem 2rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 100px;
    transition: var(--transition-normal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background-color: var(--color-text);
    color: var(--color-white);
    border: 1px solid var(--color-text);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-text);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-outline:hover {
    border-color: var(--color-text);
}

.hero-image-wrapper {
    position: relative;
    height: 80vh;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 10s ease;
}

.hero-image-wrapper:hover .hero-image {
    transform: scale(1.05);
}

/* Featured Collection */
.featured-collection {
    padding: 8rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
}

.view-all {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    font-size: 0.95rem;
}

.view-all:hover {
    gap: 0.75rem;
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--color-border);
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--color-text-light);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--color-text);
    color: var(--color-white);
    border-color: var(--color-text);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.product-card {
    cursor: pointer;
    group: relative;
}

.product-image-wrapper {
    position: relative;
    aspect-ratio: 3/4;
    background-color: #f0f0f0;
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

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

.add-to-cart-btn {
    position: absolute;
    bottom: -3rem;
    left: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    color: var(--color-text);
    padding: 0.8rem;
    border-radius: 100px;
    font-weight: 500;
    opacity: 0;
    transition: var(--transition-normal);
}

.product-card:hover .add-to-cart-btn {
    bottom: 1rem;
    opacity: 1;
}

.add-to-cart-btn:hover {
    background: var(--color-text);
    color: var(--color-white);
}

.product-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.product-name {
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.product-category {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.product-price {
    font-weight: 500;
}

/* Contact Page */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 4rem;
}

/* Footer */
footer {
    background-color: var(--color-white);
    padding: 6rem 2rem 2rem;
    border-top: 1px solid var(--color-border);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p, .footer-newsletter p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

.footer-links h4, .footer-newsletter h4 {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--color-text);
}

.newsletter-form {
    margin-top: 1.5rem;
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-family: var(--font-main);
    background: var(--color-bg);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--color-text);
}

.newsletter-form button {
    padding: 0.8rem 1.5rem;
    background-color: var(--color-text);
    color: var(--color-white);
    border-radius: 8px;
    font-weight: 500;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    color: var(--color-text-light);
    font-size: 0.85rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

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

@keyframes fadeIn {
    to { opacity: 1; }
}


.logo-img {
    height: 80px;
    margin-right: 10px;
    transition: height 0.3s ease;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        padding-top: 8rem;
        text-align: center;
    }
    
    .hero-content p {
        margin: 0 auto 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image-wrapper {
        height: 60vh;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .logo-img { height: 40px; margin-right: 6px; }
    .nav-links {
        display: none;
    }
    .nav-icons .lang-switcher,
    .nav-icons .account-btn {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    .footer-brand, .footer-newsletter {
        grid-column: 1 / -1;
    }
    
    h1 {
        font-size: 3rem;
    }
    
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 2rem;
    }
}


.search-form {
    display: flex;
    align-items: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 20px;
    padding: 0.3rem 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}
.search-form.active {
    border-color: var(--color-border);
    padding: 0.3rem 0.8rem;
    background: var(--color-bg);
}
.search-form.active:focus-within {
    border-color: var(--color-text);
}
.search-form input {
    border: none;
    background: transparent;
    outline: none;
    width: 0;
    opacity: 0;
    padding: 0;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--color-text);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.search-form.active input {
    width: 150px;
    opacity: 1;
    padding-right: 0.5rem;
}
.search-form button {
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0 0.5rem;
    color: var(--color-text);
    font-size: 1.25rem;
}
@media (max-width: 768px) {
    .search-form.active input {
        width: 100px;
    }
}


/* Cart Page */
.cart-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}
.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.cart-item {
    display: flex;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}
.cart-item-img {
    width: 100px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}
.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.cart-item-title {
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}
.cart-item-category {
    font-size: 0.85rem;
    color: var(--color-text-light);
}
.cart-item-price {
    font-weight: 500;
    margin-top: auto;
}
.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
}
.quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 0.2rem 0.5rem;
}
.qty-btn {
    padding: 0 0.5rem;
    font-size: 1.2rem;
    color: var(--color-text);
}
.qty-value {
    padding: 0 0.8rem;
    font-size: 0.9rem;
}
.remove-btn {
    color: var(--color-text-light);
    font-size: 0.85rem;
    text-decoration: underline;
    cursor: pointer;
}
.remove-btn:hover {
    color: red;
}
.cart-summary {
    background: var(--color-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    height: fit-content;
}
.cart-summary h3 {
    margin-bottom: 1.5rem;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    color: var(--color-text-light);
}
.summary-total {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--color-text);
}
.checkout-btn {
    width: 100%;
    margin-top: 2rem;
}
.empty-cart-msg {
    text-align: center;
    padding: 4rem 0;
    color: var(--color-text-light);
}

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


/* Toast Notification */
.toast-notification {
    visibility: hidden;
    min-width: 250px;
    background-color: var(--color-text);
    color: var(--color-white);
    text-align: center;
    border-radius: 8px;
    padding: 16px;
    position: fixed;
    z-index: 1000;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    font-size: 0.95rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.toast-notification.show {
    visibility: visible;
    -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@-webkit-keyframes fadein {
    from {bottom: 0; opacity: 0;} 
    to {bottom: 30px; opacity: 1;}
}
@keyframes fadein {
    from {bottom: 0; opacity: 0;}
    to {bottom: 30px; opacity: 1;}
}
@-webkit-keyframes fadeout {
    from {bottom: 30px; opacity: 1;} 
    to {bottom: 0; opacity: 0;}
}
@keyframes fadeout {
    from {bottom: 30px; opacity: 1;}
    to {bottom: 0; opacity: 0;}
}


/* Mobile Menu Drawer */
.mobile-menu-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}
.mobile-menu-drawer {
    position: fixed;
    top: -150%; right: auto; left: 0; width: 100%; height: auto; max-height: 90vh; overflow-y: auto; border-bottom-left-radius: 1rem; border-bottom-right-radius: 1rem;
    background: var(--color-white);
    z-index: 1000;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: top 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}
.mobile-menu-drawer.active {
    top: 0;
}
.mobile-drawer-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}
.mobile-drawer-footer .account-btn {
    font-size: 1.2rem;
}
.mobile-close-btn {
    align-self: flex-end;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}
.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.mobile-nav-links a {
    font-size: 1.2rem;
    font-weight: 500;
}
/* Mobile Product Grid */
@media (max-width: 900px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .product-image-wrapper {
        margin-bottom: 0.8rem;
        border-radius: 0.5rem; /* Slightly smaller border radius */
    }
    .product-name {
        font-size: 0.9rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .product-category {
        font-size: 0.75rem;
    }
    .product-price {
        font-size: 0.85rem;
    }
    .add-to-cart-btn {
        padding: 0.5rem 0.2rem;
        font-size: 0.75rem;
        bottom: -2.5rem;
        width: 90%;
        left: 5%;
        text-align: center;
    }
    .product-card:hover .add-to-cart-btn {
        bottom: 0.5rem;
    }
    
    /* Make product info stack vertically if space is tight */
    .product-info {
        flex-direction: column;
        align-items: flex-start;
    }
    .product-price {
        margin-top: 0.3rem;
    }
}
