/* ===================================
   CATEGORIES PAGE - PART 1
=================================== */

.categories-hero {

    position: relative;

    padding: 180px 0 120px;

    overflow: hidden;

    background:
        radial-gradient(circle at top right,
            rgba(20, 184, 166, .15),
            transparent 30%),

        linear-gradient(180deg,
            #f8fafc 0%,
            #ffffff 100%);
}

/* Hero Layout */

.categories-hero-wrapper {

    display: grid;

    grid-template-columns: 1fr 1fr;

    align-items: center;

    gap: 80px;
}

/* Hero Tag */

.hero-tag {

    display: inline-flex;

    align-items: center;

    padding: 10px 18px;

    border-radius: 999px;

    background: rgba(20, 184, 166, .12);

    color: #0f766e;

    font-size: .95rem;

    font-weight: 600;

    margin-bottom: 24px;
}

/* Heading */

.categories-hero-content h1 {

    font-size: clamp(3.2rem, 6vw, 6rem);

    line-height: 1.05;

    font-weight: 800;

    color: #0f172a;

    margin-bottom: 25px;
}

.categories-hero-content h1 span {

    display: block;

    color: #14b8a6;
}

/* Description */

.categories-hero-content p {

    font-size: 1.1rem;

    line-height: 1.9;

    color: #64748b;

    max-width: 650px;

    margin-bottom: 35px;
}

/* Buttons */

.hero-buttons {

    display: flex;

    align-items: center;

    gap: 16px;

    flex-wrap: wrap;

    margin-bottom: 50px;
}

.btn-primary {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 16px 34px;

    border-radius: 999px;

    background: linear-gradient(135deg,
            #0f766e,
            #14b8a6);

    color: #fff;

    font-weight: 700;

    text-decoration: none;

    transition: .35s ease;
}

.btn-primary:hover {

    transform: translateY(-4px);

    box-shadow:
        0 20px 40px rgba(20, 184, 166, .25);
}

.btn-secondary {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 16px 34px;

    border-radius: 999px;

    border: 1px solid #dbe4ee;

    color: #0f172a;

    background: #fff;

    font-weight: 700;

    text-decoration: none;

    transition: .35s ease;
}

.btn-secondary:hover {

    background: #f1f5f9;

    transform: translateY(-4px);
}

/* Stats */

.hero-stats {

    display: flex;

    align-items: center;

    gap: 40px;

    flex-wrap: wrap;
}

.hero-stat h3 {

    font-size: 2rem;

    color: #0f172a;

    margin-bottom: 5px;
}

.hero-stat span {

    color: #64748b;

    font-size: .95rem;
}

/* Hero Image */

.categories-hero-image {

    position: relative;
}

.categories-hero-image img {

    width: 100%;

    border-radius: 36px;

    display: block;

    box-shadow:
        0 40px 80px rgba(15, 23, 42, .12);
}

/* Floating Cards */

.floating-card {

    position: absolute;

    z-index: 5;

    padding: 14px 22px;

    border-radius: 18px;

    background: rgba(255, 255, 255, .95);

    backdrop-filter: blur(10px);

    box-shadow:
        0 15px 35px rgba(0, 0, 0, .08);

    font-weight: 600;

    animation: floatY 4s ease-in-out infinite;
}

.card-1 {

    top: 12%;

    left: -30px;
}

.card-2 {

    bottom: 12%;

    right: -20px;

    animation-delay: 2s;
}

@keyframes floatY {

    0% {

        transform: translateY(0px);
    }

    50% {

        transform: translateY(-12px);
    }

    100% {

        transform: translateY(0px);
    }
}

/* ===================================
   FEATURED CATEGORIES
=================================== */

.featured-categories {

    padding: 120px 0;

    background: #fff;
}

/* Section Header */

.section-header {

    text-align: center;

    max-width: 800px;

    margin: 0 auto 70px;
}

.section-header span {

    color: #0f766e;

    font-weight: 700;

    letter-spacing: 1px;

    text-transform: uppercase;
}

.section-header h2 {

    font-size: clamp(2.5rem, 5vw, 4.5rem);

    color: #0f172a;

    margin: 18px 0;
}

.section-header p {

    color: #64748b;

    line-height: 1.8;
}

/* Category Grid */

.featured-category-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 30px;
}

/* Card */

.featured-category-card {

    position: relative;

    overflow: hidden;

    border-radius: 28px;

    background: #fff;

    box-shadow:
        0 15px 40px rgba(0, 0, 0, .06);

    transition: .4s ease;
}

.featured-category-card:hover {

    transform:
        translateY(-10px);

    box-shadow:
        0 25px 60px rgba(20, 184, 166, .15);
}

.featured-category-image {

    height: 250px;

    overflow: hidden;
}

.featured-category-image img {

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: .5s ease;
}

.featured-category-card:hover img {

    transform: scale(1.08);
}

.featured-category-content {

    padding: 28px;
}

.featured-category-content span {

    color: #14b8a6;

    font-size: .9rem;

    font-weight: 700;
}

.featured-category-content h3 {

    margin: 14px 0 20px;

    font-size: 1.6rem;

    line-height: 1.3;

    color: #0f172a;
}

.featured-category-content a {

    color: #0f766e;

    font-weight: 700;

    text-decoration: none;

    transition: .3s ease;
}

.featured-category-content a:hover {

    letter-spacing: 1px;
}

/* Featured Card */

.featured-category-card.highlight {

    background:
        linear-gradient(135deg,
            #0f766e,
            #14b8a6);
}

.featured-category-card.highlight h3,
.featured-category-card.highlight span,
.featured-category-card.highlight a {

    color: #fff;
}

/* ===================================
   RESPONSIVE
=================================== */

@media (max-width: 1200px) {

    .featured-category-grid {

        grid-template-columns:
            repeat(2, 1fr);
    }

    .categories-hero-wrapper {

        gap: 50px;
    }
}

@media (max-width: 991px) {

    .categories-hero-wrapper {

        grid-template-columns: 1fr;

        text-align: center;
    }

    .hero-buttons,
    .hero-stats {

        justify-content: center;
    }

    .categories-hero-image {

        max-width: 700px;

        margin: auto;
    }
}

@media (max-width: 768px) {

    .featured-category-grid {

        grid-template-columns: 1fr;
    }

    .categories-hero {

        padding: 140px 0 90px;
    }

    .floating-card {

        display: none;
    }

    .hero-stats {

        gap: 25px;
    }
}

/* ===================================
   ALL CATEGORIES
=================================== */

.all-categories {

    padding: 120px 0;

    background: #f8fafc;
}

.categories-grid {

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(240px, 1fr));

    gap: 25px;
}

.category-box {

    position: relative;

    background: #fff;

    border-radius: 28px;

    padding: 35px 25px;

    text-align: center;

    text-decoration: none;

    overflow: hidden;

    transition: .4s ease;

    border: 1px solid #eef2f7;

    box-shadow:
        0 15px 40px rgba(15, 23, 42, .04);
}

.category-box::before {

    content: "";

    position: absolute;

    width: 250px;
    height: 250px;

    background:
        radial-gradient(rgba(20, 184, 166, .12),
            transparent 70%);

    top: -120px;
    right: -120px;

    opacity: 0;

    transition: .4s;
}

.category-box:hover::before {

    opacity: 1;
}

.category-box:hover {

    transform:
        translateY(-10px);

    border-color: #14b8a6;

    box-shadow:
        0 25px 60px rgba(20, 184, 166, .12);
}

.category-icon {

    width: 90px;
    height: 90px;

    margin: 0 auto 25px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 22px;

    background:
        linear-gradient(135deg,
            rgba(20, 184, 166, .12),
            rgba(15, 118, 110, .08));

    font-size: 2.8rem;

    transition: .4s;
}

.category-box:hover .category-icon {

    transform:
        rotate(8deg) scale(1.08);
}

.category-box h3 {

    font-size: 1.35rem;

    color: #0f172a;

    margin-bottom: 10px;
}

.category-box span {

    color: #64748b;

    font-size: .95rem;
}

/* ===================================
   PROMOTIONAL BANNER
=================================== */

.promo-banner {

    padding: 130px 0;

    background: #fff;

    overflow: hidden;
}

.promo-banner-wrapper {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 80px;

    align-items: center;
}

.promo-content span {

    display: inline-flex;

    align-items: center;

    padding: 10px 18px;

    border-radius: 999px;

    background:
        rgba(20, 184, 166, .12);

    color: #0f766e;

    font-weight: 600;

    margin-bottom: 22px;
}

.promo-content h2 {

    font-size:
        clamp(2.8rem, 5vw, 5rem);

    line-height: 1.1;

    color: #0f172a;

    margin-bottom: 25px;
}

.promo-content p {

    color: #64748b;

    line-height: 1.9;

    font-size: 1.05rem;

    margin-bottom: 35px;

    max-width: 650px;
}

/* Features */

.promo-features {

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 18px;

    margin-bottom: 35px;
}

.promo-features div {

    background: #f8fafc;

    border-radius: 16px;

    padding: 14px 18px;

    color: #0f172a;

    font-weight: 600;
}

/* Image */

.promo-image {

    position: relative;
}

.promo-image img {

    width: 100%;

    border-radius: 36px;

    display: block;

    box-shadow:
        0 40px 80px rgba(15, 23, 42, .12);

    transition: .5s ease;
}

.promo-image:hover img {

    transform: scale(1.03);
}

/* Floating Badge */

.promo-badge {

    position: absolute;

    top: 30px;
    right: -15px;

    z-index: 5;

    background: #14b8a6;

    color: #fff;

    padding: 14px 22px;

    border-radius: 50px;

    font-weight: 700;

    box-shadow:
        0 20px 40px rgba(20, 184, 166, .25);

    animation:
        floatBadge 4s ease-in-out infinite;
}

@keyframes floatBadge {

    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

/* ===================================
   REVEAL EFFECT
=================================== */

.category-box {

    opacity: 0;

    transform:
        translateY(40px);

    animation:
        revealCard .8s forwards;
}

.category-box:nth-child(1) {
    animation-delay: .1s;
}

.category-box:nth-child(2) {
    animation-delay: .15s;
}

.category-box:nth-child(3) {
    animation-delay: .2s;
}

.category-box:nth-child(4) {
    animation-delay: .25s;
}

.category-box:nth-child(5) {
    animation-delay: .3s;
}

.category-box:nth-child(6) {
    animation-delay: .35s;
}

.category-box:nth-child(7) {
    animation-delay: .4s;
}

.category-box:nth-child(8) {
    animation-delay: .45s;
}

.category-box:nth-child(9) {
    animation-delay: .5s;
}

.category-box:nth-child(10) {
    animation-delay: .55s;
}

@keyframes revealCard {

    to {

        opacity: 1;

        transform:
            translateY(0);
    }
}

/* ===================================
   RESPONSIVE
=================================== */

@media(max-width:1200px) {

    .promo-banner-wrapper {

        gap: 50px;
    }
}

@media(max-width:991px) {

    .promo-banner-wrapper {

        grid-template-columns: 1fr;

        text-align: center;
    }

    .promo-content p {

        margin-left: auto;
        margin-right: auto;
    }

    .promo-features {

        max-width: 600px;

        margin-left: auto;
        margin-right: auto;
        margin-bottom: 35px;
    }

    .promo-image {

        max-width: 700px;

        margin: auto;
    }
}

@media(max-width:768px) {

    .promo-banner {

        padding: 90px 0;
    }

    .promo-features {

        grid-template-columns: 1fr;
    }

    .promo-badge {

        display: none;
    }

    .categories-grid {

        grid-template-columns: 1fr;
    }
}

/* ===================================
   TRENDING PRODUCTS
=================================== */

.trending-products {

    padding: 120px 0;

    background: #ffffff;
}

.trendingSwiper {

    padding: 20px 10px 80px;
}

.product-card {

    background: #fff;

    border-radius: 30px;

    overflow: hidden;

    border: 1px solid #edf2f7;

    transition: .4s ease;

    box-shadow:
        0 15px 40px rgba(15, 23, 42, .04);

    height: 100%;
}

.product-card:hover {

    transform:
        translateY(-10px);

    box-shadow:
        0 25px 60px rgba(20, 184, 166, .12);
}

.product-image {

    height: 250px;

    background:
        linear-gradient(135deg,
            #f8fafc,
            #ffffff);

    display: flex;

    align-items: center;
    justify-content: center;

    overflow: hidden;
}

.product-image img {

    width: 180px;

    transition: .5s ease;
}

.product-card:hover .product-image img {

    transform:
        scale(1.08) rotate(3deg);
}

.product-content {

    padding: 30px;
}

.product-category {

    display: inline-flex;

    padding: 8px 14px;

    border-radius: 999px;

    background:
        rgba(20, 184, 166, .12);

    color: #0f766e;

    font-size: .85rem;

    font-weight: 700;
}

.product-content h3 {

    font-size: 1.5rem;

    margin: 18px 0 10px;

    color: #0f172a;
}

.product-content p {

    color: #64748b;

    line-height: 1.8;

    margin-bottom: 20px;
}

.product-footer {

    display: flex;

    align-items: center;

    justify-content: space-between;
}

.product-footer strong {

    color: #0f766e;

    font-size: 1.25rem;
}

.product-footer a {

    color: #0f766e;

    font-weight: 700;

    text-decoration: none;
}

.product-footer a:hover {

    letter-spacing: 1px;
}

/* Swiper Pagination */

.trendingSwiper .swiper-pagination-bullet {

    width: 12px;
    height: 12px;

    background: #cbd5e1;

    opacity: 1;
}

.trendingSwiper .swiper-pagination-bullet-active {

    background: #14b8a6;
}

/* ===================================
   WHY SHOP WITH US
=================================== */

.why-shop {

    padding: 120px 0;

    background: #f8fafc;
}

.why-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 30px;
}

.why-card {

    background: #fff;

    border-radius: 28px;

    padding: 40px 30px;

    text-align: center;

    border: 1px solid #eef2f7;

    transition: .4s ease;

    position: relative;

    overflow: hidden;
}

.why-card::before {

    content: "";

    position: absolute;

    width: 250px;
    height: 250px;

    background:
        radial-gradient(rgba(20, 184, 166, .12),
            transparent 70%);

    top: -120px;
    right: -120px;

    opacity: 0;

    transition: .4s;
}

.why-card:hover::before {

    opacity: 1;
}

.why-card:hover {

    transform:
        translateY(-10px);

    box-shadow:
        0 25px 60px rgba(20, 184, 166, .12);
}

.why-icon {

    width: 90px;
    height: 90px;

    margin: 0 auto 25px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 24px;

    background:
        linear-gradient(135deg,
            rgba(20, 184, 166, .12),
            rgba(15, 118, 110, .08));

    font-size: 2.5rem;
}

.why-card h3 {

    font-size: 1.4rem;

    color: #0f172a;

    margin-bottom: 15px;
}

.why-card p {

    color: #64748b;

    line-height: 1.8;
}

/* ===================================
   NEWSLETTER CTA
=================================== */

.category-newsletter {

    padding: 120px 0;

    background: #ffffff;
}

.newsletter-box {

    position: relative;

    overflow: hidden;

    border-radius: 40px;

    padding: 90px;

    text-align: center;

    background:
        linear-gradient(135deg,
            #0f766e,
            #14b8a6);

    color: #fff;
}

.newsletter-box::before {

    content: "";

    position: absolute;

    width: 400px;
    height: 400px;

    border-radius: 50%;

    background:
        rgba(255, 255, 255, .08);

    top: -200px;
    right: -150px;
}

.newsletter-box::after {

    content: "";

    position: absolute;

    width: 250px;
    height: 250px;

    border-radius: 50%;

    background:
        rgba(255, 255, 255, .08);

    bottom: -120px;
    left: -80px;
}

.newsletter-box span {

    position: relative;

    display: inline-flex;

    padding: 10px 18px;

    border-radius: 999px;

    background:
        rgba(255, 255, 255, .15);

    margin-bottom: 20px;

    font-weight: 700;
}

.newsletter-box h2 {

    position: relative;

    font-size:
        clamp(2.5rem, 5vw, 4.5rem);

    margin-bottom: 20px;
}

.newsletter-box p {

    position: relative;

    max-width: 650px;

    margin: auto auto 40px;

    color:
        rgba(255, 255, 255, .85);

    line-height: 1.9;
}

/* Form */

.newsletter-form {

    position: relative;

    display: flex;

    justify-content: center;

    gap: 15px;

    flex-wrap: wrap;
}

.newsletter-form input {

    width: 420px;

    height: 65px;

    border: none;

    outline: none;

    border-radius: 999px;

    padding: 0 25px;

    font-size: 1rem;
}

.newsletter-form button {

    height: 65px;

    padding: 0 35px;

    border: none;

    border-radius: 999px;

    background: #0f172a;

    color: #fff;

    font-weight: 700;

    cursor: pointer;

    transition: .35s ease;
}

.newsletter-form button:hover {

    transform:
        translateY(-4px);
}

/* ===================================
   RESPONSIVE
=================================== */

@media(max-width:1200px) {

    .why-grid {

        grid-template-columns:
            repeat(2, 1fr);
    }
}

@media(max-width:991px) {

    .newsletter-box {

        padding: 70px 40px;
    }
}

@media(max-width:768px) {

    .why-grid {

        grid-template-columns: 1fr;
    }

    .newsletter-box {

        padding: 50px 25px;
    }

    .newsletter-form input {

        width: 100%;
    }

    .newsletter-form {

        flex-direction: column;
    }

    .newsletter-form button {

        width: 100%;
    }
}

.category-showcase {
    padding: 140px 0 80px;
    background: #f8fafc;
}

.section-heading {
    text-align: center;
    max-width: 700px;
    margin: auto;
    margin-bottom: 60px;
}

.section-heading span {
    color: #14b8a6;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-heading h1 {
    font-size: 3.5rem;
    margin: 15px 0;
    color: #08111f;
}

.section-heading p {
    color: #64748b;
    font-size: 1.1rem;
}

.showcase-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 25px;
}

.showcase-card {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    min-height: 280px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .08);
}

.showcase-card.large {
    grid-row: span 2;
    min-height: 600px;
}

.showcase-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .5s;
}

.showcase-card:hover img {
    transform: scale(1.08);
}

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, .75),
            transparent);

    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    padding: 30px;
}

.overlay h3 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.overlay span {
    color: rgba(255, 255, 255, .8);
}
.categories-banner h1 {
    font-size: 4rem;
}

/* ====================================================================
   MOBILE REFACTOR: CATEGORIES PAGE OPTIMIZATION
==================================================================== */

@media (max-width: 768px) {

    /* --- 1. Department Showcase Main Header --- */
    .category-showcase {
        padding: 110px 0 40px !important;
        /* Balanced padding prevents header overlapping */
    }

    .section-heading {
        margin-bottom: 35px !important;
        padding: 0 8px;
    }

    .section-heading h1 {
        font-size: 2.2rem !important;
        /* Smooth font sizing prevents messy header word breaks */
        line-height: 1.25 !important;
        font-weight: 800;
    }

    .section-heading p {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
        margin-top: 10px;
    }

    /* --- 2. Showcase Grid (Fixes narrow/stretched image frames) --- */
    .showcase-grid {
        grid-template-columns: 1fr !important;
        /* Breaks the squished 3-column rows into a beautiful 1-column stack */
        gap: 16px !important;
        padding: 0 4px;
    }

    .showcase-card {
        min-height: 180px !important;
        /* Uniform height aspect ratios across all elements */
        border-radius: 20px !important;
    }

    .showcase-card.large {
        grid-row: auto !important;
        /* Removes massive desktop vertical span rules */
        min-height: 220px !important;
        /* Gives the primary "Fresh Groceries" box subtle visual dominance */
    }

    .overlay {
        padding: 20px !important;
        /* Tighter padding saves precious vertical screenspace */
        background: linear-gradient(to top, rgba(8, 17, 31, 0.9) 0%, rgba(8, 17, 31, 0.3) 70%, transparent 100%) !important;
    }

    .overlay h3 {
        font-size: 1.4rem !important;
        /* Clear readability metrics */
        margin-bottom: 4px !important;
    }

    /* --- 3. Popular Featured Cards Section --- */
    .featured-categories {
        padding: 60px 0 !important;
    }

    .featured-category-grid {
        grid-template-columns: 1fr !important;
        /* Spreads out side-by-side cards vertically */
        gap: 24px !important;
    }

    .featured-category-card {
        border-radius: 20px !important;
    }

    .featured-category-image {
        height: 200px !important;
        /* Optimizes focal points on smartphone glass panels */
    }

    /* --- 4. Grid Panel (2 Columns per Row) --- */
    .categories-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        /* Arranges the 10 grid items into a sleek 2x5 grid layout matrix */
        gap: 12px !important;
        padding: 0 4px;
    }

    .category-box {
        padding: 24px 16px !important;
        /* Compact, balanced interior margins */
        border-radius: 16px !important;
    }

    .category-icon {
        width: 60px !important;
        height: 60px !important;
        font-size: 1.3rem !important;
        /* Neatly downscales font-awesome frameworks or icons */
        margin-bottom: 14px !important;
    }

    .category-box h3 {
        font-size: 1.05rem !important;
        font-weight: 700;
        line-height: 1.3 !important;
    }

    .category-box span {
        font-size: 12px !important;
    }

    /* --- 5. Promo Banner Refactor (Fixes List Stretching) --- */
    .promo-banner {
        padding: 60px 0 !important;
    }

    .promo-banner-wrapper {
        grid-template-columns: 1fr !important;
        gap: 35px !important;
    }

    .promo-features {
        grid-template-columns: 1fr !important;
        /* Changes checkboxes into an intuitive clean checklist column */
        gap: 12px !important;
        width: 100%;
        max-width: 300px;
        /* Locks rows into a balanced text-aligned column box block */
        margin: 0 auto 30px !important;
        text-align: left;
    }

    .promo-features div {
        padding: 12px 16px !important;
        font-size: 14px !important;
        border: 1px solid #e2e8f0;
        background: #ffffff;
        /* Turns list rows into tiny cards matching the brand design system */
        border-radius: 12px;
    }

    .promo-image img {
        border-radius: 20px !important;
    }

    /* --- 6. Trending Products Header Cleanup --- */
    .trending-products {
        padding: 60px 0 !important;
    }

    .trendingSwiper {
        padding-bottom: 50px !important;
    }
}

/* ====================================================================
   MOBILE TOUCH-SWIPEABLE CAROUSEL (CSS SCROLL SNAP)
==================================================================== */
@media (max-width: 768px) {

    /* 1. Turn the parent track into an infinite horizontal row */
    .showcase-grid {
        display: flex !important;
        /* Switch from grid to horizontal flex row */
        flex-direction: row !important;
        overflow-x: auto !important;
        /* Enable swipe gesture actions */
        overflow-y: hidden !important;
        scroll-snap-type: x mandatory !important;
        /* Snaps cards perfectly into place */
        scroll-behavior: smooth !important;
        gap: 16px !important;
        padding: 10px 20px 30px 20px !important;
        /* Extra bottom padding for shadow breathing room */
        margin: 0 -20px !important;
        /* Extends row edge-to-edge across the phone screen */

        /* Hide default ugly mobile scrollbars */
        scrollbar-width: none;
        /* Firefox */
    }

    .showcase-grid::-webkit-scrollbar {
        display: none;
        /* Chrome, Safari, and Opera */
    }

    /* 2. Configure card footprints to occupy balanced mobile slider frames */
    .showcase-card {
        min-width: 270px !important;
        /* Width of each slide box target on a smartphone */
        max-width: 80% !important;
        height: 380px !important;
        /* Balanced uniform height metric */
        flex-shrink: 0 !important;
        /* Prevents cards from squishing together */
        scroll-snap-align: center !important;
        /* Centers the active card in the viewport when swiped */
        box-shadow: 0 10px 25px rgba(8, 17, 31, 0.08) !important;
        transition: transform 0.3s ease !important;
    }

    /* 3. Eliminate layout shifts from complex desktop configurations */
    .showcase-card.large {
        grid-row: auto !important;
        min-height: 380px !important;
        /* Matches sister elements perfectly */
    }

    /* 4. Tighter internal text layouts for phone slides */
    .overlay {
        padding: 24px !important;
    }

    .overlay h3 {
        font-size: 1.5rem !important;
        font-weight: 700 !important;
    }
}