
/* Shop home/category product-card redesign */
:root {
    --shop-blue: #0048bd;
    --shop-red: #d71920;
    --shop-pink: #ff2ea6;
    --shop-yellow: #ffd43b;
    --shop-ink: #1f2937;
    --shop-muted: #6b7280;
    --shop-line: #e7edf5;
    --shop-shadow: 0 18px 48px rgba(15, 23, 42, .10);
}

.home-hero,
.category-hero {
    border-radius: 34px;
    background:
        radial-gradient(circle at 18% 22%, rgba(255,255,255,.34), transparent 14rem),
        linear-gradient(135deg, #0048bd 0%, #006dff 48%, #00c2ff 100%);
    color: #fff;
    padding: clamp(2rem, 5vw, 4rem) !important;
    box-shadow: 0 24px 60px rgba(0, 72, 189, .22);
    overflow: hidden;
    position: relative;
}

.home-hero::after,
.category-hero::after {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    right: -80px;
    bottom: -150px;
    border-radius: 50%;
    background: rgba(255,255,255,.18);
}

.home-hero h1,
.category-hero h2 {
    position: relative;
    z-index: 1;
    font-weight: 900;
    letter-spacing: -.05em;
}

.home-hero p {
    position: relative;
    z-index: 1;
    color: rgba(255,255,255,.86);
    font-weight: 650;
}

.category-nav-modern {
    border-radius: 26px !important;
    background: #fff !important;
    border: 1px solid var(--shop-line) !important;
    box-shadow: var(--shop-shadow) !important;
}

.category-nav-modern .nav-link {
    border-radius: 18px !important;
    font-weight: 850 !important;
}

.category-nav-modern .nav-link:hover,
.category-nav-modern .nav-link.active {
    background: linear-gradient(135deg, var(--shop-blue), #006dff) !important;
    box-shadow: 0 14px 26px rgba(0, 72, 189, .22) !important;
}

.shop-listing-shell {
    background: #f8fbff !important;
    border: 1px solid var(--shop-line) !important;
    border-radius: 34px !important;
    box-shadow: 0 20px 60px rgba(15,23,42,.08) !important;
    padding: clamp(1rem, 2vw, 1.6rem) !important;
}

.shop-listing-shell > .row > .col-12 > .card,
.shop-listing-shell .card.border-0.shadow-sm {
    border-radius: 26px !important;
    border: 1px solid var(--shop-line) !important;
    box-shadow: 0 16px 40px rgba(15,23,42,.06) !important;
}

.search-container .search-input,
.shop-listing-shell .form-control,
.shop-listing-shell .form-select {
    border-radius: 18px !important;
    border-color: #dce5f0 !important;
    min-height: 48px;
    font-weight: 700;
}

.shop-products-grid {
    align-items: stretch;
}

/* Product card */
.shop-product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #dfe8f3;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.shop-product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0,72,189,.22);
    box-shadow: 0 24px 58px rgba(15,23,42,.14);
}

.shop-product-media {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 220px;
    padding: 18px 18px 10px;
    background: #fff;
    text-decoration: none;
}

.shop-product-media img {
    width: 100%;
    max-width: 225px;
    height: 190px;
    object-fit: contain;
    transition: transform .18s ease;
}

.shop-product-card:hover .shop-product-media img {
    transform: scale(1.035);
}

.shop-product-placeholder {
    display: grid;
    place-items: center;
    width: 180px;
    height: 180px;
    color: #cbd5e1;
    background: #f8fafc;
    border-radius: 20px;
    font-size: 2.4rem;
}

.shop-product-badge {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    padding: 8px 10px;
    color: #fff;
    background: var(--shop-pink);
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.shop-product-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 0 18px 18px;
    text-align: center;
}

.shop-product-chip {
    align-self: center;
    margin: 0 0 10px;
    padding: 7px 14px;
    border-radius: 999px;
    color: #777;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .04em;
}

.shop-product-chip:hover {
    color: var(--shop-blue);
    background: #eef5ff;
}

.shop-product-title {
    min-height: 44px;
    margin: 0 0 8px;
    font-size: .92rem;
    line-height: 1.28;
    font-weight: 900;
    text-transform: uppercase;
}

.shop-product-title a {
    color: var(--shop-ink);
    text-decoration: none;
}

.shop-product-title a:hover {
    color: var(--shop-blue);
}

.shop-product-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 8px;
}

.shop-product-rating span {
    color: var(--shop-yellow);
    font-size: .92rem;
    letter-spacing: .02em;
    text-shadow: 0 1px 0 rgba(0,0,0,.05);
}

.shop-product-rating small {
    color: #7c8aa0;
    font-size: .78rem;
    font-weight: 800;
}

.shop-product-price-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin-bottom: 7px;
}

.shop-product-price {
    color: #4b5563;
    font-size: 1.22rem;
    font-weight: 950;
}

.shop-product-delivery {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 22px;
    margin-bottom: 10px;
    color: #006dff;
    font-size: .78rem;
    font-weight: 900;
}

.shop-product-delivery i {
    color: #006dff;
}

.shop-product-select {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 36px;
    margin-top: auto;
    padding: 0 12px;
    color: #4b5563;
    background: #fff;
    border: 1px solid #dbe4ef;
    font-size: .76rem;
    font-weight: 850;
    text-transform: uppercase;
}

.shop-product-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    margin-top: 12px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    color: #fff !important;
    background: linear-gradient(135deg, var(--shop-blue), #005fe8);
    box-shadow: 0 14px 24px rgba(0,72,189,.25);
    text-decoration: none;
    text-transform: uppercase;
    font-size: .82rem;
    font-weight: 950;
    letter-spacing: .01em;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.shop-product-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 30px rgba(0,72,189,.32);
    background: linear-gradient(135deg, #003f9f, #005fe8);
}

.shop-product-btn-secondary {
    background: linear-gradient(135deg, #111827, #374151);
    box-shadow: 0 14px 24px rgba(17,24,39,.18);
}

/* Home can show wider cards on large screens while categories keep filter layout tidy */
@media (min-width: 1200px) {
    .shop-products-grid > .col-xl-3 {
        width: 20%;
    }
}

@media (max-width: 575.98px) {
    .shop-product-media {
        min-height: 190px;
    }

    .shop-product-media img {
        height: 165px;
    }

    .shop-listing-shell {
        border-radius: 24px !important;
    }
}


/* Home uses same product card design as categories */
.home-section .product-grid-5 {
    align-items: stretch;
}

.home-section .home-product-col {
    display: flex;
}

.home-shop-product-card {
    width: 100%;
}

.home-section .shop-product-card {
    min-height: 100%;
}

.home-section .shop-product-media {
    min-height: 220px;
}

.home-section .shop-product-title {
    min-height: 46px;
}

.home-section .section-heading {
    padding: 0 4px;
}

.home-section .section-title {
    font-weight: 950;
    letter-spacing: -.035em;
}

.home-section .section-link {
    color: #0048bd;
    font-weight: 900;
    text-decoration: none;
}

.home-section .section-link:hover {
    color: #003f9f;
}

@media (max-width: 575.98px) {
    .home-section .shop-product-media {
        min-height: 185px;
    }
}


/* Full-width home hero/banner like vapeo-style marketplaces */
.home-banners-fullwidth {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background: #fff;
    overflow: hidden;
}

.home-banners-fullwidth .home-banner-link,
.home-banners-fullwidth .carousel,
.home-banners-fullwidth .carousel-inner,
.home-banners-fullwidth .carousel-item {
    width: 100%;
}

.home-banners-fullwidth .home-banner-carousel-inner {
    border-radius: 0 !important;
    overflow: hidden;
}

.home-banners-fullwidth .home-banner-img,
.home-banners-fullwidth .home-banner-img-full {
    display: block;
    width: 100% !important;
    max-width: none !important;
    height: clamp(260px, 22vw, 430px);
    object-fit: cover;
    object-position: center;
    border-radius: 0 !important;
}

.home-banners-fullwidth .carousel-control-prev,
.home-banners-fullwidth .carousel-control-next {
    width: 54px;
    height: 54px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 18px;
    border-radius: 50%;
    background: rgba(0, 194, 160, .86);
    opacity: 1;
}

.home-banners-fullwidth .carousel-indicators {
    bottom: 18px;
}

.home-banners-fullwidth .carousel-indicators [data-bs-target] {
    width: 34px;
    height: 4px;
    border-radius: 999px;
    border: 0;
    background-color: rgba(17, 24, 39, .28);
    opacity: 1;
}

.home-banners-fullwidth .carousel-indicators .active {
    background-color: #111827;
}

@media (max-width: 767.98px) {
    .home-banners-fullwidth .home-banner-img,
    .home-banners-fullwidth .home-banner-img-full {
        height: 220px;
    }
}


/* Remove the Bootstrap container vertical gap above the full-width home banner */
.container.my-4 > .home-banners-fullwidth:first-child {
    margin-top: -1.5rem !important;
}

.home-banners-fullwidth {
    padding-top: 0 !important;
    margin-top: 0;
    line-height: 0;
}

.container.my-4 > .home-banners-fullwidth:first-child .home-banner-link,
.container.my-4 > .home-banners-fullwidth:first-child .carousel,
.container.my-4 > .home-banners-fullwidth:first-child .carousel-inner,
.container.my-4 > .home-banners-fullwidth:first-child .carousel-item,
.container.my-4 > .home-banners-fullwidth:first-child img {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.home-banners-fullwidth + .home-section {
    margin-top: 0 !important;
}


/* Full-width banner without horizontal overflow:
   the banner is now rendered outside .container.my-4, so it does not need negative margins. */
.home-banners-fullwidth {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    line-height: 0;
}

html,
body {
    overflow-x: hidden;
}
