/* =========================
   BASIC RESET & VARIABLES
========================= */

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

html {
    scroll-behavior: smooth;
}

:root {
    --brand-cream: #f8e8cb;
    --brand-purple: #251540;
    --purple-light: #37215c;
    --purple-dark: #170d29;
    --gold-accent: #dca852;
    --text-dark: #1c1328;
    --text-muted: #625575;
    --white: #ffffff;
    --border-light: rgba(37, 21, 64, 0.12);
}

body {
    font-family: "Poppins", sans-serif;
    background: #fdfaf5;
    color: var(--text-dark);
    line-height: 1.6;
}

img {
    width: 100%;
    display: block;
}

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

button {
    font: inherit;
    border: none;
    outline: none;
}

.container {
    width: min(90%, 1200px);
    margin: auto;
}

/* =========================
   TYPOGRAPHY & UTILS
========================= */

h1, h2, h3, .logo, .footer-logo {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.15;
    color: var(--brand-purple);
}

h2 {
    font-size: 2.1rem;
    line-height: 1.2;
    color: var(--brand-purple);
}

h1 span, h2 span {
    color: var(--gold-accent);
}

.eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--purple-light);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section {
    padding: 80px 0;
}

/* =========================
   TOP BAR & HEADER
========================= */

.top-bar {
    background: var(--purple-dark);
    color: var(--brand-cream);
    text-align: center;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 10px 15px;
    letter-spacing: 0.5px;
}

.header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(37, 21, 64, 0.05);
}

.navbar {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    width: 13rem;
}

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

.nav-links {
    display: none;
    gap: 28px;
}

.nav-links.show {
    display: flex;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    padding: 25px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--brand-purple);
    transition: color 0.3s;
}

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

.cart-icon-btn {
    background: var(--brand-cream);
    color: var(--brand-purple);
    border-radius: 50px;
    padding: 8px 18px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s, background 0.3s;
}

.cart-icon-btn:hover {
    transform: translateY(-2px);
    background: #f1daae;
}

.cart-badge {
    background: var(--brand-purple);
    color: var(--brand-cream);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.menu-btn {
    background: transparent;
    font-size: 1.8rem;
    color: var(--brand-purple);
    cursor: pointer;
}

/* =========================
   HERO
========================= */

.hero {
    min-height: 80vh;
    background: linear-gradient(135deg, rgba(37, 21, 64, 0.85), rgba(23, 13, 41, 0.85)), url("images/hero2.jpeg");
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--white);
}

.hero-text {
    max-width: 620px;
    background: rgba(37, 21, 64, 0.4);
    backdrop-filter: blur(12px);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(248, 232, 203, 0.2);
}

.hero .eyebrow {
    color: var(--brand-cream);
}

.hero h1 {
    color: var(--white);
}

.hero-description {
    margin: 20px 0 30px;
    color: #e2d9f0;
    font-size: 1.05rem;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* =========================
   BUTTONS
========================= */

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-purple {
    background: var(--brand-purple);
    color: var(--brand-cream);
}

.btn-purple:hover {
    background: var(--purple-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 21, 64, 0.2);
}

.btn-cream {
    background: var(--brand-cream);
    color: var(--brand-purple);
}

.btn-cream:hover {
    background: #f1daae;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--brand-cream);
    color: var(--brand-cream);
}

.btn-outline:hover {
    background: var(--brand-cream);
    color: var(--brand-purple);
}

/* =========================
   FEATURES
========================= */

.features {
    background: var(--white);
    padding: 40px 0;
    border-bottom: 1px solid var(--border-light);
}

.feature-grid {
    display: grid;
    gap: 20px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--brand-cream);
    color: var(--brand-purple);
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    font-weight: bold;
    flex-shrink: 0;
}

.feature h3 {
    font-size: 0.95rem;
    color: var(--brand-purple);
}

.feature p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* =========================
   PRODUCT SHOWCASE
========================= */

.products, .perfume-section {
    background: #fdfaf5;
}

.section-heading {
    text-align: center;
    margin-bottom: 50px;
}

.product-grid {
    display: grid;
    gap: 30px;
}

.single-product-grid {
    max-width: 450px;
    margin: 0 auto;
}

.product-card {
    background: var(--white);
    border-radius: 20px;
    border: 1px solid var(--border-light);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(37, 21, 64, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(37, 21, 64, 0.1);
}

.product-image {
    height: 300px;
    position: relative;
    background: var(--brand-cream);
}

.product-image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

/* Squarish Perfume Oil Image Styles */
.square-img-container {
    /* height: auto; */
    aspect-ratio: 1 / 1;
}

.square-img {
    object-fit: cover;
}

.size-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--brand-purple);
    color: var(--brand-cream);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
}

.product-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-info h3 {
    font-size: 1.4rem;
    color: var(--brand-purple);
    margin-bottom: 12px;
}

.product-info ul {
    list-style: none;
    margin-bottom: 25px;
    flex-grow: 1;
}

.product-info li {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-info li::before {
    content: "✦";
    color: var(--gold-accent);
}

.product-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border-light);
}

.product-price {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--brand-purple);
}

/* =========================
   SCENTS
========================= */

.scent-section {
    background: var(--brand-purple);
    color: var(--white);
}

.scent-section .eyebrow {
    color: var(--brand-cream);
}

.scent-section h2 {
    color: var(--white);
}

.scent-grid {
    display: grid;
    gap: 25px;
    margin-top: 40px;
}

.scent-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(248, 232, 203, 0.2);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.scent-card img {
    height: 220px;
    object-fit: cover;
}

.scent-content {
    padding: 22px;
}

.scent-content h3 {
    color: var(--brand-cream);
    margin-bottom: 10px;
}

.scent-content p {
    color: #d1c8e0;
    font-size: 0.9rem;
}

/* =========================
   REFILL SECTION
========================= */

.refill-section {
    background: #f4eee2;
}

.refill-card {
    background: var(--brand-purple);
    color: var(--white);
    padding: 50px 30px;
    border-radius: 20px;
    text-align: center;
}

.refill-content {
    max-width: 600px;
    margin: auto;
}

.refill-card h2 {
    color: var(--white);
    margin-bottom: 15px;
}

.refill-card .eyebrow {
    color: var(--brand-cream);
}

/* =========================
   CART DRAWER & MODALS
========================= */

.cart-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 420px;
    height: 100vh;
    background: var(--white);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: right 0.4s ease;
    display: flex;
    flex-direction: column;
}

.cart-drawer.open {
    right: 0;
}

.cart-header {
    padding: 20px 25px;
    background: var(--brand-purple);
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    color: var(--brand-cream);
}

.close-cart {
    background: none;
    color: var(--white);
    font-size: 1.8rem;
    cursor: pointer;
}

.cart-body {
    padding: 25px;
    flex-grow: 1;
    overflow-y: auto;
}

/* Cart Item Stepper UI */
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-light);
}

.cart-item-details h4 {
    font-size: 0.95rem;
    color: var(--brand-purple);
}

.cart-item-details p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.cart-qty-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f5f2f9;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid var(--border-light);
}

.qty-btn {
    background: transparent;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand-purple);
    cursor: pointer;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.qty-val {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--brand-purple);
}

.cart-footer {
    padding: 25px;
    border-top: 1px solid var(--border-light);
    background: #fdfaf5;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand-purple);
    margin-bottom: 20px;
}

.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(23, 13, 41, 0.6);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cart-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Modals */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(23, 13, 41, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1001;
}

.modal.show {
    display: flex;
}

.modal-box {
    width: 100%;
    max-width: 480px;
    background: var(--white);
    border-radius: 20px;
    padding: 35px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    max-height: 90vh;
    overflow-y: auto;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    background: transparent;
    font-size: 1.8rem;
    color: var(--brand-purple);
    cursor: pointer;
}

.scent-options {
    display: grid;
    gap: 12px;
    margin-top: 25px;
}

.scent-option {
    padding: 16px;
    background: #fdfaf5;
    border: 1.5px solid var(--border-light);
    border-radius: 10px;
    color: var(--brand-purple);
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
}

.scent-option:hover {
    background: var(--brand-cream);
    border-color: var(--gold-accent);
}

/* Form & Checkout Specifics */
.form-group {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand-purple);
}

.form-group input, .form-group select, .form-group textarea {
    padding: 12px;
    border: 1.5px solid var(--border-light);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    background: #fdfaf5;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--brand-purple);
}

.bank-details-box {
    background: #f3ecfb;
    border: 1px solid #d5c3ef;
    padding: 16px;
    border-radius: 10px;
    margin: 18px 0;
    font-size: 0.88rem;

    p { margin-bottom: 4px; color: var(--brand-purple); }
}

.account-copy-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #c0a8e2;
}

.btn-copy {
    background: var(--brand-purple);
    color: var(--brand-cream);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
}

.checkout-summary {
    border-top: 1px solid var(--border-light);
    padding-top: 12px;
    margin-top: 12px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.total-line {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand-purple);
}

/* =========================
   FOOTER
========================= */

.footer {
    background: var(--purple-dark);
    color: #c9bfd6;
    padding-top: 70px;
}

.footer-grid {
    display: grid;
    gap: 40px;
}

.footer-logo {
    color: var(--brand-cream);
    font-size: 1.6rem;
}

.footer h3 {
    color: var(--brand-cream);
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.footer p, .footer a {
    font-size: 0.88rem;
    margin-bottom: 10px;
    display: block;
}

.footer a:hover {
    color: var(--brand-cream);
}

.copyright {
    margin-top: 50px;
    border-top: 1px solid rgba(248, 232, 203, 0.1);
    text-align: center;
    padding: 25px;
    font-size: 0.85rem;
}

/* =========================
   RESPONSIVE LAYOUTS
========================= */

@media (min-width: 700px) {
    h1 { font-size: 3.2rem; }
    h2 { font-size: 2.4rem; }

    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .scent-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
    .menu-btn { display: none; }
    .nav-links { display: flex; position: static; background: transparent; padding: 0; box-shadow: none; flex-direction: row; }
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .scent-grid { grid-template-columns: repeat(3, 1fr); }
    .feature-grid { grid-template-columns: repeat(4, 1fr); }
    .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
}
