/* =========================================
   Global Variables & Reset
   ========================================= */
:root {
    /* Enhanced Pink Palette */
    --primary-color: #ff6b9d;
    /* Vibrant Pink */
    --primary-hover: #ff4785;
    /* Darker Vibrant Pink */
    --secondary-color: #ffb7ce;
    /* Soft Pink */
    --bg-color: #fff0f5;
    /* Lavender Blush Background */
    --card-bg: rgba(255, 255, 255, 0.95);

    /* Warmer Text Colors */
    --text-color: #6d4c41;
    /* Brownish Text - Softer than black */
    --text-light: #8d6e63;

    --border-color: #ffcdd2;
    --white: #ffffff;

    /* Shadows & Effects */
    --shadow-sm: 0 4px 15px rgba(255, 107, 157, 0.15);
    --shadow-md: 0 8px 30px rgba(255, 107, 157, 0.2);
    --shadow-lg: 0 15px 50px rgba(255, 107, 157, 0.25);
    --glass-border: 1px solid rgba(255, 255, 255, 0.8);

    /* Bubbly Radius */
    --radius-sm: 15px;
    --radius-md: 25px;
    --radius-lg: 40px;

    /* Layout */
    --sidebar-width: 280px;
    --sidebar-gap: 40px;
}

/* Import Cute Font */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@300;400;500;600;700&family=Quicksand:wght@300;400;500;600;700&display=swap');

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

body {
    background-color: var(--bg-color);
    font-family: 'Quicksand', sans-serif;
    /* Cute body font */
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    /* Cute Pattern */
    background-image:
        radial-gradient(#ff9eb5 2px, transparent 2px),
        radial-gradient(#ffb7ce 2px, transparent 2px);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Fredoka', sans-serif;
    /* Bubbly header font */
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 0.5px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

/* =========================================
   Side Navigation
   ========================================= */
.side-nav {
    position: fixed;
    top: 20px;
    bottom: 20px;
    left: 20px;
    width: var(--sidebar-width);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--white);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-header {
    text-align: center;
    margin-bottom: 2rem;
}

.nav-logo {
    display: inline-block;
}

.nav-logo img {
    max-height: 80px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-logo:hover img {
    transform: rotate(-5deg) scale(1.1);
}

.nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    flex-grow: 1;
    /* Pushes social to bottom */
    overflow-y: auto;
    /* Allow scrolling if menu is tall */
}

/* Custom Scrollbar for nav */
.nav-links::-webkit-scrollbar {
    width: 4px;
}

.nav-links::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.05rem;
    border-radius: 20px;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.nav-link i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
    color: var(--primary-color);
}

.nav-link:hover {
    background: white;
    color: var(--primary-color);
    transform: translateX(5px);
    box-shadow: var(--shadow-sm);
}

.nav-link.active {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(230, 106, 147, 0.3);
}

.nav-link.active i {
    color: white;
}

.nav-social {
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 2px dashed var(--border-color);
    text-align: center;
}

.nav-social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icon img {
    width: 32px;
    height: 32px;
    transition: transform 0.3s;
}

.social-icon:hover img {
    transform: scale(1.15) rotate(10deg);
}

.nav-copyright {
    font-size: 0.75rem;
    color: #999;
    margin-top: 1rem;
    text-align: center;
}

/* Mobile Toggle (FAB) */
.mobile-toggle {
    display: none;
    /* hidden on desktop */
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: white;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(230, 106, 147, 0.4);
    z-index: 2000;
    cursor: pointer;
    border: none;
    transition: transform 0.3s;
}

.mobile-toggle:hover {
    transform: scale(1.1);
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(3px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* =========================================
   Main Layout & Components
   ========================================= */
main {
    margin-left: calc(var(--sidebar-width) + var(--sidebar-gap));
    padding: 3rem 2rem;
    max-width: 1400px;
    /* Allow wider content since we have space */
    min-height: 100vh;
}

/* Global Section Title */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    width: 100%;
}

.decor {
    color: var(--secondary-color);
    margin: 0 10px;
}

/* Card Style */
.card-base,
.intro-card,
.outro-card,
.contact-card,
.project-panel {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--white);
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.intro-card,
.outro-card {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    border-bottom: 5px solid var(--secondary-color);
}

.section-divider {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin: 1.5rem 0;
    letter-spacing: 5px;
}

/* Buttons */
.btn,
.shop-cta,
.submit-btn,
.project-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: white !important;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(230, 106, 147, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
}

.btn:hover,
.shop-cta:hover,
.submit-btn:hover,
.project-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(230, 106, 147, 0.5);
}

/* =========================================
   Responsive Media Queries
   ========================================= */
@media (max-width: 992px) {
    :root {
        --sidebar-width: 240px;
        --sidebar-gap: 20px;
    }

    main {
        margin-left: calc(var(--sidebar-width) + 20px);
        padding: 2rem;
    }
}

@media (max-width: 768px) {

    /* Mobile Sidebar Logic */
    .side-nav {
        transform: translateX(-110%);
        top: 0;
        bottom: 0;
        left: 0;
        width: 280px;
        border-radius: 0 20px 20px 0;
        border: none;
        border-right: 2px solid white;
    }

    .side-nav.active {
        transform: translateX(0);
    }

    .mobile-toggle {
        display: flex;
    }

    /* Reset Main Content Margin */
    main {
        margin-left: 0;
        padding: 1.5rem 1rem 5rem;
        /* Bottom padding for FAB */
    }

    /* Headers */
    .section-title {
        font-size: 2rem;
    }

    /* Cards */
    .intro-card,
    .outro-card {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    /* Hide desktop-only elements just in case */
}

/* =========================================
   Floating Cart & Dropdown
   ========================================= */
.floating-cart {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
    z-index: 1001;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-cart:hover {
    transform: scale(1.1) rotate(-10deg);
}

.cart-count-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: white;
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: bold;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary-color);
}

.cart-dropdown {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--border-color);
    display: flex;
    flex-direction: column;
    max-height: 80vh;
}

.cart-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cart-dropdown-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-color);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.cart-dropdown-items {
    padding: 1.5rem;
    overflow-y: auto;
    flex-grow: 1;
}

.cart-dropdown-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed var(--border-color);
}

.cart-dropdown-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.cart-dropdown-item-image img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.cart-dropdown-item-details {
    flex-grow: 1;
}

.cart-dropdown-item-name {
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
    color: var(--text-color);
    font-family: 'Fredoka', sans-serif;
}

.cart-dropdown-price {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.cart-dropdown-remove {
    background: none;
    border: none;
    color: #ff9eb5;
    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.2s;
}

.cart-dropdown-remove:hover {
    color: var(--primary-color);
}

.cart-dropdown-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-color);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.checkout-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: white;
    text-align: center;
    border-radius: 30px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(230, 106, 147, 0.3);
    transition: transform 0.2s;
}

.checkout-btn:hover {
    transform: translateY(-2px);
}

/* Mobile Adjustments for Cart */
@media (max-width: 768px) {
    .floating-cart {
        bottom: 90px;
        right: 20px;
    }

    .cart-dropdown {
        right: 0;
        left: 0;
        bottom: 0;
        width: 100%;
        border-radius: var(--radius-md) var(--radius-md) 0 0;
        max-height: 80vh;
        transform: translateY(100%);
    }
}

/* =========================================
   Product Cards
   ========================================= */
.product-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    position: relative;
    padding: 0;
    /* Override generic padding if any remains */
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    position: relative;
    height: 300px;
    width: 100%;
    overflow: hidden;
    background: #fafafa;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Changed to contain so full bag is visible */
    transition: transform 0.5s ease;
    padding: 10px;
    /* Small padding for the bag image */
}

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

.sold-out-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    pointer-events: none;
}

.product-info {
    padding: 1.5rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.8);
}

.product-name {
    font-size: 1.3rem;
    color: var(--text-color);
    /* Brownish text */
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.category-price-row {
    margin-bottom: 1rem;
}

.product-category {
    background: var(--bg-color);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
}

.product-price {
    display: block;
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 0.5rem 0 1.5rem;
}

.button-container {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.product-button,
.cart-button {
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    font-size: 0.9rem;
    flex: 1;
    text-align: center;
}

.product-button {
    background: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--text-color);
}

.product-button:hover {
    background: var(--bg-color);
    color: var(--primary-color);
}

.cart-button {
    background: var(--primary-color);
    color: white;
}

.cart-button:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 107, 157, 0.3);
}

.cart-button:disabled,
.sold-out-button {
    background: #ccc;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}