/* =========================================
   SOUND MART MAIN CONTENT & CATEGORIES
   ========================================= */

.soundmart-main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px 15px 15px;
    /* Zero top padding */
    background-color: #ffffff;
}

.soundmart-category-nav {
    margin-top: 0;
    /* Sits naturally against the header */
    margin-bottom: 15px;
    box-shadow: none;
}

.category-nav-inner {
    display: flex;
    justify-content: center;
    /* Centers the shrunk buttons */
    gap: 8px;
    /* Tighter gap between the buttons */
    max-width: 500px;
    /* Constrains the whole block from stretching on desktop */
    margin: 0 auto;
}

/* Base style for the category buttons (30% smaller uniformly) */
.category-card {
    flex: 1;
    max-width: 90px;
    /* This absolutely stops them from stretching horizontally */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f8fafc;
    border: 1.5px solid transparent;
    border-radius: 10px;
    /* Smoother curve for a smaller box */
    padding: 10px 2px;
    /* Reduced vertical padding */
    text-decoration: none;
    color: #64748b;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    -webkit-tap-highlight-color: transparent;
}

.category-icon {
    width: 20px;
    /* 30% smaller than the original 28px */
    height: 20px;
    margin-bottom: 4px;
    stroke: currentColor;
    transition: transform 0.25s ease;
}

.category-name {
    font-size: 0.65rem;
    /* 30% smaller text */
    font-weight: 600;
    font-family: sans-serif;
    text-align: center;
    white-space: nowrap;
}

/* Active State (Blue border and text) */
.category-card.active {
    background-color: #f0f7ff;
    border-color: #007bff;
    color: #007bff;
}

/* Mouse hover for desktop users */
.category-card:hover {
    transform: translateY(-2px);
    background-color: #f1f5f9;
}

.category-card.active:hover {
    background-color: #e6f2ff;
}

/* Touch/Tap animation for mobile users */
.category-card:active {
    transform: scale(0.95);
}

.category-card:active .category-icon {
    transform: scale(0.9);
}

/* =========================================
   RESPONSIVE ADJUSTMENTS (Categories)
   ========================================= */
@media (max-width: 480px) {
    .soundmart-main-content {
        padding: 2px 12px 10px 12px;
    }

    .category-card {
        padding: 8px 0;
        max-width: 80px;
        /* Shrinks horizontally even more on narrow phones */
        border-radius: 8px;
    }

    .category-icon {
        width: 18px;
        height: 18px;
    }

    .category-name {
        font-size: 0.55rem;
    }

    .category-nav-inner {
        gap: 0px;
    }
}

/* =========================================
   SOUND MART HERO SECTION
   ========================================= */

/* 1. Desktop Defaults */
.soundmart-hero-section {
    max-width: 960px;
    /* Constrains the maximum width on large monitors */
    margin: 0 auto 25px auto;
    padding: 0 15px;
}

.hero-inner {
    width: 100%;
    aspect-ratio: 3.5 / 1;
    /* Wide horizontal rectangle for desktop */
    max-height: 360px;
    /* Absolute ceiling: stops the height from stretching too far */
    border-radius: 16px;
    overflow: hidden;
    background-color: #f8fafc;
}

.hero-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-link:active {
    transform: scale(0.98);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Forces image to neatly fill the container without distorting */
    display: block;
}

/* =========================================
   RESPONSIVE ADJUSTMENTS (Hero)
   ========================================= */

/* 2. Tablet Screens (e.g., iPad Mini, iPad Pro - 768px and up) */
@media (max-width: 1024px) {
    .hero-inner {
        aspect-ratio: 2.8 / 1;
        border-radius: 12px;
    }
}

/* 3. ALL Mobile Screens (Every phone under 768px) */
@media (max-width: 767px) {
    .soundmart-hero-section {
        padding: 0 12px;
        margin-top: -10px;
        /* Pulls banner up closer to the header */
        margin-bottom: 15px;
        max-width: 100%;
    }

    .hero-inner {
        width: 100%;
        aspect-ratio: 3.83 / 1;
        /* Your requested 40% reduced height for mobile */
        max-height: none;
        /* Removes the desktop height ceiling so the ratio controls it */
        border-radius: 10px;
    }
}

/* =========================================
   HIDE HERO BANNER ON DESKTOP
   ========================================= */
@media (min-width: 1025px) {
    .soundmart-hero-section {
        display: none;
    }
}

/* =========================================
   FEATURED PRODUCTS (NECKBAND COLLECTION)
   ========================================= */
.soundmart-featured-section {
    max-width: 960px;
    margin: 0 auto 30px auto;
    padding: 0 15px;
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.section-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title-wrap svg {
    width: 20px;
    height: 20px;
    fill: #002b5e;
    /* Matches dark brand color */
}

.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #002b5e;
    margin: 0;
    font-family: sans-serif;
}

.see-all-link {
    font-size: 0.8rem;
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 columns on mobile */
    gap: 12px;
}

/*product card design */

.product-card {
    /* 1. The Colorful/Particle Background */
    background-color: #ffffff;
    background-image: 
        radial-gradient(rgba(0, 123, 255, 0.06) 1px, transparent 1px), /* Tech particle dots */
        linear-gradient(180deg, #ffffff 40%, #f0f7ff 100%); /* Soft gradient fade */
    background-size: 12px 12px, 100% 100%; /* Spaces the dots 12px apart */
    background-position: center top, 0 0;
    
    /* 2. Reverted to Original Clean Borders & Shadow */
    border: 1px solid #eef2f6; 
    border-radius: 12px;
    padding: 0; 
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.02); /* Original soft minimal shadow */
    
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Subtle, natural physical lift on hover (No crazy glowing colors) */
.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
}

/* Badges */
.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #007bff;
    color: #ffffff;
    font-size: 0.55rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    z-index: 2;
    text-transform: uppercase;
}

.product-image-wrap {
    width: 100%; /* Keeps it touching the left and right edges */
    margin: 0; 
    aspect-ratio: 4 / 3; /* Changed from 1/1. This makes the image noticeably shorter! */
    background: #f8fafc; 
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-wrap img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    /* Crops excess gracefully to fill the square completely */
}

.product-info {
    padding: 8px 10px 10px 10px;
    /* Tighter padding to save vertical space */
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Product Info */
.product-title {
    font-family: 'Outfit', 'Hind Siliguri', sans-serif;
    font-size: 1rem; 
    font-weight: 700;
    /* Swapped the harsh near-black for your rich, premium brand navy */
    color: #002b5e; 
    margin: 0 0 4px 0; 
    line-height: 1.25; 
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* Ratings */
.product-rating {
    display: flex;
    align-items: center; /* Perfectly centers text and stars vertically */
    gap: 5px; /* Clean, even spacing between all elements */
    margin-bottom: 8px; 
}

.stars {
    color: #ffb800; /* Rich gold */
    font-size: 1rem; /* Prominent, visible stars */
    letter-spacing: -1px; 
    line-height: 1;
    margin-top: -1px; /* Slight optical adjustment for the star character shape */
}

.rating-score-small {
    font-size: 0.8rem;
    font-weight: 800;
    color: #00122e;
    font-family: 'Outfit', 'Hind Siliguri', sans-serif;
    line-height: 1;
}

.review-count {
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1;
}
/* Price */
.product-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 6px; /* Reduced from 8px */
}

.current-price {
    font-family: 'Outfit', sans-serif; /* Crisp tech font for numbers */
    font-size: 1.15rem; /* Increased from 1rem */
    font-weight: 800;
    color: #00122e;
    letter-spacing: -0.5px; /* Keeps the big numbers neat */
}

.regular-price {
    font-size: 0.75rem; /* Slightly increased to match new proportions */
    color: #94a3b8;
    text-decoration: line-through;
}
/* Colors */
.product-colors {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px; /* Reduced from 12px */
}

.color-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
}

.color-dot.black {
    background-color: #000000;
}

.color-dot.green {
    background-color: #2f4f4f;
}

.color-dot.white {
    background-color: #ffffff;
}

.color-label {
    font-size: 0.65rem;
    color: #64748b;
    margin-left: 4px;
}

/* Order Button */
.order-btn {
    width: 100%;
    /* Vibrant conversion gradient matching Sound Mart brand colors */
    background: linear-gradient(135deg, #007bff 0%, #00d2ff 100%);
    color: #ffffff;
    border: none;
    padding: 8px 0;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    margin-top: auto;
    transition: transform 0.15s ease, opacity 0.2s ease;
}

.order-btn:active {
    transform: scale(0.96);
    opacity: 0.9;
}

.order-btn svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Responsive adjustments for Desktop */
@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }

    .product-image-wrap {
        width: 100%;
        /* Resets the 70% restriction */
        margin: 0;
    }

    .product-card {
        padding: 0;
        /* Resets the 8px desktop padding */
    }
}

/* Product Card (Tightened padding to save vertical space on mobile) */