/* Explain: Page layout utilities, structure, and responsive header/footer styles. */
.container-x {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 1rem;
}

.section-pad {
    padding-block: 3.25rem;
}

@media (min-width: 768px) {
    .section-pad {
        padding-block: 4.75rem;
    }
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--primary-color);
}

.section-title {
    font-size: clamp(1.6rem, 3.6vw, 2.35rem);
}

/* Header */
.announce-bar {
    background: var(--text-color);
    color: #ffffff;
    padding-block: 0.55rem;
    font-size: 0.8rem;
    letter-spacing: 0.01em;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--header-bg, rgba(255, 255, 255, 0.94));
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.12rem;
    letter-spacing: -0.02em;
    min-width: 0;
    flex: 0 1 auto;
}

.brand-text {
    min-width: 0;
    line-height: 1.2;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 1023px) {
    .brand {
        font-size: 1rem;
        gap: 0.5rem;
    }

    .brand-mark {
        width: 2.1rem;
        height: 2.1rem;
        font-size: 0.85rem;
        border-radius: 10px;
    }
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 12px;
    background: var(--primary-color);
    color: #ffffff;
    font-size: 0.95rem;
    flex: 0 0 auto;
}

.header-search {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
}

.header-search-input {
    width: 100%;
    height: 2.9rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--surface-color);
    padding: 0 6.4rem 0 2.6rem;
    font-size: 0.92rem;
    font-family: inherit;
    color: var(--text-color);
}

.header-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #ffffff;
}

.header-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.88rem;
    pointer-events: none;
}

.header-search-btn {
    position: absolute;
    right: 0.3rem;
    top: 0.3rem;
    height: 2.3rem;
    padding-inline: 1.15rem;
    border-radius: 999px;
    font-size: 0.84rem;
}

.icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.85rem;
    height: 2.85rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: #ffffff;
    color: var(--text-color);
    font-size: 1.02rem;
    transition: all 0.25s ease;
    cursor: pointer;
    flex: 0 0 auto;
}

.icon-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.icon-btn-accent {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
}

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

@media (max-width: 1023px) {
    .icon-btn {
        width: 2.6rem;
        height: 2.6rem;
        font-size: 0.98rem;
        border-radius: 10px;
    }
}

.cart-count {
    position: absolute;
    top: -0.35rem;
    right: -0.35rem;
    min-width: 1.35rem;
    height: 1.35rem;
    padding-inline: 0.25rem;
    border-radius: 999px;
    background: var(--accent-color);
    color: #14161a;
    font-size: 0.7rem;
    font-weight: 700;
    align-items: center;
    justify-content: center;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.25s ease;
}

.nav-link:hover {
    color: var(--primary-color);
    background: var(--surface-color);
}

/* Menu seluler */
.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(20, 22, 26, 0.45);
}

.mobile-menu.is-open {
    display: block;
}

.mobile-menu-panel {
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    width: min(20rem, 86vw);
    background: #ffffff;
    padding: 1.25rem;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: panel-in 0.25s ease;
}

@keyframes panel-in {
    from {
        transform: translateX(-14px);
        opacity: 0.4;
    }

    to {
        transform: none;
        opacity: 1;
    }
}

/* Banner beranda */
.banner {
    background:
        radial-gradient(120% 120% at 100% 0%, rgba(79, 70, 229, 0.12) 0%, rgba(255, 255, 255, 0) 58%),
        var(--surface-color);
    padding-block: 2.75rem;
}

@media (min-width: 768px) {
    .banner {
        padding-block: 4rem;
    }
}

.banner-collage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 0.75rem;
}

.banner-tile {
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--surface-strong);
    min-height: 0;
}

.banner-tile-lg {
    grid-row: span 2;
}

/* Pita promo */
.promo-band {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background-image: url('https://files.cdn-files-a.com/admin/system_photos_stock/normal_6964884772f1e.jpg?format=avif');
    background-size: cover;
    background-position: center;
    min-height: 21rem;
}

.promo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 17, 21, 0.9) 0%, rgba(15, 17, 21, 0.6) 55%, rgba(15, 17, 21, 0.2) 100%);
}

.promo-content {
    position: relative;
    padding: 2.5rem 2rem;
    color: #ffffff;
    max-width: 34rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    min-height: 21rem;
    justify-content: center;
}

.promo-content h2 {
    font-size: clamp(1.45rem, 3.4vw, 2.1rem);
}

.promo-content p {
    color: rgba(255, 255, 255, 0.86);
}

/* Footer */
.site-footer {
    background: var(--footer-bg, var(--surface-color));
    border-top: 1px solid var(--border-color);
    margin-top: 1rem;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-link {
    display: block;
    padding-block: 0.35rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

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

.crumbs {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.crumbs i {
    font-size: 0.6rem;
}

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

.catalog-filter {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

@media (min-width: 1024px) {
    .catalog-filter {
        position: sticky;
        top: 6.5rem;
        padding: 1.25rem;
        border: 1px solid var(--border-color);
        border-radius: var(--radius);
        background: #ffffff;
    }
}

/* Navigasi cepat melekat di bawah layar (mobile) */
.bottom-nav {
    display: none;
}

@media (max-width: 1023px) {
    body {
        padding-bottom: 4.6rem;
    }

    .bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 55;
        display: flex;
        align-items: stretch;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(12px);
        border-top: 1px solid var(--border-color);
        box-shadow: 0 -8px 26px rgba(20, 22, 26, 0.09);
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }
}

.bottom-nav-item {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    min-height: 3.6rem;
    padding: 0.45rem 0.15rem;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.bottom-nav-item > span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bottom-nav-item i {
    font-size: 1.12rem;
    transition: transform 0.2s ease;
}

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

.bottom-nav-item.is-active i {
    transform: translateY(-1px);
}

.bottom-nav-badge {
    position: absolute;
    top: 0.3rem;
    right: 50%;
    transform: translateX(1.4rem);
    min-width: 1.15rem;
    height: 1.15rem;
    padding-inline: 0.25rem;
    border-radius: 999px;
    background: var(--accent-color);
    color: #14161a;
    font-size: 0.62rem;
    font-weight: 700;
    align-items: center;
    justify-content: center;
}

/* Pintasan panel pengelola — muncul setelah masuk sebagai owner atau admin */
.panel-shortcut {
    display: none !important;
}

.panel-shortcut.is-shown {
    display: inline-flex !important;
}