@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.cdnfonts.com/css/footlight-mt-pro');

:root {
    --brand-primary: #85461E;
    --brand-primary-mid: #343434;
    --brand-primary-light: #5D5D5D;
    --brand-accent: #E2B011;
    --brand-accent-hover: #B68934;
    --brand-light-bg: #f5f7f5;
    --brand-card-bg: #ffffff;
    --brand-text-main: #1f2937;
    --brand-text-muted: #6b7280;
    --brand-border: #e5e7eb;
    --brand-gold-subtle: #fef9ec;
    --brand-antiuv-badge: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --brand-emboss-badge: linear-gradient(135deg, #b45309 0%, #d97706 100%);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.09);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.13);
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--brand-light-bg);
    color: var(--brand-text-main);
    overflow-x: hidden;
}

h1, h2, h3, .font-serif {
    font-family: 'Playfair Display', Georgia, serif;
}

/* ============================================================
   TOP ANNOUNCEMENT BAR
   ============================================================ */
.top-announcement {
    background: var(--brand-primary);
    color: #d1fae5;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 6px 0;
    letter-spacing: 0.3px;
}

.top-announcement strong {
    color: var(--brand-accent);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.sticky-top-nav {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--brand-primary-light);
    transition: all 0.3s ease;
}

.navbar-brand-logo {
    font-family: 'Footlight MT Pro', serif;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--brand-primary);
}

.navbar-brand-logo span {
    color: var(--brand-primary-light);
}

/* ============================================================
   HERO BANNER SLIDESHOW
   ============================================================ */
.banner-slideshow-section {
    width: 100%;
    background: var(--brand-primary);
    overflow: hidden;
}

.banner-slideshow-section .carousel {
    width: 100%;
}

.banner-slide-item {
    position: relative;
    width: 100%;
    min-height: 340px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-mid) 100%);
}

@media (min-width: 768px) {
    .banner-slide-item {
        min-height: 420px;
    }
}

.banner-slide-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 8s ease;
}

.carousel-item.active .banner-slide-bg {
    transform: scale(1.04);
}

.banner-slide-content {
    position: relative;
    z-index: 2;
    padding: 3rem 1.5rem;
    max-width: 700px;
}

@media (min-width: 992px) {
    .banner-slide-content {
        padding: 4rem 3rem;
    }
}

.banner-slide-badge {
    display: inline-block;
    background: rgba(212, 160, 23, 0.2);
    border: 1px solid var(--brand-accent);
    color: var(--brand-accent);
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 1rem;
}

.banner-slide-title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.22;
    margin-bottom: 0.85rem;
}

@media (min-width: 768px) {
    .banner-slide-title {
        font-size: 2.6rem;
    }
}

.banner-slide-desc {
    color: rgba(255,255,255,0.82);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 520px;
}

.banner-slide-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--brand-accent);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 11px 24px;
    border-radius: 10px;
    text-decoration: none;
    border: none;
    transition: all 0.25s ease;
    cursor: pointer;
}

.banner-slide-btn:hover {
    background: var(--brand-accent-hover);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(212, 160, 23, 0.35);
}

/* Carousel controls */
.banner-slideshow-section .carousel-control-prev,
.banner-slideshow-section .carousel-control-next {
    width: 48px;
    height: 48px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(27, 67, 50, 0.6);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.banner-slideshow-section:hover .carousel-control-prev,
.banner-slideshow-section:hover .carousel-control-next {
    opacity: 1;
}

.banner-slideshow-section .carousel-control-prev {
    left: 16px;
}

.banner-slideshow-section .carousel-control-next {
    right: 16px;
}

.banner-slideshow-section .carousel-control-prev-icon,
.banner-slideshow-section .carousel-control-next-icon {
    width: 18px;
    height: 18px;
}

.banner-slideshow-section .carousel-indicators {
    bottom: 12px;
}

.banner-slideshow-section .carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.45);
    transition: all 0.3s ease;
    margin: 0 4px;
}

.banner-slideshow-section .carousel-indicators .active {
    background: var(--brand-accent);
    width: 22px;
    border-radius: 4px;
}

/* Single-banner state (no controls needed) */
.banner-slide-item.single {
    cursor: default;
}

/* ============================================================
   MAIN CONTENT AREA
   ============================================================ */
.storefront-main {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.section-heading {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--brand-primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-heading::after {
    content: '';
    display: block;
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, var(--brand-primary-light), transparent);
    border-radius: 2px;
}

/* ============================================================
   CATEGORY SECTION
   ============================================================ */
.category-section {
    background: #ffffff;
    border-bottom: 1px solid var(--brand-border);
    padding: 1.25rem 0;
    margin-bottom: 0;
}

.category-pills-wrapper {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    padding: 5px 0 10px 0;
}

.category-pills-wrapper::-webkit-scrollbar {
    display: none;
}

/* Category pill (chip) — kept from existing design */
.category-pill {
    background: #ffffff;
    border: 1.5px solid var(--brand-border);
    color: var(--brand-text-main);
    border-radius: 50px;
    padding: 7px 18px;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

.category-pill:hover {
    border-color: var(--brand-primary-light);
    color: var(--brand-primary-light);
    transform: translateY(-1px);
}

.category-pill.active {
    background: var(--brand-primary);
    color: #ffffff;
    border-color: var(--brand-primary);
    box-shadow: 0 4px 12px rgba(27, 67, 50, 0.22);
}

/* ============================================================
   FILTER / CONTROL BAR
   ============================================================ */
.filter-bar {
    padding: 1.25rem 0 0.5rem;
}

/* ============================================================
   PRODUCT CARDS
   ============================================================ */
.product-card {
    background: var(--brand-card-bg);
    border: 1px solid var(--brand-border);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.28s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(64, 145, 108, 0.4);
}

.product-img-wrapper {
    position: relative;
    padding-top: 100%;
    background: #f0f5f1;
    overflow: hidden;
}

.product-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.product-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 6px;
    color: #ffffff;
    letter-spacing: 0.5px;
    z-index: 2;
}

.tag-anti-uv {
    background: var(--brand-antiuv-badge);
}

.tag-emboss {
    background: var(--brand-emboss-badge);
}

.unit-info-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(27, 67, 50, 0.82);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 0.7rem;
    padding: 3px 9px;
    border-radius: 50px;
    font-weight: 500;
}

.product-card-body {
    padding: 1rem 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-category-text {
    font-family: 'Bookman Old Style', serif;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--brand-primary-light);
    font-weight: 600;
    margin-bottom: 3px;
}

.product-title {
    font-family: 'Footlight MT Pro', serif;
    font-size: 0.96rem;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 0.4rem;
    color: var(--brand-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    cursor: pointer;
}

.product-price {
    font-family: 'Bookman Old Style', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand-primary);
    margin-bottom: 0.85rem;
}

.product-price small {
    font-family: 'Bookman Old Style', serif;
    font-size: 0.76rem;
    font-weight: 400;
    color: var(--brand-text-muted);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-brand-primary {
    background-color: var(--brand-primary);
    color: #ffffff;
    border: none;
    border-radius: 9px;
    padding: 9px 16px;
    font-weight: 600;
    transition: all 0.22s ease;
}

.btn-brand-primary:hover {
    background-color: var(--brand-primary-mid);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(27, 67, 50, 0.28);
}

.btn-brand-outline {
    background-color: transparent;
    color: var(--brand-primary);
    border: 1.5px solid var(--brand-primary);
    border-radius: 9px;
    padding: 7px 14px;
    font-weight: 600;
    transition: all 0.22s ease;
}

.btn-brand-outline:hover {
    background-color: var(--brand-primary);
    color: #ffffff;
}

.btn-gold {
    background-color: var(--brand-accent);
    color: #ffffff;
    border: none;
    border-radius: 9px;
    font-weight: 600;
    transition: all 0.22s ease;
}

.btn-gold:hover {
    background-color: var(--brand-accent-hover);
    color: #ffffff;
}

/* ============================================================
   MODALS & DRAWERS
   ============================================================ */
.modal-content {
    border-radius: 18px;
    border: none;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.modal-header {
    border-bottom: 1px solid var(--brand-border);
    padding: 1.15rem 1.5rem;
    background: #f0faf4;
}

.offcanvas {
    border-top-left-radius: 18px;
    border-bottom-left-radius: 18px;
}

.offcanvas-header {
    background: var(--brand-primary);
    color: #ffffff;
    padding: 1.15rem 1.5rem;
}

.offcanvas-header .btn-close {
    filter: invert(1);
}

/* ============================================================
   CATEGORY SIDEBAR DRAWER & HAMBURGER
   ============================================================ */
.hamburger-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 9px;
    transition: all 0.22s ease;
}

.hamburger-nav-btn:hover {
    transform: translateY(-1px);
}

.hamburger-nav-btn i {
    font-size: 1.5rem;
    line-height: 1;
}

.category-sidebar-list {
    overflow-y: auto;
    padding-bottom: 1rem;
}

.category-sidebar-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 16px;
    background: #ffffff;
    border: 1.5px solid var(--brand-border);
    border-radius: 12px;
    color: var(--brand-text-main);
    font-size: 0.95rem;
    font-weight: 500;
    text-align: left;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.category-sidebar-item:hover {
    border-color: var(--brand-primary-light);
    color: var(--brand-primary);
    background: var(--brand-light-bg);
    transform: translateX(4px);
}

.category-sidebar-item.active {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.category-sidebar-item .category-sidebar-icon {
    font-size: 1.1rem;
    color: var(--brand-text-muted);
    transition: color 0.2s ease;
}

.category-sidebar-item.active .category-sidebar-icon {
    color: var(--brand-accent) !important;
}

.category-sidebar-item .category-sidebar-arrow {
    font-size: 0.85rem;
    color: var(--brand-text-muted);
    transition: transform 0.2s ease, color 0.2s ease;
}

.category-sidebar-item:hover .category-sidebar-arrow {
    transform: translateX(3px);
    color: var(--brand-primary);
}

.category-sidebar-item.active .category-sidebar-arrow {
    color: var(--brand-accent) !important;
    transform: translateX(3px);
}

/* ============================================================
   QUANTITY CONTROL
   ============================================================ */
.qty-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--brand-border);
    border-radius: 9px;
    overflow: hidden;
    background: #ffffff;
}

.qty-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: #f3f4f6;
    color: var(--brand-primary);
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: #d1fae5;
}

.qty-input {
    width: 48px;
    height: 36px;
    border: none;
    text-align: center;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--brand-primary);
    -moz-appearance: textfield;
}

.qty-input:focus {
    outline: none;
    background-color: #f8fafc;
}

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

#postcode-suggestions .postcode-item {
    cursor: pointer;
    transition: background-color 0.15s ease;
}

#postcode-suggestions .postcode-item:hover {
    background-color: #ecfdf5;
}

.meter-calc-pill {
    background: #ecfdf5;
    color: #065f46;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 50px;
    border: 1px solid #a7f3d0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ============================================================
   CART ITEM STYLING
   ============================================================ */
.cart-item-row {
    padding: 0.9rem 0;
    border-bottom: 1px dashed var(--brand-border);
}

.cart-item-row:last-child {
    border-bottom: none;
}

.cart-item-img {
    width: 68px;
    height: 68px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--brand-border);
}

/* ============================================================
   TOAST NOTIFICATION
   ============================================================ */
.custom-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1090;
    /* background: var(--brand-primary); */
    background: #2d2d2dcc;
    backdrop-filter: blur(4px);
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

/* ============================================================
   FLOATING MOBILE CART BUTTON
   ============================================================ */
.floating-cart-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    background: var(--brand-primary);
    color: #ffffff;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--brand-accent);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.floating-cart-btn:hover {
    transform: scale(1.08);
}

.cart-count-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--brand-accent);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
}

/* ============================================================
   FLOATING WHATSAPP BUTTON
   ============================================================ */
.floating-whatsapp-btn {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 1000;
    background: #25d366;
    /* WhatsApp green */
    color: #ffffff;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    cursor: pointer;
    transition: transform 0.2s ease;
    text-decoration: none;
    /* Hapus underline dari link */
    color: #ffffff;
    /* Pastikan warna ikon putih */
}

.floating-whatsapp-btn:hover {
    transform: scale(1.08);
    color: #ffffff;
}

/* ============================================================
   FOOTER
   ============================================================ */
.store-footer {
    background: var(--brand-primary);
    color: #aeaeae;
    padding: 3.5rem 0 2rem;
    border-top: 1px solid var(--brand-primary-mid);
    margin-top: 4rem;
}

.store-footer h5 {
    color: #ffffff;
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
}

.store-footer a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.2s;
}

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

.store-footer .bi-check2 {
    color: var(--brand-accent) !important;
}

/* ============================================================
   PRODUCTS SUMMARY INFO
   ============================================================ */
#section-title {
    color: var(--brand-primary);
}

/* ============================================================
   EMPTY / LOADING STATES
   ============================================================ */
.spinner-border.text-brand {
    color: var(--brand-primary) !important;
}

/* ============================================================
   COLOR SELECTOR IN MODAL (kept functional)
   ============================================================ */
.color-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.15);
    display: inline-block;
}

.bg-formalblack, .bg-black { background-color: #121212; }
.bg-bitterchoco { background-color: #3e2723; }
.bg-brunette { background-color: #5d4037; }
.bg-darkteal { background-color: #004d40; }
.bg-offwhite { background-color: #faf0e6; border-color: #ccc; }
.bg-netralwhite { background-color: #ffffff; border-color: #bbb; }

/* ============================================================
   RESPONSIVE UTILITIES
   ============================================================ */
.extra-small {
    font-size: 0.75rem;
}

/* ============================================================
   VARIANT CHIPS
   ============================================================ */
.variant-chip-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

#modal-variants-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.variant-chip-wrapper {
    position: relative;
}

.variant-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    padding: 0.4rem 0.85rem;
    border-radius: 50px;
    border: 1.5px solid var(--brand-border);
    background: #ffffff;
    color: var(--brand-text-main);
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
    user-select: none;
}

.variant-chip:hover {
    border-color: var(--brand-accent);
    background: var(--brand-gold-subtle);
    color: var(--brand-primary);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(226, 176, 17, 0.2);
}

/* Selected state — driven by the hidden radio being :checked */
.variant-chip-input:checked + .variant-chip {
    border-color: var(--brand-accent);
    background: var(--brand-accent);
    color: #fff;
    box-shadow: 0 4px 14px rgba(226, 176, 17, 0.35);
    transform: translateY(-1px);
}

.variant-chip-input:checked + .variant-chip .variant-chip-stock {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

/* Stock badge inside the chip */
.variant-chip-stock {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-gold-subtle);
    color: var(--brand-accent-hover);
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 50px;
    padding: 0.05rem 0.45rem;
    min-width: 1.5rem;
    transition: background 0.18s ease, color 0.18s ease;
}

/* Out-of-stock chip */
.variant-chip--oos {
    cursor: not-allowed;
    opacity: 0.5;
    text-decoration: line-through;
    pointer-events: none;
}

.variant-chip-oos-badge {
    display: inline-flex;
    align-items: center;
    background: #fee2e2;
    color: #dc2626;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 50px;
    padding: 0.05rem 0.4rem;
    letter-spacing: 0.3px;
    text-decoration: none;
}
