@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Poppins:wght@400;500;600&display=swap');

:root {
    --bg-primary: #F8F8F8;
    --bg-secondary: #ECECEC;
    --accent-primary: #111111;
    --accent-secondary: #D4AF37;
    --highlight: #7DD3FC;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-card: rgba(255, 255, 255, 0.5);
    --border-color: rgba(0, 0, 0, 0.08);
    --text-primary: #111111;
    --text-secondary: #6B7280;
    
    --font-heading: 'Playfair Display', serif;
    --font-subheading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --header-height: 80px;
}

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

html {
    scroll-behavior: smooth;
}

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

/* Background Gradients & Effects */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: radial-gradient(circle at 15% 50%, rgba(125, 211, 252, 0.05), transparent 25%),
                radial-gradient(circle at 85% 30%, rgba(212, 175, 55, 0.05), transparent 25%);
    z-index: -1;
    pointer-events: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--accent-primary);
    font-weight: 600;
}

h1 { font-size: clamp(2.5rem, 5vw, 5rem); line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); margin-bottom: 1.5rem; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }

p { font-size: 1rem; color: var(--text-secondary); margin-bottom: 1rem; }

.subheading {
    font-family: var(--font-subheading);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-secondary);
    font-weight: 500;
    margin-bottom: 1rem;
    display: block;
}

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

/* Utilities */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 5%;
}

.section-padding {
    padding: 100px 0;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border-radius: 50px;
    font-family: var(--font-subheading);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--accent-primary);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--accent-secondary);
    color: #fff;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.btn-outline:hover {
    background-color: var(--accent-primary);
    color: #fff;
    box-shadow: 0 8px 25px rgba(17, 17, 17, 0.2);
    transform: translateY(-2px);
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

header.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.nav-container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 5%;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--accent-primary);
    position: relative;
    z-index: 1001;
}

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

.nav-links a {
    font-family: var(--font-subheading);
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

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

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    z-index: 1001;
}

.cart-btn {
    background: none;
    border: none;
    font-family: var(--font-subheading);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.cart-btn:hover {
    color: var(--accent-secondary);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background-color: var(--accent-primary);
    transition: var(--transition);
}

/* Mini Cart Sidebar */
.cart-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

.cart-sidebar {
    position: fixed;
    top: 0; right: -400px;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: -10px 0 40px rgba(0,0,0,0.1);
    z-index: 2001;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-left: 1px solid var(--border-color);
}

.cart-sidebar.active {
    transform: translateX(-400px);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.close-cart {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
}

.close-cart:hover {
    color: var(--accent-primary);
    transform: rotate(90deg);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

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

.cart-item-details h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.cart-item-details p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--accent-secondary);
}

.remove-item {
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: none;
    border: none;
    text-decoration: underline;
    cursor: pointer;
}

.cart-footer {
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.cart-footer .btn {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    overflow: hidden;
}

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

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(248,248,248,0.9) 0%, rgba(248,248,248,0.4) 50%, rgba(248,248,248,0.1) 100%);
}

.hero-content {
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Product Grid System */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.product-card {
    background: var(--glass-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1rem;
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.8);
}

.product-img-wrapper {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    background: var(--bg-primary);
}

.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
    transition: transform 0.6s ease;
}

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

.product-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.product-price {
    font-family: var(--font-subheading);
    font-weight: 600;
    color: var(--accent-secondary);
    margin-bottom: 1rem;
    display: block;
}

.product-card .btn {
    width: 100%;
    opacity: 0;
    transform: translateY(10px);
    position: absolute;
    bottom: 1rem; left: 50%;
    transform: translateX(-50%) translateY(20px);
    width: calc(100% - 2rem);
}

.product-card:hover .btn {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.product-card:hover .product-info {
    opacity: 0.3; /* fade text to show button clearly */
}

/* Collections Section */
.collections-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.collection-card {
    position: relative;
    height: 500px;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 3rem;
    text-decoration: none;
}

.collection-card img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    z-index: -2;
    transition: transform 0.8s ease;
}

.collection-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(17,17,17,0.8) 0%, rgba(17,17,17,0.2) 50%, transparent 100%);
    z-index: -1;
}

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

.collection-info {
    z-index: 1;
    color: #fff;
}

.collection-info h3 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.collection-info p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 0;
}

/* Why Choose Us */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 3rem;
    text-align: center;
}

.feature-item {
    padding: 2rem;
    background: var(--glass-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--accent-secondary);
    margin-bottom: 1rem;
}

/* Showcase Section */
.showcase {
    position: relative;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    text-align: center;
}

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

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

.showcase::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(17,17,17,0.5);
    z-index: -1;
}

.showcase h2 {
    color: #fff;
}

/* Internal Page Headers */
.page-header {
    padding: 150px 0 80px;
    text-align: center;
    background: linear-gradient(to bottom, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

/* Single Product Page */
.product-single {
    padding: 120px 0;
}

.product-single-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.product-gallery {
    background: var(--glass-card);
    border-radius: 24px;
    padding: 3rem;
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-gallery img {
    width: 100%;
    max-width: 500px;
    object-fit: contain;
}

.product-details h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.product-details .price {
    font-family: var(--font-subheading);
    font-size: 1.5rem;
    color: var(--accent-secondary);
    font-weight: 500;
    margin-bottom: 2rem;
}

.add-to-cart-wrapper {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
}

.qty-input {
    width: 80px;
    padding: 0 15px;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    background: transparent;
    text-align: center;
    font-family: var(--font-body);
    font-size: 1rem;
}

.product-accordion {
    margin-top: 3rem;
    border-top: 1px solid var(--border-color);
}

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

.accordion-title {
    font-family: var(--font-subheading);
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
}

/* Contact & Forms */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-form {
    background: var(--glass-card);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: var(--font-subheading);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: rgba(255,255,255,0.8);
    font-family: var(--font-body);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-secondary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Legal Pages */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--glass-card);
    padding: 4rem;
    border-radius: 24px;
    border: 1px solid var(--border-color);
}

.legal-content h2 {
    margin-top: 2rem;
    font-size: 1.8rem;
}

.legal-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* Footer */
footer {
    background-color: var(--accent-primary);
    color: #fff;
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-col h3 {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-col h4 {
    color: var(--accent-secondary);
    font-family: var(--font-subheading);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.footer-col p {
    color: #9CA3AF;
}

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

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #9CA3AF;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--accent-secondary);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #6B7280;
    font-size: 0.9rem;
}

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

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

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--accent-primary);
    color: #fff;
    padding: 15px 30px;
    border-radius: 50px;
    font-family: var(--font-subheading);
    font-size: 0.9rem;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 3000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    h1 { font-size: 3.5rem; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--bg-primary);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        z-index: 1000;
    }
    
    .nav-links.active {
        left: 0;
    }

    .hamburger { display: flex; z-index: 1001;}
    .hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .product-grid { grid-template-columns: 1fr; }
    .collections-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .product-single-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }

    .hero-content { text-align: center; margin: 0 auto; }
    .hero-bg::after { background: linear-gradient(to top, rgba(248,248,248,0.9) 0%, rgba(248,248,248,0.5) 100%); }
    .hero-btns { justify-content: center; }

    .cart-sidebar { width: 100%; right: -100%; max-width: 100%; }
    .cart-sidebar.active { transform: translateX(-100%); }
    
    .legal-content { padding: 2rem; }
}