/* =============================================================
 * File: /styles/custom.css
 * Theme: Pretty Preppy Co. — Warm Boutique
 * Palette: Dusty Rose · Sage Green · Terracotta · Antique Gold · Warm Cream
 * ============================================================= */

:root {
    --primary:      #e6219a;  /* Logo Pink   — main CTA, headings, links     */
    --primary-dark: #c01680;  /* Deeper Pink — hover states                  */
    --secondary:    #38c5b8;  /* Aqua/Teal   — accents, labels, borders      */
    --aqua-soft:    #a5e8e0;  /* Logo Mint   — soft fills, shadows           */
    --terracotta:   #f25ab0;  /* Bright Pink — badges, highlights            */
    --gold:         #7ddbd1;  /* Aqua accent — navbar border, dividers       */
    --cream:        #ffffff;  /* White       — page background (logo bg)      */
    --card-bg:      #fef6fb;  /* Faint pink-white for cards                  */
    --text-dark:    #2b2b33;  /* Near-black  — body text                     */
    --text-muted:   #8a7a86;  /* Muted mauve — secondary text                */
    --border-soft:  #f3d6e9;  /* Soft pink border                            */

    --font-serif:   'Playfair Display', serif;
    --font-sans:    'Lato', sans-serif;
}

/* ---------------------------------------------------------------
   BASE
--------------------------------------------------------------- */
body {
    font-family: var(--font-sans);
    background-color: var(--cream);
    color: var(--text-dark);
}

/* ---------------------------------------------------------------
   TYPOGRAPHY
--------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6, .serif-font {
    font-family: var(--font-serif);
    color: var(--primary);
}

.letter-spacing-1 { letter-spacing: 1px; }

.text-muted {
    color: var(--text-muted) !important;
}

/* ---------------------------------------------------------------
   NAVIGATION
--------------------------------------------------------------- */
.navbar {
    background-color: #fff !important;
    border-bottom: 3px solid var(--secondary);
}

.navbar-brand {
    font-family: var(--font-serif);
    color: var(--primary) !important;
    letter-spacing: 1px;
    font-size: 1.3rem;
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
    /* Never let the flex row squeeze the brand: without this the logo gets
       horizontally compressed once the nav items need the space. */
    flex-shrink: 0;
    max-width: 60vw;
}

.navbar-brand img {
    /* display:block kills the inline-baseline gap that makes the logo look
       vertically cropped inside the brand's padding box. object-fit:contain
       means that if anything ever does constrain the box, the logo letterboxes
       instead of being cropped or stretched. */
    display: block;
    width: auto;
    height: auto;
    max-height: 56px;
    max-width: 100%;
    object-fit: contain;
}

@media (max-width: 575.98px) {
    .navbar-brand img { max-height: 42px; }
}

.nav-link {
    color: var(--text-dark) !important;
    transition: color 0.25s ease;
}

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

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

/* ---------------------------------------------------------------
   BUTTONS
--------------------------------------------------------------- */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    border-radius: 50px;
    font-weight: 600;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.btn-secondary {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: #fff;
    border-radius: 50px;
}

.btn-secondary:hover {
    background-color: #2aa89d;
    border-color: #2aa89d;
    color: #fff;
}

/* ---------------------------------------------------------------
   BADGES
--------------------------------------------------------------- */
.badge.bg-primary {
    background-color: var(--terracotta) !important;
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ---------------------------------------------------------------
   HERO SECTION
--------------------------------------------------------------- */
.hero-section {
    background: linear-gradient(135deg, #fff0f8 0%, #e9fbf8 100%) !important;
    border: 1px solid var(--border-soft) !important;
    border-radius: 12px;
}

.hero-img {
    max-height: 400px;
    object-fit: contain;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 6px 16px rgba(230, 33, 154, 0.15));
}

.hero-section:hover .hero-img {
    transform: scale(1.02);
}

/* ---------------------------------------------------------------
   SECTION HEADINGS & DIVIDERS
--------------------------------------------------------------- */
.border-bottom {
    border-color: var(--border-soft) !important;
}

.d-flex.justify-content-between .serif-font,
.d-flex.justify-content-between h3 {
    color: var(--primary);
}

.d-flex.justify-content-between a.text-secondary {
    color: var(--primary) !important;
    font-weight: 700;
}
/* ---------------------------------------------------------------
   CARDS (general)
--------------------------------------------------------------- */
.card {
    background-color: var(--card-bg);
    border-radius: 10px;
}

/* ---------------------------------------------------------------
   COLLECTION CARDS
--------------------------------------------------------------- */
.collection-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.collection-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2) !important;
}

/* ---------------------------------------------------------------
   PRODUCT CARDS
--------------------------------------------------------------- */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(230, 33, 154, 0.2) !important;
}

.card-img-wrapper {
    background-color: #fff5fb !important;
}

.card-img-wrapper img {
    height: 200px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card:hover .card-img-wrapper img {
    transform: scale(1.06);
}

/* Vendor / brand label above product name */
.product-card .text-muted.text-uppercase {
    color: var(--primary) !important;
    opacity: 1;
    font-weight: 600;
}

/* Product price */
.product-card .text-primary {
    color: var(--primary) !important;
}

/* ---------------------------------------------------------------
   TEXT UTILITIES
--------------------------------------------------------------- */
.text-primary {
    color: var(--primary) !important;
}

.text-secondary {
    color: var(--primary) !important;
}

/* ---------------------------------------------------------------
   FOOTER
--------------------------------------------------------------- */
footer, .footer {
    background-color: var(--card-bg);
    color: var(--text-dark);
    border-top: 3px solid var(--gold);
}

footer a, .footer a {
    color: var(--primary);
    text-decoration: none;
}

footer a:hover, .footer a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ---------------------------------------------------------------
   UTILS
--------------------------------------------------------------- */
.hover-dark:hover {
    color: #000 !important;
    text-decoration: underline !important;
}

/* ---------------------------------------------------------------
   DARK MODE OVERRIDES
--------------------------------------------------------------- */
[data-bs-theme="dark"] {
    --primary:    #f25ab0;
    --secondary:  #5fd6cb;
    --cream:      #181820;
    --card-bg:    #242430;
    --text-dark:  #f0e8ee;
    --text-muted: #b094a6;
}

[data-bs-theme="dark"] .bg-white,
[data-bs-theme="dark"] .card-img-wrapper {
    background-color: #2a2424 !important;
}

[data-bs-theme="dark"] .navbar-brand {
    color: #fff !important;
}

[data-bs-theme="dark"] .hero-section {
    background: linear-gradient(135deg, #241823 0%, #182826 100%) !important;
    border-color: #45304a !important;
}

/* ---------------------------------------------------------------
   CATEGORY PAGE BANNER
--------------------------------------------------------------- */
.category-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 60%, var(--terracotta) 100%);
    border-bottom: 3px solid var(--gold);
}