/* ===== Ellen's Creation - Main Stylesheet ===== */

/* Color Variables */
:root {
    --primary-purple: #8B4789;
    --primary-pink: #E91E63;
    --primary-gold: #FFD700;
    --light-purple: #D8BFD8;
    --light-pink: #FFB6C1;
    --dark-purple: #4B0082;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #F5F5F5;
    --border-color: #E0E0E0;
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: var(--primary-purple);
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

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

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

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

.bg-purple {
    background-color: var(--primary-purple) !important;
}

.bg-pink {
    background-color: var(--primary-pink) !important;
}

.bg-gradient-purple-pink {
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-pink));
}

/* Top Bar */
.top-bar {
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-pink));
    color: white;
    padding: 8px 0;
    font-size: 0.9rem;
}

.top-bar a {
    color: white;
    text-decoration: none;
}

.top-bar a:hover {
    color: var(--primary-gold);
}

.top-bar .btn-link {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
}

.top-bar .btn-link:hover {
    color: var(--primary-gold);
}

/* Navigation */
.navbar {
    padding: 1rem 0;
}

.navbar-brand {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-purple);
    line-height: 1;
}

.brand-motto {
    font-size: 0.7rem;
    color: var(--primary-gold);
    font-weight: 600;
    letter-spacing: 1px;
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-purple), var(--primary-pink));
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 80%;
}

.cart-link {
    color: var(--primary-purple) !important;
    font-weight: 600;
}

.cart-count {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-purple));
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-pink));
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 71, 137, 0.3);
}

.btn-secondary {
    background: var(--primary-gold);
    color: var(--text-dark);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
}

.btn-secondary:hover {
    background: #FFC000;
    color: var(--text-dark);
}

.btn-outline-primary {
    border: 2px solid var(--primary-purple);
    color: var(--primary-purple);
    background: transparent;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
}

.btn-outline-primary:hover {
    background: var(--primary-purple);
    color: white;
}

/* Cards */
.card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.card-img-top {
    height: 250px;
    object-fit: cover;
}

.product-card {
    position: relative;
}

.product-card .badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
}

.product-card .card-body {
    padding: 1.5rem;
}

.product-card .product-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.product-card .product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-pink);
}

.product-card .compare-price {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 1rem;
    margin-right: 0.5rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(139, 71, 137, 0.9), rgba(233, 30, 99, 0.9)),
                url('/images/site/hero-bg.jpg') center/cover;
    color: white;
    padding: 8rem 0 6rem;
    text-align: center;
}

.hero-section h1 {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 1rem;
}

.hero-section .motto {
    font-size: 1.5rem;
    color: var(--primary-gold);
    font-weight: 600;
    margin-bottom: 2rem;
    letter-spacing: 2px;
}

/* Section Styles */
.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-purple);
    margin-bottom: 0.5rem;
}

.section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-purple), var(--primary-pink));
    margin: 1rem auto;
    border-radius: 2px;
}

/* Category Showcase */
.category-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 200px;
    cursor: pointer;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-card:hover img {
    transform: scale(1.1);
}

.category-card .category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(139, 71, 137, 0.8), rgba(233, 30, 99, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
}

/* Footer */
.site-footer {
    background: linear-gradient(135deg, var(--dark-purple), var(--primary-purple));
    color: white;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.site-footer h5 {
    color: var(--primary-gold);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.site-footer ul li {
    margin-bottom: 0.5rem;
}

.site-footer a {
    color: white;
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: var(--primary-gold);
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    font-size: 1.2rem;
}

.social-links a:hover {
    background: var(--primary-gold);
    color: var(--text-dark);
}

/* Form Styles */
.form-control,
.form-select {
    border-radius: 10px;
    border: 2px solid var(--border-color);
    padding: 0.75rem 1rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 0.2rem rgba(139, 71, 137, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* Badges */
.badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
}

.badge.bg-featured {
    background: linear-gradient(135deg, var(--primary-gold), #FFA500);
}

.badge.bg-new {
    background: linear-gradient(135deg, var(--primary-pink), #FF1493);
}

/* Alerts */
.alert {
    border-radius: 10px;
    border: none;
    padding: 1rem 1.5rem;
}

/* Pagination */
.pagination .page-link {
    color: var(--primary-purple);
    border-radius: 5px;
    margin: 0 2px;
    border: 1px solid var(--border-color);
}

.pagination .page-link:hover {
    background-color: var(--primary-purple);
    color: white;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-purple);
    border-color: var(--primary-purple);
}

/* Loading Spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section .motto {
        font-size: 1.2rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .brand-name {
        font-size: 1.4rem;
    }

    .card-img-top {
        height: 200px;
    }

    .nav-link {
        padding: 0.5rem 0 !important;
    }

    .top-bar {
        font-size: 0.8rem;
        text-align: center;
    }

    .top-bar-left,
    .top-bar-right {
        justify-content: center !important;
        margin: 5px 0;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 5rem 0 3rem;
    }

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

    .section {
        padding: 2rem 0;
    }

    .btn-primary,
    .btn-secondary,
    .btn-outline-primary {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Print Styles */
@media print {
    .top-bar,
    .navbar,
    .site-footer {
        display: none;
    }
}
