/* ========================================
   PRESANEW - Modern Editorial Style
   ======================================== */

:root {
    /* Colors */
    --bg-primary: #fafaf9;
    --bg-secondary: #f5f5f4;
    --bg-dark: #1c1917;
    --text-primary: #1c1917;
    --text-secondary: #57534e;
    --text-muted: #a8a29e;
    --accent: #dc2626;
    --accent-hover: #b91c1c;
    --accent-light: #fef2f2;
    --border: #e7e5e4;
    --border-dark: #d6d3d1;
    
    /* Typography */
    --font-display: 'Inter', sans-serif;
    --font-mono: 'Poppins', monospace;
    
    /* Effects */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.15);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-display);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
    background: var(--text-secondary);
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ========================================
   Header
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 250, 249, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

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

.logo {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.logo span {
    color: var(--accent);
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-cta {
    background: var(--text-primary);
    color: var(--bg-primary) !important;
    padding: 0.7rem 1.5rem;
    font-weight: 600;
    border-radius: 2px;
}

.nav-cta:hover {
    background: var(--accent);
}

.nav-cta::after {
    display: none;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 1rem;
    z-index: 999;
}

.mobile-menu a {
    padding: 0.8rem;
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
}

.mobile-menu .nav-cta {
    text-align: center;
}

/* ========================================
   Hero
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 2rem 4rem;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 20%;
    right: -10%;
    width: 50%;
    height: 80%;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.03) 0%, transparent 70%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    padding: 0.4rem 0.8rem;
    background: var(--accent-light);
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 480px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
    height: 600px;
    background: var(--bg-dark);
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; max-height: 100%; max-width: 100%;
    opacity: 0.9;
}

.hero-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(220,38,38,0.1) 0%, transparent 50%);
}

/* ========================================
   Marquee
   ======================================== */
.marquee {
    background: var(--text-primary);
    color: var(--bg-primary);
    padding: 1rem 0;
    overflow: hidden;
}

.marquee-content {
    display: inline-flex;
    animation: marquee 20s linear infinite;
}

.marquee-item {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    padding: 0 3rem;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ========================================
   Banner
   ======================================== */
.banner {
    background: var(--text-primary);
    color: var(--bg-primary);
    padding: 2rem;
    text-align: center;
}

.banner h3 {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.banner p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ========================================
   Features
   ======================================== */
.features-preview {
    padding: 4rem 2rem;
    background: var(--bg-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}

.feature {
    background: var(--bg-primary);
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: var(--transition);
}

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

.feature:hover .feature-icon {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.3rem;
    transition: var(--transition);
}

.feature h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.feature:hover p {
    color: var(--text-muted);
}

/* ========================================
   Products
   ======================================== */
.products-preview {
    padding: 6rem 2rem;
    background: var(--bg-primary);
}

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

.section-header h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.section-header p {
    color: var(--text-secondary);
    max-width: 400px;
    margin-top: 0.5rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.product-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.product-card:hover {
    border-color: var(--text-primary);
    box-shadow: var(--shadow-xl);
}

.product-image {
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    position: relative;
    height: 380px;
    overflow: hidden;
    background: var(--bg-secondary);
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: contain; max-height: 100%; max-width: 100%;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    max-width: 100%;
    max-height: 100%;
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--text-primary);
    color: var(--bg-primary);
    padding: 0.3rem 0.6rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-info {
    padding: 1.5rem;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: -0.3px;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.product-rating i {
    color: #fbbf24;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

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

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

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-dark);
}

.btn-secondary:hover {
    border-color: var(--text-primary);
    background: var(--text-primary);
    color: var(--bg-primary);
}

/* ========================================
   CTA
   ======================================== */
.cta {
    padding: 8rem 2rem;
    background: var(--bg-primary);
    text-align: center;
}

.cta-inner {
    max-width: 700px;
    margin: 0 auto;
}

.cta h2 {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.cta h2 span {
    color: var(--accent);
}

.cta p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--bg-dark);
    color: var(--bg-primary);
    padding: 4rem 2rem 2rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
}

.footer-brand .logo {
    color: var(--bg-primary);
    margin-bottom: 1rem;
    display: inline-block;
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--text-muted);
    max-width: 300px;
}

.footer-links h4 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    color: var(--bg-primary);
}

.footer-links a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    transition: var(--transition);
}

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

.footer-bottom {
    max-width: 1400px;
    margin: 4rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ========================================
   Page Header
   ======================================== */
.page-header {
    padding: 10rem 2rem 4rem;
    background: var(--bg-secondary);
    text-align: center;
}

.page-header h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   Contact Page
   ======================================== */
.contact-section {
    padding: 6rem 2rem;
    background: var(--bg-secondary);
}

.contact-inner {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-primary);
    padding: 3rem;
    border: 1px solid var(--border);
}

.contact-inner h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.contact-inner > p {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--text-primary);
    background: var(--bg-primary);
}

/* ========================================
   About Page
   ======================================== */
.about-section {
    padding: 6rem 2rem;
    background: var(--bg-primary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
}

.about-content p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about-image {
    height: 500px;
    background: var(--bg-secondary);
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; max-height: 100%; max-width: 100%;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-image {
        height: 400px;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-inner {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero {
        padding: 6rem 1rem 3rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .product-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .cta h2 {
        font-size: 2rem;
    }
    
    .contact-inner {
        padding: 2rem 1.5rem;
    }
}

/* ========================================
   Cart & Checkout
   ======================================== */
.cart-section {
    padding: 4rem 2rem;
    background: var(--bg-primary);
}

.cart-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.cart-items {
    background: white;
    border: 1px solid var(--border);
}

.cart-item {
    display: grid;
    grid-template-columns: 80px 2fr 100px 100px 50px;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: contain; max-height: 100%; max-width: 100%;
}

.cart-item-info h3 {
    font-size: 0.95rem;
    font-weight: 600;
}

.cart-item-price {
    color: var(--text-secondary);
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-item-qty button {
    width: 30px;
    height: 30px;
    border: 1px solid var(--border);
    background: none;
    cursor: pointer;
}

.cart-item-qty button:hover {
    background: var(--bg-secondary);
}

.cart-item-total {
    font-weight: 700;
    color: var(--accent);
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--accent);
    cursor: pointer;
    font-size: 1.2rem;
}

.cart-summary {
    background: white;
    border: 1px solid var(--border);
    padding: 1.5rem;
    height: fit-content;
}

.cart-summary h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.summary-row.total {
    font-weight: 700;
    font-size: 1.2rem;
    border-bottom: none;
    color: var(--accent);
}

/* Checkout Modal */
.checkout-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.checkout-content {
    background: white;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.checkout-content h2 {
    margin-bottom: 1.5rem;
}

.checkout-summary {
    background: var(--bg-secondary);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.checkout-summary h3 {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    padding: 0.3rem 0;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
    margin-top: 0.5rem;
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Cart Badge */
.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent);
    color: white;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-cart {
    position: relative;
    padding: 0.5rem !important;
}

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

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

.option-group input {
    width: 80px;
    padding: 0.5rem;
    border: 1px solid var(--border);
}

@media (max-width: 768px) {
    .cart-grid {
        grid-template-columns: 1fr;
    }
    
    .cart-item {
        grid-template-columns: 60px 1fr;
        gap: 0.5rem;
    }
    
    .cart-item-qty, .cart-item-total, .cart-item-remove {
        grid-column: 2;
    }
}

/* Product Detail Page Enhanced */
.product-detail {
    padding: 2rem 0;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.product-detail-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-secondary);
    aspect-ratio: 1;
}

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

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

.product-detail-info {
    padding: 1rem 0;
}

.product-detail-info h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.product-detail-info .product-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin: 1.5rem 0;
}

.product-description {
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 1.5rem 0;
}

.product-options {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 12px;
}

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

.option-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.option-group input,
.option-group select {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

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

.product-actions {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
}

.product-actions .btn {
    flex: 1;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.product-meta {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    color: var(--text-secondary);
}

.meta-item i {
    font-size: 1.25rem;
    color: var(--primary);
}

/* Related Products Enhancement */
.products-preview .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.products-preview .section-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
}

/* Product Badge Enhancement */
.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-badge.bestseller {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.product-badge.new {
    background: linear-gradient(135deg, #10b981, #059669);
}

.product-badge.popular {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

/* Responsive */
@media (max-width: 768px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-detail-info h1 {
        font-size: 1.75rem;
    }
    
    .product-detail-info .product-price {
        font-size: 2rem;
    }
    
    .product-actions {
        flex-direction: column;
    }
}
