/* Design System for Riyah Fashion */
:root {
    --primary: #615EFC;
    --primary-dark: #4A48D1;
    --primary-light: #E0E7FF;
    --secondary: #111827;
    --accent: #FCA311;
    --bg-light: #F9FAFB;
    --bg-white: #FFFFFF;
    --text-main: #1F2937;
    --text-muted: #6B7280;
    --border-color: #E5E7EB;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --transition: all 0.3s ease;
    --container-width: 1200px;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--secondary);
}

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

ul {
    list-style: none;
}

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

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

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

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

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

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

/* Header Styles */
header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
}

.logo img {
    height: 60px;
}

nav ul {
    display: flex;
    gap: 30px;
}

nav ul li a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-main);
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary);
}

.header-icons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main);
}

.header-icons i {
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-main);
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 130vh;
    min-height: 900px;
    overflow: hidden;
    padding: 0;
}

.hero .container {
    width: 100%;
    height: 100%;
    max-width: 100%;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-split-images {
    width: 100%;
    height: 100%;
    display: flex;
}

/* Hero Intro Content */
.hero-intro {
    padding-top: 80px;
    padding-bottom: 40px;
    display: flex;
    justify-content: center;
}

.hero-content {
    text-align: center;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--secondary);
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.hero-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.split-image {
    flex: 1;
    position: relative;
    border-radius: 0;
    overflow: hidden;
    height: 100%;
    cursor: pointer;
}

.split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.split-image:hover img {
    transform: scale(1.05);
}

.split-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

.split-overlay h2 {
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 2.5rem;
    letter-spacing: 4px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.4);
}

/* Section Title */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    padding-top: 80px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.view-all {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
}

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

.product-card {
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    background-color: #F3F4F6;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 3/4;
    margin-bottom: 15px;
    position: relative;
}

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

.add-to-cart-btn {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    opacity: 1; /* Ensure it's always visible */
    transform: translateY(0); /* Ensure it's not hidden off-screen */
}

.add-to-cart-btn:hover {
    background-color: var(--secondary);
    padding-bottom: 18px; /* Slight expansion on hover for feedback */
}

.product-info h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.product-info .price {
    font-weight: 700;
    color: var(--primary);
}

/* New Launches */
.launches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.launch-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 400px;
    box-shadow: var(--shadow-md);
    cursor: pointer;
}

.launch-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.launch-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 0.6) 100%);
    z-index: 1;
    transition: var(--transition);
}

.launch-item:hover img {
    transform: scale(1.08);
}

.launch-item:hover::before {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.2) 0%, rgba(15, 23, 42, 0.8) 100%);
}

.launch-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    color: white;
    z-index: 2;
    transition: transform 0.4s ease;
}

.launch-item.large .launch-overlay h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

.launch-overlay h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
    color: white;
}

.launch-overlay .view-all {
    color: white;
    font-size: 0.9rem;
    letter-spacing: 1px;
    opacity: 0.9;
}

.launch-overlay .view-all:hover {
    opacity: 1;
    text-decoration: underline;
}

.launch-overlay h2 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.launch-item.large {
    grid-row: span 2;
}

/* Category Filter */
.category-filter {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.filter-btn {
    background: none;
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
}

.filter-btn.active {
    color: var(--secondary);
}

.filter-btn.active::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
}

/* About Us Section */
.about-section {
    padding: 120px 0;
    background-color: var(--bg-white);
}

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

.about-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg, 0 10px 25px rgba(0,0,0,0.1));
}

.about-image::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary);
    border-radius: 20px;
    z-index: -1;
    transition: var(--transition);
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    transition: var(--transition);
}

.about-content {
    padding-left: 20px;
}

.about-subtitle {
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 15px;
}

.about-content h2 {
    font-size: 3rem;
    margin-bottom: 25px;
}

.about-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 20px;
    max-width: 550px;
}

/* Responsive About */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    .about-image {
        max-width: 500px;
        margin: 0 auto;
    }
    .about-content {
        padding-left: 0;
    }
    .about-content p {
        margin: 0 auto 20px;
    }
}

/* Newsletter Section */
.newsletter {
    background-color: #F8F7FC; /* Extremely light grayish purple */
    padding: 100px 0;
    margin-top: 120px;
    text-align: center;
    color: #1A1A1A; /* Black/Dark text */
    position: relative;
    overflow: hidden;
}

.newsletter::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    z-index: 1;
}

.newsletter .container {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.newsletter h2 {
    color: #1A1A1A;
    font-size: 2.8rem;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

.newsletter p {
    color: #4A4A4A;
    font-size: 1.1rem;
    margin-bottom: 45px;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    background: white;
    padding: 8px;
    border-radius: 100px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    max-width: 550px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 18px 30px;
    color: #1A1A1A;
    font-size: 1rem;
    outline: none;
}

.newsletter-form input::placeholder {
    color: #999;
}

.newsletter-form .btn-primary {
    border-radius: 100px;
    padding: 0 45px;
    background: var(--primary);
    color: white;
    font-weight: 700;
    border: none;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-form .btn-primary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

@media (max-width: 768px) {
    .newsletter {
        padding: 80px 20px;
        margin-top: 80px;
    }
    .newsletter h2 {
        font-size: 2rem;
    }
    .newsletter-form {
        flex-direction: column;
        background: transparent;
        padding: 0;
        border: none;
        backdrop-filter: none;
        box-shadow: none;
    }
    .newsletter-form input {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 50px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        margin-bottom: 12px;
        width: 100%;
    }
    .newsletter-form .btn-primary {
        width: 100%;
    }
}

/* Footer */
footer {
    padding: 80px 0 40px;
    background-color: var(--primary);
    color: white;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo img {
    height: 120px; /* Bolder size */
    margin-bottom: 20px;
    width: auto;
}

.footer-col h4 {
    margin-bottom: 25px;
    font-size: 1.1rem;
    font-family: 'Inter', sans-serif;
    color: white;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.footer-col ul li a:hover {
    color: white;
}

.footer-col .social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.footer-col .social-links i {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-col .social-links a:hover i {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: inherit;
    text-decoration: none;
}

.footer-legal a:hover {
    color: white;
}

/* Responsive */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .hero-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    header .container {
        height: 80px;
    }
    .hamburger {
        display: block;
        cursor: pointer;
    }
    nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        padding: 40px 20px;
        transition: var(--transition);
        z-index: 9999;
        display: block;
        box-shadow: var(--shadow-md);
    }
    nav.active {
        left: 0;
    }
    nav ul {
        flex-direction: column;
        gap: 25px;
    }
    nav ul li a {
        font-size: 1.2rem;
    }
    .hero-split-images {
        flex-direction: column;
    }
    .split-image {
        height: 50%;
        width: 100%;
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .launches-grid {
        grid-template-columns: 1fr;
        height: auto;
    }
    .launch-item.large {
        height: 400px;
    }
    .launch-item {
        height: 300px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    .footer-col.first {
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 20px;
        margin-bottom: 10px;
    }
    .footer-col ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    .newsletter-form {
        flex-direction: column;
    }
}

/* ==========================================================================
   Cart Drawer & Auth Modal Styles
   ========================================================================== */

/* Cart Overlay & Drawer */
.cart-overlay, .auth-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

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

.cart-drawer {
    position: fixed;
    top: 0; right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    z-index: 1000;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-drawer.active {
    right: 0;
}

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

.close-cart, .close-auth {
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
}

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

.cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

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

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

.cart-item-title {
    font-weight: 500;
    margin-bottom: 5px;
}

.cart-item-price {
    color: var(--primary);
    font-weight: 600;
}

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

.qty-btn {
    background: #f4f4f4;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    background: white;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

/* Auth Modal */
.auth-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

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

.auth-modal {
    background: white;
    width: 90%;
    max-width: 420px;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.auth-overlay.active .auth-modal {
    transform: translateY(0);
}

.close-auth {
    position: absolute;
    top: 20px; right: 20px;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
}

.auth-tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.auth-tab {
    flex: 1;
    padding: 15px;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}

.auth-tab.active {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-form h3 {
    margin-bottom: 25px;
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
}

.input-group input {
    width: 100%;
    padding: 14px 15px 14px 45px;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.input-group input:focus {
    border-color: var(--primary);
    outline: none;
}

.forgot-password {
    display: block;
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: none;
}

.forgot-password:hover {
    color: var(--primary);
}

/* Header Cart Count Badge */
.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 50%;
    font-weight: bold;
}

/* ==========================================================================
   Quick View Modal Styles
   ========================================================================== */
.quick-view-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

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

.quick-view-modal {
    background: white;
    width: 90%;
    max-width: 800px;
    border-radius: 8px;
    display: flex;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.quick-view-overlay.active .quick-view-modal {
    transform: translateY(0);
}

.quick-view-close {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
}

.quick-view-img-container {
    flex: 1;
    background: #f4f4f4;
}

.quick-view-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quick-view-details {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.quick-view-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 10px;
}

.quick-view-price {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 20px;
}

.quick-view-description {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 30px;
    flex-grow: 1;
}

.quick-view-options {
    margin-bottom: 30px;
}

.quick-view-select {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

@media (max-width: 768px) {
    .quick-view-modal {
        flex-direction: column;
        max-height: 90vh;
        overflow-y: auto;
    }
    .quick-view-img-container {
        height: 300px;
    }
    .quick-view-details {
        padding: 20px;
    }
}
