/* Homepage Specific Styles - Optimized for UX */

/* Hero Section */
.hero-section {
    padding: 30px 0;
    background: linear-gradient(135deg, rgba(135, 206, 235, 0.08), rgba(248, 187, 217, 0.08));
    min-height: 50vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.hero-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 12px;
}

.hero-description {
    font-size: 15px;
    color: var(--dark-gray);
    line-height: 1.5;
    margin-bottom: 20px;
}

.hero-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.hero-buttons .btn-primary {
    background: linear-gradient(135deg, var(--light-sky-blue), #5dade2);
    border: none;
    box-shadow: 0 2px 8px rgba(135, 206, 235, 0.25);
}

.hero-buttons .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(135, 206, 235, 0.35);
}

.hero-buttons .btn-outline-primary {
    border: 2px solid var(--light-sky-blue);
    color: var(--light-sky-blue);
    background: transparent;
}

.hero-buttons .btn-outline-primary:hover {
    background: var(--light-sky-blue);
    color: #ffffff;
    transform: translateY(-2px);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    max-width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.hero-image img:hover {
    transform: scale(1.02);
}

/* Product Combo Section */
.combo-section {
    border-bottom: 1px solid var(--border-color);
}

.combo-title {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 24px;
}

.combo-scroll-container {
    overflow: hidden;
    position: relative;
    margin-top: 20px;
}

.combo-items-wrapper {
    display: flex;
    animation: scrollCombos 25s infinite linear;
    gap: 20px;
}

.combo-items-wrapper:hover {
    animation-play-state: paused;
}

@keyframes scrollCombos {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.combo-item {
    flex-shrink: 0;
    width: 280px;
}

.combo-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid var(--border-color);
}

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

.combo-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
    color: var(--white);
}

.combo-badge.winter { background: linear-gradient(135deg, #4A90E2, #7B68EE); }
.combo-badge.summer { background: linear-gradient(135deg, #FF6B6B, #FFE66D); }
.combo-badge.newborn { background: linear-gradient(135deg, var(--pale-pastel-pink), var(--gentle-lavender-purple)); }
.combo-badge.feeding { background: linear-gradient(135deg, var(--soft-mint-green), var(--light-peach-orange)); }
.combo-badge.bath { background: linear-gradient(135deg, var(--light-sky-blue), var(--soft-mint-green)); }
.combo-badge.play { background: linear-gradient(135deg, #FF9A9E, #FECFEF); }

.combo-image {
    height: 160px;
    overflow: hidden;
    position: relative;
}

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

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

.combo-info {
    padding: 20px;
}

.combo-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.3;
}

.combo-description {
    font-size: 13px;
    color: var(--dark-gray);
    margin-bottom: 15px;
    line-height: 1.4;
}

.combo-pricing {
    margin-bottom: 15px;
}

.combo-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--light-sky-blue);
    display: block;
}

.combo-original {
    font-size: 14px;
    color: var(--dark-gray);
    text-decoration: line-through;
    margin-right: 8px;
}

.combo-save {
    font-size: 12px;
    background: var(--soft-mint-green);
    color: var(--text-dark);
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
}

.btn-combo {
    background: linear-gradient(135deg, var(--light-peach-orange), var(--pale-pastel-pink));
    border: none;
    color: var(--text-dark);
    padding: 10px 16px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 14px;
    width: 100%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-combo:hover {
    background: linear-gradient(135deg, var(--gentle-lavender-purple), var(--light-sky-blue));
    color: var(--text-dark);
    transform: translateY(-2px);
}

.btn-combo i {
    font-size: 12px;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    padding: 30px 0;
}

/* Homepage Product Card */
.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 180px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

.product-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    z-index: 2;
}

.product-badge.stock {
    background: #b8e6b8;
    color: #2c3e50;
}

.product-badge.out-of-stock {
    background: #ffcbcb;
    color: #2c3e50;
}

.product-info {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 36px;
}

.product-pricing {
    margin-bottom: 10px;
    flex: 1;
}

.product-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--light-sky-blue);
}

.product-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-top: auto;
}

.product-actions .btn {
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.product-actions .btn-outline-primary {
    border: 1px solid #e1e5e9;
    color: #495057;
    background: transparent;
}

.product-actions .btn-outline-primary:hover {
    background: var(--light-sky-blue);
    border-color: var(--light-sky-blue);
    color: #fff;
    transform: translateY(-1px);
}

.product-actions .btn-primary {
    background: #b8e6b8;
    border: none;
    color: #2c3e50;
}

.product-actions .btn-primary:hover {
    background: #9dd99d;
    color: #2c3e50;
    transform: translateY(-1px);
}

/* Category Popup */
.category-popup {
    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;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}

.popup-content {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s ease-out;
    position: relative;
}

.popup-content.fade-in {
    transform: scale(1);
    opacity: 1;
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--dark-gray);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.popup-close:hover {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.popup-title {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 24px;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.4;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.category-card {
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 25px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(135, 206, 235, 0.1), transparent);
    transition: left 0.5s ease;
}

.category-card:hover::before {
    left: 100%;
}

.category-card:hover {
    border-color: var(--light-sky-blue);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(135, 206, 235, 0.2);
}

.category-icon {
    font-size: 40px;
    color: var(--light-sky-blue);
    margin-bottom: 15px;
    display: block;
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.1);
    color: #5dade2;
}

.category-name {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 16px;
    margin: 0;
}

.category-card:hover .category-name {
    color: var(--light-sky-blue);
}

/* Category color variations */
.category-card:nth-child(1) .category-icon { color: var(--pale-pastel-pink); }
.category-card:nth-child(2) .category-icon { color: var(--soft-mint-green); }
.category-card:nth-child(3) .category-icon { color: var(--light-peach-orange); }
.category-card:nth-child(4) .category-icon { color: var(--gentle-lavender-purple); }
.category-card:nth-child(5) .category-icon { color: var(--light-sky-blue); }
.category-card:nth-child(6) .category-icon { color: var(--text-dark); }

.category-card:nth-child(1):hover { border-color: var(--pale-pastel-pink); box-shadow: 0 10px 25px rgba(248, 187, 217, 0.2); }
.category-card:nth-child(2):hover { border-color: var(--soft-mint-green); box-shadow: 0 10px 25px rgba(184, 230, 184, 0.2); }
.category-card:nth-child(3):hover { border-color: var(--light-peach-orange); box-shadow: 0 10px 25px rgba(255, 203, 164, 0.2); }
.category-card:nth-child(4):hover { border-color: var(--gentle-lavender-purple); box-shadow: 0 10px 25px rgba(221, 160, 221, 0.2); }
.category-card:nth-child(5):hover { border-color: var(--light-sky-blue); box-shadow: 0 10px 25px rgba(135, 206, 235, 0.2); }
.category-card:nth-child(6):hover { border-color: var(--text-dark); box-shadow: 0 10px 25px rgba(44, 62, 80, 0.2); }

/* Animation keyframes */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Modal Utility Styles */
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-50 { z-index: 50; }
.overflow-y-auto { overflow-y: auto; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.min-h-screen { min-height: 100vh; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.bg-white { background-color: white; }
.rounded-lg { border-radius: 0.5rem; }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }
.max-w-2xl { max-width: 42rem; }
.w-full { width: 100%; }
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gap-4 { gap: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.text-2xl { font-size: 1.5rem; }
.text-4xl { font-size: 2.25rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.text-center { text-align: center; }
.text-primary { color: #0d6efd; }
.text-gray-500 { color: #6b7280; }
.text-gray-700 { color: #374151; }
.hover\:text-gray-700:hover { color: #374151; }
.hover\:border-primary:hover { border-color: #0d6efd; }
.hover\:bg-blue-50:hover { background-color: #eff6ff; }
.border-2 { border-width: 2px; }
.border-gray-200 { border-color: #e5e7eb; }
.transition { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }

/* Tablet Responsive */
@media (max-width: 1199.98px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 991.98px) {
    .hero-section {
        padding: 30px 0;
        min-height: 50vh;
    }

    .hero-title {
        font-size: 28px;
        margin-bottom: 15px;
        text-align: center;
    }

    .hero-description {
        font-size: 15px;
        margin-bottom: 25px;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
        gap: 12px;
    }

    .hero-buttons .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .hero-image {
        margin-top: 20px;
    }

    .hero-image img {
        max-height: 300px;
    }

    .combo-items-wrapper {
        gap: 15px;
    }

    .combo-item {
        width: 250px;
    }
    
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
        padding: 25px 0;
    }
    
    .product-card {
        border-radius: 15px;
    }
    
    .product-image {
        height: 160px;
    }
}

/* Mobile Responsive */
@media (max-width: 767.98px) {
    .hero-section {
        padding: 20px 0;
        min-height: 45vh;
    }

    .hero-content {
        text-align: center;
        padding: 0 15px;
    }

    .hero-title {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .hero-description {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        padding: 10px 18px;
        font-size: 14px;
    }

    .hero-image {
        margin-top: 15px;
    }

    .hero-image img {
        max-height: 250px;
        border-radius: 15px;
    }

    .combo-title {
        font-size: 20px;
        text-align: center;
    }

    .combo-items-wrapper {
        gap: 12px;
    }

    .combo-item {
        width: 220px;
    }

    .combo-card {
        border-radius: 12px;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 20px 0;
    }
    
    .product-card {
        border-radius: 12px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    }
    
    .product-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    }
    
    .product-image {
        height: 140px;
    }
    
    .product-info {
        padding: 12px;
    }
    
    .product-name {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .product-price {
        font-size: 15px;
        margin-bottom: 10px;
    }
    
    .product-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .product-actions .btn {
        width: 100%;
        padding: 10px;
        border-radius: 8px;
        justify-content: center;
    }
    
    .popup-content {
        padding: 25px 20px;
        margin: 20px;
        border-radius: 15px;
    }

    .popup-title {
        font-size: 20px;
        margin-bottom: 25px;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin-bottom: 25px;
    }

    .category-card {
        padding: 20px 10px;
    }

    .category-icon {
        font-size: 32px;
        margin-bottom: 10px;
    }

    .category-name {
        font-size: 14px;
    }
}

/* Small Mobile */
@media (max-width: 575.98px) {
    .hero-section {
        padding: 15px 0;
        min-height: 40vh;
    }

    .hero-content {
        padding: 0 10px;
    }

    .hero-title {
        font-size: 20px;
        margin-bottom: 10px;
        line-height: 1.4;
    }

    .hero-description {
        font-size: 13px;
        margin-bottom: 18px;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 250px;
        padding: 8px 16px;
        font-size: 13px;
    }

    .hero-image img {
        max-height: 200px;
        border-radius: 12px;
    }

    .combo-title {
        font-size: 18px;
    }

    .combo-items-wrapper {
        gap: 10px;
    }

    .combo-item {
        width: 180px;
    }

    .combo-card {
        border-radius: 10px;
    }

    .combo-badge {
        top: 8px;
        left: 8px;
        padding: 3px 8px;
        font-size: 10px;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 15px 0;
    }
    
    .product-card {
        border-radius: 10px;
    }
    
    .product-image {
        height: 120px;
    }
    
    .product-info {
        padding: 10px;
    }
    
    .product-name {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .product-price {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .product-actions {
        gap: 6px;
    }
    
    .product-actions .btn {
        font-size: 12px;
        padding: 8px;
    }
    
    .product-badge {
        top: 6px;
        left: 6px;
        padding: 3px 8px;
        font-size: 10px;
        border-radius: 8px;
    }
    
    .popup-content {
        padding: 20px 15px;
        margin: 15px;
    }

    .popup-title {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .category-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .category-card {
        padding: 15px 8px;
    }

    .category-icon {
        font-size: 28px;
        margin-bottom: 8px;
    }

    .category-name {
        font-size: 13px;
    }
}

/* Extra Small Devices */
@media (max-width: 375px) {
    .hero-title {
        font-size: 18px;
    }

    .hero-description {
        font-size: 12px;
    }

    .hero-buttons .btn {
        padding: 7px 14px;
        font-size: 12px;
    }

    .hero-image img {
        max-height: 180px;
    }

    .combo-item {
        width: 160px;
    }
    
    .product-grid {
        gap: 10px;
    }
    
    .product-image {
        height: 110px;
    }
    
    .product-info {
        padding: 8px;
    }
    
    .product-name {
        font-size: 12px;
        margin-bottom: 5px;
    }
    
    .product-price {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .product-actions .btn {
        font-size: 11px;
        padding: 6px;
    }
}

@media (min-width: 768px) {
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
