/* =========================================================
   Theme: Cajas de Regalo Santiago (Strawberry Milk)
   - Se carga DESPUÉS de Bootstrap y main.css
========================================================= */

/* ---------- 1) Variables base ---------- */
:root {
    /* Palette basada en el logo */
    --milk-bg: #fff7fb;
    /* fondo crema rosado */
    --milk-bg-2: #ffeaf4;
    /* rosado un poco más intenso */
    --strawberry: #ef94b6;
    /* rosado principal */
    --strawberry-2: #fbAACa;
    /* rosado claro */
    --sky: #98d6e2;
    /* celeste del regalo */
    --sky-2: #74b9cb;
    /* celeste oscuro */
    --ink: #1f2330;
    /* texto */
    --muted: rgba(31, 35, 48, .68);

    --surface: #ffffff;
    /* tarjetas */
    --border: rgba(31, 35, 48, .10);
    --shadow: 0 10px 30px rgba(31, 35, 48, .08);

    --radius-xl: 22px;
    --radius-lg: 18px;
    --radius-md: 14px;

    --container-max: 1100px;
}

/* ---------- 2) Base ---------- */
body {
    background: var(--milk-bg);
    color: var(--ink);
}

/* Tipografía más “dulce” (sin obligarte a Google Fonts) */
h1,
h2,
h3,
h4 {
    letter-spacing: -0.02em;
}

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

/* Bootstrap: enlaces */
a {
    color: inherit;
}

a:hover {
    color: var(--ink);
}

/* ---------- 3) Fondo con ondas sinuosas (strawberry milk) ---------- */
/* Usamos pseudo-elementos con gradientes curvos sutiles */
body::before,
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -2;
}

/* Capa 1: manchas suaves */
body::before {
    background:
        radial-gradient(1200px 600px at -10% 10%, rgba(239, 148, 182, .22), transparent 60%),
        radial-gradient(900px 520px at 110% 12%, rgba(152, 214, 226, .18), transparent 55%),
        radial-gradient(700px 520px at 70% 105%, rgba(239, 148, 182, .18), transparent 60%),
        radial-gradient(900px 520px at 15% 95%, rgba(152, 214, 226, .12), transparent 60%);
}

/* Capa 2: “líneas sinuosas” como leche */
body::after {
    opacity: .55;
    background:
        /* ondas horizontales suaves */
        repeating-radial-gradient(1200px 220px at 50% 0%,
            rgba(255, 255, 255, .8) 0 6px,
            rgba(255, 255, 255, 0) 6px 26px),
        repeating-radial-gradient(1000px 210px at 35% 100%,
            rgba(255, 255, 255, .7) 0 6px,
            rgba(255, 255, 255, 0) 6px 28px);
    mix-blend-mode: soft-light;
}

/* ---------- 4) Header (tu layout con logo centrado) ---------- */
.site-header {
    background: rgba(255, 255, 255, .78) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(31, 35, 48, .08) !important;
}

/* Logo: un poco más protagonista */
.navbar-brand img,
.custom-logo {
    max-height: 56px;
    width: auto;
}

/* Botón menú (Bootstrap) */
.site-header .btn-outline-dark {
    border-color: rgba(31, 35, 48, .18) !important;
    color: var(--ink) !important;
    background: rgba(255, 255, 255, .7) !important;
    border-radius: 999px !important;
}

.site-header .btn-outline-dark:hover {
    background: rgba(239, 148, 182, .12) !important;
}

/* Iconos derecha (account/cart) */
.site-header a[aria-label="My account"],
.site-header a[aria-label="Cart"] {
    padding: 8px 10px;
    border-radius: 999px;
}

.site-header a[aria-label="My account"]:hover,
.site-header a[aria-label="Cart"]:hover {
    background: rgba(239, 148, 182, .10);
}

/* Badge carrito */
.site-header .badge.bg-dark {
    background: var(--strawberry) !important;
    color: white !important;
}

/* ---------- 5) Offcanvas menú ---------- */
.offcanvas {
    border-right: 1px solid rgba(31, 35, 48, .08) !important;
    background:
        radial-gradient(900px 500px at 20% 10%, rgba(239, 148, 182, .18), transparent 60%),
        radial-gradient(900px 500px at 80% 20%, rgba(152, 214, 226, .16), transparent 60%),
        #fff;
}

.offcanvas .offcanvas-title {
    font-weight: 800;
}

.offcanvas .nav a {
    border-radius: 14px;
    padding: 10px 12px;
    border-radius: 14px;
    padding: 10px 12px;
    text-decoration: none;
    font-size: 18px;
    margin-bottom: 8px;
    display: block;
}

.offcanvas .nav a:hover {
    background: rgba(239, 148, 182, .10);
}

/* ---------- 6) Botones (compatibles con tu .btn custom y con Bootstrap) ---------- */
.btn {
    border-radius: 999px !important;
}

/* Si usas tu .btn (custom) de main.css */
.btn:not(.btn-link):not(.btn-close) {
    box-shadow: 0 8px 18px rgba(239, 148, 182, .18);
}

/* Botón primario Bootstrap */
.btn-primary {
    background: linear-gradient(135deg, var(--strawberry), var(--strawberry-2)) !important;
    border: 0 !important;
}

.btn-primary:hover {
    filter: brightness(.98);
}

/* Botón “ghost” */
.btn--ghost,
.btn-outline-dark {
    background: rgba(255, 255, 255, .78) !important;
}

/* ---------- 7) Cards / superficies ---------- */
.card,
.feature-card,
.hero,
.cta {
    background: rgba(255, 255, 255, .86) !important;
    border: 1px solid rgba(31, 35, 48, .08) !important;
    border-radius: var(--radius-xl) !important;
    box-shadow: var(--shadow);
}

/* Hero un poco más “cremoso” */
.section-hero .hero {
    position: relative;
    overflow: hidden;
}

.section-hero .hero::after {
    content: "";
    position: absolute;
    inset: -40px -60px auto -60px;
    height: 220px;
    background:
        radial-gradient(500px 220px at 20% 60%, rgba(239, 148, 182, .22), transparent 60%),
        radial-gradient(500px 220px at 70% 40%, rgba(152, 214, 226, .18), transparent 60%);
    pointer-events: none;
}

/* ---------- 8) Secciones y títulos ---------- */
.section {
    padding: 26px 0;
}

.section__header--row .link {
    color: var(--strawberry) !important;
    text-decoration: none;
    font-weight: 700;
}

.section__header--row .link:hover {
    text-decoration: underline;
}

/* ---------- 9) WooCommerce (básico y bonito) ---------- */
.woocommerce ul.products li.product {
    background: rgba(255, 255, 255, .86);
    border: 1px solid rgba(31, 35, 48, .08);
    border-radius: var(--radius-xl);
    padding: 14px;
    box-shadow: var(--shadow);
}

.woocommerce ul.products li.product .button {
    border-radius: 999px !important;
    background: linear-gradient(135deg, var(--strawberry), var(--strawberry-2)) !important;
    border: 0 !important;
    color: #fff !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    color: var(--ink);
}

.woocommerce .price {
    color: var(--ink);
}

/* ---------- 10) Responsive refinements ---------- */
@media (min-width: 768px) {

    .navbar-brand img,
    .custom-logo {
        max-height: 150px;
    }

    .section {
        padding: 34px 0;
    }
}

/* =========================================================
   Hero basado en referencia (Squarespace style)
========================================================= */
.hero-milk {
    background: linear-gradient(180deg, rgba(239, 148, 182, .18), rgba(255, 247, 251, .65));
    border-bottom: 1px solid rgba(31, 35, 48, .06);
}

.hero-milk__content {
    max-width: 520px;
}

.hero-milk__title {
    font-size: clamp(2.1rem, 3.6vw, 3.2rem);
    line-height: 1.05;
    margin: 0 0 14px;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.hero-milk__light {
    font-weight: 400;
    color: rgba(31, 35, 48, .45);
}

.hero-milk__subtitle {
    margin: 0 0 18px;
    color: rgba(31, 35, 48, .62);
    font-size: 1.05rem;
    max-width: 46ch;
}

.hero-milk__actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-milk__microcopy {
    color: rgba(31, 35, 48, .55);
    font-size: .95rem;
}

/* CTA look */
.hero-milk .btn-primary {
    padding: 12px 18px;
    border-radius: 999px !important;
    box-shadow: 0 10px 26px rgba(239, 148, 182, .22);
}

/* ---------------- Scene (left composition) ---------------- */
.hero-milk__scene {
    position: relative;
    width: min(520px, 100%);
    aspect-ratio: 4 / 3;
    margin-inline: auto;
}

/* Soft ground shadow */
.milk-shadow {
    position: absolute;
    left: 10%;
    right: 10%;
    bottom: 8%;
    height: 28%;
    background: radial-gradient(closest-side, rgba(31, 35, 48, .14), transparent 70%);
    filter: blur(10px);
    opacity: .55;
}

/* “Props” */
.milk-prop {
    position: absolute;
    border-radius: 999px;
    background: rgba(255, 255, 255, .65);
    border: 1px solid rgba(31, 35, 48, .07);
    box-shadow: 0 18px 34px rgba(31, 35, 48, .10);
}

/* Arch / cloth */
.milk-prop--arch {
    width: 52%;
    height: 46%;
    left: 34%;
    top: 24%;
    border-radius: 140px;
    background:
        radial-gradient(200px 120px at 30% 30%, rgba(239, 148, 182, .22), transparent 60%),
        radial-gradient(220px 140px at 80% 60%, rgba(152, 214, 226, .16), transparent 60%),
        rgba(255, 255, 255, .72);
    transform: rotate(-6deg);
}

/* Plate */
.milk-prop--plate {
    width: 44%;
    height: 28%;
    left: 30%;
    top: 52%;
    border-radius: 999px;
    background:
        radial-gradient(closest-side, rgba(255, 255, 255, .95), rgba(255, 255, 255, .55));
    transform: rotate(6deg);
}

/* Vase */
.milk-prop--vase {
    width: 14%;
    height: 36%;
    left: 12%;
    top: 40%;
    border-radius: 26px;
    background:
        radial-gradient(60px 90px at 50% 25%, rgba(239, 148, 182, .18), transparent 60%),
        rgba(255, 255, 255, .72);
}

/* “Main tilted card / gift” */
.milk-card {
    position: absolute;
    width: 42%;
    height: 56%;
    left: 18%;
    top: 10%;
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .72));
    border: 1px solid rgba(31, 35, 48, .08);
    box-shadow: 0 24px 50px rgba(31, 35, 48, .18);
    transform: rotate(-18deg);
    overflow: hidden;
}

/* Ribbon-ish badge */
.milk-card__badge {
    position: absolute;
    top: 8%;
    left: 8%;
    right: 8%;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(239, 148, 182, .55), rgba(152, 214, 226, .45));
    opacity: .8;
}

/* Fake text lines */
.milk-card__lines {
    position: absolute;
    left: 10%;
    right: 10%;
    top: 24%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.milk-card__lines span {
    height: 10px;
    border-radius: 999px;
    background: rgba(31, 35, 48, .08);
}

.milk-card__lines span:nth-child(1) {
    width: 70%;
}

.milk-card__lines span:nth-child(2) {
    width: 86%;
}

.milk-card__lines span:nth-child(3) {
    width: 58%;
}

.milk-card__lines span:nth-child(4) {
    width: 78%;
}

/* Responsive: separa más en desktop */
@media (min-width: 992px) {
    .hero-milk__scene {
        transform: translateX(-10px);
    }
}


/* =========================================================
   Hero basado en referencia (Squarespace style)
========================================================= */
.hero-milk {
    background: linear-gradient(180deg, rgba(239, 148, 182, .18), rgba(255, 247, 251, .65));
    border-bottom: 1px solid rgba(31, 35, 48, .06);
    position: relative;
}

.hero-milk img {
    width: 100%;
    height: auto;
}

.hero-milk__content {
    max-width: 520px;
}

.hero-milk__title {
    font-size: clamp(2.1rem, 3.6vw, 3.2rem);
    line-height: 1.05;
    margin: 0 0 14px;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.hero-milk__light {
    font-weight: 400;
    color: rgba(31, 35, 48, .45);
}

.hero-milk__subtitle {
    margin: 0 0 18px;
    color: rgba(31, 35, 48, .62);
    font-size: 1.05rem;
    max-width: 46ch;
}

.hero-milk__actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-milk__microcopy {
    color: rgba(31, 35, 48, .55);
    font-size: .95rem;
}

/* CTA look */
.hero-milk .btn-primary {
    padding: 12px 18px;
    border-radius: 999px !important;
    box-shadow: 0 10px 26px rgba(239, 148, 182, .22);
}

/* ---------------- Scene (left composition) ---------------- */
.hero-milk__scene {
    position: relative;
    width: min(520px, 100%);
    aspect-ratio: 4 / 3;
    margin-inline: auto;
}

/* Soft ground shadow */
.milk-shadow {
    position: absolute;
    left: 10%;
    right: 10%;
    bottom: 8%;
    height: 28%;
    background: radial-gradient(closest-side, rgba(31, 35, 48, .14), transparent 70%);
    filter: blur(10px);
    opacity: .55;
}

/* “Props” */
.milk-prop {
    position: absolute;
    border-radius: 999px;
    background: rgba(255, 255, 255, .65);
    border: 1px solid rgba(31, 35, 48, .07);
    box-shadow: 0 18px 34px rgba(31, 35, 48, .10);
}

/* Arch / cloth */
.milk-prop--arch {
    width: 52%;
    height: 46%;
    left: 34%;
    top: 24%;
    border-radius: 140px;
    background:
        radial-gradient(200px 120px at 30% 30%, rgba(239, 148, 182, .22), transparent 60%),
        radial-gradient(220px 140px at 80% 60%, rgba(152, 214, 226, .16), transparent 60%),
        rgba(255, 255, 255, .72);
    transform: rotate(-6deg);
}

/* Plate */
.milk-prop--plate {
    width: 44%;
    height: 28%;
    left: 30%;
    top: 52%;
    border-radius: 999px;
    background:
        radial-gradient(closest-side, rgba(255, 255, 255, .95), rgba(255, 255, 255, .55));
    transform: rotate(6deg);
}

/* Vase */
.milk-prop--vase {
    width: 14%;
    height: 36%;
    left: 12%;
    top: 40%;
    border-radius: 26px;
    background:
        radial-gradient(60px 90px at 50% 25%, rgba(239, 148, 182, .18), transparent 60%),
        rgba(255, 255, 255, .72);
}

/* “Main tilted card / gift” */
.milk-card {
    position: absolute;
    width: 42%;
    height: 56%;
    left: 18%;
    top: 10%;
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .72));
    border: 1px solid rgba(31, 35, 48, .08);
    box-shadow: 0 24px 50px rgba(31, 35, 48, .18);
    transform: rotate(-18deg);
    overflow: hidden;
}

/* Ribbon-ish badge */
.milk-card__badge {
    position: absolute;
    top: 8%;
    left: 8%;
    right: 8%;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(239, 148, 182, .55), rgba(152, 214, 226, .45));
    opacity: .8;
}

/* Fake text lines */
.milk-card__lines {
    position: absolute;
    left: 10%;
    right: 10%;
    top: 24%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.milk-card__lines span {
    height: 10px;
    border-radius: 999px;
    background: rgba(31, 35, 48, .08);
}

.milk-card__lines span:nth-child(1) {
    width: 70%;
}

.milk-card__lines span:nth-child(2) {
    width: 86%;
}

.milk-card__lines span:nth-child(3) {
    width: 58%;
}

.milk-card__lines span:nth-child(4) {
    width: 78%;
}

/* Responsive: separa más en desktop */
@media (min-width: 992px) {
    .hero-milk__scene {
        transform: translateX(-10px);
    }
}

#addToCard {
    text-align: center;
    border-radius: 1.5rem;
    border: none;
    border-width: 0.5rem;
    background-color: #ff7707f1;
    box-shadow: 1px 3px #ccc;
}

.btn-success:hover {
    color: #fff;
    background-color: #ffa807f1;
    border-color: #ff7707f1;
}

i {
    background-color: #ff7707f1;
    width: 1.5rem;
    height: 1.5rem;
    margin-top: 0.5rem;
}

button.carousel-control-prev,
button.carousel-control-next {
    width: 2rem;
    height: 2rem;
    background-color: #eb9db0;
    margin-top: 14rem;

}

.card {
    margin: 0 auto;
    box-shadow: 2px 2px 10px 0px #ccc;
}

.image-box {
    position: relative;
    height: 420px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

/* overlay suave */
.image-box::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.6),
            rgba(0, 0, 0, 0));
    z-index: 1;
}

.image-box__content {
    position: relative;
    z-index: 2;
    padding: 24px;
    color: #fff;
}

.image-box__title {
    margin-bottom: 12px;
    font-size: 1.4rem;
    font-weight: 600;
}


.cat-card {
    position: relative;
    height: var(--cat-h, 380px);
    border-radius: 12px;
    overflow: hidden;
    background-image: var(--cat-bg);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
}

.cat-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .65), rgba(0, 0, 0, 0));
}

.cat-card__content {
    position: relative;
    padding: 24px;
    color: #fff;
    width: 100%;
}

.cat-card__title {
    margin: 0 0 10px 0;
    font-size: 1.25rem;
    font-weight: 600;
}