/* ========== Yeppyeni - Site Styles ========== */

:root {
    /* Premium theme tokens */
    /* Back to premium blues (lighter overall) */
    --yp-primary: #1d4ed8;          /* blue-700 */
    --yp-primary-dark: #1e3a8a;     /* blue-900 */
    --yp-accent: #8ab4ff;           /* soft sky accent */
    --yp-dark: #0b1b3a;
    --yp-bg: #f6f8ff;
    --yp-surface: #ffffff;
    --yp-text: #0f172a;
    --yp-muted: #64748b;            /* slate-500 */
    --yp-border: rgba(15, 23, 42, 0.10);

    --yp-font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    /* Typography scale (rem-based) */
    --yp-fs-12: 0.75rem;
    --yp-fs-13: 0.8125rem;
    --yp-fs-14: 0.875rem;
    --yp-fs-15: 0.9375rem;
    --yp-fs-16: 1rem;
    --yp-fs-18: 1.125rem;
    --yp-fs-20: 1.25rem;
    --yp-fs-24: 1.5rem;
    --yp-fs-30: 1.875rem;
    --yp-fs-36: 2.25rem;

    --yp-fw-regular: 400;
    --yp-fw-medium: 500;
    --yp-fw-semibold: 600;
    /* Cap max weight at semibold */
    --yp-fw-bold: 600;

    --yp-lh-tight: 1.15;
    --yp-lh-normal: 1.55;
    --yp-lh-relaxed: 1.7;

    --yp-radius-lg: 1.25rem;        /* 20px */
    --yp-radius-md: 0.9rem;         /* ~14px */
    --yp-shadow-sm: 0 1px 2px rgba(15,23,42,0.06), 0 6px 18px rgba(15,23,42,0.06);
    --yp-shadow-md: 0 2px 6px rgba(15,23,42,0.08), 0 16px 40px rgba(15,23,42,0.10);
    --yp-transition: 180ms cubic-bezier(.2,.8,.2,1);
}

html {
    font-size: 15px;
    scroll-behavior: smooth;
}

@media (min-width: 768px) {
    html { font-size: 15px; }
}

body {
    font-family: var(--yp-font);
    color: var(--yp-text);
    background-color: var(--yp-bg);
    font-size: var(--yp-fs-16);
    line-height: var(--yp-lh-normal);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- Global polish --- */
a { text-underline-offset: 0.2em; }
.text-muted { color: var(--yp-muted) !important; }
.border, .border-top, .border-bottom, .border-start, .border-end { border-color: var(--yp-border) !important; }
.shadow-sm { box-shadow: var(--yp-shadow-sm) !important; }

/* Headings baseline */
h1, h2, h3, h4, h5, h6 { letter-spacing: -0.02em; }
h1 { font-size: clamp(1.9rem, 2.4vw, 2.75rem); font-weight: var(--yp-fw-semibold); line-height: var(--yp-lh-tight); }
h2 { font-size: 1.75rem; font-weight: var(--yp-fw-semibold); line-height: var(--yp-lh-tight); }
h3 { font-size: 1.4rem; font-weight: var(--yp-fw-semibold); line-height: 1.25; }
h4 { font-size: 1.2rem; font-weight: var(--yp-fw-semibold); line-height: 1.3; }
h5 { font-size: 1.05rem; font-weight: var(--yp-fw-semibold); line-height: 1.35; }
h6 { font-size: 0.98rem; font-weight: var(--yp-fw-semibold); line-height: 1.4; }

.lead { font-size: 1.05rem; line-height: var(--yp-lh-relaxed); }
.small, small { font-size: var(--yp-fs-14); }

/* Ensure "bold" never exceeds semibold */
.fw-bold, b, strong { font-weight: var(--yp-fw-semibold) !important; }

main {
    flex: 1;
}

/* Auth pages: vertically center card within main */
.auth-page main {
    display: flex;
    flex-direction: column;
}
.auth-page main > .page-header {
    flex-shrink: 0;
}
.auth-page main > .container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Mobile: match navbar's comfortable side padding on all page content */
@media (max-width: 768px) {
    .container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}

/* --- Navbar --- */
.navbar {
    padding: 0.75rem 0;
    transition: var(--yp-transition);
    backdrop-filter: saturate(140%) blur(10px);
}
.navbar.bg-primary {
    /* Premium diagonal gradient + highlight */
    background:
        linear-gradient(
            160deg,
            rgba(29, 78, 216, 0.98) 0%,
            rgba(30, 58, 138, 0.98) 100%
        ) !important;
    border-bottom: 1px solid rgba(255,255,255,0.14);
}
.navbar-brand { font-size: 1.5rem; letter-spacing: -0.5px; }
.navbar-brand-sub {
    font-size: 0.68rem;
    letter-spacing: 1.5px;
    margin-top: -9px;
    margin-left: 68px;
    opacity: 0.9;
    font-weight: var(--yp-fw-medium);
}
.navbar .dropdown-menu { border: none; border-radius: 0.5rem; box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.15); }
.navbar .navbar-collapse .me-auto { margin: 0 auto !important; }
.navbar .nav-link { font-weight: var(--yp-fw-medium); font-size: var(--yp-fs-16); color: rgba(255,255,255,0.92) !important; transition: var(--yp-transition); }
.navbar .nav-link:hover { color: #fff !important; opacity: 1; }
.navbar .nav-link:focus-visible { outline: none; box-shadow: 0 0 0 0.2rem rgba(138,180,255,0.35); border-radius: 0.5rem; }
@media (min-width: 1200px) { .navbar-expand-xl .navbar-nav .nav-link { padding: 0.5rem 1.5rem; } }

/* Mobile: more breathing room for menu items */
@media (max-width: 991px) {
    .navbar .nav-link {
        padding: 0.65rem 0.75rem;
    }
    .navbar .dropdown-item {
        padding: 0.55rem 1rem;
    }
}

/* --- Hero --- */
.hero-section {
    color: white;
    padding: 6.5rem 0 7.6rem;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(900px 450px at 12% 18%, rgba(138, 180, 255, 0.24), rgba(138, 180, 255, 0.00) 60%),
        radial-gradient(800px 420px at 86% 22%, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.00) 55%),
        linear-gradient(180deg, rgba(29, 78, 216, 0.96) 0%, rgba(30, 58, 138, 0.96) 100%);
}

/* Home: navbar + hero seamless (same gradient language) */
.home-page-layout {
    position: relative;
    overflow-x: hidden;
}

/* Single source gradient behind navbar + hero only */
.home-page-layout::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    /* Limit the gradient to navbar+hero area (avoid covering Services) */
    height: clamp(430px, 54vh, 530px);
    /* Premium sweep: diagonal base + soft radiance */
    background:
        /* Softer but darker blue radiance (avoid washed-out look) */
        radial-gradient(900px 420px at 0% 0%, rgba(29, 78, 216, 0.30) 0%, rgba(29, 78, 216, 0.00) 62%),
        linear-gradient(
            160deg,
            rgba(29, 78, 216, 0.98) 0%,
            rgba(29, 78, 216, 0.98) 34%,
            rgba(30, 58, 138, 0.98) 68%,
            rgba(30, 58, 138, 0.98) 100%
        );
    z-index: 0;
    pointer-events: none;
}

.home-page-layout::after {
    content: "";
    position: absolute;
    top: 0;
    left: -20%;
    right: -20%;
    height: clamp(430px, 54vh, 530px);
    /* Diagonal highlight band */
    background: linear-gradient(
        160deg,
        rgba(255, 255, 255, 0.00) 0%,
        rgba(255, 255, 255, 0.12) 40%,
        rgba(255, 255, 255, 0.00) 70%
    );
    z-index: 1;
    pointer-events: none;
    mix-blend-mode: normal;
    opacity: 0.65;
}

.home-page-layout header,
.home-page-layout main {
    position: relative;
    z-index: 2;
}

/* Ensure header/dropdown are above hero content */
.home-page-layout header { z-index: 5000; }
.home-page-layout .hero-section { z-index: 1; position: relative; }

.home-page-layout .navbar.bg-primary {
    backdrop-filter: none !important;
    background: transparent !important;
    border-bottom: none !important;
}

.home-page-layout .navbar {
    backdrop-filter: none !important;
    background: transparent !important;
    position: relative;
    z-index: 3000;
}

.home-page-layout .navbar.shadow-sm {
    box-shadow: none !important;
}

.home-page-layout .hero-section {
    background: transparent !important;
}

.home-page-layout .hero-section::before { display: none; }

/* Dropdowns must render above the hero gradient layer */
.home-page-layout .dropdown-menu {
    z-index: 4000 !important;
    position: absolute;
}
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(255,255,255,0.06) 1px, transparent 0);
    background-size: 22px 22px;
    opacity: 0.55;
    pointer-events: none;
}
.hero-section h1 {
    font-weight: var(--yp-fw-bold);
    font-size: clamp(2.0rem, 2.6vw, 3.0rem);
    letter-spacing: -0.02em;
    line-height: 1.08;
}
.hero-section .lead { color: rgba(255,255,255,0.82); line-height: 1.6; }
@media (max-width: 768px) { .hero-section { padding: 4.25rem 0 5.1rem; } }

/* Right-side hero mini cards */
.hero-mini-grid { padding: 0.25rem; }

.hero-mini-card{
    padding: 1rem;
    border-radius: 1rem;
    /* Match "Sipariş Oluştur" button (btn-warning) tone */
    background: linear-gradient(180deg, rgba(219,234,254,0.98) 0%, rgba(191,219,254,0.82) 100%);
    border: 1px solid rgba(29, 78, 216, 0.18);
    backdrop-filter: none;
    box-shadow: 0 14px 40px rgba(37, 99, 235, 0.18);
}
.hero-mini-title{
    color: rgba(15, 23, 42, 0.95);
    font-weight: var(--yp-fw-semibold);
}
.hero-mini-subtitle{
    color: rgba(71, 85, 105, 0.92);
    font-size: var(--yp-fs-15);
    line-height: 1.5;
}
.trust-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.88);
    font-weight: var(--yp-fw-medium);
    font-size: var(--yp-fs-15);
}
.trust-badge i { opacity: 0.95; }

@media (max-width: 768px) {
    .home-page .hero-section .col-lg-7 {
        text-align: center;
    }

    .home-page .hero-section .lead {
        margin-left: auto;
        margin-right: auto;
    }

    .home-page .hero-section .d-flex.gap-2.flex-wrap {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem !important;
        width: 100%;
    }

    .home-page .hero-section .d-flex.gap-2.flex-wrap > .btn {
        width: 100%;
        justify-content: center;
    }

    .home-page .trust-badges {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem;
        width: 100%;
    }

    .home-page .trust-badge {
        width: 100%;
        justify-content: center;
        text-align: center;
        min-height: 44px;
    }
}

/* --- Service Cards --- */
.service-card {
    transition: var(--yp-transition);
    cursor: pointer;
    border-radius: var(--yp-radius-lg);
    background: var(--yp-surface);
    border: 1px solid var(--yp-border);
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--yp-shadow-md) !important; }
.service-card .service-icon { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin: 0 auto 1rem; }
.service-card .service-icon-img { display: flex; align-items: center; justify-content: center; margin: 0 auto; height: 70px; }
.service-card .service-icon-img img { width: 58px; height: 58px; object-fit: contain; transition: var(--yp-transition); }
.service-card:hover .service-icon-img img { transform: scale(1.1); }

/* --- Product Cards --- */
.product-card {
    transition: var(--yp-transition);
    border-radius: var(--yp-radius-lg);
    overflow: hidden;
    border: 1px solid var(--yp-border);
    background: var(--yp-surface);
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--yp-shadow-md) !important; }
.product-media { background: linear-gradient(180deg, rgba(29,78,216,0.04), rgba(15,23,42,0.00)); }
.product-img { width: 100%; height: 220px; object-fit: contain; background: transparent; transition: transform 220ms ease; padding: 0.75rem; }
.product-card:hover .product-img { transform: none; }
.product-title { font-size: var(--yp-fs-15); font-weight: var(--yp-fw-medium); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.add-to-cart-btn { border-radius: 0.85rem; font-weight: 600; transition: var(--yp-transition); }

.product-price { font-weight: var(--yp-fw-bold); letter-spacing: -0.02em; color: var(--yp-primary); }
.product-price .amount { font-size: 1.15rem; }
.product-price .currency { font-size: 0.95rem; opacity: 0.9; margin-left: 0.15rem; }

.yp-badge {
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.16);
    color: rgba(255,255,255,0.92);
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    backdrop-filter: blur(8px);
}
.yp-badge-soft {
    background: rgba(29, 78, 216, 0.08);
    border: 1px solid rgba(29, 78, 216, 0.14);
    color: #1e3a8a;
    font-weight: var(--yp-fw-semibold);
    padding: 0.4rem 0.6rem;
    border-radius: 999px;
}

.yp-badge-outline-danger{
    background: rgba(220, 53, 69, 0.06);
    border: 1px solid rgba(220, 53, 69, 0.22);
    color: #b02a37;
    font-weight: var(--yp-fw-bold);
    padding: 0.4rem 0.6rem;
    border-radius: 999px;
}

.product-cta { box-shadow: 0 12px 28px rgba(29, 78, 216, 0.16); }
.product-card .card-body { padding: 1rem 1rem 0.75rem; }
.product-card .card-footer { padding-left: 1rem !important; padding-right: 1rem !important; }

/* --- Section Headings --- */
.section-title { font-weight: var(--yp-fw-bold); font-size: var(--yp-fs-30); position: relative; display: inline-block; margin-bottom: 2rem; letter-spacing: -0.02em; }
.section-title::after { content: ''; position: absolute; bottom: -10px; left: 0; width: 64px; height: 3px; background: var(--yp-primary); border-radius: 2px; opacity: 0.95; }

/* Center underline when title is centered */
.text-center .section-title::after,
.section-head.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

/* --- Buttons (premium) --- */
.btn { font-size: var(--yp-fs-15); border-radius: 0.9rem; padding: 0.7rem 1.05rem; font-weight: var(--yp-fw-semibold); letter-spacing: -0.01em; }
.btn-lg { padding: 0.9rem 1.2rem; border-radius: 1.05rem; }
.btn-primary {
    --bs-btn-bg: var(--yp-primary);
    --bs-btn-border-color: rgba(255,255,255,0.10);
    --bs-btn-hover-bg: #1e40af;
    --bs-btn-hover-border-color: rgba(255,255,255,0.16);
    --bs-btn-active-bg: #1e3a8a;
    --bs-btn-active-border-color: rgba(255,255,255,0.16);

    /* Override with diagonal premium sweep */
    background-color: transparent !important;
    background-image:
        linear-gradient(
            160deg,
            rgba(59, 130, 246, 0.99) 0%,
            rgba(37, 99, 235, 0.99) 40%,
            rgba(29, 78, 216, 0.99) 78%,
            rgba(30, 64, 175, 0.99) 100%
        ),
        linear-gradient(
            160deg,
            rgba(255,255,255,0.00) 0%,
            rgba(255,255,255,0.22) 42%,
            rgba(255,255,255,0.00) 66%
        ) !important;
    border-color: rgba(255,255,255,0.18) !important;
}

.btn-primary:hover {
    background-image:
        linear-gradient(
            160deg,
            rgba(59, 130, 246, 1) 0%,
            rgba(37, 99, 235, 1) 38%,
            rgba(29, 78, 216, 1) 78%,
            rgba(30, 64, 175, 1) 100%
        ),
        linear-gradient(
            160deg,
            rgba(255,255,255,0.00) 0%,
            rgba(255,255,255,0.22) 42%,
            rgba(255,255,255,0.00) 68%
        ) !important;
}
.btn-warning {
    /* keep as "premium secondary" but blue-tinted */
    --bs-btn-bg: #dbeafe;
    --bs-btn-border-color: rgba(0,0,0,0.06);
    --bs-btn-hover-bg: #bfdbfe;
    --bs-btn-hover-border-color: rgba(0,0,0,0.06);
    --bs-btn-active-bg: #93c5fd;
    --bs-btn-active-border-color: rgba(0,0,0,0.08);
    --bs-btn-color: #0b1b3a;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.16);

    /* Override with diagonal premium sweep */
    background-color: transparent !important;
    background-image:
        linear-gradient(
            160deg,
            rgba(219, 234, 254, 0.98) 0%,
            rgba(191, 219, 254, 0.86) 45%,
            rgba(147, 197, 253, 0.92) 100%
        ),
        linear-gradient(
            160deg,
            rgba(255,255,255,0.00) 0%,
            rgba(255,255,255,0.28) 40%,
            rgba(255,255,255,0.00) 66%
        ) !important;
    border-color: rgba(29, 78, 216, 0.18) !important;
}

.btn-warning:hover {
    background-image:
        linear-gradient(
            160deg,
            rgba(219, 234, 254, 1) 0%,
            rgba(191, 219, 254, 0.96) 40%,
            rgba(147, 197, 253, 1) 100%
        ),
        linear-gradient(
            160deg,
            rgba(255,255,255,0.00) 0%,
            rgba(255,255,255,0.34) 42%,
            rgba(255,255,255,0.00) 68%
        ) !important;
}
.btn-outline-light { border-color: rgba(255,255,255,0.30); color: rgba(255,255,255,0.92); }
.btn-outline-light:hover { background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.35); color: #fff; }

/* Outline primary: fill with diagonal sweep on hover */
.btn-outline-primary {
    border-color: rgba(59, 130, 246, 0.35) !important;
    color: rgba(37, 99, 235, 0.95) !important;
}
.btn-outline-primary:hover {
    color: #ffffff !important;
    border-color: rgba(255,255,255,0.18) !important;
    background-color: transparent !important;
    background-image:
        linear-gradient(
            160deg,
            rgba(59, 130, 246, 0.99) 0%,
            rgba(37, 99, 235, 0.99) 45%,
            rgba(29, 78, 216, 0.99) 78%,
            rgba(30, 64, 175, 0.99) 100%
        ) !important;
}

/* --- Footer --- */
footer .footer-link:hover { opacity: 1 !important; text-decoration: underline !important; }
footer .social-link { transition: var(--yp-transition); opacity: 0.75; }
footer .social-link:hover { opacity: 1; transform: translateY(-2px); }

/* --- Loading Overlay --- */
.loading-overlay { position: fixed; inset: 0; background: rgba(255,255,255,0.85); z-index: 9999; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); }

/* --- WhatsApp Float --- */
.whatsapp-float { position: fixed; width: 56px; height: 56px; bottom: 24px; right: 24px; background-color: #25d366; color: white; border-radius: 50%; text-align: center; font-size: 1.75rem; box-shadow: 0 4px 12px rgba(37,211,102,0.4); z-index: 1000; display: flex; align-items: center; justify-content: center; transition: var(--yp-transition); text-decoration: none; }
.whatsapp-float:hover { transform: scale(1.1); color: white; box-shadow: 0 6px 20px rgba(37,211,102,0.5); }

/* --- Checkout Steps --- */
.checkout-steps .step { position: relative; padding: 1rem 0; }
.checkout-steps .step::after { content: ''; position: absolute; top: 50%; right: 0; width: 50%; height: 2px; background: #dee2e6; transform: translateY(-12px); }
.checkout-steps .step::before { content: ''; position: absolute; top: 50%; left: 0; width: 50%; height: 2px; background: #dee2e6; transform: translateY(-12px); }
.checkout-steps .col-3:first-child .step::before, .checkout-steps .col-3:last-child .step::after { display: none; }
.checkout-steps .step.completed::before, .checkout-steps .step.completed::after, .checkout-steps .step.active::before { background: var(--yp-primary); }
.checkout-steps .step-icon { width: 40px; height: 40px; border-radius: 50%; background: #dee2e6; color: #6c757d; display: flex; align-items: center; justify-content: center; margin: 0 auto 0.5rem; font-weight: 600; position: relative; z-index: 1; transition: var(--yp-transition); }
.checkout-steps .step.active .step-icon { background: var(--yp-primary); color: white; }
.checkout-steps .step.completed .step-icon { background: #198754; color: white; }
.checkout-steps .step-label { font-size: 0.8rem; font-weight: 500; color: #6c757d; }
.checkout-steps .step.active .step-label, .checkout-steps .step.completed .step-label { color: var(--yp-primary); font-weight: 600; }

/* --- Delivery Options --- */
.delivery-option { border: 2px solid #dee2e6; border-radius: var(--yp-radius-md); padding: 1rem 1.25rem; cursor: pointer; transition: var(--yp-transition); display: flex; align-items: flex-start; gap: 0.75rem; }
.delivery-option:hover:not(.disabled) { border-color: var(--yp-primary); background: rgba(29, 78, 216, 0.03); }
.delivery-option.selected { border-color: var(--yp-primary); background: rgba(29, 78, 216, 0.06); }
.delivery-option.disabled { opacity: 0.5; cursor: not-allowed; background: #f8f9fa; }
.delivery-option .form-check-input { margin-top: 0.2rem; flex-shrink: 0; }
.delivery-option label { cursor: pointer; margin-bottom: 0; }

/* --- Product Detail Gallery --- */
.product-gallery .main-image { width: 100%; height: 400px; object-fit: contain; border-radius: 0.75rem; background: white; cursor: zoom-in; }
.product-gallery .thumbnail { width: 80px; height: 80px; object-fit: cover; border-radius: 0.5rem; cursor: pointer; border: 2px solid transparent; transition: var(--yp-transition); }
.product-gallery .thumbnail:hover, .product-gallery .thumbnail.active { border-color: var(--yp-primary); }

/* --- Section spacing helper --- */
.section { padding: 6rem 0; }
@media (max-width: 768px) { .section { padding: 4.25rem 0; } }

/* --- Home sections (premium) --- */
.home-page .section-head { margin-bottom: 2rem; }
.home-page .section-subtitle { max-width: 56ch; margin: 0.75rem auto 0; }

.section-surface { background: transparent; }
.section-muted { background: rgba(29, 78, 216, 0.035); }

.home-page .section-services { position: relative; }
.home-page .section-services::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(700px 260px at 10% 0%, rgba(138, 180, 255, 0.25), rgba(138, 180, 255, 0.00) 60%),
        radial-gradient(700px 260px at 90% 100%, rgba(37, 99, 235, 0.10), rgba(37, 99, 235, 0.00) 55%);
    opacity: 0.65;
}

/* Mobile: reduce visual gap between hero and first section */
@media (max-width: 768px) {
    .home-page .section-services {
        padding-top: 5rem;
        margin-top: -1px;
    }
}

/* Mobile/Tablet: replace fixed-height pseudo-elements with element backgrounds */
@media (max-width: 1199.98px) {
    .home-page-layout::before,
    .home-page-layout::after {
        display: none;
    }

    /* Remove border between navbar and hero */
    .home-page-layout .navbar.bg-primary {
        border-bottom: none !important;
    }

    /* Navbar gets the top portion of the gradient */
    .home-page-layout .navbar.bg-primary,
    .home-page-layout .navbar {
        background: rgb(29 70 192) !important;
    }

    /* Navbar collapse (mobile menu) */
    .home-page-layout .navbar-collapse {
        border-radius: 0 0 0.75rem 0.75rem;
        margin: 0 -0.75rem;
        padding: 0.5rem 0.75rem;
    }

    /* Hero gets the continuation of the same gradient */
    .home-page-layout .hero-section {
        background:
            radial-gradient(900px 420px at 0% 0%, rgba(24, 66, 190, 0.30) 0%, rgba(24, 66, 190, 0.00) 62%),
            linear-gradient(
                160deg,
                rgba(24, 66, 190, 0.98) 0%,
                rgba(24, 66, 190, 0.98) 34%,
                rgba(25, 50, 120, 0.98) 68%,
                rgba(25, 50, 120, 0.98) 100%
            ) !important;
    }
}



/* How it works cards */
.how-step {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: var(--yp-radius-lg);
    background: rgba(255,255,255,0.75);
    border: 1px solid var(--yp-border);
    box-shadow: var(--yp-shadow-sm);
    transition: var(--yp-transition);
}
.how-step:hover { transform: translateY(-3px); box-shadow: var(--yp-shadow-md); }

.how-icon {
    width: 82px;
    height: 82px;
    margin: 0 auto 1rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(15,23,42,0.08);
    background: rgba(255,255,255,0.85);
}
.how-icon i { color: var(--yp-primary); }
.how-icon-primary { background: rgba(37, 99, 235, 0.10); border-color: rgba(37, 99, 235, 0.18); }
.how-icon-primary i { color: #2563eb; }
.how-icon-accent { background: rgba(138, 180, 255, 0.22); border-color: rgba(138, 180, 255, 0.40); }
.how-icon-accent i { color: #1d4ed8; }
.how-icon-success { background: rgba(25, 135, 84, 0.12); border-color: rgba(25, 135, 84, 0.20); }
.how-icon-success i { color: #198754; }

/* Best sellers: give a subtle top divider rhythm */
.home-page .section-bestsellers { position: relative; }
.home-page .section-bestsellers::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(1100px, calc(100% - 3rem));
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(15,23,42,0.10), transparent);
}

/* Contact card */
.contact-card {
    margin-top: 1.75rem;
    padding: 2rem;
    border-radius: var(--yp-radius-lg);
    background: rgba(255,255,255,0.82);
    border: 1px solid var(--yp-border);
    box-shadow: var(--yp-shadow-sm);
}
@media (max-width: 576px) { .contact-card { padding: 1.25rem; } }

/* Empty / status icons (no inline sizing) */
.yp-empty-icon{ font-size: 4rem; }
.yp-status-icon{ font-size: 5rem; }

/* Cart item image/icon helpers */
.cart-item-img{ width: 80px; height: 80px; object-fit: cover; }
.cart-service-icon{ width: 80px; height: 80px; min-width: 80px; }

/* --- Misc --- */
.address-card { border-left: 4px solid transparent; transition: var(--yp-transition); }
.address-card.primary { border-left-color: var(--yp-primary); }

.variant-badge { padding: 0.375rem 0.75rem; border: 1px solid #dee2e6; border-radius: 0.5rem; cursor: pointer; transition: var(--yp-transition); font-size: 0.85rem; display: inline-block; }
.variant-badge:hover { border-color: var(--yp-primary); }
.variant-badge.active { background: var(--yp-primary); color: white; border-color: var(--yp-primary); }
.variant-badge.disabled { opacity: 0.5; cursor: not-allowed; text-decoration: line-through; }

.otp-progress { height: 4px; border-radius: 2px; overflow: hidden; background: #e9ecef; }
.otp-progress-bar { height: 100%; background: var(--yp-primary); transition: width 1s linear; }

.page-header { background: linear-gradient(135deg, var(--yp-primary), var(--yp-primary-dark)); color: white; padding: 1rem 0; margin-bottom: 2rem; }
.page-header h1 { font-weight: 400; font-size: 1rem; margin-bottom: 0; }
.page-header .breadcrumb { margin-bottom: 0; }
.page-header .breadcrumb-item a { color: rgba(255,255,255,0.75); text-decoration: none; }
.page-header .breadcrumb-item.active { color: white; }
.page-header .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.5); }

.toast.bg-success-subtle .toast-body { color: #0a3622; }
.toast.bg-danger-subtle .toast-body { color: #58151c; }
.toast.bg-warning-subtle .toast-body { color: #664d03; }

.skeleton { background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%); background-size: 200% 100%; animation: skeleton-loading 1.5s infinite; border-radius: 0.25rem; }
@keyframes skeleton-loading { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.qty-control { display: inline-flex; align-items: center; border: 1px solid #dee2e6; border-radius: 0.5rem; overflow: hidden; }
.qty-control .btn { border: none; border-radius: 0; padding: 0.375rem 0.75rem; }
.qty-control input { width: 50px; text-align: center; border: none; border-left: 1px solid #dee2e6; border-right: 1px solid #dee2e6; font-weight: 500; }
.qty-control input:focus { outline: none; box-shadow: none; }

.faq-accordion .accordion-button:not(.collapsed) { background-color: rgba(13,110,253,0.05); color: var(--yp-primary); }

.form-control:focus, .form-select:focus { border-color: var(--yp-primary); box-shadow: none; }
.input-group>:not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback) { margin-left: calc(var(--bs-border-width) * -1); border-top-left-radius: 0; border-bottom-left-radius: 0; border-top-right-radius: 6px; border-bottom-right-radius: 6px; }

.select2-container--bootstrap-5 .select2-selection--single:focus,
.select2-container--bootstrap-5.select2-container--focus .select2-selection,
.select2-container--bootstrap-5.select2-container--open .select2-selection { border-color: #dee2e6; box-shadow: none; }
.select2-container--bootstrap-5 .select2-dropdown { z-index: 1056; overflow: hidden; color: #212529; background-color: #fff; border-color: #dee2e6; border-radius: .25rem; box-shadow: none; }
.select2-container--bootstrap-5 .select2-search__field:focus { box-shadow: none; outline: none; }

@media (max-width: 576px) {
    .product-img { height: 180px; }
    .product-gallery .main-image { height: 280px; }
    .product-gallery .thumbnail { width: 60px; height: 60px; }
}
