/* ==========================================================================
   yogalive.store — Custom Stylesheet
   Earthy, warm palette for a sustainable yoga goods store
   ========================================================================== */

/* ---------- CSS Custom Properties ---------- */
:root {
    --terracotta: #C1694F;
    --terracotta-dark: #A5553D;
    --terracotta-light: #D8896F;
    --sage: #7C9A6E;
    --sage-dark: #5A7A4A;
    --sage-light: #9DB891;
    --sand: #D4A574;
    --sand-light: #E8C9A4;
    --cream: #F5F0EB;
    --cream-dark: #EDE5DC;
    --brown-dark: #3D2B1F;
    --brown-medium: #5C4033;
    --text-body: #3D2B1F;
    --text-muted: #7A6B60;
    --font-display: 'Georgia', 'Times New Roman', serif;
    --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --shadow-sm: 0 1px 3px rgba(61, 43, 31, 0.08);
    --shadow-md: 0 4px 12px rgba(61, 43, 31, 0.1);
    --shadow-lg: 0 8px 30px rgba(61, 43, 31, 0.12);
    --radius: 12px;
    --radius-sm: 8px;
}

/* ---------- Base ---------- */
body {
    font-family: var(--font-body);
    color: var(--text-body);
    background-color: var(--cream);
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--brown-dark);
    font-weight: 600;
}

a {
    color: var(--terracotta);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--terracotta-dark);
}

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

/* ---------- Utility Classes ---------- */
.text-terracotta { color: var(--terracotta) !important; }
.text-sage { color: var(--sage) !important; }
.text-sand { color: var(--sand) !important; }
.text-light-muted { color: rgba(255, 255, 255, 0.65) !important; }

.min-vh-75 {
    min-height: 75vh;
}

/* ---------- Navbar ---------- */
.navbar {
    background-color: rgba(245, 240, 235, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.8rem 0;
    border-bottom: 1px solid transparent;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    z-index: 1030;
}

.navbar-scrolled {
    box-shadow: var(--shadow-md);
    border-bottom-color: var(--cream-dark);
}

.navbar-brand img {
    height: 44px;
}

.nav-link {
    color: var(--brown-dark) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background-color: var(--terracotta);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--terracotta) !important;
}

.nav-link.active::after,
.nav-link:hover::after {
    transform: scaleX(1);
}

.navbar-toggler {
    border-color: var(--sand);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%233D2B1F' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ---------- Buttons ---------- */
.btn-primary {
    background-color: var(--terracotta);
    border-color: var(--terracotta);
    border-radius: var(--radius-sm);
    font-weight: 500;
    padding: 0.6rem 1.5rem;
    transition: all 0.2s ease;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--terracotta-dark);
    border-color: var(--terracotta-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline-primary {
    color: var(--terracotta);
    border-color: var(--terracotta);
    border-radius: var(--radius-sm);
}

.btn-outline-primary:hover {
    background-color: var(--terracotta);
    border-color: var(--terracotta);
    transform: translateY(-1px);
}

.btn-outline-dark {
    color: var(--brown-dark);
    border-color: var(--brown-dark);
    border-radius: var(--radius-sm);
}

.btn-outline-dark:hover {
    background-color: var(--brown-dark);
    border-color: var(--brown-dark);
    color: var(--cream);
}

/* ---------- Hero Section ---------- */
.hero-section {
    background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dark) 100%);
    padding: 2rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(124, 154, 110, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.badge-eco {
    background-color: rgba(124, 154, 110, 0.15);
    color: var(--sage-dark);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.85rem;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 1.2rem;
    color: var(--brown-dark);
}

.hero-title em {
    color: var(--terracotta);
    font-style: normal;
    position: relative;
}

.hero-title em::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    right: 0;
    height: 8px;
    background-color: rgba(193, 105, 79, 0.2);
    z-index: -1;
    border-radius: 4px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 480px;
}

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

.hero-image {
    max-height: 450px;
    filter: drop-shadow(0 20px 40px rgba(61, 43, 31, 0.15));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

/* ---------- Page Header ---------- */
.page-header {
    background: linear-gradient(135deg, var(--cream-dark) 0%, var(--cream) 100%);
    padding: 3rem 0;
    border-bottom: 1px solid rgba(61, 43, 31, 0.06);
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.3rem;
}

/* ---------- Values Section ---------- */
.values-section {
    background-color: #fff;
}

.value-card {
    padding: 2rem 1.5rem;
    border-radius: var(--radius);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.value-icon {
    width: 72px;
    height: 72px;
    margin-bottom: 1rem;
}

.value-card h5 {
    color: var(--brown-dark);
    margin-bottom: 0.5rem;
}

.value-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ---------- Product Cards ---------- */
.product-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card-link:hover {
    color: inherit;
}

.product-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

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

.product-card-image {
    background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dark) 100%);
    padding: 2rem;
    text-align: center;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card-image img {
    max-height: 200px;
    transition: transform 0.3s ease;
}

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

.product-card-body {
    padding: 1.25rem;
}

.product-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--sage);
    font-weight: 600;
}

.product-card-title {
    font-size: 1.05rem;
    margin: 0.3rem 0;
    color: var(--brown-dark);
}

.product-card-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.product-card-price {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--terracotta);
    font-weight: 600;
    margin: 0;
}

/* ---------- Product Detail ---------- */
.product-detail-image {
    background: linear-gradient(135deg, var(--cream) 0%, #fff 100%);
    border-radius: var(--radius);
    padding: 3rem;
    text-align: center;
}

.product-detail-image img {
    max-height: 400px;
}

.product-detail-title {
    font-size: 2rem;
}

.product-detail-price {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--terracotta);
    font-weight: 700;
}

.product-detail-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

.product-features {
    list-style: none;
    padding: 0;
}

.product-features li {
    padding: 0.4rem 0;
    font-size: 0.95rem;
}

.product-features li i {
    margin-right: 0.5rem;
}

.breadcrumb-item a {
    color: var(--text-muted);
}

.breadcrumb-item.active {
    color: var(--terracotta);
}

/* ---------- Category Filter ---------- */
.category-filter {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-filter {
    background: #fff;
    border: 1px solid var(--cream-dark);
    color: var(--text-muted);
    border-radius: 50px;
    padding: 0.4rem 1.2rem;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.btn-filter:hover,
.btn-filter.active {
    background: var(--terracotta);
    border-color: var(--terracotta);
    color: #fff;
}

/* ---------- Featured Section ---------- */
.featured-section {
    background-color: var(--cream);
}

.section-header h2 {
    font-size: 2rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--terracotta);
    margin: 0.75rem auto 0;
    border-radius: 2px;
}

/* ---------- Impact Section ---------- */
.impact-section {
    background-color: #fff;
}

.impact-stats {
    list-style: none;
    padding: 0;
}

.impact-stats li {
    padding: 0.5rem 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--cream-dark);
}

.impact-stats li strong {
    color: var(--sage-dark);
    font-size: 1.2rem;
}

.chart-wrapper {
    padding: 1.5rem;
    background: var(--cream);
    border-radius: var(--radius);
}

#impact-chart {
    height: 250px;
    max-width: 500px;
    margin: 0 auto;
}

/* ---------- CTA Section ---------- */
.cta-section {
    background: linear-gradient(135deg, var(--sage-dark) 0%, var(--sage) 100%);
    color: #fff;
}

.cta-section h2 {
    color: #fff;
}

.cta-section .form-control {
    border-radius: var(--radius-sm);
    border: none;
    padding: 0.7rem 1.2rem;
}

/* ---------- About Page ---------- */
.about-image {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.sustainability-card {
    background: #fff;
    padding: 2.5rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    height: 100%;
    transition: transform 0.3s ease;
}

.sustainability-card:hover {
    transform: translateY(-4px);
}

.sustainability-icon {
    width: 70px;
    height: 70px;
    background: rgba(124, 154, 110, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    color: var(--sage-dark);
}

.process-step {
    padding: 1.5rem;
}

.process-number {
    width: 50px;
    height: 50px;
    background: var(--terracotta);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

/* ---------- Contact Page ---------- */
.contact-form .form-control,
.contact-form .form-select {
    border-radius: var(--radius-sm);
    border: 1px solid var(--cream-dark);
    padding: 0.75rem 1rem;
    background-color: #fff;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--terracotta-light);
    box-shadow: 0 0 0 0.2rem rgba(193, 105, 79, 0.15);
}

.contact-info-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.contact-info-card h5 {
    font-size: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.contact-info-card h5:first-child {
    margin-top: 0;
}

.contact-info-card h5 i {
    margin-right: 0.4rem;
}

/* ---------- 404 Page ---------- */
.error-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.error-code {
    font-size: 8rem;
    font-weight: 800;
    color: var(--cream-dark);
    line-height: 1;
    margin-bottom: 0;
}

/* ---------- Footer ---------- */
.site-footer {
    background-color: var(--brown-dark);
    color: rgba(255, 255, 255, 0.85);
    padding: 3.5rem 0 1.5rem;
    margin-top: 4rem;
}

.site-footer h6 {
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.footer-links li {
    margin-bottom: 0.4rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

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

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

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.social-links a:hover {
    background: var(--terracotta);
    color: #fff;
    transform: translateY(-2px);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0 1rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-image {
        max-height: 300px;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-section {
        padding: 1rem 0 3rem;
    }

    .product-card-image {
        aspect-ratio: 4/3;
    }

    .page-header {
        padding: 2rem 0;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }
}
