/* site.css - La Masia Theme for Bootstrap */

/* --- 1. Global Styles & Variables --- */
:root {
    --primary-red: #d92323;
    --primary-blue: #1e3a8a;
    --dark-text: #2c2c2c;
    --light-text: #ffffff;
    --background-light: #f4f5f7;
    --border-color: #e0e0e0;
    --font-heading: 'Bebas Neue', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    height: 100%;
    margin: 0;
}

body {
    font-family: var(--font-body);
    color: var(--dark-text);
    background-color: var(--background-light);
    line-height: 1.6;
    height: 100%;
    margin: 0;
}

main {
    flex: 1;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--dark-text);
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    color: var(--primary-blue);
}

h2 {
    font-size: 2.5rem;
    border-bottom: 3px solid var(--primary-red);
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
}

h3 {
    font-size: 2rem;
    color: var(--primary-blue);
}

p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* ===== HEADER & NAVIGATION ===== */
.navbar {
    background: #ffffff; /* Solid white */
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    padding: 1rem 0;
}


.navbar-brand {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--dark-text) !important; /* Dark text logo */
    text-decoration: none;
}


.navbar-nav .nav-link {
    color: var(--dark-text) !important; /* Dark text instead of white */
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

    .navbar-nav .nav-link:hover {
        background-color: var(--primary-red);
        color: var(--light-text) !important;
        transform: translateY(-2px);
    }

/* Admin Dropdown Styling */
.navbar-nav .dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 0.5rem 0;
}

.navbar-nav .dropdown-item {
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    color: var(--dark-text);
}

    .navbar-nav .dropdown-item:hover {
        background: var(--primary-blue);
        color: white;
        transform: translateX(5px);
    }

    .navbar-nav .dropdown-item i {
        width: 20px;
        text-align: center;
    }

.navbar-nav .dropdown-toggle {
    font-weight: 600;
    color: var(--primary-blue) !important;
}

    .navbar-nav .dropdown-toggle:hover {
        color: var(--primary-red) !important;
    }

.navbar-nav .dropdown-divider {
    margin: 0.5rem 0;
}

/* Make admin dropdown stand out */
#adminDropdown {
    background: linear-gradient(45deg, var(--primary-blue), #3498db);
    color: white !important;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
}

    #adminDropdown:hover {
        background: linear-gradient(45deg, var(--primary-red), #e74c3c);
        transform: translateY(-2px);
    }

/* ===== HERO SECTION ===== */
/*.hero-section {
    background: url('/Images/Hero/landing page (1).png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 130vh;
    position: relative;
}*/

/* Desktop: Just background image (no content) - Only on screens 1025px and above */
/*@media (min-width: 1025px) {
    .hero-section {*/
        /* Keep as just background image on desktop */
    /*}
}*/

/* Mobile & Tablet Welcome Page (applies to anything 1024px and below) */
@media (max-width: 1024px) {
    .hero-section {
        background: none !important;
        background-color: var(--primary-blue) !important;
        height: auto !important;
        min-height: 100vh !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 2rem 1rem !important;
    }

    /* Mobile Welcome Card */
    .mobile-welcome-card {
        background: rgba(255, 255, 255, 0.97);
        border-radius: 25px;
        padding: 3rem 2.5rem;
        width: 100%;
        max-width: 600px;
        box-shadow: 0 25px 50px rgba(0,0,0,0.3);
        color: var(--dark-text);
        position: relative;
        overflow: hidden;
        text-align: center;
        animation: slideUp 0.8s ease-out;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

        .mobile-welcome-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 8px;
            background: linear-gradient(90deg, #a50044, #004d98, #edbb00);
            background-size: 300% 100%;
            animation: gradientShift 3s ease infinite;
        }

    .welcome-logo {
        margin-bottom: 2rem;
    }

    .welcome-logo-img {
        height: 90px;
        width: auto;
        filter: drop-shadow(0 3px 6px rgba(0,0,0,0.2));
    }

    .welcome-heading {
        color: var(--primary-blue);
        font-size: 2.8rem;
        margin-bottom: 1.5rem;
        font-family: var(--font-heading);
        font-weight: 700;
        text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
    }

    .welcome-text {
        color: var(--dark-text);
        margin-bottom: 2.5rem;
        line-height: 1.7;
        font-size: 1.3rem;
        opacity: 0.9;
        padding: 0 1rem;
    }

    /* Welcome Actions */
    .mobile-welcome-actions {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        margin-top: 2.5rem;
    }

    .welcome-action-btn {
        background: white;
        border: 2px solid var(--border-color);
        padding: 1.5rem 1rem;
        border-radius: 18px;
        color: var(--primary-blue);
        font-weight: 600;
        text-decoration: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    }

        .welcome-action-btn:hover {
            transform: translateY(-8px);
            box-shadow: 0 15px 30px rgba(0,0,0,0.2);
            background: var(--primary-blue);
            color: white;
            border-color: var(--primary-blue);
        }

        .welcome-action-btn.primary {
            background: linear-gradient(135deg, var(--primary-red), #e74c3c);
            color: white;
            border: none;
        }

            .welcome-action-btn.primary:hover {
                background: linear-gradient(135deg, #e74c3c, var(--primary-red));
                transform: translateY(-8px) scale(1.03);
                box-shadow: 0 20px 35px rgba(231, 76, 60, 0.3);
            }

    .action-icon {
        font-size: 2.2rem;
    }

    .action-text {
        font-size: 1.1rem;
        text-align: center;
        line-height: 1.4;
        font-weight: 600;
    }

    /* Welcome Footer */
    .welcome-footer {
        margin-top: 2.5rem;
        padding-top: 1.5rem;
        border-top: 1px solid rgba(0,0,0,0.1);
        color: var(--dark-text);
        font-size: 1rem;
    }

    .barcelona-motto {
        font-style: italic;
        color: var(--primary-blue);
        font-weight: 600;
        margin-bottom: 1.5rem;
        text-align: center;
        font-size: 1.1rem;
    }

    /* Custom Design Section */
    .custom-design-section {
        background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(231, 76, 60, 0.1));
        border-radius: 15px;
        padding: 1.5rem;
        margin-top: 1rem;
        display: flex;
        align-items: center;
        gap: 1.5rem;
        border: 1px solid rgba(52, 152, 219, 0.2);
        transition: all 0.3s ease;
    }

        .custom-design-section:hover {
            background: linear-gradient(135deg, rgba(52, 152, 219, 0.15), rgba(231, 76, 60, 0.15));
            border-color: rgba(52, 152, 219, 0.3);
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }

    .design-icon {
        font-size: 2rem;
        color: var(--primary-red);
        background: rgba(231, 76, 60, 0.1);
        width: 60px;
        height: 60px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .custom-design-content {
        flex: 1;
    }

    .custom-design-title {
        color: var(--primary-blue);
        font-size: 1.2rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
    }

    .custom-design-text {
        color: var(--dark-text);
        opacity: 0.9;
        margin-bottom: 1rem;
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .btn-instagram {
        display: inline-flex;
        align-items: center;
        gap: 0.75rem;
        background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
        color: white;
        padding: 0.75rem 1.5rem;
        border-radius: 25px;
        text-decoration: none;
        font-weight: 600;
        font-size: 0.95rem;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(225, 48, 108, 0.3);
    }

        .btn-instagram:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(225, 48, 108, 0.4);
            color: white;
        }

    .instagram-icon {
        font-size: 1.2rem;
    }

    /* Responsive adjustments for custom design section */
    @media (max-width: 768px) {
        .custom-design-section {
            flex-direction: column;
            text-align: center;
            gap: 1rem;
            padding: 1.25rem;
        }

        .design-icon {
            width: 50px;
            height: 50px;
            font-size: 1.5rem;
        }

        .custom-design-title {
            font-size: 1.1rem;
        }

        .custom-design-text {
            font-size: 0.9rem;
        }

        .btn-instagram {
            padding: 0.6rem 1.25rem;
            font-size: 0.9rem;
        }
    }

    @media (max-width: 480px) {
        .custom-design-section {
            padding: 1rem;
        }

        .btn-instagram {
            width: 100%;
            justify-content: center;
        }
    }
}

/* Large Tablets and Small Laptops (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .mobile-welcome-card {
        padding: 4rem 3rem;
        max-width: 700px;
    }

    .welcome-heading {
        font-size: 3.2rem;
    }

    .welcome-text {
        font-size: 1.4rem;
        padding: 0 2rem;
    }

    .welcome-logo-img {
        height: 100px;
    }

    .mobile-welcome-actions {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }

    .welcome-action-btn {
        padding: 1.2rem 0.5rem;
    }

    .action-icon {
        font-size: 2rem;
    }

    .action-text {
        font-size: 1rem;
    }

  
}

/* Tablets (577px - 768px) */
@media (min-width: 577px) and (max-width: 768px) {
    .mobile-welcome-card {
        padding: 3rem 2rem;
        max-width: 550px;
    }

    .welcome-heading {
        font-size: 2.5rem;
    }

    .welcome-text {
        font-size: 1.2rem;
    }

    .welcome-logo-img {
        height: 80px;
    }

    .mobile-welcome-actions {
        grid-template-columns: repeat(2, 1fr);
    }

   
}

/* Mobile (?576px) */
@media (max-width: 576px) {
    .hero-section {
        padding: 1.5rem !important;
    }

    .mobile-welcome-card {
        padding: 2.5rem 1.5rem;
        border-radius: 20px;
        max-width: 100%;
    }

    .welcome-heading {
        font-size: 2.2rem;
        margin-bottom: 1.2rem;
    }

    .welcome-text {
        font-size: 1.1rem;
        margin-bottom: 2rem;
        padding: 0;
    }

    .welcome-logo-img {
        height: 70px;
    }

    .mobile-welcome-actions {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .welcome-action-btn {
        padding: 1.2rem 1rem;
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
    }

    .action-icon {
        font-size: 1.8rem;
    }

    .action-text {
        font-size: 1.1rem;
        text-align: left;
        flex: 1;
    }

   
}

/* Extra Small Mobile (?360px) */
@media (max-width: 360px) {
    .mobile-welcome-card {
        padding: 2rem 1.25rem;
    }

    .welcome-heading {
        font-size: 1.9rem;
    }

    .welcome-text {
        font-size: 1rem;
    }

    .welcome-logo-img {
        height: 60px;
    }

    .welcome-action-btn {
        padding: 1rem;
    }

    .action-icon {
        font-size: 1.6rem;
    }

    .action-text {
        font-size: 1rem;
    }
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(60px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Add a subtle pulsing effect to the primary button */
@keyframes pulse {
    0% {
        box-shadow: 0 8px 20px rgba(231, 76, 60, 0.3);
    }

    50% {
        box-shadow: 0 8px 30px rgba(231, 76, 60, 0.5);
    }

    100% {
        box-shadow: 0 8px 20px rgba(231, 76, 60, 0.3);
    }
}

.welcome-action-btn.primary {
    animation: pulse 2s infinite;
}

    /* Remove animation on hover */
    .welcome-action-btn.primary:hover {
        animation: none;
    }


/* ===== BUTTONS ===== */
.btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-red), #e74c3c);
    color: var(--light-text);
}

    .btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(217, 35, 35, 0.3);
    }

.btn-secondary {
    background: var(--primary-blue);
    color: var(--light-text);
}

    .btn-secondary:hover {
        background: #152a6b;
        transform: translateY(-3px);
    }

.btn-outline {
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    background: transparent;
}

    .btn-outline:hover {
        background: var(--primary-blue);
        color: var(--light-text);
    }

/* ===== PRODUCT CARDS ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.product-card {
    background: var(--light-text);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

    .product-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    }

.product-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    background: #f8f9fa;
}

.product-info {
    padding: 1.5rem;
}

.product-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.product-sizes {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.size-option {
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .size-option:hover, .size-option.active {
        background: var(--primary-blue);
        color: var(--light-text);
        border-color: var(--primary-blue);
    }

/* ===== FILTERS & SORTING ===== */
.filter-section {
    background: var(--light-text);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-title {
    font-family: var(--font-heading);
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-option {
    padding: 0.5rem 1rem;
    background: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .filter-option:hover, .filter-option.active {
        background: var(--primary-blue);
        color: var(--light-text);
    }

/* ===== CART & CHECKOUT ===== */
.cart-item {
    background: var(--light-text);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cart-item-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-summary {
    background: var(--light-text);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.cart-total {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary-red);
    text-align: center;
    margin: 1rem 0;
}

/* ===== FOOTER ===== */
/* --- 6. Footer Customization --- */
/* Your layout has a simple footer, so we'll style that */
.footer {
    background-color: #1e3a8a;
    color: white;
    padding: 2rem 0;
    text-align: center;
    width: 100%;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

    .social-link:hover {
        background: var(--primary-red);
        transform: translateY(-3px);
    }

/* ===== UTILITY CLASSES ===== */
.text-red {
    color: var(--primary-red);
}

.text-blue {
    color: var(--primary-blue);
}

.bg-red {
    background-color: var(--primary-red);
}

.bg-blue {
    background-color: var(--primary-blue);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mt-2 {
    margin-top: 2rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }

    .navbar-nav .nav-link {
        margin: 0.25rem 0;
    }

    .cart-item {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* ===== FORM STYLES ===== */
.form-control {
    border: 2px solid var(--border-color);
    border-radius: 4px;
    padding: 0.75rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

    .form-control:focus {
        border-color: var(--primary-blue);
        outline: none;
        box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
    }

.form-label {
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 0.5rem;
    display: block;
}

/* ===== LOADING SPINNER ===== */
.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-blue);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}