/* Alpine Gear E-commerce Demo */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    /* Color scheme */
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #60a5fa;
    --secondary: #10b981;
    --secondary-dark: #059669;
    --secondary-light: #6ee7b7;
    --dark: #1f2937;
    --gray-dark: #4b5563;
    --gray: #9ca3af;
    --gray-light: #e5e7eb;
    --light: #f9fafb;
    --white: #ffffff;
    --red: #ef4444;
    --yellow: #f59e0b;
    
    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Poppins', sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Transitions */
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
    overflow-x: hidden;
}

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

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

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

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Back to Portfolio Button */
.back-to-portfolio {
    position: fixed;
    top: 20px;
    left: 20px;
    background: var(--primary);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 1000;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 10px;
}

.back-to-portfolio:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Header */
header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    z-index: 100;
    padding: 1rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--dark);
    letter-spacing: 1px;
}

.logo i {
    font-size: 1.8rem;
    color: var(--primary);
    margin-right: 0.75rem;
}

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

.nav-links a {
    position: relative;
    font-weight: 500;
    color: var(--dark);
    padding: 0.5rem 0;
}

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

.nav-links a:hover {
    color: var(--primary);
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.header-icon {
    position: relative;
    font-size: 1.25rem;
    color: var(--gray-dark);
}

.header-icon:hover {
    color: var(--primary);
}

.cart-icon {
    position: relative;
}

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--dark);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1551632811-561732d1e306?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 8rem 0;
    text-align: center;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 0.375rem;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

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

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-link {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-link i {
    transition: transform 0.3s ease;
}

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

.btn-link:hover i {
    transform: translateX(5px);
}

/* Section styling */
section {
    padding: 5rem 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 3px;
}

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

/* Categories Section */
.categories {
    background-color: var(--white);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.category-card {
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 300px;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.category-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

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

.category-card:hover .category-image img {
    transform: scale(1.1);
}

.category-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--white);
    transition: var(--transition);
}

.category-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Products Section */
.products {
    background-color: var(--light);
}

.product-filters {
    display: flex;
    gap: 1rem;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    font-weight: 500;
    color: var(--gray-dark);
    background-color: var(--white);
    border: 1px solid var(--gray-light);
}

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

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-card {
    background-color: var(--white);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 1;
}

.product-badge.new {
    background-color: var(--primary);
    color: var(--white);
}

.product-badge.sale {
    background-color: var(--red);
    color: var(--white);
}

.product-badge.bestseller {
    background-color: var(--yellow);
    color: var(--dark);
}

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

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

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

.product-actions {
    position: absolute;
    bottom: -60px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.9);
    transition: var(--transition);
}

.product-card:hover .product-actions {
    bottom: 0;
}

.action-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--white);
    color: var(--dark);
    box-shadow: var(--shadow-sm);
}

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

.product-content {
    padding: 1.5rem;
}

.product-title {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.product-card:hover .product-title {
    color: var(--primary);
}

.product-category {
    font-size: 0.875rem;
    color: var(--gray);
    margin-bottom: 0.75rem;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}

.product-rating i {
    color: var(--yellow);
    font-size: 0.875rem;
}

.product-rating span {
    font-size: 0.875rem;
    color: var(--gray);
    margin-left: 0.25rem;
}

.product-price {
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--primary);
}

.old-price {
    font-size: 0.875rem;
    color: var(--gray);
    text-decoration: line-through;
    margin-right: 0.5rem;
}

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

/* Features Section */
.features {
    background-color: var(--white);
    padding: 4rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    border-radius: 0.5rem;
    background-color: var(--light);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-content h3 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.feature-content p {
    font-size: 0.875rem;
    color: var(--gray);
}

/* Newsletter Section */
.newsletter {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: 5rem 0;
    text-align: center;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter h2 {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.newsletter p {
    margin-bottom: 2rem;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    border-radius: 0.375rem;
    border: none;
    font-family: inherit;
    font-size: 1rem;
}

.newsletter-form input:focus {
    outline: none;
}

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

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

/* Footer */
footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 5rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-logo i {
    font-size: 1.8rem;
    color: var(--primary-light);
    margin-right: 0.75rem;
}

.footer-column p {
    color: var(--gray-light);
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.footer-column h3 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary);
}

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

.footer-links a {
    color: var(--gray-light);
    font-size: 0.9375rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    transform: translateX(5px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.875rem;
    color: var(--gray);
}

.payment-methods {
    display: flex;
    gap: 1rem;
    font-size: 1.5rem;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--white);
    box-shadow: var(--shadow-lg);
    z-index: 1001;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

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

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

.cart-header h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
}

.close-cart {
    font-size: 1.25rem;
    color: var(--gray-dark);
}

.close-cart:hover {
    color: var(--red);
}

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

.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-light);
    position: relative;
}

.item-image {
    width: 80px;
    height: 80px;
    border-radius: 0.25rem;
    overflow: hidden;
    flex-shrink: 0;
}

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

.item-details {
    flex: 1;
}

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

.item-meta {
    font-size: 0.875rem;
    color: var(--gray);
    margin-bottom: 0.5rem;
}

.item-price {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.item-quantity {
    display: flex;
    align-items: center;
    width: fit-content;
    border: 1px solid var(--gray-light);
    border-radius: 0.25rem;
    overflow: hidden;
}

.qty-btn {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--gray-light);
    color: var(--dark);
    font-weight: 600;
}

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

.item-quantity input {
    width: 40px;
    height: 30px;
    padding: 0 0.5rem;
    text-align: center;
    border: none;
    -moz-appearance: textfield;
}

.item-quantity input::-webkit-outer-spin-button,
.item-quantity input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.remove-item {
    position: absolute;
    top: 0;
    right: 0;
    color: var(--gray);
}

.remove-item:hover {
    color: var(--red);
}

.cart-summary {
    padding: 1.5rem;
    border-top: 1px solid var(--gray-light);
    background-color: var(--light);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.summary-row.total {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--dark);
    padding-top: 0.75rem;
    margin-top: 0.75rem;
    border-top: 1px solid var(--gray-light);
}

.checkout-btn {
    width: 100%;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.view-cart-btn {
    width: 100%;
    background-color: var(--white);
    color: var(--dark);
    border: 1px solid var(--gray-light);
}

.view-cart-btn:hover {
    background-color: var(--gray-light);
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: var(--transition);
}

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

/* Quick View Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1002;
    visibility: hidden;
    opacity: 0;
    transition: var(--transition);
}

.modal.active {
    visibility: visible;
    opacity: 1;
}

.modal-content {
    width: 100%;
    max-width: 1000px;
    max-height: 90vh;
    margin: 0 1.5rem;
    background-color: var(--white);
    border-radius: 0.5rem;
    overflow: hidden;
    position: relative;
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.25rem;
    color: var(--gray-dark);
    z-index: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    border-radius: 50%;
    box-shadow: var(--shadow);
}

.close-modal:hover {
    color: var(--red);
}

.product-quick-view {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-height: 90vh;
    overflow-y: auto;
}

.product-gallery {
    padding: 2rem;
    background-color: var(--light);
}

.main-image {
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    overflow: hidden;
}

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

.thumbnail-gallery {
    display: flex;
    gap: 0.75rem;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 0.25rem;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.thumbnail.active, .thumbnail:hover {
    border-color: var(--primary);
}

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

.product-info {
    padding: 2rem;
    max-height: 90vh;
    overflow-y: auto;
}

.product-info h2 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.product-sku {
    font-size: 0.875rem;
    color: var(--gray);
}

.product-description {
    margin-bottom: 1.5rem;
    color: var(--gray-dark);
    line-height: 1.7;
}

.product-options {
    margin-bottom: 1.5rem;
}

.option-group {
    margin-bottom: 1.25rem;
}

.option-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.option-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.option-btn {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.25rem;
    border: 1px solid var(--gray-light);
    background-color: var(--white);
    color: var(--dark);
    font-weight: 500;
    transition: var(--transition);
}

.option-btn.active, .option-btn:hover {
    border-color: var(--primary);
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

.color-options {
    display: flex;
    gap: 0.75rem;
}

.color-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid var(--white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.color-btn.active, .color-btn:hover {
    transform: scale(1.2);
    box-shadow: 0 0 0 2px var(--primary);
}

.product-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.wishlist-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--light);
    color: var(--gray-dark);
    transition: var(--transition);
}

.wishlist-btn:hover {
    background-color: #fff0f0;
    color: var(--red);
}

.wishlist-btn.active {
    color: var(--red);
}

.add-to-cart-btn {
    flex: 1;
}

.product-meta-info {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-light);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--gray-dark);
    font-size: 0.9375rem;
}

.meta-item i {
    color: var(--primary);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    visibility: hidden;
    opacity: 0;
    transition: var(--transition);
}

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

/* Responsive Styles */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.75rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .product-filters {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    
    .product-quick-view {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links, .header-actions .header-icon:not(.cart-icon) {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero h1 {
        font-size: 2.25rem;
    }
    
    .hero p {
        font-size: 1.125rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form .btn {
        width: 100%;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .cart-sidebar {
        max-width: 300px;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 6rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .product-gallery {
        padding: 1rem;
    }
    
    .product-info {
        padding: 1rem;
    }
    
    .product-info h2 {
        font-size: 1.5rem;
    }
    
    .product-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .product-actions {
        flex-wrap: wrap;
    }
    
    .quantity-selector {
        width: 100%;
        margin-bottom: 0.75rem;
    }
    
    .add-to-cart-btn {
        width: 100%;
    }
}