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

:root {
    --primary-color: #2c2c2c;
    --secondary-color: #666;
    --accent-color: #5eb3c4;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: var(--primary-color);
    line-height: 1.6;
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

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

/* ===== Header & Navigation ===== */
.header {
    background-color: var(--white);
    padding: 25px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform: translateY(0);
}

.header.hidden {
    transform: translateY(-100%);
    box-shadow: none;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    min-height: 70px;
}

/* Cart Icon */
.cart-icon {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.cart-icon a {
    position: relative;
    font-size: 24px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

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

/* Logo */
.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    top: 50%;
    transform: translate(-50%, -50%);
}

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

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

.logo-icon svg {
    color: var(--primary-color);
    width: 45px;
    height: 45px;
}

.logo-icon img {
    width: 120px;
    height: auto;
    object-fit: contain;
}

/* Navigation Menu */
.nav-menu {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-menu ul li a {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 1px;
    color: var(--secondary-color);
    text-transform: uppercase;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
}

.nav-menu ul li a:hover,
.nav-menu ul li a.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    position: absolute;
    right: 0;
}

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

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-gray);
    margin-bottom: 60px;
    overflow: hidden;
}

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

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 0.7;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--primary-color);
}

.hero-title {
    font-size: 48px;
    font-weight: 300;
    letter-spacing: 8px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
}

.hero-subtitle {
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

/* Hero Carousel Indicators */
.hero-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 10px;
}

.hero-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.hero-indicator:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

.hero-indicator.active {
    background: white;
}

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

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

.about-content .tagline {
    font-size: 20px;
    font-style: italic;
    color: var(--secondary-color);
    margin-bottom: 30px;
}

.about-content p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

/* ===== Gallery Section ===== */
.gallery-section {
    padding: 60px 0;
    background-color: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.gallery-item {
    overflow: hidden;
    aspect-ratio: 1;
}

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

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

/* ===== Footer ===== */
.footer {
    background-color: var(--light-gray);
    padding: 60px 0 30px;
    text-align: center;
}

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

.footer-title {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 15px;
}

.footer p {
    font-size: 14px;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.footer-contact {
    margin: 30px 0;
}

.footer-contact p {
    margin: 5px 0;
}

.footer-contact a {
    color: var(--primary-color);
}

.footer-contact a:hover {
    color: var(--accent-color);
}

.footer-social {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 30px 0;
}

.footer-social a {
    font-size: 20px;
    color: var(--primary-color);
}

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

.footer-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 20px 0;
}

.footer-links a {
    font-size: 12px;
    color: var(--secondary-color);
}

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

.footer-copyright {
    font-size: 12px;
    color: var(--secondary-color);
    margin-top: 20px;
}

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

.footer-copyright a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

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

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

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

.cart-header h3 {
    font-size: 20px;
    font-weight: 400;
}

.cart-close {
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: var(--primary-color);
}

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

.cart-empty {
    text-align: center;
    color: var(--secondary-color);
    padding: 40px 20px;
}

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

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

.btn-checkout {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

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

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    display: none;
}

.cart-overlay.active {
    display: block;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        background-color: var(--white);
        transition: left 0.3s ease;
        border-top: 1px solid var(--border-color);
        padding: 20px;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 15px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .logo h1 {
        font-size: 16px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 12px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 24px;
    }

    .about-content p {
        font-size: 14px;
    }
}

/* ===== Product Image Carousel ===== */
.product-image {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.product-name {
    cursor: pointer;
    transition: color 0.3s ease;
}

.product-name:hover {
    color: var(--accent-color);
}

.image-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    transition: opacity 0.3s ease;
}

.carousel-image.active {
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
    opacity: 0;
}

.product-card:hover .carousel-btn {
    opacity: 1;
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.carousel-btn:hover {
    background-color: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.carousel-btn i {
    font-size: 14px;
    color: var(--primary-color);
}

.carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot.active {
    background-color: var(--white);
    width: 20px;
    border-radius: 4px;
}

.carousel-dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

/* ===== Product Badges & Stock Status ===== */
.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    z-index: 5;
    background: var(--accent-color);
    color: var(--white);
}

.product-badge.out-of-stock-badge {
    background: #dc3545;
    color: var(--white);
    top: auto;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.product-card.out-of-stock .product-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.5);
    pointer-events: none;
}

.btn-add-cart:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-add-cart:disabled:hover {
    background: #ccc;
    transform: none;
}

/* Notification System */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
    z-index: 10000;
    max-width: 400px;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-success {
    border-left: 4px solid #10b981;
    color: #065f46;
}

.notification-success::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    font-weight: bold;
    flex-shrink: 0;
}

.notification-error {
    border-left: 4px solid #ef4444;
    color: #991b1b;
}

.notification-error::before {
    content: '✕';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    font-weight: bold;
    flex-shrink: 0;
}

.notification-info {
    border-left: 4px solid #3b82f6;
    color: #1e40af;
}

.notification-info::before {
    content: 'i';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #3b82f6;
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-style: italic;
    flex-shrink: 0;
}

.notification-warning {
    border-left: 4px solid #f59e0b;
    color: #92400e;
}

.notification-warning::before {
    content: '!';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #f59e0b;
    color: white;
    border-radius: 50%;
    font-weight: bold;
    flex-shrink: 0;
}
