/* Explain: Styling for various page components like header, footer, and cards. */
/* ================= Header ================= */
.site-header {
    background: var(--background-color);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.header-banner {
    display: block;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
    background: var(--surface-color);
}

.header-banner img {
    width: 100%;
    height: auto;
    max-height: 190px;
    object-fit: cover;
    object-position: center;
}

.topbar strong {
    color: var(--accent-color);
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 76px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--text-color);
    font-family: var(--font-logo);
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.02em;
    transition: transform 0.25s ease;
}

.brand:hover {
    transform: translateY(-1px);
}

.brand-mark {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 15px;
    background: linear-gradient(140deg, #9d7bff 0%, var(--primary-color) 48%, #4020b6 100%);
    color: #ffffff;
    font-size: 1.12rem;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(117, 84, 246, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.brand:hover .brand-mark {
    transform: translateY(-1px) scale(1.05);
    box-shadow: 0 15px 32px rgba(117, 84, 246, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.brand-mark::before {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    pointer-events: none;
    z-index: 2;
}

.brand-mark::after {
    content: "";
    position: absolute;
    top: -55%;
    left: -35%;
    width: 90%;
    height: 110%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0) 60%);
    transform: rotate(20deg);
    pointer-events: none;
}

.brand-spark {
    position: absolute;
    top: 6px;
    inset-inline-end: 7px;
    font-size: 0.48rem;
    color: var(--accent-color);
    z-index: 3;
    filter: drop-shadow(0 0 4px rgba(223, 255, 84, 0.85));
}

.brand-text {
    display: inline-flex;
    align-items: baseline;
    gap: 0.34rem;
    line-height: 1;
}

.brand-name {
    font-weight: 800;
    letter-spacing: -0.01em;
    background: linear-gradient(135deg, #2a2340 0%, var(--primary-color) 55%, var(--primary-hover) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.brand-accent {
    font-weight: 800;
    color: var(--primary-color);
}

.nav-link {
    position: relative;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 14px;
    transition: color 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--primary-color);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    border: 1px solid var(--border-color);
    background: var(--field-bg);
    color: var(--text-color);
    transition: all 0.25s ease;
}

.icon-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--surface-color);
}

.icon-btn:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.head-icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 17px;
    background: var(--surface-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 22px rgba(37, 33, 59, 0.08);
    font-size: 1.12rem;
    transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.head-icon-btn:hover {
    color: var(--primary-color);
    border-color: rgba(117, 84, 246, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(37, 33, 59, 0.12);
}

.head-icon-btn:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.icon-badge {
    position: absolute;
    top: -6px;
    inset-inline-start: -6px;
    min-width: 20px;
    height: 20px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--green-color);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(23, 160, 119, 0.4);
}

.mobile-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    padding: 0 0.6rem;
    border-radius: 14px;
    font-weight: 600;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
}

.mobile-link i {
    color: var(--primary-color);
}

.mobile-link:last-child {
    border-bottom: 0;
}

.mobile-link:hover {
    color: var(--primary-color);
}

/* ================= Headings ================= */
.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 23px;
}

.section-head h2 {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(1.4rem, 3vw, 1.7rem);
    letter-spacing: -0.02em;
    margin: 0;
}

.section-note {
    font-size: 12px;
    color: var(--text-muted);
}

.view-all {
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 700;
}

.view-all:hover {
    color: var(--primary-hover);
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.section-kicker::before {
    content: "";
    width: 2rem;
    height: 2px;
    background: var(--accent-color);
}

.section-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    letter-spacing: -0.02em;
    margin: 0.6rem 0 0;
}

/* ================= Hero ================= */
.hero-image-card {
    position: relative;
    aspect-ratio: 16 / 9;
    max-height: 520px;
    background: var(--surface-color);
}

.hero-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 640px) {
    .hero-image-card {
        aspect-ratio: 4 / 3;
        max-height: none;
    }
}

/* Full-bleed hero */
.hero-full {
    width: 100%;
    overflow: hidden;
    background: var(--surface-color);
}

.hero-full-link {
    display: block;
    width: 100%;
}

.hero-full-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    transition: transform 0.6s ease;
}

.hero-full-link:hover .hero-full-img {
    transform: scale(1.03);
}

@media (max-width: 640px) {
    .hero-full-img {
        height: auto;
    }
}

.hero-panel {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: linear-gradient(118deg, #e8e6ff 0%, #d9d2ff 48%, #f5f3ff 100%);
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    min-height: 440px;
}

.hero-panel::after {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;
    inset-inline-start: 30%;
    top: -180px;
    pointer-events: none;
}

.hero-copy {
    position: relative;
    z-index: 2;
    padding: clamp(2.5rem, 5vw, 4.25rem) clamp(1.5rem, 4vw, 3.75rem);
}

.hero-eyebrow {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary-hover);
    font-weight: 700;
}

.hero-copy h1 {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(2.25rem, 5vw, 4.4rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin: 14px 0 18px;
    max-width: 34rem;
}

.hero-copy p {
    color: var(--text-muted);
    max-width: 26rem;
    margin: 0 0 28px;
    font-size: 15px;
    line-height: 1.9;
}

.hero-art {
    position: relative;
    min-height: 440px;
}

.hero-art img {
    position: absolute;
    top: 6%;
    inset-inline: 3%;
    width: 94%;
    height: 88%;
    object-fit: cover;
    border-radius: 20px;
}

.hero-float {
    position: absolute;
    z-index: 3;
    bottom: 26px;
    inset-inline-start: 20px;
    background: rgba(255, 255, 255, 0.92);
    padding: 14px 17px;
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
    font-size: 12px;
    color: var(--text-muted);
}

.hero-float b {
    display: block;
    font-size: 18px;
    color: var(--text-color);
}

.btn-primary-lg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 52px;
    padding: 0 1.6rem;
    border-radius: 13px;
    background: var(--text-color);
    color: #ffffff;
    font-weight: 700;
    transition: background 0.25s ease;
}

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

/* ================= Categories ================= */
.cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    padding: 18px 10px;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    background: var(--surface-color);
    color: var(--text-color);
    text-align: center;
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.cat-card:hover {
    border-color: rgba(117, 84, 246, 0.5);
    transform: translateY(-3px);
}

.cat-icon {
    display: grid;
    place-items: center;
    height: 46px;
    color: var(--primary-color);
    font-size: 1.7rem;
}

.cat-card span {
    font-size: 13px;
    font-weight: 600;
}

/* ================= Products ================= */
.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    background: var(--surface-color);
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(23, 160, 119, 0.45);
    box-shadow: var(--shadow-soft);
}

.product-media {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    background: #f4f5f6;
    overflow: hidden;
}

.product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.product-tag {
    position: absolute;
    top: 10px;
    inset-inline-end: 10px;
    background: var(--green-color);
    color: #ffffff;
    border-radius: 8px;
    padding: 5px 9px;
    font-size: 11px;
    font-weight: 700;
}

.card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    gap: 7px;
    padding: 14px 12px 16px;
}

.card-body h3 {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.55;
    margin: 0;
    color: var(--text-color);
}

.rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 12px;
    line-height: 1;
}

.rating i {
    color: #f5b301;
}

.price-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-top: auto;
}

.old-price {
    color: var(--text-muted);
    font-size: 11px;
    text-decoration: line-through;
}

.price-value {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--green-color);
}

.add-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin-top: 4px;
    border: 0;
    border-radius: 50%;
    background: var(--green-color);
    color: #ffffff;
    font-size: 17px;
    box-shadow: 0 10px 22px rgba(23, 160, 119, 0.32);
    transition: background 0.25s ease, transform 0.25s ease;
}

.add-btn:hover {
    background: var(--green-hover);
    transform: translateY(-2px);
}

.add-btn:disabled {
    opacity: 0.6;
}

/* ================= Promo ================= */
.promo-panel {
    border-radius: 24px;
    background: var(--accent-color);
    padding: clamp(1.6rem, 3.5vw, 2.2rem) clamp(1.4rem, 3.5vw, 2.2rem);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
}

.promo-panel h2 {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(1.3rem, 3vw, 1.7rem);
    margin: 0 0 4px;
    color: #171720;
}

.promo-panel p {
    margin: 0;
    font-size: 13px;
    color: #3a3a26;
}

.promo-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0 1.3rem;
    border-radius: 12px;
    background: #ffffff;
    color: #171720;
    font-weight: 700;
    transition: background 0.25s ease, color 0.25s ease;
}

.promo-btn:hover {
    background: var(--text-color);
    color: #ffffff;
}

/* ================= Benefits ================= */
.benefits-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    border-top: 1px solid var(--border-color);
    padding-top: 31px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 13px;
}

.benefit-icon {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 14px;
    background: var(--secondary-color);
    color: var(--primary-color);
    font-size: 1.1rem;
}

.benefit-item b {
    display: block;
    font-size: 13px;
}

.benefit-item span {
    display: block;
    color: var(--text-muted);
    font-size: 11px;
    margin-top: 3px;
}

/* ================= Contact ================= */
.contact-panel {
    border: 1px solid var(--border-color);
    border-radius: 28px;
    background: var(--surface-color);
    padding: clamp(2rem, 5vw, 3.5rem);
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.contact-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin: 0.6rem 0 0;
}

.contact-lead {
    max-width: 42rem;
    margin: 1rem auto 0;
    font-size: 0.95rem;
    line-height: 2;
    color: var(--text-muted);
}

.contact-methods {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

@media (min-width: 640px) {
    .contact-methods {
        grid-template-columns: repeat(3, 1fr);
    }
}

.contact-method {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    padding: 1.4rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    background: var(--background-color);
    color: var(--text-color);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.contact-method:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
}

.contact-method-icon {
    display: inline-grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: var(--secondary-color);
    color: var(--primary-color);
    font-size: 1.3rem;
}

.contact-method-title {
    font-size: 0.95rem;
}

.contact-method-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.contact-tile {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    background: var(--surface-color);
    padding: 1rem 1.1rem;
}

.contact-tile i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* ================= Cart drawer ================= */
.drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(23, 23, 32, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.drawer-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.drawer-panel {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(420px, 92vw);
    display: flex;
    flex-direction: column;
    padding: 1.4rem;
    background: var(--surface-color);
    box-shadow: 0 30px 90px rgba(23, 23, 32, 0.25);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.drawer-overlay.is-open .drawer-panel {
    transform: translateX(0);
}

.drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.drawer-head h2 {
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0;
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
}

.drawer-foot {
    border-top: 1px solid var(--border-color);
    padding-top: 14px;
}

.total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    margin-bottom: 14px;
}

.total-row strong {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.checkout-form {
    display: grid;
    gap: 0.7rem;
}

.field-label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-color);
}

.form-status {
    margin-top: 0.8rem;
    font-size: 0.85rem;
    min-height: 1.2rem;
}

.form-status.success {
    color: #2f7d4f;
}

.form-status.error {
    color: #b3261e;
}

.cart-item {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
}

.cart-item-img {
    width: 64px;
    height: 64px;
    border-radius: 13px;
    object-fit: cover;
    background: #f1f1f5;
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-info b {
    display: block;
    font-size: 13px;
    line-height: 1.4;
}

.cart-item-info p {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 13px;
    margin: 4px 0 8px;
}

.qty {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.qty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: var(--field-bg);
    color: var(--text-color);
    font-size: 16px;
}

.qty-btn:hover {
    background: var(--secondary-color);
    color: var(--primary-hover);
}

.qty-value {
    min-width: 1.4rem;
    text-align: center;
    font-weight: 700;
    font-size: 13px;
}

.cart-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    color: var(--text-muted);
    background: transparent;
}

.cart-remove:hover {
    color: #b3261e;
    background: var(--field-bg);
}

.cart-empty {
    color: var(--text-muted);
    text-align: center;
    margin: 4rem 0;
    font-size: 0.9rem;
}

/* ================= Footer ================= */
.site-footer {
    background: var(--footer-bg);
    color: #ffffff;
    padding: 32px 0 20px;
    margin-top: 48px;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 28px;
}

.footer-brand-col {
    max-width: 320px;
}

.brand-light {
    color: #ffffff;
}

.brand-light .brand-name {
    background: linear-gradient(135deg, #ffffff 0%, #cabfff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.brand-light .brand-accent {
    color: var(--accent-color);
}

.footer-brand-col p {
    color: #aaa8b0;
    font-size: 13px;
    line-height: 1.9;
    margin: 14px 0 0;
}


.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-links > div {
    display: grid;
    gap: 12px;
    align-content: start;
}

.footer-links b {
    color: #ffffff;
    font-size: 14px;
    margin-bottom: 4px;
}

.footer-links a {
    color: #bbb8c2;
    font-size: 13px;
    transition: color 0.25s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 22px;
    padding-top: 16px;
}

.footer-copyright {
    color: #88858f;
    font-size: 12px;
}

.back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.3rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: #ffffff;
    font-weight: 600;
    font-size: 13px;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.back-to-top:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.back-to-top:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
}

/* ================= Responsive ================= */
@media (max-width: 900px) {
    .hero-panel {
        grid-template-columns: 1fr;
        min-height: unset;
    }

    .hero-panel::after {
        display: none;
    }

    .hero-copy {
        padding: 2.5rem 1.5rem 1.5rem;
    }

    .hero-art {
        min-height: 300px;
    }

    .benefits-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .site-nav {
        min-height: 64px;
        gap: 12px;
    }

    .brand {
        font-size: 1.15rem;
    }

    .brand-mark {
        width: 40px;
        height: 40px;
        border-radius: 13px;
        font-size: 1rem;
    }

    .head-icon-btn {
        width: 46px;
        height: 46px;
        border-radius: 15px;
        font-size: 1.02rem;
    }

    .hero-art {
        min-height: 240px;
    }

    .benefits-row {
        gap: 18px 10px;
    }
}

/* ================= Product detail page ================= */
.product-crumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.product-crumb a:hover {
    color: var(--primary-color);
}

.product-crumb i {
    font-size: 10px;
}

.product-loading {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    padding: 4rem 0;
}

.product-banner {
    display: grid;
    grid-template-columns: 1fr;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: linear-gradient(135deg, #eef0f4 0%, #e0e5ee 48%, #f7f8fa 100%);
}

@media (min-width: 900px) {
    .product-banner {
        grid-template-columns: 1fr 1fr;
        min-height: 420px;
    }
}

.product-banner-media {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.product-banner-media img {
    width: 100%;
    max-width: 420px;
    max-height: 320px;
    height: auto;
    object-fit: contain;
    border-radius: 22px;
}

.product-banner-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.7rem;
    padding: clamp(1.6rem, 4vw, 3rem);
}

.product-banner-kicker {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.product-banner-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(1.7rem, 4vw, 2.9rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0;
}

.product-tag-static {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: var(--green-color);
    color: #ffffff;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 700;
}

.rating-lg {
    font-size: 15px;
    gap: 3px;
}

.product-info {
    margin-top: 26px;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    background: var(--surface-color);
    padding: clamp(1.4rem, 3.5vw, 2.4rem);
    box-shadow: var(--shadow-soft);
}

.product-price-row {
    display: flex;
    align-items: baseline;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.product-price {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    color: var(--green-color);
}

.product-price-row .old-price {
    font-size: 0.95rem;
}

.product-desc {
    margin: 1.1rem 0 0;
    font-size: 0.95rem;
    line-height: 2;
    color: var(--text-muted);
}

.product-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.9rem;
    margin-top: 1.6rem;
}

.qty-lg {
    padding: 4px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    background: var(--field-bg);
}

.qty-lg .qty-btn {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    font-size: 20px;
}

.qty-lg .qty-value {
    min-width: 2.2rem;
    font-size: 15px;
}

.btn-buy-now {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 52px;
    padding: 0 1.6rem;
    border-radius: 13px;
    border: 1px solid var(--text-color);
    background: transparent;
    color: var(--text-color);
    font-weight: 700;
    transition: background 0.25s ease, color 0.25s ease;
}

.btn-buy-now:hover {
    background: var(--text-color);
    color: #ffffff;
}

.product-perks {
    display: grid;
    gap: 0.7rem;
    margin: 1.8rem 0 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 640px) {
    .product-perks {
        grid-template-columns: repeat(3, 1fr);
    }
}

.product-perks li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.product-perks i {
    color: var(--primary-color);
}

.card-body h3 a:hover {
    color: var(--primary-color);
}

/* ================= Checkout / installments ================= */
.drawer-body {
    min-height: 0;
}

.drawer-foot {
    max-height: 64vh;
    overflow-y: auto;
}

.checkout-form {
    gap: 0.55rem;
}

.co-title {
    margin: 0 0 0.25rem;
    text-align: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1rem;
    color: var(--green-color);
}

.co-field {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0 0.95rem;
    min-height: 50px;
    border: 1px solid var(--border-color);
    border-radius: 15px;
    background: var(--field-bg);
    transition: border-color 0.2s ease;
}

.co-field:focus-within {
    border-color: var(--green-color);
}

.co-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.co-input {
    flex: 1;
    width: 100%;
    min-width: 0;
    border: 0;
    background: transparent;
    padding: 0.68rem 0;
    font-size: 0.79rem;
    color: var(--text-color);
    text-align: right;
}

.co-input:focus {
    outline: none;
}

.co-input::placeholder {
    color: var(--text-muted);
}

.pay-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
    padding: 0.3rem;
    margin-top: 0.15rem;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: var(--surface-color);
}

.pay-toggle-btn {
    min-height: 44px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.8rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.pay-toggle-btn.is-active {
    background: var(--green-color);
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(23, 160, 119, 0.26);
}

.installment-block {
    display: grid;
    gap: 0.5rem;
    margin-top: 0.35rem;
    padding-top: 0.7rem;
    border-top: 1px solid var(--border-color);
}

.inst-title {
    margin: 0;
    text-align: center;
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--text-color);
}

.inst-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
}

.inst-options-grid {
    grid-template-columns: repeat(3, 1fr);
}

.inst-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    min-height: 42px;
    padding: 0 0.4rem;
    border: 1px solid var(--border-color);
    border-radius: 13px;
    background: var(--surface-color);
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.74rem;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.inst-chip:hover {
    border-color: var(--green-color);
}

.inst-chip.is-active {
    border-color: var(--green-color);
    background: rgba(23, 160, 119, 0.08);
    color: var(--green-color);
    font-weight: 700;
}

.inst-check {
    display: none;
    font-size: 0.68rem;
}

.inst-chip.is-active .inst-check {
    display: inline-block;
}

.inst-summary {
    margin: 0.2rem 0 0;
    text-align: center;
    font-size: 0.79rem;
    color: var(--text-muted);
}

.inst-summary strong {
    margin-inline-start: 0.25rem;
    color: #ef9f1e;
    font-weight: 800;
    font-size: 1rem;
}

.btn-outline-g {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    width: 100%;
    border-radius: 13px;
    border: 1.5px solid var(--green-color);
    background: var(--surface-color);
    color: var(--green-color);
    font-weight: 700;
    font-size: 0.85rem;
    transition: background 0.2s ease;
}

.btn-outline-g:hover {
    background: rgba(23, 160, 119, 0.08);
}

.btn-green-lg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 50px;
    width: 100%;
    border: 0;
    border-radius: 14px;
    background: var(--green-color);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.92rem;
    box-shadow: 0 14px 30px rgba(23, 160, 119, 0.26);
    transition: background 0.2s ease;
}

.btn-green-lg:hover {
    background: var(--green-hover);
}

.btn-green-lg:disabled {
    opacity: 0.65;
}

/* ================= Schedule modal ================= */
.schedule-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(23, 23, 32, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.schedule-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.schedule-dialog {
    display: flex;
    flex-direction: column;
    width: min(500px, 100%);
    max-height: 86vh;
    border-radius: 22px;
    background: var(--surface-color);
    box-shadow: 0 30px 90px rgba(23, 23, 32, 0.3);
    overflow: hidden;
    transform: translateY(12px);
    transition: transform 0.25s ease;
}

.schedule-modal.is-open .schedule-dialog {
    transform: translateY(0);
}

.schedule-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.1rem;
    border-bottom: 1px solid var(--border-color);
}

.schedule-head h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
}

.schedule-body {
    overflow-y: auto;
    padding: 0 0.9rem 1rem;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.schedule-table th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--surface-color);
    padding: 0.7rem 0.4rem;
    font-weight: 700;
    font-size: 0.78rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.schedule-table td {
    padding: 0.62rem 0.4rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
}

.schedule-table tbody tr.is-down td {
    background: #fdecef;
    color: #d92b4b;
    font-weight: 700;
}

.amt {
    color: var(--green-color);
    font-weight: 700;
}

.schedule-table tbody tr.is-down .amt {
    color: #d92b4b;
}

/* ================= Cart page ================= */
.cart-page-title {
    margin: 0 0 1.1rem;
    text-align: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(1.08rem, 3.2vw, 1.32rem);
    color: var(--green-color);
}

.cart-page-card {
    border: 1px solid var(--border-color);
    border-radius: 22px;
    background: var(--surface-color);
    padding: 1.15rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-soft);
}

.cart-page-sub {
    margin: 0 0 0.55rem;
    font-size: 0.84rem;
    font-weight: 800;
}

.cart-summary-card {
    margin-top: 1rem;
}

.cart-summary-card .total-row {
    font-size: 0.82rem;
    margin-bottom: 0;
}

.cart-page-items .cart-item:last-child {
    border-bottom: 0;
}

.checkout-form.cart-page-card {
    padding: 1.15rem;
}

.app-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    z-index: 90;
    max-width: min(90vw, 360px);
    padding: 0.75rem 1.1rem;
    border-radius: 14px;
    background: var(--text-color);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.app-toast.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ================= Cart page compact ================= */
.cart-page-title {
    font-size: clamp(0.95rem, 2.6vw, 1.1rem);
    margin-bottom: 0.6rem;
}

.cart-page-card {
    padding: 0.85rem;
    margin-bottom: 0.65rem;
    border-radius: 18px;
}

.checkout-form.cart-page-card {
    padding: 0.85rem;
    gap: 0.45rem;
}

.cart-page-sub {
    font-size: 0.78rem;
    margin-bottom: 0.4rem;
}

.cart-summary-card {
    margin-top: 0.6rem;
}

.co-field {
    min-height: 42px;
    border-radius: 12px;
    padding: 0 0.75rem;
}

.co-ico {
    font-size: 0.82rem;
}

.co-input {
    font-size: 0.75rem;
    padding: 0.5rem 0;
}

.pay-toggle {
    padding: 0.25rem;
    margin-top: 0.1rem;
}

.pay-toggle-btn {
    min-height: 38px;
    font-size: 0.75rem;
}

.installment-block {
    gap: 0.35rem;
    margin-top: 0.25rem;
    padding-top: 0.5rem;
}

.inst-title {
    font-size: 0.7rem;
}

.inst-options {
    gap: 0.35rem;
}

.inst-chip {
    min-height: 36px;
    border-radius: 11px;
    font-size: 0.7rem;
}

.inst-summary {
    font-size: 0.72rem;
    margin: 0.1rem 0 0;
}

.inst-summary strong {
    font-size: 0.92rem;
}

.btn-outline-g {
    min-height: 40px;
    border-radius: 12px;
    font-size: 0.78rem;
}

.btn-green-lg {
    min-height: 44px;
    border-radius: 13px;
    font-size: 0.84rem;
}

.total-row {
    margin-bottom: 0;
}

.cart-item {
    padding: 10px 0;
    gap: 0.65rem;
}

.cart-item-img {
    width: 52px;
    height: 52px;
    border-radius: 11px;
}

.cart-item-info b {
    font-size: 12px;
}

.cart-item-info p {
    font-size: 12px;
    margin: 2px 0 6px;
}

.qty {
    gap: 0.45rem;
}

.qty-btn {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    font-size: 14px;
}

.qty-value {
    font-size: 12px;
}

.cart-remove {
    width: 30px;
    height: 30px;
    border-radius: 9px;
}

/* ================= Order success ================= */
.order-success-card {
    display: grid;
    gap: 0.55rem;
    justify-items: center;
    text-align: center;
    padding: 1.4rem 1rem;
    margin-bottom: 0.65rem;
    border: 1px solid rgba(23, 160, 119, 0.35);
    border-radius: 18px;
    background: rgba(23, 160, 119, 0.06);
}

.order-success-title {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--green-color);
}

.order-success-sub {
    margin: 0;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.order-success-sub strong {
    color: var(--text-color);
}

.order-success-btn {
    margin-top: 0.35rem;
    text-decoration: none;
}

/* ================= Payment page ================= */
.pay-crumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--green-color);
    margin-bottom: 0.9rem;
}

.pay-crumb a {
    color: var(--green-color);
}

.pay-crumb a:hover {
    text-decoration: underline;
}

.pay-crumb i {
    font-size: 0.62rem;
    color: var(--text-muted);
}

.pay-crumb span {
    color: var(--text-color);
}

.pay-totals {
    display: grid;
    gap: 0;
}

.pay-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0.35rem;
    border-bottom: 1px solid var(--border-color);
}

.pay-total-row:last-child {
    border-bottom: 0;
}

.pay-total-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-color);
}

.pay-total-label i {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.pay-total-row strong {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--green-color);
}

.pay-card {
    display: grid;
    gap: 0.9rem;
}

.pay-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.pay-card-title {
    margin: 0;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.15rem;
}

.pay-card-icon {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(23, 160, 119, 0.12);
    color: var(--green-color);
    font-size: 1.15rem;
}

.pay-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
}

.pay-method {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 62px;
    padding: 0.5rem;
    border: 1.5px solid var(--border-color);
    border-radius: 16px;
    background: var(--surface-color);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.pay-method:hover {
    border-color: var(--green-color);
}

.pay-method.is-active {
    border-color: var(--green-color);
    background: rgba(23, 160, 119, 0.06);
}

.pay-method-logo {
    cursor: default;
}

.pay-method-logo img {
    display: block;
    max-height: 30px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.pay-method-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 800;
    font-size: 1rem;
    font-style: italic;
}

.pay-brand-tamara {
    color: #a76bff;
}

.pay-brand-tabby {
    color: #3ecf8e;
}

.pay-brand-card i {
    font-size: 1.7rem;
    color: #1a1f71;
}

.pay-brand-card i + i {
    margin-inline-start: 0.15rem;
}

.pay-card-form {
    display: grid;
    gap: 0.6rem;
}

.pay-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

.pay-field {
    display: block;
}

.pay-input {
    width: 100%;
    min-height: 52px;
    padding: 0 0.95rem;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: var(--field-bg);
    font-size: 0.82rem;
    color: var(--text-color);
    text-align: right;
}

.pay-input:focus {
    outline: none;
    border-color: var(--green-color);
}

.pay-input::placeholder {
    color: var(--text-muted);
}

.pay-alt-note {
    padding: 0.9rem;
    border-radius: 14px;
    background: var(--field-bg);
    font-size: 0.8rem;
    line-height: 1.9;
    color: var(--text-muted);
    text-align: center;
}

.pay-now {
    margin-top: 0.15rem;
}