html {
    scroll-behavior: smooth;
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f7f6;
    color: #333;
}

/* ... existing code ... */
.cat-link {
    font-size: 1.3rem;
    /* Larger letters as requested */
    font-weight: 700;
    /* Bold */
    color: #333;
    padding: 1rem 2rem;
    /* Larger hit area */
    border: 3px solid #007bff;
    /* Thicker border */
    border-radius: 50px;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: white;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
    padding: 0;
}

/* Header */
header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    /* Multicolored Modern Gradient */
    background: linear-gradient(300deg, #007bff, #00d2ff, #ff00de, #FFD700, #007bff);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientFlow 6s ease infinite;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: transform 0.3s;
}

.logo:hover {
    transform: scale(1.05);
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    font-weight: 500;
    color: #555;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #007bff;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 6rem 1rem;
    background: linear-gradient(120deg, #2980b9, #8e44ad);
    color: white;
    margin-bottom: 2rem;
    /* Reduced bottom margin to fit navbar closer */
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    /* Modern Shimmer Gradient */
    background: linear-gradient(to right, #ffffff 0%, #ffd700 50%, #ffffff 100%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 3s linear infinite, modernSlideUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

@keyframes modernSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
        filter: blur(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* Category Navigation Bar */
.category-nav-container {
    background: white;
    /* Keeping the container borders as requested previously */
    border-top: 2px solid #eee;
    border-bottom: 2px solid #eee;
    padding: 1.5rem 0;
    margin-bottom: 3rem;
}

.category-nav {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 0 1rem;
}

.cat-link {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    padding: 0.8rem 2rem;
    border: 3px solid #007bff;
    border-radius: 50px;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: white;
}

.cat-link:hover {
    background-color: #007bff;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.2);
}

/* Product Section */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #333;
    border-bottom: 3px solid #007bff;
    display: inline-block;
    padding-bottom: 5px;
}

/* Updated Grid for Side-by-Side and Bigger Cards */
.product-grid {
    display: grid;
    /* This ensures cards are side-by-side but drop to next line if needed.
       minmax(300px, 1fr) makes them bigger than before. */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
    /* More space between cards */
    margin-bottom: 4rem;
    justify-content: center;
}

/* New Reference Design */
.product-card {
    background: white;
    border: 1px solid #eee;
    /* Subtle border like the image */
    border-radius: 8px;
    /* Slightly less rounded */
    box-shadow: none;
    /* Cleaner look initially */
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    text-align: center;
    padding: 0;
    /* Reset padding, we'll use inner containers */
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;

    /* Animation */
    animation: fadeInUp 0.6s ease-out backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.product-card:active,
.product-card:focus-within {
    /* Click "Light Up" Effect */
    animation: rainbowGlow 0.5s linear infinite;
    transform: translateY(-2px) scale(0.98);
}

@keyframes rainbowGlow {
    0% {
        box-shadow: 0 0 20px #ff0000;
        border-color: #ff0000;
    }

    20% {
        box-shadow: 0 0 20px #ff7f00;
        border-color: #ff7f00;
    }

    40% {
        box-shadow: 0 0 20px #ffff00;
        border-color: #ffff00;
    }

    60% {
        box-shadow: 0 0 20px #00ff00;
        border-color: #00ff00;
    }

    80% {
        box-shadow: 0 0 20px #0000ff;
        border-color: #0000ff;
    }

    100% {
        box-shadow: 0 0 20px #8b00ff;
        border-color: #8b00ff;
    }
}

.card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #ef4444;
    /* Red badge */
    color: white;
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 4px;
    z-index: 10;
}

.image-container {
    background-color: #fff;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 360px;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

.product-card:hover .product-image {
    transform: scale(1.1);
}

.card-content {
    padding: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex: 1;
    /* Fills remaining space */
}

.product-category {
    font-size: 0.8rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.product-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 0.5rem;
}

.product-price {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
}

.original-price {
    text-decoration: line-through;
    color: #999;
}

.current-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: #FFD700;
    /* Gold */
    animation: goldPulse 1.5s infinite;
}

@keyframes goldPulse {
    0% {
        transform: scale(1);
        text-shadow: 0 0 0 rgba(255, 215, 0, 0.4);
    }

    50% {
        transform: scale(1.05);
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
    }

    100% {
        transform: scale(1);
        text-shadow: 0 0 0 rgba(255, 215, 0, 0.4);
    }
}

/* Bottom Action Row */
.card-actions {
    margin-top: auto;
    display: flex;
    gap: 10px;
}

.view-details-btn {
    flex: 1;
    background-color: #2c3e50;
    /* Dark blue/gray like reference */
    color: white;
    border: none;
    padding: 0.8rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
    box-shadow: none;
    /* Flat look */
    margin-top: 0;
    width: auto;
    /* Reset previous */
}

.view-details-btn:hover {
    background-color: #34495e;
    transform: none;
    /* Keep it simple */
    box-shadow: none;
}

.wishlist-btn {
    width: 48px;
    height: 46px;
    /* Match height roughy */
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #dc3545;
    /* Red heart */
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: border-color 0.2s, background 0.2s;
}

.wishlist-btn:hover {
    border-color: #dc3545;
    background: #fff5f5;
}

.whatsapp-btn {
    flex: 1;
    background-color: #25D366;
    /* WhatsApp Brand Green */
    color: white;
    border: none;
    padding: 0.8rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s, transform 0.2s;
    text-decoration: none;
    /* Ensure link looks like button */
}

.whatsapp-btn:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fefefe;
    margin: 8% auto;
    padding: 2.5rem;
    border: none;
    width: 90%;
    max-width: 550px;
    border-radius: 12px;
    position: relative;
    animation: zoomIn 0.3s;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close:hover {
    color: #333;
}

/* Logo Word Animation Keyframes */
@keyframes flyAway {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(-20px);
        opacity: 0;
    }
}

@keyframes comeDown {
    0% {
        transform: translateY(-20px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Modern Header Categories */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    padding: 1rem 2rem;
    display: flex;
    flex-wrap: wrap;
    /* Allow wrapping on small screens */
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-categories {
    display: flex;
    gap: 15px;
    align-items: center;
    overflow-x: auto;
    padding: 5px;
    /* Space for shadows */
}

/* Updated chip style for Header */
.header-cat-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: #444;
    padding: 0.5rem 1.2rem;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    border-radius: 50px;
    white-space: nowrap;
    transition: all 0.2s;
    text-transform: uppercase;
}

.header-cat-link:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}


/* Creative Contact Section */
.contact-section {
    padding: 6rem 1rem;
    background: linear-gradient(135deg, #f0fdf4 0%, #fefce8 100%);
    /* Fresh gradient */
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

/* Background elements for creativity */
.contact-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: rgba(0, 123, 255, 0.05);
    border-radius: 50%;
    z-index: 0;
}

.contact-container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    display: flex;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.contact-info-side {
    background: linear-gradient(135deg, #007bff 0%, #00d2ff 100%);
    color: white;
    padding: 4rem 3rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info-side h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.contact-info-side p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 3rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.info-item i {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-form-side {
    flex: 1.5;
    padding: 4rem 3rem;
    background: white;
}

.modern-input-group {
    position: relative;
    margin-bottom: 2rem;
}

.modern-input {
    width: 100%;
    padding: 10px 0;
    font-size: 1rem;
    color: #333;
    border: none;
    border-bottom: 2px solid #ddd;
    outline: none;
    background: transparent;
    transition: border-color 0.3s;
}

.modern-input:focus {
    border-bottom-color: #007bff;
}

.modern-label {
    position: absolute;
    top: 10px;
    left: 0;
    font-size: 1rem;
    color: #999;
    pointer-events: none;
    transition: 0.3s ease all;
}

.modern-input:focus~.modern-label,
.modern-input:valid~.modern-label {
    top: -20px;
    font-size: 0.85rem;
    color: #007bff;
    font-weight: 600;
}

.submit-btn-modern {
    background: #007bff;
    color: white;
    padding: 1rem 3rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 123, 255, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    width: auto;
}

.submit-btn-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 123, 255, 0.3);
    background: #0056b3;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .header-categories {
        width: 100%;
        justify-content: center;
        padding-bottom: 10px;
        flex-wrap: nowrap;
        /* Allow horizontal scroll */
        -webkit-overflow-scrolling: touch;
    }

    .hero {
        padding: 4rem 1rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    /* Contact Page Mobile */
    .contact-container {
        flex-direction: column;
    }

    .contact-info-side,
    .contact-form-side {
        padding: 2rem;
    }

    /* Product Details Mobile */
    .detail-container {
        flex-direction: column;
        gap: 2rem;
    }

    .detail-image-side,
    .detail-info-side {
        width: 100%;
        /* Full width on mobile */
    }

    .main-detail-image {
        max-height: 300px;
        /* Limit height */
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
        /* Single column on very small screens */
    }

    .section-title {
        font-size: 1.5rem;
    }

    .cat-link {
        padding: 0.6rem 1.2rem;
        font-size: 1rem;
    }
}

/* Modern Footer */
.main-footer {
    background-color: white;
    color: #1e293b;
    padding: 5rem 1rem 2rem;
    border-top: 1px solid #eee;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

.footer-col h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #0f172a;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #64748b;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #007bff;
}

.footer-contact li {
    display: flex;
    gap: 10px;
    margin-bottom: 1rem;
    color: #64748b;
    align-items: flex-start;
}

.footer-contact i {
    color: #007bff;
    margin-top: 4px;
}

.footer-bottom {
    text-align: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
    color: #94a3b8;
}

.footer-desc {
    color: #64748b;
    line-height: 1.6;
    margin-top: 1rem;
}