/* Jungle Toys Homepage Styles */
:root {
    /* Primary Colors from Logo */
    --primary-green: #4bc755;
    --light-green: #e4f2ed;
    --dark-green: #2a7d32;
    --orange: #ff8c00;
    --yellow: #ffd700;
    --dark-orange: #e67e22;
    
    /* Additional Colors */
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --gray: #6c757d;
    --dark-gray: #343a40;
    --black: #000000;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-green), var(--dark-green));
    --gradient-orange: linear-gradient(135deg, var(--orange), var(--dark-orange));
    --gradient-warm: linear-gradient(135deg, var(--light-green), var(--yellow));
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-green);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 2rem;
}

/* Header Styles */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background: var(--gradient-primary) !important;
    font-size: 0.9rem;
}

.top-bar a {
    transition: color 0.3s ease;
}

.top-bar a:hover {
    color: var(--yellow) !important;
}

.navbar {
    transition: all 0.3s ease;
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--dark-gray) !important;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-green) !important;
}

.search-bar .form-control {
    border-radius: 25px 0 0 25px;
    border-right: none;
}

.search-bar .btn {
    border-radius: 0 25px 25px 0;
}

/* Search Suggestions */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    max-height: 400px;
    overflow-y: auto;
}

.search-suggestions.show {
    display: block;
}

.search-suggestions-content {
    padding: 0;
}

.search-suggestion-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f8f9fa;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-suggestion-item:hover {
    background-color: #f8f9fa;
}

.search-suggestion-item:last-child {
    border-bottom: none;
}

.search-suggestion-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.search-suggestion-details {
    flex: 1;
    min-width: 0;
}

.search-suggestion-name {
    font-weight: 600;
    color: #212529;
    margin: 0 0 4px 0;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-suggestion-category {
    font-size: 0.75rem;
    color: #6c757d;
    margin: 0 0 2px 0;
}

.search-suggestion-price {
    font-weight: 600;
    color: var(--primary-green);
    font-size: 0.9rem;
    margin: 0;
}

.search-no-results {
    padding: 20px;
    text-align: center;
    color: #6c757d;
    font-style: italic;
}

.search-loading {
    padding: 20px;
    text-align: center;
    color: #6c757d;
}

.search-loading .spinner-border {
    width: 1.5rem;
    height: 1.5rem;
    border-width: 2px;
}

.cart-icon .btn {
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #e4f2ed 0%, #f0fff0 30%, #fff8dc 70%, #ffeaa7 100%);
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23ff8c00" opacity="0.15"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.4;
}

/* Floating Toys Animation */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        /* Ball 1 - Orange */ url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40"><circle cx="20" cy="20" r="18" fill="%23ff8c00" opacity="0.7"/><circle cx="20" cy="20" r="12" fill="%23ffd700" opacity="0.9"/></svg>'),
        /* Ball 2 - Green */ url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 35 35"><circle cx="17.5" cy="17.5" r="15" fill="%234bc755" opacity="0.6"/><circle cx="17.5" cy="17.5" r="8" fill="%2366bb6a" opacity="0.8"/></svg>'),
        /* Car - Orange/Yellow */ url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 30"><rect x="5" y="15" width="40" height="15" rx="7" fill="%23ff8c00" opacity="0.7"/><rect x="10" y="8" width="30" height="12" rx="6" fill="%23ffd700" opacity="0.9"/><circle cx="15" cy="32" r="6" fill="%23333" opacity="0.7"/><circle cx="35" cy="32" r="6" fill="%23333" opacity="0.7"/></svg>'),
        /* Block 1 - Yellow */ url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 25 25"><rect width="25" height="25" fill="%23ffd700" opacity="0.7" rx="3"/><rect x="3" y="3" width="19" height="19" fill="%23fff59d" opacity="0.9" rx="2"/></svg>'),
        /* Block 2 - Green */ url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30"><rect width="30" height="30" fill="%234bc755" opacity="0.6" rx="4"/><rect x="4" y="4" width="22" height="22" fill="%2366bb6a" opacity="0.8" rx="3"/></svg>'),
        /* Star - Yellow */ url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30"><path d="M15,2 L18,12 L28,12 L20,19 L23,29 L15,22 L7,29 L10,19 L2,12 L12,12 Z" fill="%23ffd700" opacity="0.7"/></svg>'),
        /* Teddy Bear - Brown */ url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 35 40"><ellipse cx="17.5" cy="25" rx="15" ry="18" fill="%23a0522d" opacity="0.6"/><ellipse cx="12" cy="15" rx="6" ry="8" fill="%23a0522d" opacity="0.7"/><ellipse cx="23" cy="15" rx="6" ry="8" fill="%23a0522d" opacity="0.7"/><circle cx="14" cy="13" r="2" fill="%23333" opacity="0.8"/><circle cx="21" cy="13" r="2" fill="%23333" opacity="0.8"/></svg>'),
        /* Triangle - Orange */ url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 25 25"><polygon points="12.5,2 22,20 3,20" fill="%23ff8c00" opacity="0.6"/><polygon points="12.5,6 19,18 6,18" fill="%23ffd700" opacity="0.8"/></svg>');
    
    background-size: 40px 40px, 35px 35px, 50px 30px, 25px 25px, 30px 30px, 30px 30px, 35px 40px, 25px 25px;
    background-position: 
        10% 20%, 85% 15%, 15% 70%, 75% 25%, 90% 60%, 25% 80%, 70% 85%, 45% 10%;
    background-repeat: no-repeat;
    animation: floatToys 20s ease-in-out infinite;
    opacity: 0.7;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Additional floating elements for depth */
.hero-section .floating-toy {
    position: absolute;
    z-index: 1;
    opacity: 0.4;
    animation: floatIndividual 15s ease-in-out infinite;
}

.hero-section .floating-toy:nth-child(1) {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
    animation-duration: 12s;
}

.hero-section .floating-toy:nth-child(2) {
    top: 60%;
    right: 10%;
    animation-delay: 3s;
    animation-duration: 18s;
}

.hero-section .floating-toy:nth-child(3) {
    top: 30%;
    right: 20%;
    animation-delay: 6s;
    animation-duration: 14s;
}

.hero-section .floating-toy:nth-child(4) {
    top: 80%;
    left: 20%;
    animation-delay: 9s;
    animation-duration: 16s;
}

@keyframes floatIndividual {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.4;
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-10px) rotate(-3deg);
        opacity: 0.5;
    }
    75% {
        transform: translateY(-30px) rotate(8deg);
        opacity: 0.7;
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--dark-green);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.brand-name {
    background: var(--gradient-orange);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--dark-orange);
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    border-radius: 50px;
    padding: 15px 35px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    min-width: 180px;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(75, 199, 85, 0.3);
}

.btn-outline-primary {
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
}

.btn-outline-primary:hover {
    background: var(--primary-green);
    border-color: var(--primary-green);
    transform: translateY(-2px);
}

.hero-image {
    position: relative;
    z-index: 2;
}

.hero-image img {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.hero-image img:hover {
    transform: scale(1.05);
}


/* Features Section */
.features-section {
    background: var(--white);
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--white);
}

.feature-card h5 {
    color: var(--dark-green);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Categories Section */
.categories-section {
    background: var(--light-gray);
}

.category-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    color: inherit;
    display: block;
    border: none;
    height: 260px;
    position: relative;
}

.category-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: inherit;
}

/* Alternating vibrant gradient backgrounds for each card */
.category-card:nth-child(1) .category-image {
    background: linear-gradient(135deg, #4bc755 0%, #2a7d32 100%);
}

.category-card:nth-child(2) .category-image {
    background: linear-gradient(135deg, #ff8c00 0%, #e67e22 100%);
}

.category-card:nth-child(3) .category-image {
    background: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
}

.category-card:nth-child(4) .category-image {
    background: linear-gradient(135deg, #66bb6a 0%, #4bc755 100%);
}

.category-card:nth-child(5) .category-image {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
}

.category-card:nth-child(6) .category-image {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a3a3 100%);
}

.category-card:nth-child(7) .category-image {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
}

.category-card:nth-child(8) .category-image {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.category-image {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    position: relative;
    padding: 30px 20px;
    border-radius: 20px;
    overflow: hidden;
}

.category-image::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.25) 0%, transparent 60%);
    animation: categoryShine 6s ease-in-out infinite;
}

@keyframes categoryShine {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(-15%, -15%) scale(1.2);
        opacity: 0.6;
    }
}

.category-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.15) 0%, transparent 100%);
    z-index: 1;
}

.category-image i {
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.35));
    animation: categoryIconFloat 3s ease-in-out infinite;
}

@keyframes categoryIconFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-12px) rotate(5deg);
    }
}

.category-info {
    text-align: center;
    z-index: 2;
    position: relative;
    background: transparent;
    padding: 0;
}

.category-info h5 {
    color: white;
    font-weight: 700;
    margin-bottom: 6px;
    font-size: 1.25rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.category-info p {
    color: white;
    font-size: 0.9rem;
    margin-bottom: 0;
    line-height: 1.4;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    font-weight: 600;
    opacity: 1;
}

/* Login Modal Styles */
.login-modal-content {
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.login-modal-header {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
    color: white;
    border: none;
    padding: 2rem;
}

.login-modal-brand {
    display: flex;
    align-items: center;
}

.login-modal-brand img {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.login-modal-body {
    padding: 2rem;
}

.login-form .form-label {
    font-weight: 600;
    color: var(--dark-green);
    margin-bottom: 0.5rem;
}

.login-form .form-control {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.login-form .form-control:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(75, 199, 85, 0.25);
}

.password-input-group {
    position: relative;
}

.password-input-group .btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #6c757d;
    padding: 0.5rem;
}

.password-input-group .btn:hover {
    color: var(--primary-green);
    background: transparent;
}

.login-btn {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(75, 199, 85, 0.3);
}

.login-info-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-info-content {
    width: 100%;
}

.login-benefits h5 {
    color: var(--dark-green);
    font-weight: 700;
}

.benefit-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: #495057;
}

.benefit-item i {
    font-size: 1.1rem;
}

.login-help {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.login-help h6 {
    color: var(--dark-green);
    font-weight: 600;
}

.login-help p {
    margin-bottom: 0.5rem;
    color: #6c757d;
}

.login-help i {
    color: var(--primary-green);
    width: 16px;
}

/* Loading States */
.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Form Validation */
.form-control.is-invalid {
    border-color: #dc3545;
}

.form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Shake Animation */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake-animation {
    animation: shake 0.5s ease-in-out;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .login-info-section {
        margin-top: 2rem;
        padding: 1.5rem;
    }
    
    .login-modal-body {
        padding: 1.5rem;
    }
    
    .login-modal-header {
        padding: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .login-modal-brand {
        flex-direction: column;
        text-align: center;
    }
    
    .login-modal-brand img {
        margin-bottom: 1rem;
        margin-right: 0 !important;
    }
    
    .login-modal-body {
        padding: 1rem;
    }
    
    .login-modal-header {
        padding: 1rem;
    }
}

/* Product Modal Styles */
.product-modal-content {
    border: none;
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    min-height: 600px;
}

.product-category-info {
    display: flex;
    align-items: center;
    margin-top: 0.5rem;
}

.product-category-info .badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-weight: 500;
}

.product-category-info .badge.bg-primary {
    background: var(--primary-green) !important;
}

.product-category-info .badge.bg-secondary {
    background: var(--dark-green) !important;
    color: white;
}

.product-modal-header {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
    color: white;
    border: none;
    padding: 2rem;
}

.product-modal-title h4 {
    font-weight: 700;
    color: white;
}

.product-modal-body {
    padding: 2rem;
    min-height: 500px;
}

.product-image-section {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 15px;
    padding: 2rem;
}

.product-modal-image {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.product-details-section {
    padding-left: 2rem;
}

.product-price-section {
    font-size: 1.5rem;
    font-weight: 700;
}

.stock-status-section {
    font-size: 0.9rem;
}

.product-description h6 {
    color: var(--dark-green);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Variants Section */
.variants-section h6 {
    color: var(--dark-green);
    font-weight: 600;
    margin-bottom: 1rem;
}

.variants-container .form-label {
    font-weight: 600;
    color: var(--dark-green);
    margin-bottom: 0.5rem;
}

.variants-container .form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.variants-container .form-select:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(75, 199, 85, 0.25);
}

.variants-container .form-select option:disabled {
    color: #6c757d;
    font-style: italic;
}

/* Color Preview */
.color-preview {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.selected-color-preview {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.color-swatch-large {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: inline-block;
}

.color-name {
    font-weight: 600;
    color: var(--dark-green);
}

/* Selected Variant Info */
.selected-variant-info .alert {
    border: none;
    border-radius: 8px;
    background: rgba(75, 199, 85, 0.1);
    color: var(--dark-green);
    font-weight: 500;
}

.selected-variant-info .alert i {
    color: var(--primary-green);
}

/* Quantity Selector */
.quantity-section .form-label {
    font-weight: 600;
    color: var(--dark-green);
    margin-bottom: 0.5rem;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 200px;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e9ecef;
    background: white;
    transition: all 0.3s ease;
}

.quantity-btn:hover:not(:disabled) {
    border-color: var(--primary-green);
    background: var(--primary-green);
    color: white;
}

.quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quantity-input {
    width: 80px;
    text-align: center;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-weight: 600;
    padding: 0.5rem;
}

.quantity-input:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(75, 199, 85, 0.25);
}

/* Product Actions */
.product-actions {
    margin-top: 2rem;
}

.product-actions .btn {
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.product-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(75, 199, 85, 0.3);
}


/* Search Page Styles moved to search-page.css */

/* Cart Sidebar Styles */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100vh;
    z-index: 1050;
    transition: right 0.3s ease-in-out;
    display: none;
}

.cart-sidebar.open {
    right: 0;
    display: block;
}

/* Mobile cart sidebar */
@media (max-width: 768px) {
    .cart-sidebar {
        width: 100vw;
        right: -100vw;
    }
    
    .cart-sidebar.open {
        right: 0;
    }
}

/* Prevent body scroll when cart is open */
body.modal-open {
    overflow: hidden;
}

.cart-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.cart-sidebar-content {
    background: white;
    height: 100vh;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.cart-sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--primary-green);
    color: white;
}

.cart-sidebar-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.cart-sidebar-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.cart-sidebar-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.cart-sidebar-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.cart-sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid #dee2e6;
    background: #f8f9fa;
}

.cart-total-section {
    width: 100%;
}

.cart-action-buttons .btn {
    font-weight: 500;
    transition: all 0.3s ease;
}

.cart-action-buttons .btn-primary {
    background: var(--gradient-primary);
    border: none;
    box-shadow: 0 4px 15px rgba(75, 199, 85, 0.3);
}

.cart-action-buttons .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(75, 199, 85, 0.4);
}

.cart-action-buttons .btn-outline-primary {
    border-color: var(--primary-green);
    color: var(--primary-green);
}

.cart-action-buttons .btn-outline-primary:hover {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: white;
}

.cart-action-buttons .btn-outline-secondary:hover {
    background: var(--gray);
    border-color: var(--gray);
    color: white;
}


/* Cart Item Styles */
.cart-item {
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.5rem;
}

.cart-item:hover {
    background-color: #f8f9fa;
}

.quantity-controls .btn {
    width: 30px;
    height: 30px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    position: relative;
    z-index: 10;
    pointer-events: auto;
    cursor: pointer;
}

.cart-remove-item {
    position: relative;
    z-index: 10;
    pointer-events: auto;
    cursor: pointer;
}

.cart-item-image img {
    border: 1px solid #dee2e6;
    border-radius: 6px;
}

/* Cart Badge Animation */
.cart-icon .badge {
    animation: cartBadgePulse 0.5s ease-in-out;
}

@keyframes cartBadgePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cart-sidebar {
        width: 100vw;
        right: -100vw;
    }
    
    .cart-sidebar.open {
        right: 0;
    }
    
    .cart-sidebar-header {
        padding: 1rem;
    }
    
    .cart-sidebar-body {
        padding: 0.75rem;
    }
    
    .cart-sidebar-footer {
        padding: 1rem;
    }
}

/* Responsive Design */
@media (max-width: 1199.98px) {
    .product-modal-content {
        min-height: auto;
    }
    
    .product-details-section {
        padding-left: 1rem;
    }
}

@media (max-width: 991.98px) {
    .product-modal-body {
        padding: 1.5rem;
    }
    
    .product-modal-header {
        padding: 1.5rem;
    }
    
    .product-details-section {
        padding-left: 0;
        margin-top: 2rem;
    }
    
    .product-image-section {
        padding: 1rem;
    }
    
    .product-modal-image {
        max-height: 300px;
    }
}

@media (max-width: 575.98px) {
    .product-modal-body {
        padding: 1rem;
    }
    
    .product-modal-header {
        padding: 1rem;
    }
    
    .product-modal-title {
        text-align: center;
    }
    
    .sizes-container {
        justify-content: center;
    }
    
    .quantity-selector {
        max-width: 100%;
        justify-content: center;
    }
}

/* Products Section */
.products-section {
    background: var(--white);
}

.product-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.product-image {
    height: 250px;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.product-view-link {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
    z-index: 1000;
}

.product-view-link:hover {
    background: rgba(0, 123, 255, 0.9);
    transform: scale(1.1);
}

.product-card:hover .product-view-link {
    opacity: 1;
    transform: scale(1);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-content {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-green);
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.product-price .sale-price {
    color: var(--dark-orange);
    font-weight: 600;
    font-size: 1.2rem;
}

.product-price .original-price {
    text-decoration: line-through;
    color: var(--gray);
    font-size: 1rem;
    margin-left: 0.5rem;
    opacity: 0.7;
}

.product-price .regular-price {
    color: var(--dark-green);
    font-weight: 600;
    font-size: 1.2rem;
}

.product-price .wholesale-price {
    color: var(--primary-green);
    font-weight: 600;
    font-size: 1.2rem;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
}

/* Stock Status Styles */
.stock-status {
    margin-bottom: 1rem;
}

.stock-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.in-stock-badge {
    background: rgba(75, 199, 85, 0.1);
    color: var(--primary-green);
    border: 1px solid rgba(75, 199, 85, 0.3);
}

.low-stock-badge {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.out-of-stock-badge {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

/* Out of Stock Product Card */
.product-card.out-of-stock {
    opacity: 0.7;
    position: relative;
}

.product-card.out-of-stock .product-image {
    position: relative;
}

.out-of-stock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
}

.out-of-stock-overlay span {
    background: #dc3545;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-card.out-of-stock .product-title {
    color: var(--gray);
}

.product-card.out-of-stock .product-price {
    opacity: 0.6;
}

/* Contact Section */
.contact-section {
    background: var(--gradient-primary) !important;
}

.contact-section .btn-light {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-section .btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3);
}

/* Footer */
.main-footer {
    background: var(--black) !important;
    position: relative;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="footer-grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.03"/></pattern></defs><rect width="100" height="100" fill="url(%23footer-grain)"/></svg>');
    opacity: 0.5;
}

.footer-title {
    color: var(--primary-green) !important;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-brand-title {
    color: var(--white) !important;
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 1rem;
}

.main-footer a {
    transition: color 0.3s ease;
    position: relative;
    z-index: 2;
}

.main-footer a:hover {
    color: var(--primary-green) !important;
}

.main-footer .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

.main-footer .text-muted:hover {
    color: var(--primary-green) !important;
}

.social-links a {
    display: inline-block;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    text-align: center;
    line-height: 45px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 2;
}

.social-links a:hover {
    background: var(--yellow);
    color: var(--dark-green);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    position: relative;
    z-index: 2;
}

.contact-item i {
    color: var(--primary-green) !important;
    width: 20px;
    margin-right: 0.8rem;
}

.contact-item a {
    color: rgba(255, 255, 255, 0.8) !important;
}

.contact-item a:hover {
    color: var(--primary-green) !important;
}

/* Modal Styles */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 15px 15px 0 0;
    border-bottom: none;
}

.modal-header .btn-close {
    filter: invert(1);
}

.modal-body .form-control {
    border-radius: 10px;
    border: 2px solid var(--light-gray);
    transition: border-color 0.3s ease;
}

.modal-body .form-control:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(75, 199, 85, 0.25);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(75, 199, 85, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-green);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes floatToys {
    0%, 100% {
        background-position: 
            10% 20%, 85% 15%, 15% 70%, 75% 25%, 90% 60%, 25% 80%, 70% 85%, 45% 10%;
        transform: translateY(0px);
    }
    25% {
        background-position: 
            15% 15%, 80% 20%, 20% 65%, 70% 30%, 85% 55%, 30% 75%, 65% 90%, 50% 5%;
        transform: translateY(-10px);
    }
    50% {
        background-position: 
            20% 25%, 75% 10%, 25% 75%, 65% 20%, 80% 65%, 35% 85%, 60% 80%, 55% 15%;
        transform: translateY(-5px);
    }
    75% {
        background-position: 
            5% 30%, 90% 25%, 10% 60%, 80% 35%, 95% 50%, 20% 70%, 75% 75%, 40% 5%;
        transform: translateY(-15px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-section {
        min-height: 50vh;
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        margin-bottom: 1rem;
    }
    
    .contact-info {
        font-size: 0.9rem;
    }
    
    .search-bar {
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
    
    .user-actions {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(0,0,0,0.1);
    }
    
    .navbar-brand img {
        height: 60px !important;
    }
    
    .main-footer {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
        margin-top: 1rem;
    }
    
    /* Product cards mobile improvements */
    .product-card {
        margin-bottom: 1.5rem;
    }
    
    .product-image {
        height: 200px;
    }
    
    .product-content {
        padding: 1rem;
    }
    
    .product-title {
        font-size: 1rem;
        line-height: 1.3;
    }
    
    .product-price {
        font-size: 1.1rem;
    }
    
    .product-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .product-actions .btn {
        width: 100%;
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }
    
    /* Search suggestions mobile */
    .search-suggestions {
        max-height: 300px;
    }
    
    .search-suggestion-item {
        padding: 10px 12px;
    }
    
    .search-suggestion-image {
        width: 40px;
        height: 40px;
    }
    
    .search-suggestion-name {
        font-size: 0.85rem;
    }
    
    .search-suggestion-category {
        font-size: 0.7rem;
    }
    
    .search-suggestion-price {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 45vh;
        padding: 50px 0;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .top-bar {
        text-align: center;
    }
    
    .top-bar .col-md-6 {
        margin-bottom: 0.5rem;
    }
    
    .navbar-brand img {
        height: 50px !important;
    }
    
    .search-bar {
        margin-bottom: 1.5rem;
    }
    
    .user-actions {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }
    
    .main-footer {
        padding: 3rem 0 !important;
    }
    
    /* Extra small screen product cards */
    .product-image {
        height: 180px;
    }
    
    .product-content {
        padding: 0.75rem;
    }
    
    .product-title {
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
    }
    
    .product-price {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .product-actions .btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
    
    /* Category cards mobile */
    .category-card {
        height: 220px;
    }
    
    .category-image {
        height: 100%;
        font-size: 3rem;
        padding: 20px 15px;
    }
    
    .category-info {
        padding: 0;
    }
    
    .category-info h5 {
        font-size: 1.05rem;
        margin-bottom: 4px;
    }
    
    .category-info p {
        font-size: 0.8rem;
        color: white;
        text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
        font-weight: 600;
    }
    
    /* Product cards - 1 per row on mobile */
    .col-lg-3.col-md-6.col-sm-12 {
        flex: 0 0 100%;
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .product-card {
        margin-bottom: 1.5rem;
        width: 100%;
        max-width: 100%;
    }
    
    /* Ensure product grid doesn't overflow on mobile */
    .row {
        margin-left: 0;
        margin-right: 0;
    }
    
    .row > [class*="col-"] {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Utility Classes */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: var(--gradient-primary);
}

.bg-gradient-orange {
    background: var(--gradient-orange);
}

.shadow-soft {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.shadow-hover {
    transition: box-shadow 0.3s ease;
}

.shadow-hover:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}
