:root {
    --primary-color: #008080;
    /* Ocean Teal */
    --secondary-color: #F4A460;
    /* Sand Gold */
    --bg-color: #F9F7F2;
    /* Off-white/Sand tint */
    --text-color: #2F4F4F;
    /* Dark Slate */
    --font-main: 'Poppins', sans-serif;
    --border-radius: 12px;
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    /* padding-bottom: 80px; */
    /* Space for mobile bottom nav/CTA */
}

/* Typography Overrides */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--primary-color);
}

.text-gold {
    color: var(--secondary-color) !important;
}

.bg-ocean {
    background-color: var(--primary-color) !important;
    color: white;
}

/* Card Styling */
.card-custom {
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: white;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}

.card-custom:active,
.card-custom:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.card-img-wrapper {
    position: relative;
    padding-top: 75%;
    /* 4:3 Aspect Ratio */
    overflow: hidden;
    background-color: #eee;
}

.card-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge-duration {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 0.75rem;
    padding: 4px 8px;
    text-align: center;
    backdrop-filter: blur(2px);
}

/* Button Styling */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 600;
}

.btn-primary:hover,
.btn-primary:active,
.btn-primary:focus {
    background-color: #006666;
    border-color: #006666;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

.iw-pagination {
    margin-bottom: 0;
}

.iw-pagination .page-link {
    min-width: 38px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-color: #dce7ea;
    border-radius: 8px;
    color: var(--primary-color);
    font-size: 0.88rem;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(18, 38, 63, 0.06);
}

.iw-pagination .page-link:hover,
.iw-pagination .page-link:focus {
    background: #eef8f5;
    border-color: rgba(0, 128, 128, 0.35);
    color: #006666;
}

.iw-pagination .page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.iw-pagination .page-item.disabled .page-link {
    background: #f5f8f8;
    border-color: #e3eaee;
    color: #9aa7ad;
    box-shadow: none;
}

/* Navbar */
.navbar-custom {
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

.navbar-custom .container {
    min-height: 54px;
}

.site-header-spacer {
    height: 78px;
}

.navbar-brand {
    font-weight: 800;
    color: var(--primary-color) !important;
    font-size: 1.5rem;
}

.nav-link {
    color: var(--text-color);
    font-weight: 500;
}

.nav-link.active {
    color: var(--primary-color) !important;
}

@media (max-width: 575.98px) {
    .site-header-spacer {
        height: 74px;
    }
}

/* Professional home page */
.home-hero {
    padding: 18px 0 0;
}

.home-main-slider {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 18px 42px rgba(18, 38, 63, 0.16);
}

.home-hero-panel {
    position: relative;
    min-height: min(420px, calc(100vh - 138px));
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background-color: #0f2f2d;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.home-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: min(100%, 520px);
    padding: clamp(22px, 4vw, 42px);
    color: #fff;
}

.home-kicker,
.home-section-label {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    border-radius: 8px;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.home-kicker {
    margin-bottom: 14px;
    padding: 7px 10px;
    background: rgba(244, 164, 96, 0.16);
    color: #ffd49c;
}

.home-hero h1 {
    max-width: 520px;
    margin: 0;
    color: #fff;
    font-size: clamp(1.7rem, 3.2vw, 3rem);
    line-height: 1.1;
}

.home-hero p {
    max-width: 460px;
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.94rem;
    line-height: 1.55;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.home-hero-actions .btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.home-product-search {
    width: 100%;
}

.home-product-search .input-group {
    min-height: 54px;
    overflow: hidden;
    border: 1px solid #dce7ea;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(18, 38, 63, 0.1);
}

.home-product-search .input-group-text,
.home-product-search .form-control,
.home-product-search .btn {
    border: 0;
}

.home-product-search .input-group-text {
    background: transparent;
    color: var(--primary-color);
}

.home-product-search .form-control {
    min-height: 54px;
    font-weight: 600;
}

.home-product-search .form-control:focus {
    box-shadow: none;
}

.home-product-search .btn {
    min-width: 112px;
    border-radius: 0;
    font-weight: 800;
}

.home-slider-control {
    width: 54px;
}

.home-slider-indicators {
    margin-bottom: 16px;
}

.home-search-section {
    margin-top: -34px;
    position: relative;
    z-index: 5;
    padding-bottom: 18px;
}

.home-product-search-panel {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 10px;
    width: min(100%, 760px);
    margin: 0 auto;
    padding: 14px;
    border: 1px solid #e3eaee;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 36px rgba(18, 38, 63, 0.12);
}

.home-search-copy strong,
.home-search-copy small {
    display: block;
}

.home-search-copy strong {
    color: #14212b;
    font-size: 0.98rem;
}

.home-search-copy small {
    margin-top: 2px;
    color: #6a7a84;
    font-size: 0.78rem;
}

.home-product-search-panel .input-group {
    width: 100%;
}

.home-search-input-row {
    width: 100%;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: stretch;
    min-height: 54px;
    overflow: hidden;
    border: 1px solid #dce7ea;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(18, 38, 63, 0.1);
}

.home-search-icon {
    display: grid;
    place-items: center;
    color: var(--primary-color);
    font-size: 1.05rem;
}

.home-search-input {
    min-width: 0;
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #14212b;
    font-size: 0.96rem;
    font-weight: 600;
}

.home-search-input:focus {
    box-shadow: none;
}

.home-search-submit {
    min-width: 112px;
    border-radius: 0;
    font-weight: 800;
}

.home-search-category-link {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: fit-content;
    max-width: 100%;
    padding: 0 12px;
    border: 1px solid #dce7ea;
    border-radius: 8px;
    color: var(--primary-color);
    background: #f8fafb;
    font-size: 0.86rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.home-search-category-link:hover {
    color: #006666;
    background: #eef9f8;
}

.home-hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.home-hero-points span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.82rem;
    font-weight: 700;
}

.home-section {
    padding: 26px 0;
}

.home-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.home-section-label {
    margin-bottom: 7px;
    color: #0b6f69;
}

.home-section h2 {
    margin: 0;
    color: #14212b;
    font-size: clamp(1.45rem, 2.2vw, 2.2rem);
    line-height: 1.15;
}

.home-section-hint {
    margin: 6px 0 0;
    color: #667782;
    font-size: 0.9rem;
    line-height: 1.45;
}

.home-section-link {
    color: #008080;
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.home-category-grid,
.home-process-grid,
.home-popular-grid {
    display: grid;
    gap: 16px;
}

.home-category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-category-card,
.home-process-card,
.home-popular-card {
    border: 1px solid #e9edf0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(18, 38, 63, 0.06);
}

.home-category-card {
    min-height: 168px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 18px;
    color: #14212b;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-category-card:hover,
.home-popular-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(18, 38, 63, 0.12);
}

.home-category-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    font-size: 1.35rem;
}

.home-category-rent .home-category-icon {
    background: #eef6f6;
    color: #008080;
}

.home-category-food .home-category-icon {
    background: #fff3df;
    color: #a45d00;
}

.home-category-shop .home-category-icon {
    background: #eef4ff;
    color: #2557a7;
}

.home-category-card strong {
    margin-top: 16px;
    font-size: 1.05rem;
}

.home-category-card small {
    margin-top: 4px;
    color: #667782;
    line-height: 1.45;
}

.home-need-showcase {
    display: grid;
    gap: 8px;
}

.home-need-card {
    position: relative;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    padding: clamp(22px, 6vw, 44px) clamp(22px, 7vw, 72px);
    border-radius: 8px;
    color: #0d332f;
    text-decoration: none;
    background-color: #edf8f5;
    background-image:
        linear-gradient(90deg, rgba(248, 255, 253, 0.98) 0%, rgba(248, 255, 253, 0.9) 26%, rgba(248, 255, 253, 0.34) 48%, rgba(248, 255, 253, 0.02) 100%),
        var(--need-image);
    background-size: cover;
    background-position: center right;
    box-shadow: 0 12px 28px rgba(18, 38, 63, 0.08);
    isolation: isolate;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-need-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 3% 12%, rgba(0, 128, 128, 0.14), transparent 18%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.62), transparent 48%);
    pointer-events: none;
}

.home-need-card:hover {
    color: inherit;
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(18, 38, 63, 0.14);
}

.home-need-badge {
    width: fit-content;
    margin-bottom: 12px;
    padding: 7px 14px;
    border-radius: 999px;
    background: #0b746d;
    color: #fff;
    font-size: clamp(0.78rem, 1.4vw, 0.95rem);
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
}

.home-need-card strong {
    max-width: 440px;
    color: currentColor;
    font-size: clamp(2.35rem, 5.2vw, 4.6rem);
    line-height: 0.95;
    letter-spacing: 0;
}

.home-need-card small {
    max-width: 310px;
    margin-top: 14px;
    color: #53646b;
    font-size: clamp(1rem, 2.3vw, 1.55rem);
    font-weight: 600;
    line-height: 1.35;
}

.home-need-action {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    width: fit-content;
    margin-top: 26px;
    color: currentColor;
    font-size: clamp(1rem, 2vw, 1.32rem);
    font-weight: 800;
}

.home-need-action i {
    font-size: 1.45em;
    line-height: 1;
}

.home-need-food {
    color: #4b2608;
    background-color: #fff3dd;
}

.home-need-food .home-need-badge {
    background: #e96800;
}

.home-need-shop {
    color: #104f9e;
    background-color: #edf7ff;
}

.home-need-shop .home-need-badge {
    background: #1556a7;
}

.home-process-section {
    background: #fff;
    border-top: 1px solid #edf0f2;
    border-bottom: 1px solid #edf0f2;
}

.home-process-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-process-card {
    padding: 18px;
}

.home-process-card span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #008080;
    color: #fff;
    font-weight: 900;
}

.home-process-card h3,
.home-popular-card h3 {
    margin: 14px 0 8px;
    color: #14212b;
    font-size: 1rem;
}

.home-process-card p,
.home-popular-card p {
    margin: 0;
    color: #667782;
    font-size: 0.88rem;
    line-height: 1.6;
}

.home-popular-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-slider-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.home-slider-button {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border: 1px solid #dce7ea;
    border-radius: 8px;
    background: #fff;
    color: #0b6f69;
    box-shadow: 0 6px 16px rgba(18, 38, 63, 0.08);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.home-slider-button:hover {
    background: #008080;
    color: #fff;
    transform: translateY(-1px);
}

.home-slider-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 2px 2px 14px;
}

.home-slider-track::-webkit-scrollbar {
    display: none;
}

.home-slider-card {
    flex: 0 0 min(320px, 82vw);
    scroll-snap-align: start;
}

.product-fbt-head {
    margin-bottom: 12px;
}

.product-fbt-head h2 {
    margin-bottom: 0;
    font-size: 1.2rem;
}

.product-fbt-slider {
    padding-bottom: 4px;
}

.product-fbt-slider .home-slider-card {
    flex-basis: min(280px, 78vw);
}

.home-popular-card {
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-popular-image {
    aspect-ratio: 4 / 3;
    background: #f7fafb;
}

.home-popular-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-popular-body {
    padding: 14px;
}

.home-popular-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    border-radius: 8px;
    background: #eef6f6;
    color: #0b6f69;
    font-size: 0.72rem;
    font-weight: 800;
}

.home-popular-rating {
    color: #f5a623;
    font-size: 0.84rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.home-popular-rating small {
    color: #667782;
}

.home-popular-price {
    display: flex;
    flex-direction: column;
    margin-top: 12px;
}

.home-popular-price strong {
    color: #006ee6;
}

.home-popular-price small {
    color: #667782;
    font-size: 0.76rem;
}

.home-category-list-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.home-category-list-card {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) 28px;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid #e3eaee;
    border-radius: 8px;
    background: #fff;
    color: #14212b;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(18, 38, 63, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-category-list-card:hover {
    color: #14212b;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(18, 38, 63, 0.12);
}

.home-category-list-image {
    width: 96px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 8px;
    background: #eef2f3;
}

.home-category-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-category-list-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.home-category-list-body strong {
    color: #14212b;
    overflow-wrap: anywhere;
}

.home-category-list-body small {
    color: #6a7a84;
    font-size: 0.78rem;
}

.home-category-list-arrow {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #eef9f8;
    color: var(--primary-color);
}

.home-ready-section {
    background: #fff;
    border-top: 1px solid #edf0f2;
    border-bottom: 1px solid #edf0f2;
}

.home-ready-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 18px;
    align-items: stretch;
}

.home-ready-card {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid #e9edf0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(18, 38, 63, 0.06);
    min-width: 0;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.home-ready-card:hover {
    transform: translateY(-3px);
    border-color: #cfe5e4;
    box-shadow: 0 14px 30px rgba(18, 38, 63, 0.1);
}

.home-ready-featured {
    grid-row: span 2;
    grid-template-columns: 1fr;
}

.home-ready-media {
    min-height: 150px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #eef6f6;
    color: #008080;
    font-size: 2rem;
    text-decoration: none;
}

.home-ready-featured .home-ready-media {
    min-height: 280px;
}

.home-ready-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-ready-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 16px;
}

.home-ready-meta,
.home-ready-footer,
.home-ready-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.home-ready-meta span {
    color: #0b6f69;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.home-ready-body h3 {
    margin: 8px 0;
    color: #14212b;
    font-size: 1.08rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.home-ready-featured .home-ready-body h3 {
    font-size: 1.5rem;
}

.home-ready-body h3 a {
    color: inherit;
    text-decoration: none;
}

.home-ready-body p {
    margin: 0 0 14px;
    color: #667782;
    font-size: 0.88rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.home-ready-chips {
    margin-top: auto;
}

.home-ready-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: 100%;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 8px;
    background: #f5f8fa;
    color: #536471;
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.home-ready-chip i {
    color: #0b6f69;
    font-size: 0.9rem;
}

.home-ready-chip strong,
.home-ready-chip em {
    display: inline;
    color: inherit;
    font-style: normal;
}

.home-ready-chip-rent {
    background: #eef8f5;
    color: #0b6f69;
}

.home-ready-chip-food {
    background: #fff5e8;
    color: #9a4a00;
}

.home-ready-chip-shop {
    background: #eef4ff;
    color: #1556a7;
}

.home-ready-chip-food i {
    color: #d46400;
}

.home-ready-chip-shop i {
    color: #1556a7;
}

.home-ready-footer {
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #edf0f2;
    color: #667782;
    font-size: 0.78rem;
    overflow-wrap: anywhere;
}

.home-ready-footer a {
    color: #008080;
    font-weight: 900;
    text-decoration: none;
}

@media (max-width: 991.98px) {
    .home-hero-panel {
        min-height: 380px;
        background-position: center top;
    }

    .home-search-section {
        margin-top: 12px;
        padding-bottom: 8px;
    }

    .home-product-search .input-group {
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr);
        overflow: visible;
        box-shadow: none;
    }

    .home-search-input-row {
        grid-template-columns: 44px minmax(0, 1fr);
        overflow: visible;
        box-shadow: none;
    }

    .home-product-search .input-group-text {
        min-height: 48px;
        justify-content: center;
    }

    .home-search-icon {
        min-height: 48px;
    }

    .home-product-search .form-control {
        min-height: 48px;
        min-width: 0;
        font-size: 0.9rem;
    }

    .home-search-input {
        min-height: 48px;
        font-size: 0.9rem;
    }

    .home-product-search .btn {
        grid-column: 1 / -1;
        width: 100%;
        min-height: 46px;
        border-radius: 8px;
        margin-top: 8px;
    }

    .home-search-submit {
        grid-column: 1 / -1;
        width: 100%;
        min-height: 46px;
        border-radius: 8px;
        margin-top: 8px;
    }

    .home-search-category-link {
        width: 100%;
        min-height: 44px;
    }

    .home-category-grid,
    .home-category-list-grid,
    .home-process-grid,
    .home-popular-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-need-card {
        min-height: 220px;
        background-position: center right;
    }

    .home-ready-layout {
        grid-template-columns: 1fr;
    }

    .home-ready-featured {
        grid-row: auto;
    }

    .home-ready-card {
        grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
    }
}

@media (min-width: 768px) {
    .home-need-showcase {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }

    .home-need-card {
        min-height: 360px;
        padding: 22px;
        background-image:
            linear-gradient(180deg, rgba(248, 255, 253, 0.98) 0%, rgba(248, 255, 253, 0.78) 48%, rgba(248, 255, 253, 0.08) 100%),
            var(--need-image);
        background-position: center bottom;
    }

    .home-need-card strong {
        max-width: 100%;
        font-size: clamp(2rem, 3.2vw, 3.2rem);
        line-height: 1;
    }

    .home-need-card small {
        max-width: 260px;
        font-size: clamp(0.95rem, 1.35vw, 1.16rem);
    }

    .home-need-action {
        margin-top: 18px;
        font-size: clamp(0.95rem, 1.25vw, 1.08rem);
    }
}

@media (max-width: 575.98px) {
    .home-hero {
        padding-top: 10px;
    }

    .home-main-slider {
        border-radius: 8px;
        background: #f7f3eb;
        box-shadow: 0 10px 24px rgba(18, 38, 63, 0.12);
    }

    .home-hero-panel {
        min-height: 0;
        aspect-ratio: 16 / 9;
        background-color: #f7f3eb;
        background-position: center;
        background-size: contain;
    }

    .home-hero-content {
        width: 100%;
        padding: 0;
    }

    .home-kicker {
        margin-bottom: 9px;
        font-size: 0.66rem;
    }

    .home-hero h1 {
        max-width: 330px;
        font-size: 1.45rem;
        line-height: 1.12;
    }

    .home-hero p {
        max-width: 320px;
        margin-top: 10px;
        font-size: 0.78rem;
        line-height: 1.42;
    }

    .home-hero-points {
        display: none;
    }

    .home-hero-actions .btn,
    .home-hero-actions {
        width: 100%;
    }

    .home-hero-actions .btn {
        justify-content: center;
    }

    .home-section-head {
        align-items: start;
        flex-direction: column;
        gap: 8px;
    }

    .home-slider-head {
        gap: 12px;
    }

    .home-slider-actions {
        width: 100%;
        justify-content: space-between;
    }

    .product-fbt-head .home-slider-actions {
        width: auto;
        justify-content: flex-end;
    }

    .product-fbt-head h2 {
        font-size: 1rem;
    }

    .home-category-grid,
    .home-category-list-grid,
    .home-process-grid,
    .home-popular-grid {
        grid-template-columns: 1fr;
    }

    .home-need-showcase {
        gap: 10px;
    }

    .home-need-card {
        min-height: 190px;
        padding: 18px;
        background-image:
            linear-gradient(90deg, rgba(248, 255, 253, 0.98) 0%, rgba(248, 255, 253, 0.86) 52%, rgba(248, 255, 253, 0.22) 100%),
            var(--need-image);
        background-position: center right;
    }

    .home-need-badge {
        margin-bottom: 10px;
        padding: 6px 10px;
    }

    .home-need-card strong {
        max-width: 270px;
        font-size: 2rem;
        line-height: 1.02;
    }

    .home-need-card small {
        max-width: 210px;
        margin-top: 8px;
        font-size: 0.92rem;
        line-height: 1.32;
    }

    .home-need-action {
        margin-top: 16px;
        gap: 10px;
        font-size: 0.96rem;
    }

    .home-category-list-card {
        grid-template-columns: 82px minmax(0, 1fr) 28px;
    }

    .home-category-list-image {
        width: 82px;
    }

    .home-ready-card {
        grid-template-columns: 1fr;
    }

    .home-ready-media,
    .home-ready-featured .home-ready-media {
        min-height: 210px;
    }

    .home-ready-body {
        padding: 14px;
    }

    .home-ready-featured .home-ready-body h3 {
        font-size: 1.22rem;
    }

    .home-ready-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Product card tablet fit */
.product-card-actions {
    min-width: 0;
}

.product-card-add {
    flex: 0 0 40px;
    min-width: 40px;
    overflow: hidden;
}

.product-card-add.custom-added-state {
    width: 40px;
    min-width: 40px;
    padding: 0;
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .product-card-price-row {
        flex-direction: column;
        align-items: stretch;
    }

    .product-card-actions {
        width: 100%;
    }

    .product-card-actions .product-qty-control {
        flex: 1 1 auto;
    }

    .product-card-actions .product-card-add {
        flex: 0 0 42px;
        min-width: 42px;
    }
}

/* Bottom CTA Mobile */
.bottom-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    padding: 12px 16px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 60px 0;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)), url('https://placehold.co/800x400/008080/FFFFFF?text=Islandwale');
    background-size: cover;
    background-position: center;
    border-radius: 0 0 24px 24px;
    margin-bottom: 24px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* Cat Chips */
.cat-chip {
    display: inline-block;
    padding: 8px 16px;
    background: white;
    color: var(--primary-color);
    border-radius: 50px;
    margin-right: 8px;
    margin-bottom: 8px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: var(--shadow-soft);
    border: 1px solid transparent;
}

.cat-chip.active {
    background: var(--primary-color);
    color: white;
}

/* Quantity Control */
.quantity-control {
    display: flex;
    align-items: center;
    background: #f1f1f1;
    border-radius: 8px;
    padding: 4px;
}

.btn-qty {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: none;
    background: white;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
}

.qty-display {
    padding: 0 12px;
    font-weight: 600;
}

.otp-form input::-webkit-outer-spin-button,
.otp-form input::-webkit-inner-spin-button,
.otp-box input::-webkit-outer-spin-button,
.otp-box input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.otp-form input,
.otp-box input {
    appearance: textfield;
    -moz-appearance: textfield;
}

/* Make image wrapper relative so overlay works */
.card-img-wrapper {
    position: relative;
    overflow: hidden;
}

/* Dark overlay */
.out-of-stock .card-img-wrapper::after {
    content: "Not Available";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Optional: blur the image slightly */
.out-of-stock img {
    filter: grayscale(80%) blur(1px);
}

/* Disable button visually */
.out-of-stock .btn-add-cart {
    pointer-events: none;
    opacity: 0.5;
}

.custom-added-state {
    background-color: #198754 !important;
    border-color: #198754 !important;
    font-weight: bold;
    font-size: 12px;
    padding: 10px 20px;
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}



/* //COMMON FOR PORCUCT PAGE */
.product-list-header,
.product-filter-card,
.product-info-card,
.empty-products-box {
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}

.product-filter-card {
    padding: 14px;
    border-radius: 18px;
}

.product-card {
    border-radius: 16px;
    overflow: hidden;
}

.card-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f6f6f6;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-title {
    min-height: 34px;
    color: #222;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Product shopping final overrides */
.product-card {
    border: 1px solid #e9edf0;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(18, 38, 63, 0.06);
}

.product-card .card-body {
    min-height: 178px;
}

.product-card-actions,
.product-buy-box,
.sticky-cart-inner {
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-card-actions {
    justify-content: space-between;
}

.product-card-price-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-qty-control {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    min-width: 94px;
    height: 36px;
    padding: 3px;
    border: 1px solid #dfe7ea;
    border-radius: 8px;
    background: #fff;
}

.product-qty-control .btn-qty {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 6px;
    background: #eef6f6;
    color: #0b6f69;
    font-weight: 800;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.product-qty-value {
    min-width: 22px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 800;
    color: #22313f;
}

.product-card-add {
    width: 40px;
    height: 36px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.product-gallery-card,
.product-info-card,
.product-section-block {
    background: #fff;
    border: 1px solid #e9edf0;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(18, 38, 63, 0.06);
}

.product-gallery-card {
    padding: 10px;
}

.product-main-image-wrap {
    height: auto;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    background: #f7fafb;
    overflow: hidden;
}

.product-main-image-wrap img {
    object-fit: contain;
    padding: 10px;
}

.product-info-card,
.product-section-block {
    padding: 18px;
}

.product-buy-box {
    flex-wrap: wrap;
    padding: 12px;
    border: 1px solid #e5eff0;
    border-radius: 8px;
    background: #f8fcfc;
}

.product-detail-add {
    min-height: 42px;
    border-radius: 8px;
    flex: 1 1 180px;
}

.sticky-cart-bar {
    padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid #e6ecef;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -10px 26px rgba(18, 38, 63, 0.12);
    backdrop-filter: blur(10px);
}

.sticky-cart-inner {
    justify-content: flex-end;
}

.sticky-cart-copy {
    margin-right: auto;
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.sticky-cart-button {
    min-height: 42px;
    min-width: 148px;
    border-radius: 8px;
}

@media (min-width: 768px) {
    .product-card-price-row {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }
}

@media (min-width: 992px) {
    .product-main-image-wrap {
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .product-info-card {
        padding: 24px;
        border-radius: 8px;
    }
}

@media (max-width: 575.98px) {
    .product-card .card-body {
        min-height: 190px;
        padding: 10px !important;
    }

    .product-qty-control {
        min-width: 88px;
        height: 34px;
    }

    .product-qty-control .btn-qty {
        width: 26px;
        height: 26px;
    }

    .product-main-image-wrap {
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .sticky-cart-inner {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 8px;
        align-items: center;
    }

    .sticky-cart-copy {
        grid-column: 1 / 2;
    }

    .sticky-qty-control {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
    }

    .sticky-cart-button {
        grid-column: 1 / 3;
        width: 100%;
    }
}

/* Keep product card quantity controls level with the price block. */
.product-card .product-card-price-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center !important;
    gap: 8px !important;
}

.product-card .product-card-price,
.product-card .product-card-actions,
.product-card .product-qty-control,
.product-card .product-card-add {
    align-self: center;
}

.product-card .product-card-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
}

.product-card .product-card-price {
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 380px) {
    .product-card .product-card-price-row {
        grid-template-columns: 1fr;
    }

.product-card .product-card-actions {
    width: 100%;
}

/* Homepage search final layout guard. */
.home-product-search.home-product-search-panel {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: min(100%, 760px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.home-product-search.home-product-search-panel .input-group {
    width: 100% !important;
    min-width: 0 !important;
}

.home-product-search.home-product-search-panel .form-control {
    min-width: 0 !important;
}

.home-product-search.home-product-search-panel .home-search-input-row {
    display: grid !important;
    grid-template-columns: 48px minmax(0, 1fr) auto !important;
    width: 100% !important;
    min-width: 0 !important;
}

.home-product-search.home-product-search-panel .home-search-input {
    min-width: 0 !important;
    width: 100% !important;
}

@media (max-width: 991.98px) {
    .home-product-search.home-product-search-panel .input-group {
        display: grid !important;
        grid-template-columns: 44px minmax(0, 1fr) !important;
    }

    .home-product-search.home-product-search-panel .btn {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        margin-top: 8px !important;
        border-radius: 8px !important;
    }

    .home-product-search.home-product-search-panel .home-search-input-row {
        grid-template-columns: 44px minmax(0, 1fr) !important;
        overflow: visible !important;
        box-shadow: none !important;
    }

    .home-product-search.home-product-search-panel .home-search-submit {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        margin-top: 8px !important;
        border-radius: 8px !important;
    }

    .home-search-category-link {
        width: 100% !important;
    }
}
}

/* Product card footer final layout
   This comes last because older card rules above used very small controls. */
.product-card .card-body {
    min-height: 196px !important;
    padding: 10px !important;
}

.product-card .product-title {
    min-height: 36px;
    line-height: 1.28;
    font-size: 0.84rem !important;
    color: #14212b;
    overflow-wrap: anywhere;
}

.product-card .product-desc {
    min-height: 32px;
    margin-bottom: 10px !important;
    color: #667782 !important;
    font-size: 0.76rem !important;
    line-height: 1.4;
}

.product-card .product-card-footer {
    margin-top: auto !important;
    padding-top: 8px !important;
    border-top: 1px solid #edf1f4;
}

.product-card .product-card-price-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    gap: 9px !important;
    align-items: stretch !important;
    width: 100%;
}

.product-card .product-card-price {
    min-width: 0 !important;
    min-height: 42px !important;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2;
}

.product-card .product-card-price-line {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.product-card .product-card-price-main {
    display: block;
    color: #006ee6;
    font-size: 0.88rem !important;
    font-weight: 900;
    line-height: 1.2;
    white-space: normal;
    overflow-wrap: anywhere;
}

.product-card .product-card-price-sub {
    display: block !important;
    margin-top: 3px;
    color: #6b7785;
    font-size: 0.7rem !important;
    line-height: 1.25;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    max-width: none;
}

.product-card .product-card-original {
    display: block;
    color: #8a97a6;
    font-size: 0.7rem;
    line-height: 1.2;
    text-decoration: line-through;
}

.product-card .product-card-offer {
    flex: 0 0 auto;
    border-radius: 999px;
    background: #d92d20;
    color: #fff;
    padding: 2px 6px;
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 1.2;
}

.product-card .product-card-actions {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: minmax(88px, 1fr) 42px;
    gap: 8px !important;
    align-items: center !important;
}

.product-card .product-qty-control {
    width: 100% !important;
    min-width: 0 !important;
    height: 38px !important;
    padding: 4px !important;
    border: 1px solid #dfe7ea;
    border-radius: 8px !important;
    background: #fff;
    display: inline-grid !important;
    grid-template-columns: 28px minmax(24px, 1fr) 28px;
    align-items: center !important;
    gap: 3px !important;
}

.product-card .product-qty-control .btn-qty {
    width: 28px !important;
    min-width: 28px !important;
    height: 28px !important;
    padding: 0 !important;
    border-radius: 7px !important;
    background: #eef6f6;
    color: #0b6f69;
    font-size: 0.85rem !important;
    font-weight: 900;
}

.product-card .product-qty-value {
    min-width: 24px !important;
    color: #14212b;
    font-size: 0.9rem !important;
    font-weight: 900;
    text-align: center;
}

.product-card .product-card-add {
    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    height: 38px !important;
    padding: 0 !important;
    border-radius: 8px !important;
}

.product-card .product-card-add i {
    font-size: 1rem;
}

.product-card .product-card-add.custom-added-state {
    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    height: 38px !important;
    font-size: 0 !important;
}

.product-card .product-card-add.custom-added-state i {
    font-size: 1rem;
}

@media (min-width: 768px) {
    .product-card .product-card-price-row {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (min-width: 1200px) {
    .product-card .product-card-price-row {
        grid-template-columns: minmax(0, 1fr) minmax(132px, auto);
        align-items: center !important;
    }

    .product-card .product-card-actions {
        width: auto !important;
        grid-template-columns: 92px 42px;
    }
}

@media (max-width: 575.98px) {
    .product-card .card-body {
        min-height: 202px !important;
    }

    .product-card .product-card-price-main {
        font-size: 0.82rem !important;
    }

    .product-card .product-card-price-sub {
        font-size: 0.66rem !important;
    }

    .product-card .product-card-actions {
        grid-template-columns: minmax(82px, 1fr) 40px;
        gap: 7px !important;
    }

    .product-card .product-qty-control {
        height: 36px !important;
        grid-template-columns: 26px minmax(22px, 1fr) 26px;
    }

    .product-card .product-qty-control .btn-qty {
        width: 26px !important;
        min-width: 26px !important;
        height: 26px !important;
    }

    .product-card .product-card-add,
    .product-card .product-card-add.custom-added-state {
        width: 40px !important;
        min-width: 40px !important;
        max-width: 40px !important;
        height: 36px !important;
    }
}

/* Final category tag and detail quantity overrides. */
.product-category-tag {
    width: fit-content;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border: 1px solid #dfe7ea;
    border-radius: 999px;
    background: #f8fafb;
    color: #47616f;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
}

a.product-category-tag:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #eef9f8;
}

.product-detail-category-tag {
    min-height: 24px;
    font-size: 12px;
    padding: 5px 10px;
}

.home-popular-category-tag {
    margin-bottom: 6px;
}

.product-buy-box .product-detail-qty,
.sticky-cart-inner .sticky-qty-control {
    width: 112px !important;
    min-width: 112px !important;
    height: 42px !important;
    padding: 4px !important;
    display: inline-grid !important;
    grid-template-columns: 32px minmax(28px, 1fr) 32px !important;
}

.product-buy-box .product-detail-qty .btn-qty,
.sticky-cart-inner .sticky-qty-control .btn-qty {
    width: 32px !important;
    min-width: 32px !important;
    height: 32px !important;
    font-size: 16px !important;
}

.product-buy-box .product-detail-qty .product-qty-value,
.sticky-cart-inner .sticky-qty-control .product-qty-value {
    min-width: 28px !important;
    font-size: 15px !important;
}

/* Product card action fit for tablet and compact desktop grids */
.product-card .product-card-price-row {
    flex-direction: column !important;
    align-items: stretch !important;
}

.product-card .product-card-actions {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: nowrap;
}

.product-card .product-card-actions .product-qty-control {
    flex: 0 1 96px;
}

.product-card .product-card-actions .product-card-add {
    flex: 0 0 42px;
    width: 42px;
    min-width: 42px;
    max-width: 42px;
}

.product-card .product-card-add.custom-added-state {
    width: 42px;
    min-width: 42px;
    max-width: 42px;
    padding: 0;
}

/* Product shopping polish */
.product-list-page .row.g-3,
.product-section-block .row.g-3 {
    align-items: stretch;
}

.product-grid-item {
    display: flex;
}

.product-card {
    width: 100%;
    border: 1px solid #e9edf0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(18, 38, 63, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.product-card:hover {
    border-color: rgba(32, 178, 170, 0.35);
    box-shadow: 0 12px 28px rgba(18, 38, 63, 0.11);
    transform: translateY(-2px);
}

.card-img-wrapper {
    background: #f7fafb;
}

.card-img-wrapper img {
    object-fit: cover;
    transition: transform 0.25s ease;
}

.product-card:hover .card-img-wrapper img {
    transform: scale(1.03);
}

.product-card .card-body {
    min-height: 178px;
}

.product-card-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-card-price-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-card-price {
    min-height: 38px;
}

.product-card-actions,
.product-buy-box,
.sticky-cart-inner {
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-card-actions {
    justify-content: space-between;
}

.product-qty-control {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    min-width: 94px;
    height: 36px;
    padding: 3px;
    border: 1px solid #dfe7ea;
    border-radius: 8px;
    background: #fff;
}

.product-qty-control .btn-qty {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 6px;
    background: #eef6f6;
    color: #0b6f69;
    font-weight: 800;
    line-height: 1;
}

.product-qty-control .btn-qty:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.product-qty-value {
    min-width: 22px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 800;
    color: #22313f;
}

.product-card-add {
    width: 40px;
    height: 36px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* .product-details-page {
    padding-bottom: 104px;
} */

.product-gallery-card,
.product-info-card,
.product-section-block {
    background: #fff;
    border: 1px solid #e9edf0;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(18, 38, 63, 0.06);
}

.product-gallery-card {
    padding: 10px;
}

.product-main-image-wrap {
    height: auto;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    background: #f7fafb;
    overflow: hidden;
}

.product-main-image-wrap img {
    object-fit: contain;
    padding: 10px;
}

.product-thumbs {
    padding-bottom: 4px;
}

.thumbnail-img {
    width: 68px;
    height: 68px;
    object-fit: cover;
    border-radius: 8px;
    background: #f7fafb;
}

.product-info-card,
.product-section-block {
    padding: 18px;
}

.product-detail-title {
    color: #14212b;
    line-height: 1.2;
}

.product-buy-box {
    flex-wrap: wrap;
    padding: 12px;
    border: 1px solid #e5eff0;
    border-radius: 8px;
    background: #f8fcfc;
}

.product-detail-add {
    min-height: 42px;
    border-radius: 8px;
    flex: 1 1 180px;
}

.sticky-cart-bar {
    z-index: 1030;
    padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid #e6ecef;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -10px 26px rgba(18, 38, 63, 0.12);
    backdrop-filter: blur(10px);
}

.sticky-cart-inner {
    justify-content: flex-end;
}

.sticky-cart-copy {
    margin-right: auto;
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.sticky-cart-copy strong {
    font-size: 1.05rem;
    color: #14212b;
}

.sticky-cart-copy small {
    color: #667782;
}

.sticky-cart-button {
    min-height: 42px;
    min-width: 148px;
    border-radius: 8px;
}

.cart-toast {
    position: fixed;
    right: 18px;
    bottom: 92px;
    z-index: 1080;
    max-width: min(320px, calc(100vw - 36px));
    padding: 11px 14px;
    border-radius: 8px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 10px 28px rgba(18, 38, 63, 0.18);
}

.cart-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.cart-toast-success {
    background: #198754;
}

.cart-toast-danger {
    background: #b42318;
}

.btn-add-cart.is-loading {
    opacity: 0.75;
}

.custom-added-state {
    border-radius: 8px;
    padding: inherit;
    box-shadow: none;
}

@media (min-width: 768px) {
    .product-card-price-row {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }

    .product-card-actions {
        flex: 0 0 auto;
    }
}

@media (min-width: 992px) {
    .product-main-image-wrap {
        aspect-ratio: 1 / 1;
    }

    .product-info-card {
        padding: 24px;
        border-radius: 8px;
    }
}

@media (max-width: 575.98px) {
    .product-list-page {
        padding-left: 10px;
        padding-right: 10px;
    }

    .product-card .card-body {
        min-height: 190px;
        padding: 10px !important;
    }

    .product-card-actions {
        gap: 8px;
    }

    .product-qty-control {
        min-width: 88px;
        height: 34px;
    }

    .product-qty-control .btn-qty {
        width: 26px;
        height: 26px;
    }

    .product-card-add {
        width: 38px;
        height: 34px;
    }

    /* .product-details-page {
        padding-bottom: 138px;
    } */

    .product-info-card,
    .product-section-block {
        padding: 14px;
    }

    .product-main-image-wrap {
        aspect-ratio: 1 / 1;
    }

    .sticky-cart-inner {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 8px;
        align-items: center;
    }

    .sticky-cart-copy {
        grid-column: 1 / 2;
    }

    .sticky-qty-control {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
    }

    .sticky-cart-button {
        grid-column: 1 / 3;
        width: 100%;
    }

    .cart-toast {
        left: 18px;
        right: 18px;
        bottom: 126px;
    }
}

.product-desc {
    font-size: 0.75rem;
    min-height: 34px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-rating {
    color: #f5a623;
}

.stock-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #dc3545;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 999px;
}

.product-main-image-wrap {
    height: 320px;
}

.thumbnail-img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 10px;
    transition: all 0.2s ease;
    flex: 0 0 auto;
}

.thumbnail-img:hover,
.thumbnail-img.active {
    border-color: #20B2AA;
    box-shadow: 0 0 5px rgba(32,178,170,0.45);
}

.product-detail-title {
    font-size: 1.6rem;
}

.sticky-cart-bar {
    z-index: 1030;
}

@media (min-width: 992px) {
    .product-main-image-wrap {
        height: 480px;
    }

    .product-info-card {
        padding: 22px;
        border-radius: 22px;
    }

    .product-detail-title {
        font-size: 2rem;
    }

    .product-card .card-body {
        padding: 14px !important;
    }
}

@media (max-width: 576px) {
    .product-list-page {
        padding-left: 12px;
        padding-right: 12px;
    }

    .product-main-image-wrap {
        height: 300px;
    }

    .product-detail-title {
        font-size: 1.35rem;
    }

    .sticky-cart-bar {
        padding-bottom: calc(12px + env(safe-area-inset-bottom)) !important;
    }
}

.product-card {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
}

.product-card .card-body {
    min-height: 150px;
}

.card-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f6f6f6;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-title {
    min-height: 34px;
    color: #222;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Product shopping final overrides */
.product-card {
    border: 1px solid #e9edf0;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(18, 38, 63, 0.06);
}

.product-card .card-body {
    min-height: 178px;
}

.product-card-actions,
.product-buy-box,
.sticky-cart-inner {
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-card-actions {
    justify-content: space-between;
}

.product-card-price-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-qty-control {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    min-width: 94px;
    height: 36px;
    padding: 3px;
    border: 1px solid #dfe7ea;
    border-radius: 8px;
    background: #fff;
}

.product-qty-control .btn-qty {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 6px;
    background: #eef6f6;
    color: #0b6f69;
    font-weight: 800;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.product-qty-value {
    min-width: 22px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 800;
    color: #22313f;
}

.product-card-add {
    width: 40px;
    height: 36px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.product-gallery-card,
.product-info-card,
.product-section-block {
    background: #fff;
    border: 1px solid #e9edf0;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(18, 38, 63, 0.06);
}

.product-gallery-card {
    padding: 10px;
}

.product-main-image-wrap {
    height: auto;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    background: #f7fafb;
    overflow: hidden;
}

.product-main-image-wrap img {
    object-fit: contain;
    padding: 10px;
}

.product-info-card,
.product-section-block {
    padding: 18px;
}

.product-buy-box {
    flex-wrap: wrap;
    padding: 12px;
    border: 1px solid #e5eff0;
    border-radius: 8px;
    background: #f8fcfc;
}

.product-detail-add {
    min-height: 42px;
    border-radius: 8px;
    flex: 1 1 180px;
}

.sticky-cart-bar {
    padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid #e6ecef;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -10px 26px rgba(18, 38, 63, 0.12);
    backdrop-filter: blur(10px);
}

.sticky-cart-inner {
    justify-content: flex-end;
}

.sticky-cart-copy {
    margin-right: auto;
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.sticky-cart-button {
    min-height: 42px;
    min-width: 148px;
    border-radius: 8px;
}

@media (min-width: 768px) {
    .product-card-price-row {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }
}

@media (min-width: 992px) {
    .product-main-image-wrap {
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .product-info-card {
        padding: 24px;
        border-radius: 8px;
    }
}

@media (max-width: 575.98px) {
    .product-card .card-body {
        min-height: 190px;
        padding: 10px !important;
    }

    .product-qty-control {
        min-width: 88px;
        height: 34px;
    }

    .product-qty-control .btn-qty {
        width: 26px;
        height: 26px;
    }

    .product-main-image-wrap {
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .sticky-cart-inner {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 8px;
        align-items: center;
    }

    .sticky-cart-copy {
        grid-column: 1 / 2;
    }

    .sticky-qty-control {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
    }

    .sticky-cart-button {
        grid-column: 1 / 3;
        width: 100%;
    }
}

/* =====================================================
   FINAL PRODUCT CARD FOOTER FIX
   Keep this at the END of style.css
===================================================== */

.product-card {
    width: 100%;
    overflow: hidden;
}

/* Stable product card body */
.product-card .card-body {
    min-height: 178px;
    display: flex;
    flex-direction: column;
}

/* Title fixed to 2 lines */
.product-title {
    min-height: 34px;
    line-height: 1.25;
    color: #222;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Description fixed to 2 lines */
.product-desc {
    min-height: 34px;
    font-size: 0.72rem;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Rating should not disturb spacing */
.product-rating {
    min-height: 18px;
    font-size: 11px;
    color: #f5a623;
}

/* Push footer to bottom */
.product-card-footer {
    margin-top: auto;
    padding-top: 6px;
}

/* IMPORTANT: override old grid/column rules */
.product-card .product-card-price-row,
.product-card-price-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 5px !important;
    width: 100%;
}

/* Price area */
.product-card .product-card-price,
.product-card-price {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    display: block !important;
    line-height: 1.1;
}

.product-card-price > span {
    display: block;
    font-size: 12px !important;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
}

.product-card-price > small {
    display: block !important;
    margin-top: 2px;
    font-size: 8.5px !important;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 82px;
}

/* Action buttons */
.product-card .product-card-actions,
.product-card-actions {
    flex: 0 0 auto !important;
    width: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-wrap: nowrap !important;
    gap: 4px !important;
}

/* Quantity pill */
.product-card .product-qty-control,
.product-qty-control {
    flex: 0 0 auto !important;
    min-width: 64px !important;
    width: 64px !important;
    height: 26px !important;
    padding: 2px !important;
    border: 1px solid #dfe7ea;
    border-radius: 999px !important;
    background: #fff;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0 !important;
}

.product-card .product-qty-control .btn-qty,
.product-qty-control .btn-qty,
.btn-qty {
    width: 20px !important;
    height: 22px !important;
    min-width: 20px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #eef6f6;
    color: #0b6f69;
    font-size: 12px !important;
    font-weight: 800;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.product-card .product-qty-value,
.product-qty-value {
    min-width: 18px !important;
    text-align: center;
    font-size: 11px !important;
    font-weight: 800;
    color: #22313f;
}

/* Cart button */
.product-card .product-card-add,
.product-card-add {
    flex: 0 0 28px !important;
    width: 28px !important;
    min-width: 28px !important;
    max-width: 28px !important;
    height: 26px !important;
    padding: 0 !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.product-card-add i {
    font-size: 13px;
}

/* Out of stock card footer */
.product-card.out-of-stock .product-card-footer {
    min-height: 32px;
    display: flex;
    align-items: center;
}

.product-card.out-of-stock .product-card-footer small {
    font-size: 11px;
}

/* Very small phones */
@media (max-width: 380px) {
    .product-card .card-body {
        padding: 7px !important;
    }

    .product-card .product-card-price-row,
    .product-card-price-row {
        gap: 3px !important;
    }

    .product-card-price > span {
        font-size: 11px !important;
    }

    .product-card-price > small {
        font-size: 8px !important;
        max-width: 72px;
    }

    .product-card .product-qty-control,
    .product-qty-control {
        width: 58px !important;
        min-width: 58px !important;
    }

    .product-card .product-qty-control .btn-qty,
    .product-qty-control .btn-qty,
    .btn-qty {
        width: 18px !important;
        min-width: 18px !important;
    }

    .product-card .product-card-add,
    .product-card-add {
        width: 26px !important;
        min-width: 26px !important;
        max-width: 26px !important;
    }
}

/* Product card footer production override
   Keep this as the final product-card block so older compact rules cannot win. */
.product-card .card-body {
    min-height: 196px !important;
    padding: 10px !important;
}

.product-card .product-title {
    min-height: 36px;
    line-height: 1.28;
    font-size: 0.84rem !important;
    color: #14212b;
    overflow-wrap: anywhere;
}

.product-card .product-desc {
    min-height: 32px;
    margin-bottom: 10px !important;
    color: #667782 !important;
    font-size: 0.76rem !important;
    line-height: 1.4;
}

.product-card .product-card-footer {
    margin-top: auto !important;
    padding-top: 8px !important;
    border-top: 1px solid #edf1f4;
}

.product-card .product-card-price-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 9px !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    width: 100%;
}

.product-card .product-card-price {
    min-width: 0 !important;
    min-height: 42px !important;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2;
}

.product-card .product-card-price-line {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.product-card .product-card-price-main {
    display: block;
    color: #006ee6;
    font-size: 0.88rem !important;
    font-weight: 900;
    line-height: 1.2;
    white-space: normal;
    overflow-wrap: anywhere;
}

.product-card .product-card-price-sub {
    display: block !important;
    margin-top: 3px;
    color: #6b7785;
    font-size: 0.7rem !important;
    line-height: 1.25;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    max-width: none !important;
}

.product-card .product-card-original {
    display: block;
    color: #8a97a6;
    font-size: 0.7rem;
    line-height: 1.2;
    text-decoration: line-through;
}

.product-card .product-card-offer {
    flex: 0 0 auto;
    border-radius: 999px;
    background: #d92d20;
    color: #fff;
    padding: 2px 6px;
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 1.2;
}

.product-card .product-card-actions {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: minmax(88px, 1fr) 42px !important;
    gap: 8px !important;
    align-items: center !important;
    justify-content: stretch !important;
}

.product-card .product-qty-control {
    width: 100% !important;
    min-width: 0 !important;
    height: 38px !important;
    padding: 4px !important;
    border-radius: 8px !important;
    display: inline-grid !important;
    grid-template-columns: 28px minmax(24px, 1fr) 28px;
    align-items: center !important;
    gap: 3px !important;
}

.product-card .product-qty-control .btn-qty {
    width: 28px !important;
    min-width: 28px !important;
    height: 28px !important;
    border-radius: 7px !important;
    font-size: 0.85rem !important;
}

.product-card .product-qty-value {
    min-width: 24px !important;
    font-size: 0.9rem !important;
}

.product-card .product-card-add,
.product-card .product-card-add.custom-added-state {
    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    height: 38px !important;
    border-radius: 8px !important;
}

.product-card .product-card-add i {
    font-size: 1rem;
}

@media (min-width: 1200px) {
    .product-card .product-card-price-row {
        grid-template-columns: minmax(0, 1fr) minmax(132px, auto) !important;
        align-items: center !important;
    }

    .product-card .product-card-actions {
        width: auto !important;
        grid-template-columns: 92px 42px !important;
    }
}

@media (max-width: 575.98px) {
    .product-card .card-body {
        min-height: 202px !important;
    }

    .product-card .product-card-price-main {
        font-size: 0.82rem !important;
    }

    .product-card .product-card-price-sub {
        font-size: 0.66rem !important;
    }

    .product-card .product-card-actions {
        grid-template-columns: minmax(82px, 1fr) 40px !important;
        gap: 7px !important;
    }

    .product-card .product-qty-control {
        height: 36px !important;
        grid-template-columns: 26px minmax(22px, 1fr) 26px;
    }

    .product-card .product-qty-control .btn-qty {
        width: 26px !important;
        min-width: 26px !important;
        height: 26px !important;
    }

    .product-card .product-card-add,
    .product-card .product-card-add.custom-added-state {
        width: 40px !important;
        min-width: 40px !important;
        max-width: 40px !important;
        height: 36px !important;
    }
}
