/* =========================================
   bagzonede - Elegant Theme
   ========================================= */

/* --- Variables --- */
:root {
    /* Color Palette - Elegant & Modern */
    --color-bg: #FFFFFF;
    --color-bg-alt: #F8F5F2;
    --color-bg-dark: #1A1A1A;

    --color-text: #2C2C2C;
    --color-text-light: #6B6B6B;
    --color-text-lighter: #8E8E8E;

    --color-primary: #C6A43F;
    --color-primary-light: #D4B568;
    --color-primary-dark: #A88932;

    --color-secondary: #333333;
    --color-accent: #B76E79;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;

    /* Spacing */
    --container-width: 1280px;
    --section-padding: 100px 20px;

    /* Shadows */
    --shadow-soft: 0 20px 40px -15px rgba(0, 0, 0, 0.15);
    --shadow-hover: 0 30px 50px -20px rgba(0, 0, 0, 0.25);
    --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.1);

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
}

/* --- Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
    font-weight: 400;
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Container --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-large {
    padding: 16px 36px;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
    border: 1px solid var(--color-primary);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.btn-outline {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-text);
}

.btn-outline:hover {
    background: var(--color-text);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

/* --- Section Header --- */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--color-text);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* --- Preloader --- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-logo {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.preloader-dot {
    color: var(--color-text);
}

.preloader-line {
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        transform: scaleX(0);
        opacity: 0;
    }

    50% {
        transform: scaleX(1);
        opacity: 1;
    }

    100% {
        transform: scaleX(0);
        opacity: 0;
    }
}

/* --- Top Bar --- */
.top-bar {
    background: var(--color-bg-dark);
    color: #fff;
    padding: 8px 0;
    font-size: 0.85rem;
    text-align: center;
    letter-spacing: 0.5px;
}

.top-bar-text {
    opacity: 0.8;
}

/* --- Header --- */
.header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.5px;
}

.logo-dot {
    color: var(--color-primary);
}

.desktop-nav .nav-list {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    gap: 20px;
}

/* --- Mobile Menu --- */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-toggle span {
    width: 25px;
    height: 2px;
    background: var(--color-text);
    transition: 0.3s;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--color-text);
}

.mobile-nav {
    text-align: center;
    margin-bottom: 40px;
}

.mobile-link {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-text);
    margin-bottom: 20px;
    transition: color 0.3s;
}

.mobile-link:hover {
    color: var(--color-primary);
}

.mobile-cta {
    padding: 12px 30px;
}

/* --- Hero Section --- */
.hero {
    padding: var(--section-padding);
    background: linear-gradient(135deg, #fff 0%, var(--color-bg-alt) 100%);
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-primary);
    margin-bottom: 20px;
    border-left: 3px solid var(--color-primary);
    padding-left: 15px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-features {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--color-text-light);
}

.hero-feature i {
    color: var(--color-primary);
    font-size: 1.2rem;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
}

.image-frame {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.image-frame::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-md);
    z-index: 1;
    pointer-events: none;
}

.hero-img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.image-frame:hover .hero-img {
    transform: scale(1.05);
}

.floating-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: #fff;
    padding: 20px 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    text-align: center;
    z-index: 2;
}

.badge-price {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

.badge-text {
    font-size: 0.8rem;
    color: var(--color-text-light);
}

/* --- Product Section --- */
.product {
    padding: var(--section-padding);
    background: #fff;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.product-specs {
    margin-bottom: 40px;
}

.product-specs h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.specs-list {
    list-style: none;
}

.specs-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--color-text-light);
}

.specs-list i {
    color: var(--color-primary);
    font-size: 1.3rem;
}

.product-price {
    background: var(--color-bg-alt);
    padding: 40px;
    border-radius: var(--radius-lg);
}

.price-box {
    text-align: center;
    margin-bottom: 30px;
}

.price-label {
    display: block;
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 10px;
}

.price-value {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-primary);
}

.price-note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--color-text-lighter);
    margin-top: 20px;
}

.product-img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

/* --- Features Section --- */
.features {
    padding: var(--section-padding);
    background: var(--color-bg-alt);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-card);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.feature-icon-wrapper {
    width: 80px;
    height: 80px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: 0.3s;
}

.feature-card:hover .feature-icon-wrapper {
    transform: scale(1.1);
    background: var(--color-primary-dark);
}

.feature-icon-wrapper i {
    font-size: 2rem;
    color: #fff;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- Gallery Section --- */
.gallery {
    padding: var(--section-padding);
    background: #fff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    cursor: pointer;
    box-shadow: var(--shadow-card);
}

.gallery-item.main {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.3));
    opacity: 0;
    transition: 0.3s;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* --- CTA Section --- */
.cta {
    padding: 100px 20px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #fff;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta .btn-primary {
    background: #fff;
    color: var(--color-primary);
    border: none;
}

.cta .btn-primary:hover {
    background: var(--color-text);
    color: #fff;
    transform: translateY(-2px);
}

/* --- Footer --- */
.footer {
    background: var(--color-bg-dark);
    color: #fff;
    padding: 80px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-brand p {
    color: #999;
    margin-bottom: 20px;
    max-width: 300px;
}

.footer-email {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-email i {
    color: var(--color-primary);
}

.footer-email a {
    color: #999;
}

.footer-email a:hover {
    color: var(--color-primary);
}

.footer h4 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--color-primary);
}

.footer-links ul li,
.footer-contact p {
    margin-bottom: 12px;
}

.footer-links a,
.footer-contact p {
    color: #999;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

.modal-btn {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: 0.3s;
}

.modal-btn:hover {
    color: var(--color-primary);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 30px;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

.footer-disclaimer {
    margin-top: 10px;
    font-size: 0.8rem;
}

/* --- Modals --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text-light);
}

.modal h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--color-text);
}

.modal-content p {
    margin-bottom: 15px;
    color: var(--color-text-light);
    line-height: 1.8;
}

.modal-content h4 {
    font-size: 1.2rem;
    margin: 25px 0 15px;
    color: var(--color-text);
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {

    .desktop-nav,
    .header-actions {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .hero-container,
    .product-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-content {
        text-align: center;
    }

    .hero-features {
        justify-content: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        max-width: 500px;
        margin: 0 auto;
    }

    .product-details {
        text-align: center;
    }

    .specs-list li {
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-features {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .floating-badge {
        position: static;
        margin-top: 20px;
        display: inline-block;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item.main {
        grid-column: auto;
        grid-row: auto;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-email {
        justify-content: center;
    }

    .footer h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .cta h2 {
        font-size: 2rem;
    }
}