/* =====================================================
   SILOÉ COSMETICS - TIENDA STYLE
   Purple/Lavender Modern E-commerce Design
   ===================================================== */

/* ===== CSS VARIABLES ===== */
:root {
    /* Purple/Lavender Palette */
    --purple-50: #f5f3ff;
    --purple-100: #ede9fe;
    --purple-200: #ddd6fe;
    --purple-300: #c4b5fd;
    --purple-400: #a78bfa;
    --purple-500: #8b5cf6;
    --purple-600: #7c3aed;
    --purple-700: #6d28d9;
    --purple-800: #5b21b6;
    --purple-900: #4c1d95;

    /* Lavender Accent */
    --lavender-100: #e9d5ff;
    --lavender-200: #d8b4fe;
    --lavender-300: #c084fc;
    --lavender-400: #a855f7;

    /* Gold Accent */
    --gold-100: #fef3c7;
    --gold-200: #fde68a;
    --gold-300: #fcd34d;
    --gold-400: #fbbf24;
    --gold-500: #f59e0b;

    /* Neutrals */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;

    /* Typography */
    --font-display: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;

    /* Spacing */
    --section-padding: 80px 20px;
    --container-max: 1400px;
}

/* ===== STORE STYLES ===== */
.store-page {
    position: relative;
    z-index: 10;
}

/* Store Hero Section */
.store-hero {
    background: linear-gradient(135deg, var(--purple-600) 0%, var(--lavender-400) 100%);
    padding: 160px 20px 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.store-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-circle at 20% 20%,
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.store-hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.brand-subtitle {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-weight: 300;
}

.store-hero h1 {
    font-family: var(--font-display);
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.8s ease-out;
}

.store-tagline {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
    font-style: italic;
    margin-bottom: 30px;
    animation: fadeInUp 0.8s 0.2s ease-out backwards;
}

.store-description {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto 40px;
    animation: fadeInUp 0.8s 0.4s ease-out backwards;
}

/* Store Wrapper */
.store-wrapper {
    display: flex;
    gap: 30px;
    margin: -60px auto 60px;
    max-width: var(--container-max);
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.store-section {
    flex: 1;
    min-width: 0;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 10px 30px rgba(139, 92, 246, 0.1),
        0 1px 8px rgba(139, 92, 246, 0.05);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    transform: translateY(-12px);
    box-shadow:
        0 20px 50px rgba(139, 92, 246, 0.2),
        0 10px 20px rgba(139, 92, 246, 0.1);
}

/* Product Badge */
.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--purple-600), var(--lavender-400));
    color: var(--white);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
    z-index: 10;
}

/* Product Image */
.product-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--purple-50) 0%, var(--lavender-100) 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-image.featured {
    background: linear-gradient(135deg, var(--purple-100), var(--lavender-200));
}

/* Promo Card */
.product-card.promo {
    background: linear-gradient(135deg, var(--purple-600) 0%, var(--lavender-400) 100%);
    color: var(--white);
    justify-content: center;
    padding: 40px 30px;
    text-align: center;
    min-height: 400px;
}

.product-card.promo .product-image {
    background: transparent;
    height: auto;
    padding: 30px 0;
}

.promo-content h3 {
    font-family: var(--font-display);
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: var(--white);
}

.promo-details p {
    font-size: 1.05rem;
    margin: 15px 0;
    line-height: 1.6;
}

.promo-details strong {
    font-weight: 700;
}

/* Product Info */
.product-info {
    padding: 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card.promo .product-info {
    padding: 20px 30px;
}

.product-info h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--purple-700);
    margin-bottom: 12px;
    line-height: 1.3;
}

.product-card.promo .product-info h3 {
    color: var(--white);
}

.product-size {
    font-size: 0.9rem;
    color: var(--lavender-400);
    font-weight: 600;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-card.promo .product-size {
    color: rgba(255, 255, 255, 0.9);
}

.product-description {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 20px;
    flex: 1;
}

.product-card.promo .product-description {
    color: rgba(255, 255, 255, 0.95);
}

/* Product Footer */
.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--purple-50);
}

.product-card.promo .product-footer {
    border-top-color: rgba(255, 255, 255, 0.2);
}

.product-price {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--purple-600);
}

.product-card.promo .product-price {
    color: var(--white);
}

/* Add to Cart Button */
.add-to-cart-btn {
    background: linear-gradient(135deg, var(--purple-600), var(--lavender-400));
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.add-to-cart-btn:active {
    transform: translateY(0);
}

/* Cart Sidebar */
.cart-sidebar {
    width: 400px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.15);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
}

.cart-header {
    padding: 25px 30px;
    border-bottom: 2px solid var(--purple-50);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--purple-50), var(--lavender-100));
    border-radius: 20px 20px 0 0;
}

.cart-header h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--purple-700);
}

.close-cart {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--purple-400);
    transition: color 0.3s;
}

.close-cart:hover {
    color: var(--purple-600);
}

/* Cart Items */
.cart-items-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px 0;
    min-height: 150px;
}

.empty-cart {
    padding: 60px 30px;
    text-align: center;
    color: var(--gray-600);
}

.empty-cart p {
    margin: 10px 0;
    font-size: 1rem;
}

.small-text {
    font-size: 0.85rem !important;
    color: var(--gray-300) !important;
}

.cart-item {
    padding: 20px 30px;
    border-bottom: 1px solid var(--purple-50);
    display: flex;
    gap: 15px;
    align-items: center;
    transition: background 0.2s;

}

.cart-item:hover {
    background: var(--purple-50);
}

.cart-item-image {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--purple-100);
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.2);
}

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

.cart-item-details {
    flex: 1;
    min-width: 0;
}

.cart-item-details h4 {
    margin: 0 0 8px 0;
    font-size: 1rem;
    color: var(--purple-700);
    font-weight: 600;
}

.cart-item-details p {
    margin: 0 0 10px 0;
    font-size: 0.95rem;
    color: var(--lavender-400);
    font-weight: 700;
}

.cart-item-quantity {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 12px;
}

.qty-btn {
    background: var(--purple-100);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    color: var(--purple-600);
    font-weight: 600;
    transition: all 0.2s;
}

.qty-btn:hover {
    background: var(--purple-200);
    transform: scale(1.1);
}

.qty-display {
    width: 35px;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    color: var(--purple-700);
}

.remove-item {
    background: var(--white);
    border: 1px solid var(--purple-200);
    color: var(--purple-400);
    padding: 4px 10px;
    font-size: 0.8rem;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
    font-weight: 500;
}

.remove-item:hover {
    background: var(--purple-50);
    border-color: var(--purple-400);
    color: var(--purple-600);
}

/* Cart Footer */
.cart-footer {
    padding: 25px 30px;
    border-top: 2px solid var(--purple-50);
    background: var(--purple-50);
    border-radius: 0 0 20px 20px;
}

.cart-summary {
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 1rem;
    color: var(--gray-700);
}

.summary-row.discount {
    color: var(--gold-500);
    font-weight: 700;
}

.summary-row.total {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--purple-700);
    padding-top: 15px;
    border-top: 2px solid var(--purple-200);
    margin-top: 15px;
}

/* Checkout Button */
.checkout-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--purple-600), var(--lavender-400));
    color: var(--white);
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.checkout-btn:active {
    transform: translateY(0);
}

.checkout-btn:disabled {
    background: var(--gray-300);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.clear-cart-btn {
    width: 100%;
    background: var(--white);
    color: var(--purple-400);
    border: 2px solid var(--purple-200);
    padding: 12px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 12px;
    transition: all 0.2s;
}

.clear-cart-btn:hover {
    background: var(--purple-50);
    border-color: var(--purple-400);
    color: var(--purple-600);
}

/* Notification */
.notification {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: linear-gradient(135deg, var(--purple-700), var(--lavender-400));
    color: var(--white);
    padding: 18px 24px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
    animation: slideIn 0.3s ease;
    z-index: 1000;
    font-weight: 500;
}

@keyframes slideIn {
    from {
        transform: translateX(-400px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Shipping Info */
.shipping-info {
    background: linear-gradient(135deg, var(--purple-50), var(--lavender-100));
    padding: 60px 40px;
    border-radius: 20px;
    margin: 60px 0 40px;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.1);
}

.shipping-info h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--purple-700);
    text-align: center;
    margin-bottom: 40px;
}

.shipping-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.shipping-item {
    background: var(--white);
    padding: 30px;
    border-radius: 16px;
    border-left: 4px solid var(--purple-600);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.1);
    transition: all 0.3s;
}

.shipping-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.15);
}

.shipping-item h4 {
    margin: 0 0 12px 0;
    color: var(--purple-600);
    font-size: 1.15rem;
    font-weight: 700;
}

.shipping-item p {
    margin: 0;
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .store-wrapper {
        flex-direction: column;
    }

    .cart-sidebar {
        width: 100%;
        position: relative;
        top: 0;
        max-height: none;
        margin-top: 40px;
    }

    .store-hero h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .store-hero {
        padding: 120px 20px 80px;
    }

    .store-hero h1 {
        font-size: 2.5rem;
    }

    .store-tagline {
        font-size: 1.3rem;
    }

    .store-description {
        font-size: 1rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 20px;
    }

    .close-cart {
        display: block;
    }

    .shipping-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-image {
        height: 240px;
    }

    .store-hero h1 {
        font-size: 2rem;
    }

    .cart-item {
        padding: 15px 20px;
    }

    .cart-sidebar {
        width: 100%;
    }
}

/* Gold Particles Animation */
@keyframes float-gold {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.6;
    }

    25% {
        transform: translate(50px, -50px) rotate(90deg);
        opacity: 1;
    }

    50% {
        transform: translate(-30px, -100px) rotate(180deg);
        opacity: 0.8;
    }

    75% {
        transform: translate(-60px, -50px) rotate(270deg);
        opacity: 1;
    }
}

.gold-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--gold-300);
    border-radius: 50%;
    opacity: 0.6;
    animation: float-gold 15s infinite;
    box-shadow: 0 0 10px var(--gold-400);
}