/**
 * SmartWave — Page-specific & home page styles
 */

/* ─── Global section headings (home + reusable) ─── */
.section-heading {
    text-align: center;
    margin-bottom: 0;
}

.section-heading .section-title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    color: #0D1117;
    margin-bottom: 0;
    line-height: 1.2;
}

.section-heading .section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 2px;
    margin: 12px auto 0;
    background: linear-gradient(90deg, #2A39BE, #19C2F0);
    border-radius: 2px;
}

.section-heading .section-subtitle {
    font-size: 1rem;
    color: #6C757D;
    max-width: 600px;
    margin: 12px auto 48px;
    line-height: 1.6;
}

.page-home .home-categories,
.page-home .home-featured,
.page-home .home-why,
.page-home .home-contact {
    padding: 80px 0;
}

@media (max-width: 767.98px) {
    .page-home .home-categories,
    .page-home .home-featured,
    .page-home .home-why,
    .page-home .home-contact {
        padding: 48px 0;
    }

    .section-heading .section-subtitle {
        margin-bottom: 32px;
    }
}

/* ─── FIX 2: Categories grid ─── */
.home-categories {
    background: #F8F9FF;
}

.home-cat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (min-width: 768px) {
    .home-cat-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (min-width: 1200px) {
    .home-cat-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 20px;
    }
}

.home-cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 32px 16px;
    background: #FFFFFF;
    border: 2px solid #F0F4FF;
    border-radius: 16px;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(42, 57, 190, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.home-cat-card:hover {
    transform: translateY(-6px);
    border-color: #1D86E8;
    box-shadow: 0 12px 32px rgba(42, 57, 190, 0.16);
}

.home-cat-card-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #2A39BE, #19C2F0);
    font-size: 1.75rem;
    line-height: 1;
    box-shadow: 0 8px 20px rgba(42, 57, 190, 0.2);
}

.home-cat-card-name {
    font-size: 1rem;
    font-weight: 600;
    color: #0D1117;
    line-height: 1.3;
}

/* ─── FIX 3: Featured products section ─── */
.home-featured {
    background: #FFFFFF;
}

/* ─── FIX 4: Why SmartWave ─── */
.home-why {
    background: #FFFFFF;
    border-top: 1px solid #F0F0F0;
    border-bottom: 1px solid #F0F0F0;
}

.home-why-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .home-why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .home-why-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.home-why-card {
    text-align: center;
    padding: 32px 24px;
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-why-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(42, 57, 190, 0.1);
}

.home-why-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2A39BE, #19C2F0);
    font-size: 1.75rem;
    line-height: 1;
    box-shadow: 0 8px 24px rgba(42, 57, 190, 0.25);
}

.home-why-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0D1117;
    margin: 16px 0 8px;
}

.home-why-text {
    font-size: 0.875rem;
    color: #6C757D;
    line-height: 1.6;
    margin: 0;
}

/* ─── FIX 5: Sustainability ─── */
.home-sustain {
    padding: 100px 0;
    background: linear-gradient(135deg, #2A39BE 0%, #19C2F0 100%);
    color: #FFFFFF;
}

@media (max-width: 767.98px) {
    .home-sustain {
        padding: 64px 0;
    }
}

.home-sustain-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

@media (min-width: 992px) {
    .home-sustain-grid {
        grid-template-columns: 60% 40%;
        gap: 48px;
    }
}

.home-sustain-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #19C2F0;
    margin-bottom: 12px;
}

.home-sustain-heading {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 24px;
    line-height: 1.15;
}

.home-sustain-list {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
}

.home-sustain-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    font-size: 1rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.92);
}

.home-sustain-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    font-weight: 700;
    color: #FFFFFF;
}

.home-sustain-btn {
    background: #FFFFFF !important;
    color: #2A39BE !important;
    border: none;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: var(--swb-radius-btn);
}

.home-sustain-btn:hover {
    background: #F8F9FF !important;
    transform: translateY(-2px);
}

.home-sustain-stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.home-sustain-stat {
    padding: 20px 24px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1rem;
    font-weight: 600;
    color: #FFFFFF;
    line-height: 1.4;
}

/* ─── FIX 6: Distributor CTA ─── */
.home-distributor {
    padding: 80px 0;
    background: #0A1628;
    position: relative;
    overflow: hidden;
}

.home-distributor::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.home-distributor .container {
    position: relative;
    z-index: 1;
}

.home-distributor-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
}

@media (min-width: 992px) {
    .home-distributor-grid {
        grid-template-columns: 1fr auto;
        gap: 48px;
    }
}

.home-distributor-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #19C2F0;
    margin-bottom: 12px;
}

.home-distributor-heading {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 12px;
}

.home-distributor-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    max-width: 520px;
    line-height: 1.6;
}

.home-distributor-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    border-radius: 50px;
    background: linear-gradient(135deg, #1D86E8, #19C2F0);
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
    box-shadow: 0 8px 28px rgba(25, 194, 240, 0.35);
}

.home-distributor-btn:hover {
    transform: scale(1.05);
    filter: brightness(1.08);
    color: #FFFFFF;
    box-shadow: 0 12px 36px rgba(25, 194, 240, 0.45);
}

.home-contact {
    background: #F8F9FA;
}

/* ─── Shared inner-page components ─── */
@media (min-width: 992px) {
    .page-home .swb-hero {
        height: 100svh;
        height: 100dvh;
        max-height: 100dvh;
        overflow: hidden;
    }

    .page-home .hero-product-showcase {
        height: min(480px, 52vh);
    }

    .page-home .hero-product-img {
        max-height: min(460px, 48vh);
    }
}

.premium-tile {
    text-align: center;
    padding: 32px 24px;
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.premium-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(42, 57, 190, 0.1);
}

.premium-tile--left {
    text-align: left;
}

.premium-tile-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2A39BE, #19C2F0);
    font-size: 1.75rem;
    line-height: 1;
    color: #FFFFFF;
    box-shadow: 0 8px 24px rgba(42, 57, 190, 0.2);
    margin-bottom: 16px;
}

.premium-tile-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0D1117;
    margin-bottom: 8px;
}

.premium-tile-text {
    font-size: 0.875rem;
    color: #6C757D;
    line-height: 1.6;
    margin: 0;
}

.premium-card {
    background: #FFFFFF;
    border: 2px solid #F0F4FF;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(42, 57, 190, 0.08);
}

.premium-form-card {
    background: #FFFFFF;
    border: 2px solid #F0F4FF;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(42, 57, 190, 0.08);
    padding: 32px;
}

@media (min-width: 992px) {
    .premium-form-card {
        padding: 40px;
    }
}

.premium-form-card .form-label,
.page-checkout .form-label,
.page-contact .form-label,
.page-distributor .form-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: #0D1117;
    margin-bottom: 0.35rem;
}

.premium-form-card .form-control,
.premium-form-card textarea.form-control,
.page-checkout .form-control,
.page-checkout textarea.form-control,
.page-contact .form-control,
.page-distributor .form-control {
    border-radius: 8px;
    border: 1px solid #E8ECF4;
    min-height: 48px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.premium-form-card .form-control:focus,
.page-checkout .form-control:focus,
.page-contact .form-control:focus,
.page-distributor .form-control:focus {
    border-color: #1D86E8;
    box-shadow: 0 0 0 3px rgba(29, 134, 232, 0.12);
}

.premium-form-card h2,
.checkout-card h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0D1117;
}

#distribution-inquiry {
    scroll-margin-top: calc(var(--swb-header-h) + 24px);
}

.form-success-card {
    text-align: center;
    padding: 48px 32px;
    border-color: rgba(42, 57, 190, 0.12);
    background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFF 100%);
    animation: formSuccessIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes formSuccessIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.form-success-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: var(--swb-gradient-brand);
    color: #FFFFFF;
    box-shadow: 0 12px 32px rgba(42, 57, 190, 0.28);
}

.form-success-card__title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0D1117;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.form-success-card__message {
    font-size: 1rem;
    color: #495057;
    line-height: 1.65;
    max-width: 32rem;
    margin: 0 auto 0.75rem;
}

.form-success-card__note {
    font-size: 0.875rem;
    color: #6C757D;
    line-height: 1.6;
    max-width: 28rem;
    margin: 0 auto 1.5rem;
}

.form-success-card__action {
    min-width: 220px;
    border-radius: var(--swb-radius-btn, 50px);
}

@media (max-width: 767.98px) {
    .form-success-card {
        padding: 36px 24px;
    }

    .form-success-card__title {
        font-size: 1.25rem;
    }
}

.tile-grid {
    display: grid;
    gap: 20px;
}

@media (min-width: 768px) {
    .tile-grid--3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .tile-grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .tile-grid--4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

.tile-grid--2 {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .tile-grid--2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Products catalog */
.page-products .products-toolbar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.products-count-label {
    font-size: 0.875rem;
    color: #6C757D;
    margin: 0;
}

/* Product detail */
.product-detail-panel {
    padding: 32px;
    background: #FFFFFF;
    border: 2px solid #F0F4FF;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(42, 57, 190, 0.08);
    height: 100%;
}

.product-detail-panel .product-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2A39BE;
}

.product-detail-panel .btn-swb-primary {
    background: linear-gradient(135deg, #2A39BE, #1D86E8) !important;
    border: none;
    min-height: 52px;
    border-radius: var(--swb-radius-btn);
    font-weight: 600;
}

.product-gallery-main {
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F8F9FF;
    border-radius: 16px;
    border: 2px solid #F0F4FF;
    padding: 32px;
    overflow: hidden;
}

.product-gallery-main img,
.product-zoom-img {
    max-height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

/* Checkout */
.checkout-card {
    background: #FFFFFF;
    border: 2px solid #F0F4FF !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 24px rgba(42, 57, 190, 0.08) !important;
}

.order-summary-sticky {
    position: sticky;
    top: calc(var(--swb-header-h) + 16px);
}

.order-summary-sticky .btn-swb-primary {
    background: linear-gradient(135deg, #2A39BE, #1D86E8) !important;
    border: none;
    min-height: 52px;
    border-radius: var(--swb-radius-btn);
}

/* Impact stats */
.impact-panel {
    padding: 40px 32px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(42, 57, 190, 0.04), rgba(25, 194, 240, 0.08));
    border: 2px solid #F0F4FF;
}

.page-sustainability .impact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (min-width: 992px) {
    .page-sustainability .impact-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Blog */
.blog-card-premium {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 2px solid #F0F4FF;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(42, 57, 190, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.blog-card-premium:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(42, 57, 190, 0.12);
}

.blog-card-date {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #1D86E8;
}

.blog-card-premium h2 a:hover {
    color: #2A39BE !important;
}

.blog-read-link {
    color: #2A39BE;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
}

.blog-read-link:hover {
    color: #1D86E8;
}

.article-shell {
    background: #FFFFFF;
    border: 2px solid #F0F4FF;
    border-radius: 16px;
    padding: 40px 32px;
    box-shadow: 0 4px 24px rgba(42, 57, 190, 0.06);
}

/* Legal / prose */
.legal-prose {
    background: #FFFFFF;
    border: 2px solid #F0F4FF;
    border-radius: 16px;
    padding: 40px 32px;
    box-shadow: 0 4px 24px rgba(42, 57, 190, 0.06);
    color: #6C757D;
    font-size: 0.9375rem;
    line-height: 1.7;
}

.legal-prose h2 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0D1117;
    margin-top: 1.5rem;
}

.legal-prose h2:first-child {
    margin-top: 0;
}

/* Sitemap */
.sitemap-col {
    background: #FFFFFF;
    border: 2px solid #F0F4FF;
    border-radius: 16px;
    padding: 24px;
    height: 100%;
    box-shadow: 0 4px 16px rgba(42, 57, 190, 0.06);
}

.sitemap-col h2 {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #6C757D;
    margin-bottom: 16px;
}

/* Thank you / errors */
.page-thankyou {
    padding: 80px 0;
    background: #F8F9FF;
}

.page-thankyou .thankyou-card {
    max-width: 560px;
    margin: 0 auto;
    border: 2px solid #F0F4FF;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(42, 57, 190, 0.1);
}

.thankyou-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(42, 57, 190, 0.1), rgba(25, 194, 240, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2A39BE;
}

.error-page {
    min-height: calc(100vh - var(--swb-header-h));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
    background: #F8F9FF;
}

.error-page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

/* Pagination */
.pagination .page-link {
    border-radius: var(--swb-radius-btn);
    margin: 0 4px;
    border: 1px solid #E8ECF4;
    color: #2A39BE;
    font-weight: 600;
    min-width: 44px;
    text-align: center;
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #2A39BE, #1D86E8);
    border-color: transparent;
}

/* Contact */
.page-contact .contact-info-card {
    height: 100%;
    border: 2px solid #F0F4FF;
    border-radius: 16px;
}

.page-about .mission-grid {
    display: grid;
    gap: 20px;
}

@media (min-width: 768px) {
    .page-about .mission-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.at-a-glance-card {
    background: linear-gradient(135deg, #2A39BE, #1D86E8);
    color: #FFFFFF;
    border-radius: 16px;
    padding: 32px;
    height: 100%;
}

.at-a-glance-card h3 {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.at-a-glance-card li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding: 12px 0;
}

.at-a-glance-card li:last-child {
    border-bottom: none;
}

.at-a-glance-card strong {
    color: #FFFFFF;
}

.breadcrumb {
    --bs-breadcrumb-divider: "›";
    font-size: var(--swb-text-sm);
    margin-bottom: var(--swb-space-2);
}

.breadcrumb-item a {
    color: var(--swb-text-muted);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--swb-primary);
    font-weight: var(--swb-weight-semibold);
}

.page-hero-gradient .breadcrumb-item.active {
    color: #19C2F0;
}

.product-gallery-main.is-fallback .product-card-fallback {
    display: flex !important;
}

@media (max-width: 991.98px) {
    .product-gallery-main {
        height: 360px;
    }
}

#productGrid.is-loading {
    opacity: 0.5;
    pointer-events: none;
}

.sitemap a.d-block {
    color: var(--swb-text);
    text-decoration: none;
    padding: 0.25rem 0;
    font-weight: var(--swb-weight-medium);
}

.sitemap a.d-block:hover {
    color: var(--swb-primary);
}

.search-input-wrap {
    position: relative;
}

.search-input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--swb-text-muted);
    pointer-events: none;
}

.search-input-wrap .search-input {
    padding-left: 2.75rem;
    border-radius: var(--swb-radius-pill);
    min-height: 48px;
    border: 1px solid var(--swb-border);
}

.search-input-wrap .search-input:focus {
    border-color: var(--swb-secondary);
    box-shadow: 0 0 0 3px rgba(29, 134, 232, 0.12);
}

.product-zoom-wrap {
    overflow: hidden;
    border-radius: var(--swb-radius-card);
    background: var(--swb-white);
    border: 1px solid var(--swb-border);
    box-shadow: var(--swb-shadow-sm);
}

.product-zoom-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    padding: var(--swb-space-4);
    transition: transform 0.5s var(--swb-ease);
}

.product-zoom-wrap:hover .product-zoom-img {
    transform: scale(1.06);
}

/* ═══════════════════════════════════════════════════════════
   Store UI — product, cart, checkout (reference-inspired)
   ═══════════════════════════════════════════════════════════ */

/* Store buttons */
.store-btn-primary {
    background: linear-gradient(135deg, #2A39BE, #1D86E8);
    border: none;
    color: #FFFFFF;
    font-weight: 600;
    border-radius: 50px;
    min-height: 48px;
    padding: 0.625rem 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.store-btn-primary:hover {
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(42, 57, 190, 0.25);
}

.store-btn-accent {
    background: linear-gradient(135deg, #1D86E8, #19C2F0);
    border: none;
    color: #FFFFFF;
    font-weight: 600;
    border-radius: 50px;
    min-height: 48px;
    padding: 0.625rem 1.5rem;
}

.store-btn-accent:hover {
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(25, 194, 240, 0.3);
}

.store-btn-outline {
    background: transparent;
    border: 2px solid #2A39BE;
    color: #2A39BE;
    font-weight: 600;
    border-radius: 50px;
    min-height: 40px;
    padding: 0.4rem 1.25rem;
}

.store-btn-outline:hover {
    background: linear-gradient(135deg, #2A39BE, #1D86E8);
    border-color: transparent;
    color: #FFFFFF;
}

/* Catalog */
.store-catalog-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.store-section-eyebrow {
    display: block;
    font-size: 0.8125rem;
    color: #6C757D;
    margin-bottom: 4px;
}

.store-section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: #0D1117;
    margin: 0;
}

.store-highlight {
    background: linear-gradient(135deg, #2A39BE, #19C2F0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.store-search-card {
    background: #FFFFFF;
    border: 1px solid #E8ECF4;
    border-radius: 16px;
    padding: 16px 20px;
    box-shadow: 0 2px 12px rgba(42, 57, 190, 0.06);
}

.store-product-card .card-img-wrap {
    border-radius: 16px 16px 0 0;
}

.store-card-meta {
    margin-bottom: 4px;
}

.store-card-cat {
    font-size: 0.75rem;
    color: #6C757D;
    font-weight: 500;
}

.store-card-quick-cart {
    display: none !important;
}

.store-qty-sm {
    flex-shrink: 0;
    width: auto;
    justify-content: center;
}

.store-qty-sm button {
    min-width: 32px;
    min-height: 36px;
    width: 32px;
    height: 36px;
}

.store-qty-sm input {
    width: 36px;
    min-height: 36px;
    font-size: 0.875rem;
}

/* Product cards — mobile horizontal layout (image left, details right) */
@media (max-width: 767.98px) {
    .product-card-premium.store-product-card {
        flex-direction: row;
        align-items: stretch;
    }

    .product-card-premium.store-product-card:hover {
        transform: none;
    }

    .store-product-card .card-img-wrap {
        flex: 0 0 118px;
        width: 118px;
        min-height: 140px;
        height: auto;
        align-self: stretch;
        padding: 12px 10px;
        border-radius: 16px 0 0 16px;
    }

    .product-card-premium .product-card-img {
        max-height: 116px;
    }

    .product-card-premium .card-body {
        flex: 1;
        min-width: 0;
        padding: 12px 12px 12px 8px;
        justify-content: center;
    }

    .store-card-cat {
        font-size: 0.6875rem;
    }

    .product-card-premium .product-card-name {
        font-size: 0.875rem;
        margin: 2px 0 4px;
        line-height: 1.35;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .product-card-premium .product-price {
        font-size: 1.0625rem;
        margin-bottom: 8px !important;
    }

    .product-card-premium .card-actions {
        gap: 6px;
    }

    .product-card-premium .btn-add-cart {
        font-size: 0.6875rem;
        min-height: 36px;
        padding-left: 0.45rem;
        padding-right: 0.45rem;
    }

    .store-qty-sm button {
        min-width: 28px;
        width: 28px;
        min-height: 34px;
        height: 34px;
    }

    .store-qty-sm input {
        width: 30px;
        min-height: 34px;
        font-size: 0.8125rem;
    }

}

/* Product detail */
.store-product-page {
    padding-top: 32px;
}

.store-gallery-main {
    border-radius: 20px;
    background: #F8F9FF;
    border: 1px solid #E8ECF4;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    overflow: hidden;
}

.store-product-cat {
    font-size: 0.8125rem;
    color: #6C757D;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.store-product-title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    color: #0D1117;
}

.store-stock-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(25, 194, 240, 0.15);
    color: #1D86E8;
}

.store-product-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2A39BE;
}

.store-product-desc {
    color: #6C757D;
    line-height: 1.7;
    margin-bottom: 24px;
}

.store-purchase-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: stretch;
}

.qty-stepper-lg {
    border-radius: var(--swb-radius-pill);
    flex-shrink: 0;
}

.qty-stepper-lg button {
    min-width: 44px;
    min-height: 48px;
}

.qty-stepper-lg input {
    width: 52px;
    font-size: 1rem;
}

.store-product-meta {
    border-top: 1px solid #E8ECF4;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.store-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.store-meta-label {
    font-size: 0.75rem;
    color: #6C757D;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.store-meta-value {
    font-weight: 600;
    color: #0D1117;
}

.store-tabs {
    border-top: 1px solid #E8ECF4;
    padding-top: 32px;
}

.store-tab-nav {
    border-bottom: 1px solid #E8ECF4;
    gap: 8px;
    justify-content: center;
}

.store-tab-nav .nav-link {
    border: none;
    color: #6C757D;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 0;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
}

.store-tab-nav .nav-link.active {
    color: #2A39BE;
    background: transparent;
    border-bottom-color: #2A39BE;
}

.store-tab-panels {
    padding: 32px 0 0;
}

.store-tab-body {
    color: #6C757D;
    line-height: 1.8;
    max-width: 900px;
}

.store-info-table th {
    width: 180px;
    color: #6C757D;
    font-weight: 500;
    border-color: #E8ECF4;
    padding: 12px 0;
}

.store-info-table td {
    border-color: #E8ECF4;
    padding: 12px 0;
    font-weight: 600;
}

.store-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

/* Cart drawer */
.store-cart-header {
    border-bottom: 1px solid #E8ECF4;
    padding: 20px 24px;
    flex-shrink: 0;
}

.store-cart-drawer.offcanvas {
    display: flex;
    flex-direction: column;
}

.store-cart-drawer .offcanvas-body {
    flex: 1 1 auto;
    overflow-y: auto;
    min-height: 0;
}

.store-cart-body {
    min-height: 0;
}

.store-cart-item {
    display: grid;
    grid-template-columns: 36px 72px minmax(0, 1fr);
    gap: 12px 14px;
    align-items: start;
    padding: 18px 20px;
    border-bottom: 1px solid #E8ECF4;
}

.store-cart-remove {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid #E8ECF4;
    border-radius: 50%;
    background: #FFFFFF;
    color: #6C757D;
    font-size: 1.125rem;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.store-cart-remove:hover {
    background: #FFF5F5;
    border-color: #FECACA;
    color: #DC3545;
}

.store-cart-thumb {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 12px;
    background: #F8F9FF;
    border: 1px solid #E8ECF4;
}

.store-cart-info {
    grid-column: 3;
    min-width: 0;
}

.store-cart-name {
    font-weight: 600;
    font-size: 0.9375rem;
    color: #0D1117;
    line-height: 1.4;
    margin-bottom: 4px;
    word-break: break-word;
}

.store-cart-unit {
    font-size: 0.8125rem;
    color: #2A39BE;
    font-weight: 600;
    margin-bottom: 12px;
}

.store-cart-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.store-cart-qty-stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid #E8ECF4;
    border-radius: 50px;
    background: #FFFFFF;
    overflow: hidden;
}

.store-cart-qty-stepper button {
    width: 36px;
    height: 36px;
    border: none;
    background: #F8F9FF;
    color: #0D1117;
    font-size: 1.1rem;
    cursor: pointer;
    line-height: 1;
}

.store-cart-qty-stepper button:hover {
    background: #E8F4FF;
    color: #2A39BE;
}

.store-cart-qty-val {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    padding: 0 4px;
    font-weight: 700;
    font-size: 0.875rem;
}

.store-cart-line-total {
    font-weight: 700;
    font-size: 0.9375rem;
    color: #0D1117;
    white-space: nowrap;
    margin-left: auto;
}

.store-cart-footer {
    background: #FFFFFF;
    border-top: 1px solid #E8ECF4;
    padding: 20px 24px;
    flex-shrink: 0;
    box-shadow: 0 -8px 24px rgba(42, 57, 190, 0.06);
}

.store-summary-lines {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.store-summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 0.9375rem;
}

.store-summary-total {
    font-size: 1.125rem;
    font-weight: 700;
    border-top: 1px solid #E8ECF4;
}

.store-summary-total span:last-child {
    color: #2A39BE;
}

/* Checkout */
.store-checkout-card {
    background: #FFFFFF;
    border: 1px solid #E8ECF4;
    border-radius: 16px;
    padding: 28px 32px;
    box-shadow: 0 2px 16px rgba(42, 57, 190, 0.05);
}

.store-checkout-heading {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0D1117;
    margin-bottom: 20px;
}

.store-input {
    border-radius: 12px;
    border: 1px solid #E8ECF4;
    min-height: 48px;
    padding: 0.75rem 1rem;
}

.store-input:focus {
    border-color: #1D86E8;
    box-shadow: 0 0 0 3px rgba(29, 134, 232, 0.12);
}

.store-payment-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.store-payment-option {
    display: block;
    cursor: pointer;
    margin: 0;
}

.store-payment-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.store-payment-option-body {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 2px solid #E8ECF4;
    border-radius: 14px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.store-payment-option input:checked + .store-payment-option-body {
    border-color: #2A39BE;
    background: rgba(42, 57, 190, 0.04);
}

.store-payment-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.store-order-summary {
    background: #FFFFFF;
    border: 1px solid #E8ECF4;
    border-radius: 16px;
    padding: 28px 32px;
    box-shadow: 0 4px 24px rgba(42, 57, 190, 0.08);
}

.store-checkout-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #F0F4FF;
    font-size: 0.875rem;
}

.store-checkout-item:last-child {
    border-bottom: none;
}

.store-summary-totals {
    border-top: 1px solid #E8ECF4;
}

/* Order success */
.page-thankyou.store-order-success {
    padding: 80px 0;
    background: #F8F9FF;
}

.store-success-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2A39BE, #19C2F0);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
}

.store-success-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 8px;
}

.store-success-lead {
    color: #6C757D;
    margin-bottom: 32px;
}

.store-order-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 28px;
    border-radius: 16px;
    background: linear-gradient(135deg, #2A39BE, #1D86E8);
    color: #FFFFFF;
    margin-bottom: 24px;
}

.store-order-bar-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 32px;
    flex: 1;
}

@media (min-width: 768px) {
    .store-order-bar-grid {
        grid-template-columns: repeat(4, auto);
    }
}

.store-order-bar-label {
    display: block;
    font-size: 0.75rem;
    opacity: 0.75;
    margin-bottom: 4px;
}

.store-order-bar-btn {
    background: #FFFFFF;
    color: #2A39BE;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    padding: 0.625rem 1.5rem;
    white-space: nowrap;
}

.store-order-bar-btn:hover {
    background: #F8F9FF;
    color: #2A39BE;
}

.store-order-details-card {
    background: #FFFFFF;
    border: 1px solid #E8ECF4;
    border-radius: 16px;
    padding: 28px 32px;
    box-shadow: 0 2px 16px rgba(42, 57, 190, 0.05);
}

.store-order-products-head {
    display: flex;
    justify-content: space-between;
    font-size: 0.8125rem;
    color: #6C757D;
    font-weight: 600;
    margin-bottom: 16px;
}

.store-order-product-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #E8ECF4;
}

.store-order-product-info {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.store-order-product-thumb {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    background: linear-gradient(135deg, #2A39BE, #19C2F0);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.875rem;
    flex-shrink: 0;
}

@media (max-width: 767.98px) {
    .store-purchase-row .store-btn-primary,
    .store-purchase-row .store-btn-accent {
        flex: 1 1 100%;
    }

    .store-checkout-card,
    .store-order-summary,
    .store-order-details-card {
        padding: 20px;
    }
}

/* ─── Hero product showcase (slider / orbit) ─── */
.hero-product-showcase {
    position: relative;
    width: 100%;
    height: min(520px, 58vh);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.hero-product-showcase-inner {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-product-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(55%);
    transition: transform 0.85s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.65s ease;
    pointer-events: none;
    z-index: 1;
}

.hero-product-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    z-index: 3;
}

.hero-product-slide.is-leaving {
    opacity: 0;
    transform: translateX(-55%);
    z-index: 2;
    pointer-events: none;
}

.hero-product-slide.is-reset {
    transition: none !important;
    transform: translateX(55%);
    opacity: 0;
}

.hero-product-slide.is-missing {
    display: none !important;
}

.hero-product-img {
    max-height: 520px;
    max-width: 110%;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 24px 64px rgba(0, 0, 0, 0.28));
}

.hero-product-slide.active .hero-product-img {
    animation: heroFloat 3.2s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-16px); }
}

.hero-product-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.hero-product-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.hero-product-dots .dot.active {
    width: 24px;
    border-radius: 4px;
    background: #FFFFFF;
}

.hero-product-dots .dot.is-missing {
    display: none;
}

/* Option B: add class "orbit-mode" to .hero-product-showcase */
.hero-product-showcase.orbit-mode {
    width: min(100%, 500px);
    height: 500px;
    margin: 0 auto;
}

.hero-product-showcase.orbit-mode .hero-product-dots {
    display: none;
}

.hero-product-showcase.orbit-mode .hero-product-showcase-inner {
    animation: orbitRotate 20s linear infinite;
}

.hero-product-showcase.orbit-mode:hover .hero-product-showcase-inner {
    animation-play-state: paused;
}

.hero-product-showcase.orbit-mode .hero-product-slide {
    top: 50%;
    left: 50%;
    width: 120px;
    height: 120px;
    margin: -60px 0 0 -60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 1;
    pointer-events: auto;
    transition: none;
    animation: none;
    transform: rotate(calc(var(--i, 0) * (360deg / var(--hero-count, 6)))) translateX(200px);
}

.hero-product-showcase.orbit-mode .hero-product-slide.active {
    animation: none;
    transform: rotate(calc(var(--i, 0) * (360deg / var(--hero-count, 6)))) translateX(200px);
}

.hero-product-showcase.orbit-mode .hero-product-img {
    max-height: 96px;
    max-width: 96px;
    animation: counterRotate 20s linear infinite;
}

.hero-product-showcase.orbit-mode:hover .hero-product-img {
    animation-play-state: paused;
}

@keyframes orbitRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes counterRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

@media (max-width: 767.98px) {
    .hero-product-showcase {
        display: none !important;
    }
}

/* Distribution page */
.distribution-panel {
    background: #FFFFFF;
    border: 1px solid #E8ECF4;
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 4px 20px rgba(42, 57, 190, 0.06);
}

.distribution-panel--available {
    background: linear-gradient(180deg, #F8F9FF 0%, #FFFFFF 100%);
}

.distribution-table thead th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6C757D;
    border-bottom: 1px solid #E8ECF4;
    padding: 0.75rem 1rem;
    white-space: nowrap;
}

.distribution-table tbody td {
    padding: 0.85rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #F0F4FF;
}

.distribution-table tbody tr:last-child td {
    border-bottom: none;
}

.distribution-table a {
    color: #2A39BE;
    text-decoration: none;
    font-weight: 600;
}

.distribution-city-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.distribution-city-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #FFFFFF;
    border: 1px solid #E8ECF4;
    border-radius: 50px;
}

.distribution-city-name {
    font-weight: 600;
    color: #0D1117;
}

.distribution-city-badge {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.65rem;
    border-radius: 50px;
    background: rgba(42, 57, 190, 0.1);
    color: #2A39BE;
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .distribution-panel {
        padding: 1rem;
    }

    .distribution-city-list {
        grid-template-columns: 1fr;
    }
}
