/* ======== VARIABLES ======== */
:root {
    --clr-bg: #221c2e; /* Dark purple/slate from mockup */
    --clr-text: #ffffff;
    --clr-orange: #fb923c; /* "apapachan" color */
    --clr-border: #e3d5b8; /* Beige thin border */
    
    --clr-btn-red: #dc2626;
    --clr-btn-green: #16a34a;
    
    --font-main: 'Montserrat', sans-serif;
    --font-script: 'Great Vibes', cursive;
}

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

html {
    background-color: var(--clr-bg);
}

body {
    font-family: var(--font-main);
    background-color: var(--clr-bg);
    color: var(--clr-text);
    overflow-x: hidden;
    padding-bottom: 100px;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 0 50px rgba(0,0,0,0.5); /* Optional: gives a nice edge on desktop */
}

.hidden {
    display: none !important;
}

/* ======== HERO SECTION ======== */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 20px 30px;
    position: relative;
}

.logo-container {
    width: 250px;
    height: 250px;
    margin-bottom: 20px;
    position: relative;
    /* Simulate powder explosion with a glowing backdrop */
    border-radius: 50%;
    box-shadow: 0 0 50px 20px rgba(255, 255, 255, 0.1);
}

.main-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    animation: floatLogo 6s ease-in-out infinite;
}

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

.slogan-container {
    text-align: center;
    line-height: 1;
    margin-bottom: 30px;
    position: relative;
}

.slogan-white {
    font-size: 3rem;
    font-weight: 400;
    letter-spacing: -1px;
    position: relative;
}

.slogan-small {
    font-size: 1.2rem;
    position: absolute;
    bottom: -10px;
    right: 30%;
}

.slogan-orange {
    font-family: var(--font-script);
    font-size: 4.5rem;
    color: var(--clr-orange);
    font-weight: 400;
    margin-top: -15px;
    position: relative;
    z-index: 2;
}

.decorative-leaf {
    color: #4ade80;
    position: absolute;
    bottom: 20px;
    right: -20px;
    font-size: 1.5rem;
    transform: rotate(30deg);
}

.social-container {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: white;
    color: var(--clr-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    text-decoration: none;
    transition: transform 0.2s;
}

.social-icon:hover {
    transform: scale(1.1);
}

/* ======== CATALOG SECTION ======== */
.catalog-section {
    padding: 10px 5%;
    margin-bottom: 20px;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 30px;
    color: var(--clr-orange);
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.text-center {
    text-align: center;
}

/* PRODUCT CARDS */
.product-card {
    position: relative;
    border: 2px solid var(--clr-border);
    border-radius: 40px;
    background-color: #272135; /* Lighter than bg for contrast */
    min-height: 170px;
    margin-bottom: 40px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.click-zoom {
    animation: clickZoom 0.3s ease;
}

@keyframes clickZoom {
    0% { transform: scale(1); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

/* Modifiers for Image Position */
.product-card.img-left {
    padding-left: 38%;
}

.product-card.img-right {
    padding-right: 38%;
}

/* Absolute positioned images bursting out of cards */
.card-img {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45%; /* Slightly smaller to give text room */
    max-width: 200px;
    border-radius: 50%;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    border: 3px solid var(--clr-bg); /* Nice frame for non-transparent images */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.product-card:hover .card-img {
    transform: translateY(-50%) scale(1.08);
}

.img-left .card-img {
    left: -10%;
}

.img-right .card-img {
    right: -10%;
}

/* Card Content Typography */
.card-content h4 {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 5px;
}

.subtitle {
    font-size: 0.9rem;
    color: #cbd5e1;
    margin-bottom: 10px;
}

.description {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 15px;
    line-height: 1.4;
}

/* Special header for Producto del Mes */
.card-header-icon {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.mother-icon {
    color: #f43f5e;
    font-size: 2rem;
}

/* Stars */
.stars {
    color: #facc15;
    margin-top: 10px;
    text-align: right;
    font-size: 1.2rem;
}

/* BUTTONS */
.buttons-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.buttons-row.right-align {
    justify-content: flex-end;
}

/* Stack buttons on very small screens to avoid weird breaks */
@media (max-width: 380px) {
    .buttons-row { flex-direction: column; }
    .buttons-row.right-align { align-items: flex-end; }
}

.btn {
    border: 2px solid white;
    border-radius: 20px;
    padding: 6px 12px;
    font-family: var(--font-main);
    font-weight: 800;
    font-size: 0.7rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    color: white;
    transition: filter 0.2s;
}

.btn:hover {
    filter: brightness(1.1);
}

.btn-red {
    background-color: var(--clr-btn-red);
}

.btn-green {
    background-color: var(--clr-btn-green);
}

/* Ingredients List */
.ingredients-list {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.ingredients-list ul {
    list-style: none;
    font-size: 0.85rem;
    color: #cbd5e1;
}

.ingredients-list li {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ingredients-list li::before {
    content: '•';
    color: var(--clr-orange);
    font-size: 1.2rem;
}

/* ======== SPECIAL PRODUCT ENTHUSIASM ======== */
.special-product-card {
    border-color: #f43f5e;
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.15) 0%, rgba(251, 146, 60, 0.1) 100%);
    box-shadow: 0 0 20px rgba(244, 63, 94, 0.2);
    animation: pulseGlow 3s infinite alternate;
}

@keyframes pulseGlow {
    from { box-shadow: 0 0 15px rgba(244, 63, 94, 0.2); }
    to { box-shadow: 0 0 35px rgba(251, 146, 60, 0.5); }
}

.special-product-card .card-img {
    border-color: #f43f5e;
}

.special-product-card .mother-icon {
    animation: heartBeat 1.5s infinite;
    display: inline-block;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.3); }
    28% { transform: scale(1); }
    42% { transform: scale(1.3); }
    70% { transform: scale(1); }
}

/* ======== VIP FIXED BOTTOM BUTTON ======== */
.vip-fixed-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    z-index: 50;
}

.btn-vip {
    width: 100%;
    background: linear-gradient(90deg, #d4af37, #f3e5ab);
    color: #000;
    border: none;
    padding: 15px;
    border-radius: 30px;
    font-weight: 800;
    font-family: var(--font-main);
    font-size: 1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    cursor: pointer;
}

/* ======== VIP OVERLAY ======== */
.vip-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(34, 28, 46, 0.95);
    z-index: 100;
    overflow-y: auto;
    padding: 20px;
    display: none;
    flex-direction: column;
    align-items: center;
}

.vip-overlay.active {
    display: flex;
}

.vip-content {
    background: #1a1625;
    border: 1px solid var(--clr-border);
    border-radius: 30px;
    padding: 30px 20px;
    width: 100%;
    max-width: 500px;
    position: relative;
    margin-top: 50px;
    margin-bottom: 50px;
}

.close-vip {
    position: absolute;
    top: 15px; right: 20px;
    background: none; border: none;
    color: white; font-size: 1.5rem; cursor: pointer;
}

.vip-title {
    color: #d4af37;
    text-align: center;
    font-size: 2rem;
    margin-bottom: 5px;
}

.vip-subtitle {
    text-align: center;
    font-size: 0.9rem;
    color: #cbd5e1;
    margin-bottom: 30px;
}

.tier-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
}

.tier-card h3 { font-size: 1.2rem; margin-bottom: 5px; }
.tier-main-benefit { color: #d4af37; font-weight: bold; margin-bottom: 10px; }
.tier-extras { list-style: none; font-size: 0.85rem; color: #cbd5e1; }
.tier-extras li { margin-bottom: 5px; }
.tier-extras i { color: #4ade80; margin-right: 8px; }

/* MEDIA QUERIES FOR SMALLER PHONES */
@media (max-width: 400px) {
    .product-card.img-left { padding-left: 50%; }
    .product-card.img-right { padding-right: 50%; }
    .card-img { width: 65%; }
    .btn { font-size: 0.6rem; padding: 5px 8px; }
    .card-content h4 { font-size: 1.2rem; }
}
