@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    /* Color Palette */
    --bg-primary: #FDFAF6;
    --bg-section: #F7F0E8;
    --bg-dark: #1A1A1A;
    --text-dark: #1A1A1A;
    --text-muted: #888888;
    --accent-primary: #B62025; /* Coral/CTA Replacement as requested */
    --accent-success: #4A7C59; /* Green */
    --border-color: rgba(0, 0, 0, 0.10);

    /* Typography */
    --font-heading: 'Libre Baskerville', serif;
    --font-body: 'DM Sans', sans-serif;
    
    /* Layout */
    --max-width: 1200px;
    --radius-card: 12px;
    --radius-pill: 24px;
    --radius-avatar: 50%;
    --shadow-subtle: 0 2px 16px rgba(0, 0, 0, 0.06);
    --transition-fast: 0.2s ease-in-out;
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    font-weight: 500;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
    object-fit: cover;
}

/* Typography Scale */
h1 { font-size: clamp(32px, 5vw, 44px); }
h2 { font-size: clamp(24px, 4vw, 30px); }
p { font-size: 14px; }
.text-muted { color: var(--text-muted); }

.label {
    font-family: var(--font-body);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.price {
    font-size: 16px;
    font-weight: 600;
}

/* Layout Classes */
.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
}

.section {
    padding: 60px 0;
}
@media (max-width: 768px) {
    .section { padding: 36px 0; }
}

.bg-primary { background-color: var(--bg-primary); }
.bg-section { background-color: var(--bg-section); }
.bg-dark { background-color: var(--bg-dark); color: #fff; }
.bg-white { background-color: #fff; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background-color: var(--accent-primary);
    color: #fff;
}
.btn-primary:hover {
    background-color: #9c1b20;
}

.btn-dark {
    background-color: var(--bg-dark);
    color: #fff;
}
.btn-dark:hover {
    background-color: #000;
}

.btn-outline {
    background-color: transparent;
    border-color: var(--text-dark);
    color: var(--text-dark);
}
.btn-outline:hover {
    background-color: var(--text-dark);
    color: #fff;
}

/* Specific UI Components */

/* Announcement Bar */
.announcement-bar {
    background-color: var(--bg-dark);
    color: #fff;
    padding: 8px 0;
    overflow: hidden;
    position: relative;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.ticker-wrap {
    width: 100%;
    white-space: nowrap;
}

.ticker {
    display: inline-block;
    animation: ticker 20s linear infinite;
    font-size: 12px;
    letter-spacing: 0.08em;
    padding-right: 50px;
}

@keyframes ticker {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

/* Nav */
.navbar {
    position: sticky;
    top: 0;
    z-index: 999;
    padding: 20px 0;
    transition: background-color var(--transition-base), box-shadow var(--transition-base);
}

.navbar.scrolled {
    background-color: #fff;
    box-shadow: var(--shadow-subtle);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--text-dark);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    transition: color var(--transition-fast);
}

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

.nav-icons {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
    color: var(--text-dark);
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* Add JS logic for slide in later */
    }
    .mobile-toggle {
        display: block;
    }
}

/* Cards */
.card {
    background: #fff;
    border-radius: var(--radius-card);
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    border: 1px solid var(--border-color);
}

/* Product Card */
.product-card {
    border: none;
    background: transparent;
}

.product-card:hover .product-img-wrap {
    transform: translateY(-4px);
    box-shadow: var(--shadow-subtle);
}

.product-img-wrap {
    position: relative;
    aspect-ratio: 1/1;
    border-radius: var(--radius-card);
    background: var(--bg-section);
    margin-bottom: 16px;
    transition: all var(--transition-fast);
    overflow: hidden;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    z-index: 2;
}

.badge-sale { background-color: var(--accent-primary); }
.badge-new { background-color: var(--accent-success); }

.product-concern {
    font-size: 11px;
    color: var(--accent-primary);
    margin-bottom: 4px;
}

.product-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.product-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.price-mrp {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 400;
}

.price-off {
    color: var(--accent-success);
    font-size: 12px;
    font-weight: 600;
}

/* Hero Section */
.hero {
    display: flex;
    min-height: 80vh;
}
@media (max-width: 900px) {
    .hero { flex-direction: column; }
}

.hero-left {
    flex: 1.2;
    background-color: var(--bg-section);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10% 8%;
}

/* Override hero-left background when inside the carousel so slide gradients show through */
.hero-slide-inner .hero-left {
    background-color: transparent;
    padding: 0;
}

.hero-right {
    flex: 1;
    background-color: #E8DFD5;
    position: relative;
}

.hero-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.floating-review {
    position: absolute;
    bottom: 40px;
    left: -40px;
    background: #fff;
    padding: 16px;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-subtle);
    display: flex;
    align-items: center;
    gap: 12px;
}
@media (max-width: 900px) {
    .floating-review { left: 20px; bottom: 20px; }
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}
.section-tag {
    color: var(--accent-primary);
    margin-bottom: 12px;
    display: block;
}

/* Grid Layouts */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 900px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
    .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
}

/* Footer */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}
@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; }
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
@media (max-width: 500px) {
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}

/* Before and After */
.ba-card {
    background: #fff;
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-subtle);
}

.ba-images {
    display: flex;
    aspect-ratio: 4/3;
}

.ba-images > div {
    flex: 1;
    position: relative;
}

.ba-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ba-label {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
}

.ba-info {
    padding: 20px;
}

.ba-result-highlight {
    color: var(--accent-success);
    font-weight: 600;
    margin-top: 8px;
    display: block;
}

/* Trust Strip */
.trust-strip {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 24px 0;
}

.trust-icons {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 500;
}

.trust-item svg {
    color: var(--accent-success);
}