/* Andean Modernism - Atacama Desert Style */

:root {
    --night: #1a2542;
    --night-soft: #2a3454;
    --sunset: #d0603e;
    --sunset-dark: #a8472a;
    --adobe: #d6a87a;
    --adobe-light: #e8cdae;
    --bone: #f5f0e6;
    --sand: #faf6ee;
    --paper: #ffffff;
    --ink: #1a2542;
    --ink-soft: #5f6a80;
    --border: #e6dcc8;
    --radius: 8px;
    --radius-lg: 16px;
    --shadow: 0 4px 20px rgba(26, 37, 66, 0.06);
    --shadow-lg: 0 12px 40px rgba(26, 37, 66, 0.12);
    --shadow-xl: 0 24px 60px rgba(26, 37, 66, 0.16);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Karla', -apple-system, sans-serif;
    background: var(--sand);
    color: var(--ink);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.15;
    letter-spacing: -0.015em;
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); margin-bottom: 1rem; }
h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }

a { color: var(--night); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--sunset); }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Decorative accent line */
.accent-line {
    width: 48px;
    height: 4px;
    background: var(--sunset);
    border-radius: 2px;
    margin-bottom: 24px;
}

/* Header */
.header {
    background: var(--bone);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    gap: 24px;
}

.logo {
    font-family: 'Fraunces', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--night);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.02em;
}

.logo-mark {
    width: 40px;
    height: 40px;
    background: var(--night);
    color: var(--bone);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transform: rotate(-4deg);
}

.nav {
    display: flex;
    gap: 30px;
    align-items: center;
    list-style: none;
}

.nav a {
    color: var(--ink);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 6px 0;
    position: relative;
    transition: color 0.2s;
}

.nav a:hover, .nav a.active { color: var(--sunset); }
.nav a.active { font-weight: 700; }

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.lang-switch {
    display: flex;
    gap: 0;
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.lang-btn {
    padding: 7px 14px;
    border: none;
    background: transparent;
    color: var(--ink-soft);
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    transition: all 0.2s;
    font-family: 'Karla', sans-serif;
}

.lang-btn.active {
    background: var(--night);
    color: var(--bone);
}

.cart-btn {
    position: relative;
    background: var(--sunset);
    color: var(--bone);
    border: none;
    padding: 11px 18px;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
    font-family: 'Karla', sans-serif;
    text-decoration: none;
    letter-spacing: 0.3px;
}

.cart-btn:hover {
    background: var(--sunset-dark);
    color: var(--bone);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(208, 96, 62, 0.3);
}

.cart-count {
    background: var(--night);
    color: var(--bone);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    transition: transform 0.3s;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    border: none;
    border-radius: var(--radius);
    font-family: 'Karla', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s;
    text-decoration: none;
    letter-spacing: 0.4px;
}

.btn-primary {
    background: var(--night);
    color: var(--bone);
}

.btn-primary:hover {
    background: var(--night-soft);
    color: var(--bone);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--night);
    border: 2px solid var(--night);
}

.btn-secondary:hover {
    background: var(--night);
    color: var(--bone);
}

.btn-sunset {
    background: var(--sunset);
    color: var(--bone);
}

.btn-sunset:hover {
    background: var(--sunset-dark);
    color: var(--bone);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(208, 96, 62, 0.35);
}

.btn-block { width: 100%; }

/* Hero */
.hero {
    background: var(--bone);
    padding: 90px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    right: -100px;
    width: 500px;
    height: 500px;
    background: var(--adobe-light);
    border-radius: 50%;
    opacity: 0.4;
    z-index: 0;
}

.hero::after {
    content: "";
    position: absolute;
    bottom: -80px;
    left: -60px;
    width: 300px;
    height: 300px;
    background: var(--sunset);
    border-radius: 50%;
    opacity: 0.08;
    z-index: 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 70px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--paper);
    color: var(--sunset);
    padding: 7px 16px;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 26px;
    border: 1px solid var(--adobe-light);
    text-transform: uppercase;
}

.hero-badge::before {
    content: "";
    width: 8px;
    height: 8px;
    background: var(--sunset);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.hero h1 { margin-bottom: 22px; }
.hero h1 em { font-style: italic; color: var(--sunset); font-weight: 400; }

.hero-lead {
    font-size: 1.1rem;
    color: var(--ink-soft);
    margin-bottom: 38px;
    max-width: 520px;
    line-height: 1.7;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    background: var(--paper);
}

.hero-price-tag {
    position: absolute;
    bottom: 24px;
    right: 24px;
    background: var(--night);
    color: var(--bone);
    padding: 16px 26px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 1.15rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 2px;
    transform: rotate(-2deg);
}

.hero-price-tag small {
    font-size: 0.68rem;
    color: var(--adobe-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Trust bar */
.trust-bar {
    background: var(--night);
    color: var(--bone);
    padding: 28px 0;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.trust-item {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    color: var(--adobe-light);
}

.trust-icon {
    font-size: 1.2rem;
    color: var(--sunset);
}

/* Sections */
.section { padding: 90px 0; }
.section-alt { background: var(--bone); }

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title .accent-line { margin: 0 auto 20px; }

.section-title p {
    color: var(--ink-soft);
    max-width: 620px;
    margin: 0 auto;
    font-size: 1.02rem;
    line-height: 1.7;
}

/* Product card */
.product-card {
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    max-width: 400px;
    margin: 0 auto;
    transition: all 0.3s;
    box-shadow: var(--shadow);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--adobe);
}

.product-card-image {
    background: var(--bone);
    padding: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.product-card-image::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--sunset);
    border-radius: 2px;
}

.product-card-image img {
    max-width: 260px;
    border-radius: var(--radius);
}

.product-card-body { padding: 30px; }

.product-card-category {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: var(--sunset);
    font-weight: 700;
    margin-bottom: 10px;
}

.product-card h3 { margin-bottom: 12px; font-size: 1.5rem; }

.product-card-price {
    font-family: 'Fraunces', serif;
    font-size: 1.7rem;
    color: var(--night);
    font-weight: 700;
    margin: 16px 0;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.product-card-old-price {
    font-size: 1rem;
    color: var(--ink-soft);
    text-decoration: line-through;
    font-family: 'Karla', sans-serif;
    font-weight: 400;
}

/* Product detail blocks */
.product-blocks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 60px;
}

.product-block {
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all 0.25s;
    position: relative;
}

.product-block::before {
    content: "";
    position: absolute;
    top: 0;
    left: 32px;
    width: 32px;
    height: 4px;
    background: var(--sunset);
    border-radius: 0 0 2px 2px;
}

.product-block:hover {
    border-color: var(--adobe);
    box-shadow: var(--shadow);
}

.product-block h3 {
    color: var(--night);
    margin: 12px 0 16px;
    font-size: 1.25rem;
}

.product-block ul { list-style: none; }
.product-block ul li {
    padding: 8px 0 8px 24px;
    position: relative;
    color: var(--ink-soft);
    line-height: 1.6;
}

.product-block ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 16px;
    width: 10px;
    height: 2px;
    background: var(--sunset);
    border-radius: 1px;
}

/* Cart */
.cart-item {
    display: grid;
    grid-template-columns: 110px 1fr auto auto;
    gap: 24px;
    align-items: center;
    padding: 24px;
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    transition: all 0.2s;
}

.cart-item:hover { border-color: var(--adobe); }

.cart-item img {
    width: 110px;
    border-radius: var(--radius);
    background: var(--bone);
    padding: 10px;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qty-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    background: var(--paper);
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 700;
    color: var(--ink);
    transition: all 0.2s;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: var(--night);
    color: var(--bone);
    border-color: var(--night);
}

.cart-total {
    background: var(--bone);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-top: 24px;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 1rem;
    color: var(--ink-soft);
}

.cart-total-row.total {
    font-family: 'Fraunces', serif;
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--night);
    border-top: 1px solid var(--border);
    margin-top: 16px;
    padding-top: 20px;
}

/* Forms */
.form-group { margin-bottom: 22px; }

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: 'Karla', sans-serif;
    font-size: 1rem;
    background: var(--paper);
    color: var(--ink);
    transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--sunset);
    box-shadow: 0 0 0 4px rgba(208, 96, 62, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* FAQ accordion */
.faq-item {
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 14px;
    overflow: hidden;
    transition: all 0.25s;
}

.faq-item.open {
    border-color: var(--adobe);
    box-shadow: var(--shadow);
}

.faq-question {
    padding: 24px 28px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--ink);
    transition: color 0.2s;
    font-family: 'Fraunces', serif;
    font-size: 1.15rem;
    gap: 16px;
}

.faq-question:hover { color: var(--sunset); }

.faq-question::after {
    content: "+";
    font-size: 1.5rem;
    color: var(--sunset);
    transition: transform 0.3s;
    font-family: 'Karla', sans-serif;
    font-weight: 400;
    line-height: 1;
    flex-shrink: 0;
}

.faq-item.open .faq-question::after { transform: rotate(45deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    color: var(--ink-soft);
}

.faq-item.open .faq-answer { max-height: 500px; }

.faq-answer-inner {
    padding: 0 28px 24px;
    line-height: 1.7;
}

/* Reviews */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.review {
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    position: relative;
    transition: all 0.25s;
}

.review::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 32px;
    width: 40px;
    height: 4px;
    background: var(--sunset);
    border-radius: 0 0 2px 2px;
}

.review:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.review-stars {
    color: var(--sunset);
    margin: 16px 0;
    font-size: 1rem;
    letter-spacing: 3px;
}

.review-text {
    color: var(--ink-soft);
    margin-bottom: 20px;
    font-size: 1.02rem;
    line-height: 1.7;
}

.review-author {
    font-weight: 700;
    color: var(--ink);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.review-author::before {
    content: "";
    width: 24px;
    height: 2px;
    background: var(--sunset);
}

/* Footer */
.footer {
    background: var(--night);
    color: var(--bone);
    padding: 70px 0 24px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer h4 {
    color: var(--bone);
    font-size: 0.8rem;
    margin-bottom: 20px;
    font-family: 'Karla', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    font-weight: 700;
}

.footer p, .footer a, .footer li {
    color: rgba(245, 240, 230, 0.7);
    font-size: 0.92rem;
    line-height: 2;
}

.footer a:hover { color: var(--adobe); }

.footer ul { list-style: none; }

.footer-brand {
    font-family: 'Fraunces', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--bone);
    margin-bottom: 14px;
}

.footer-certs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.cert-badge {
    background: rgba(214, 168, 122, 0.12);
    border: 1px solid rgba(214, 168, 122, 0.35);
    color: var(--adobe-light);
    padding: 5px 12px;
    border-radius: 100px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.footer-bottom {
    border-top: 1px solid rgba(245, 240, 230, 0.12);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: rgba(245, 240, 230, 0.5);
    flex-wrap: wrap;
    gap: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 32px;
    right: 32px;
    background: var(--night);
    color: var(--bone);
    padding: 18px 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    font-weight: 700;
    transform: translateY(120px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    border-left: 4px solid var(--sunset);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast::before {
    content: "✓";
    background: var(--sunset);
    color: var(--bone);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* Flying product animation */
.flying-product {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    border-radius: var(--radius);
    transition: all 0.9s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: var(--shadow-xl);
    object-fit: contain;
}

/* Thank you page */
.thank-you {
    text-align: center;
    padding: 100px 20px;
    max-width: 640px;
    margin: 0 auto;
}

.thank-you-icon {
    width: 110px;
    height: 110px;
    background: var(--sunset);
    color: var(--bone);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 36px;
    animation: pulse-ring 2.5s infinite;
    transform: rotate(-4deg);
}

@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(208, 96, 62, 0.4); }
    70% { box-shadow: 0 0 0 30px rgba(208, 96, 62, 0); }
    100% { box-shadow: 0 0 0 0 rgba(208, 96, 62, 0); }
}

.thank-you h1 { margin-bottom: 20px; }

.thank-you p {
    color: var(--ink-soft);
    font-size: 1.05rem;
    margin-bottom: 14px;
    line-height: 1.7;
}

/* Legal pages */
.legal-content {
    max-width: 820px;
    margin: 0 auto;
    padding: 40px 20px;
}

.legal-content h2 {
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
    font-size: 1.4rem;
}

.legal-content h2:first-of-type {
    margin-top: 0;
    border-top: none;
    padding-top: 0;
}

.legal-content p, .legal-content li {
    color: var(--ink-soft);
    margin-bottom: 14px;
    line-height: 1.8;
}

.legal-content ul, .legal-content ol {
    padding-left: 24px;
    margin-bottom: 18px;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 24px 0;
    font-size: 0.85rem;
    color: var(--ink-soft);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.breadcrumbs a { color: var(--ink-soft); }
.breadcrumbs a:hover { color: var(--sunset); }
.breadcrumbs span { margin: 0 10px; opacity: 0.5; }

/* Empty state */
.empty-state {
    text-align: center;
    padding: 100px 20px;
    color: var(--ink-soft);
}

.empty-state h2 { margin-bottom: 20px; color: var(--ink); }

/* Info card */
.info-card {
    background: var(--bone);
    border-radius: var(--radius);
    padding: 22px 26px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.95rem;
    color: var(--night);
    font-weight: 600;
    border-left: 4px solid var(--sunset);
}

/* Mobile */
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; gap: 50px; }
    .hero { padding: 70px 0 60px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
    .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .section { padding: 70px 0; }
    .checkout-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 640px) {
    .nav { display: none; }
    .header-inner { padding: 14px 18px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .cart-item { grid-template-columns: 80px 1fr; gap: 16px; }
    .cart-item-actions {
        grid-column: 1 / -1;
        justify-content: space-between;
        padding-top: 12px;
        border-top: 1px solid var(--border);
    }
    .form-row { grid-template-columns: 1fr; }
    .section { padding: 56px 0; }
    .toast { bottom: 20px; right: 20px; left: 20px; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
}

/* Mobile menu toggle */
.mobile-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px 14px;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--ink);
    font-family: 'Karla', sans-serif;
}

@media (max-width: 640px) {
    .mobile-toggle { display: block; }
    .nav.open {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bone);
        flex-direction: column;
        padding: 24px;
        border-bottom: 1px solid var(--border);
        gap: 16px;
        box-shadow: var(--shadow-lg);
    }
}
