/* Variables */
:root {
    --primary-color: #2a2a2a;
    --secondary-color: #f5f5f5;
    --accent-color: #e6c4a4;
    --text-color: #333;
    --light-text: #777;
    --white: #fff;
    --border-color: #e0e0e0;
    --transition: all 0.3s ease;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --max-width: 1200px;
}

/* Reset & Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

ul {
    list-style: none;
}

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

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

input, button {
    outline: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

/* Utilities */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 4px;
    transition: var(--transition);
    text-align: center;
}

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

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

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

.btn-secondary:hover {
    background-color: #d0b093;
    transform: translateY(-2px);
}

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

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

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--light-text);
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

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

.loader-circle {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: spin 1s infinite linear;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: transparent;
    transition: background-color 0.3s ease, padding 0.3s ease;
    padding: 1.5rem 2rem;
}

header.scrolled {
    background-color: var(--white);
    box-shadow: var(--shadow);
    padding: 1rem 2rem;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
}

.logo h1 {
    font-size: 1.8rem;
    letter-spacing: 1px;
    color: var(--primary-color);
}

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

.nav-item {
    font-weight: 500;
    position: relative;
}

.nav-item:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

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

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

.icon-btn {
    position: relative;
    color: var(--primary-color);
    font-size: 1.2rem;
}

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

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

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: var(--transition);
}

#menu-toggle {
    display: none;
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 200;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

.search-container {
    width: 60%;
    max-width: 600px;
    position: relative;
}

.search-container input {
    width: 100%;
    padding: 1rem 3rem 1rem 1rem;
    border: none;
    border-bottom: 2px solid var(--primary-color);
    font-size: 1.2rem;
    background-color: transparent;
}

.search-close {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: var(--primary-color);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100%;
    background-color: var(--white);
    z-index: 200;
    transition: right 0.4s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-container {
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.mobile-close {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.mobile-menu-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-menu-items a {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background-color: var(--white);
    z-index: 200;
    transition: right 0.4s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

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

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

.cart-close {
    font-size: 1.2rem;
    color: var(--primary-color);
}

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

.cart-item {
    display: flex;
    margin-bottom: 1.5rem;
    position: relative;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    margin-right: 1rem;
}

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

.cart-item-title {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.cart-item-price {
    margin-bottom: 0.5rem;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    width: fit-content;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
}

.quantity-input {
    width: 40px;
    height: 30px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
}

.cart-item-remove {
    position: absolute;
    top: 0;
    right: 0;
    color: var(--light-text);
    font-size: 0.9rem;
}

.cart-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    display: none;
}

.cart-empty p {
    margin-bottom: 1.5rem;
    color: var(--light-text);
}

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

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.cart-shipping {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    color: var(--light-text);
    font-size: 0.9rem;
}

.checkout-btn {
    width: 100%;
}

.checkout-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

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

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

/* Hero Section */
.hero {
    height: 100vh;
    background-image: url('https://via.placeholder.com/1920x1080');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 0 2rem;
    color: var(--white);
    position: relative;
}

.hero:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
}

.hero-content {
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s forwards 0.5s;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s forwards 0.7s;
}

.hero-content .btn {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s forwards 0.9s;
}

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

/* Featured Products */
.featured-products {
    padding: 6rem 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

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

.product-card {
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

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

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

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

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

.product-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateY(0);
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.25rem 0.75rem;
    background-color: var(--accent-color);
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 4px;
}

.product-info {
    padding: 1.25rem;
}

.product-title {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.current-price {
    font-weight: 600;
}

.old-price {
    text-decoration: line-through;
    color: var(--light-text);
    font-size: 0.9rem;
}

.quick-view-btn, .add-to-cart-btn {
    color: var(--white);
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.quick-view-btn {
    background-color: rgba(255, 255, 255, 0.2);
}

.add-to-cart-btn {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

/* Newsletter Section */
.newsletter {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5rem 2rem;
}

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

.newsletter-content h2 {
    margin-bottom: 1rem;
}

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

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

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 4px;
}

/* Collections Section */
.collections {
    padding: 6rem 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.collection-item {
    border-radius: 8px;
    overflow: hidden;
}

.collection-image {
    position: relative;
    height: 450px;
}

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

.collection-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--white);
    text-align: center;
    padding: 2rem;
    transition: background-color 0.3s ease;
}

.collection-overlay h3 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.collection-item:hover .collection-overlay {
    background-color: rgba(0, 0, 0, 0.5);
}

/* About Section */
.about {
    padding: 6rem 2rem;
    background-color: var(--secondary-color);
}

.about-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1rem;
}

.about-text .btn {
    margin-top: 1.5rem;
}

.about-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* Instagram Feed */
.instagram-feed {
    padding: 6rem 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

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

.instagram-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
}

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

.instagram-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.instagram-overlay i {
    color: var(--white);
    font-size: 2rem;
}

.instagram-item:hover .instagram-overlay {
    opacity: 1;
}

.instagram-item:hover img {
    transform: scale(1.05);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5rem 2rem 2rem;
}

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

.footer-column h3, .footer-column h4 {
    margin-bottom: 1.5rem;
    color: var(--white);
}

.footer-column p {
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

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

.social-links a {
    color: var(--white);
    font-size: 1.2rem;
}

.social-links a:hover {
    color: var(--accent-color);
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column ul li a {
    opacity: 0.8;
}

.footer-column ul li a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.footer-bottom p {
    opacity: 0.7;
    font-size: 0.9rem;
}

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

.payment-methods i {
    font-size: 1.5rem;
    opacity: 0.8;
}

/* Product Modal */
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 300;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.modal-content {
    background-color: var(--white);
    border-radius: 8px;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

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

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.2rem;
    color: var(--primary-color);
    z-index: 1;
}

.modal-product {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.modal-product-image {
    height: 500px;
}

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

.modal-product-info {
    padding: 3rem;
}

.modal-product-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

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

.modal-current-price {
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-old-price {
    text-decoration: line-through;
    color: var(--light-text);
}

.modal-product-description {
    margin-bottom: 2rem;
    color: var(--light-text);
}

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

.option-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.options-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.option-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--white);
}

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

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

.modal-add-to-cart {
    width: 100%;
    margin-bottom: 1rem;
}

/* Success Message */
.success-message {
    color: var(--accent-color);
    font-weight: 500;
    animation: fadeIn 0.5s ease-in-out;
}

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

/* Animations */
.shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
}

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

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

/* Media Queries */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
    
    .modal-product {
        grid-template-columns: 1fr;
    }
    
    .modal-product-image {
        height: 350px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 1rem;
    }
    
    .nav-links {
        display: none;
    }
    
    #menu-toggle {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .search-container {
        width: 90%;
    }
    
    .collections-grid {
        grid-template-columns: 1fr;
    }
    
    .product-modal .modal-content {
        width: 95%;
    }
    
    .modal-product-info {
        padding: 1.5rem;
    }
}