/* ==============================================
   PAGES.CSS — Shared styles for all inner pages
   ============================================== */

/* Breadcrumb */
.breadcrumb {
    background: #f5f5f5;
    padding: 12px 0;
    font-size: 13px;
    color: var(--text-grey);
    border-bottom: 1px solid #eee;
}

.breadcrumb a {
    color: var(--primary-gold);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 6px;
}

/* Category icon nav (produk page) */
.cat-icon-nav {
    background: #1a1a2e;
    padding: 0;
    overflow-x: auto;
    white-space: nowrap;
}

.cat-icon-nav::-webkit-scrollbar {
    height: 3px;
}

.cat-icon-nav::-webkit-scrollbar-thumb {
    background: var(--primary-gold);
}

.cat-icon-list {
    display: flex;
    justify-content: center;
    min-width: max-content;
    margin: 0 auto;
    padding: 0 20px;
}

.cat-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 25px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    gap: 6px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cat-icon-item:hover,
.cat-icon-item.active {
    border-bottom-color: var(--primary-gold);
    color: var(--primary-gold);
}

.cat-icon-item img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.cat-icon-item .icon-placeholder {
    width: 40px;
    height: 40px;
    background: rgba(197, 155, 54, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary-gold);
}

/* Page Hero */
.page-hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1d365a 100%);
    color: white;
    padding: 40px 0 35px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gold);
}

.page-hero h1 {
    font-size: 30px;
    font-weight: 700;
    color: var(--primary-gold);
    margin-bottom: 6px;
}

.page-hero p {
    font-size: 14px;
    opacity: 0.8;
}

/* ==============================================
   GLOBAL PRODUCT IMAGE WRAPPER (Standardized)
   ============================================== */
.product-img-standard {
    position: relative;
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    width: 100%;
    transition: all 0.3s ease;
}

.product-img-standard img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensure no distortion, full image visible */
    padding: 10px; /* Consistent internal padding */
    transition: transform 0.5s ease;
}

.product-img-standard:hover img {
    transform: scale(1.08);
}

/* Size Variants */
.product-img-standard.sm {
    border-radius: 8px;
    padding: 5px;
}

.product-img-standard.sm img {
    padding: 5px;
}

/* ==================
   PRODUK PAGE
   ================== */
.produk-section {
    padding: 35px 0 100px;
    background: #f7f7f7;
    min-height: 60vh;
}

.lokasi-bar {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 10px;
}

.lokasi-bar-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.lokasi-bar-info i {
    color: var(--primary-gold);
    font-size: 18px;
}

.lokasi-bar-info strong {
    color: var(--text-dark);
}

.btn-ubah-lokasi {
    background: transparent;
    border: 1px solid var(--primary-gold);
    color: var(--primary-gold);
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-ubah-lokasi:hover {
    background: var(--primary-gold);
    color: white;
}

.produk-main {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 25px;
    align-items: start;
}

.produk-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.produk-list-header h3 {
    font-size: 16px;
    color: var(--text-dark);
}

.produk-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.produk-card {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    position: relative;
}

.produk-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.produk-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    background: var(--primary-gold);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
}

.produk-badge.new-badge {
    background: #27ae60;
}

.produk-img-wrap {
    background: #fafafa;
    padding: 20px;
    text-align: center;
    cursor: pointer;
}

.produk-img-wrap img {
    width: 100%;
    max-height: 150px;
    object-fit: contain;
    transition: transform 0.3s;
}

.produk-card:hover .produk-img-wrap img {
    transform: scale(1.05);
}

.produk-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 5px;
}

.produk-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    line-height: 1.4;
}

.produk-name:hover {
    color: var(--primary-gold);
}

.produk-weight-tag {
    font-size: 11px;
    color: white;
    background: #888;
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    width: fit-content;
}

.produk-harga {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-gold);
    margin-top: 4px;
}

.produk-harga-sub {
    font-size: 11px;
    color: var(--text-grey);
}

.produk-qty-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.qty-control {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.qty-btn {
    background: #f5f5f5;
    border: none;
    width: 30px;
    height: 30px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.qty-btn:hover {
    background: var(--primary-gold);
    color: white;
}

.qty-input {
    width: 40px;
    border: none;
    text-align: center;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    background: white;
}

.btn-add-cart {
    flex: 1;
    background: var(--primary-gold);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.btn-add-cart:hover {
    background: #b38a2c;
}

/* Order Summary Sidebar */
/* Lokasi Modal */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.show {
    display: flex;
}

.modal-box {
    background: white;
    border-radius: 12px;
    padding: 35px 30px;
    width: 90%;
    max-width: 440px;
    position: relative;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-title {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.modal-sub {
    text-align: center;
    font-size: 13px;
    color: var(--text-grey);
    margin-bottom: 25px;
}

.modal-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-gold);
    margin-bottom: 8px;
    display: block;
}

.modal-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 13px;
    outline: none;
    margin-bottom: 20px;
    background: white;
    cursor: pointer;
}

.modal-select:focus {
    border-color: var(--primary-gold);
}

.btn-simpan {
    display: block;
    width: 100%;
    background: var(--primary-gold);
    color: white;
    border: none;
    padding: 14px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-simpan:hover {
    background: #b38a2c;
}

/* ==================
   DETAIL PAGE
   ================== */
.detail-section {
    padding: 35px 0 60px;
    background: #f7f7f7;
}

.detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: white;
    border-radius: 12px;
    padding: 35px;
}

.detail-badge {
    display: inline-block;
    background: #27ae60;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.detail-gallery {
    position: relative;
}

.main-img-wrap {
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    width: 100%;
    aspect-ratio: 1 / 1; /* Stable aspect ratio to prevent layout shifts */
    position: relative;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.main-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    padding: 20px;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-img-wrap.loading::after {
    content: "";
    width: 35px;
    height: 35px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: absolute;
    z-index: 5;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.thumb-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.thumb {
    width: 70px;
    height: 70px;
    padding: 6px;
    border: 2px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s;
}

.thumb.active,
.thumb:hover {
    border-color: var(--primary-gold);
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.detail-info .detail-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.detail-info .detail-date {
    font-size: 12px;
    color: var(--text-grey);
    margin-bottom: 20px;
}

.weight-selector-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.weight-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.weight-btn {
    padding: 8px 18px;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}

.weight-btn:hover,
.weight-btn.active {
    border-color: var(--primary-gold);
    background: var(--primary-gold);
    color: white;
}

.price-display {
    background: linear-gradient(135deg, #fdf8ee, #fff8e7);
    border: 1px solid #f0d080;
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 22px;
}

.price-display .price-label {
    font-size: 12px;
    color: var(--text-grey);
    margin-bottom: 4px;
}

.price-display .price-amount {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-gold);
}

.price-display .price-per {
    font-size: 12px;
    color: var(--text-grey);
    margin-top: 2px;
}

.detail-qty-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.detail-qty-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
}

.qty-control-lg {
    display: flex;
    align-items: center;
    border: 2px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.qty-btn-lg {
    background: #f5f5f5;
    border: none;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.2s;
}

.qty-btn-lg:hover {
    background: var(--primary-gold);
    color: white;
}

.qty-input-lg {
    width: 55px;
    border: none;
    text-align: center;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    background: white;
    font-weight: 600;
}

.btn-add-detail {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: var(--primary-gold);
    color: white;
    border: none;
    padding: 16px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s;
    margin-bottom: 12px;
}

.btn-add-detail:hover {
    background: #b38a2c;
}

.btn-beli-langsung {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 14px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-beli-langsung:hover {
    background: #1d365a;
}

.detail-tabs {
    background: white;
    border-radius: 12px;
    margin-top: 25px;
    overflow: hidden;
    border: 1px solid #eee;
}

.detail-tab-nav {
    display: flex;
    border-bottom: 2px solid #eee;
}

.dtab-btn {
    padding: 14px 24px;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-grey);
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s;
}

.dtab-btn.active {
    color: var(--primary-gold);
    border-bottom-color: var(--primary-gold);
}

.detail-tab-content {
    padding: 25px;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.tab-panel p {
    font-size: 14px;
    color: var(--text-grey);
    line-height: 1.8;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.spec-table tr:nth-child(odd) {
    background: #f9f9f9;
}

.spec-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
}

.spec-table td:first-child {
    color: var(--text-grey);
    width: 40%;
    font-weight: 500;
}

.spec-table td:last-child {
    color: var(--text-dark);
    font-weight: 600;
}

/* ==================
   CART PAGE
   ================== */
.cart-section {
    padding: 35px 0 60px;
    background: #f7f7f7;
    min-height: 60vh;
}

.cart-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 25px;
    align-items: start;
}

.cart-items-box {
    background: white;
    border-radius: 10px;
    border: 1px solid #eee;
    overflow: hidden;
}

.cart-box-header {
    padding: 18px 20px;
    border-bottom: 1px solid #eee;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.2s;
}

.cart-item:hover {
    background: #fafafa;
}

.cart-item-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: #fafafa;
    border-radius: 8px;
    padding: 6px;
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.cart-item-weight {
    font-size: 12px;
    color: var(--text-grey);
    margin-bottom: 8px;
}

.cart-item-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-gold);
}

.cart-item-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.btn-remove-item {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 18px;
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-grey);
}

.cart-empty i {
    font-size: 60px;
    margin-bottom: 15px;
    opacity: 0.3;
}

.cart-empty p {
    font-size: 15px;
    margin-bottom: 20px;
}

/* Cart/Order Summary */
.summary-box {
    background: white;
    border-radius: 10px;
    border: 1px solid #eee;
    overflow: hidden;
    position: sticky;
    top: 20px;
}

.summary-header {
    background: var(--primary-blue);
    color: white;
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 600;
}

.summary-body {
    padding: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
    color: var(--text-grey);
}

.summary-row:last-of-type {
    border: none;
}

/* ===== BOX-STYLE CATEGORY NAVIGATION ===== */
.cat-tab-bar {
    padding: 10px 0;
    margin-bottom: 35px;
}

.cat-tab-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.cat-tab-item {
    padding: 8px 16px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #666;
    cursor: pointer;
    background: white;
    border: 1.5px solid #eee;
    border-radius: 4px;
    transition: all 0.25s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    user-select: none;
}

.cat-tab-item:hover {
    border-color: #c9a227;
    color: #c9a227;
    background: #fff;
}

.cat-tab-item.active {
    background: #2a4c8c;
    color: white;
    border-color: #2a4c8c;
}

/* ===== PRODUCT CARDS GRID ===== */
.produk-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.produk-card-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    border: 1px solid #eee;
    transition: all 0.25s;
    cursor: pointer;
}

.produk-card-item:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

.produk-card-img {
    background: #ffffff;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.produk-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* padding: 20px; -- Dihapus untuk memperbaiki bingkai */
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.produk-card-item:hover .produk-card-img img {
    transform: scale(1.1);
}

.produk-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #e74c3c;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    pointer-events: none;
    display: block !important; /* Ensure always visible */
    opacity: 1 !important;
    visibility: visible !important;
}

.produk-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.produk-card-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.5;
    min-height: 42px; /* Ensure alignment */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.produk-card-price {
    font-size: 16px;
    font-weight: 700;
    color: #2a4c8c;
    margin-top: 4px;
}

.produk-card-stock {
    font-size: 12px;
    color: #27ae60;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.produk-card-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.produk-card-qty {
    width: 55px;
    height: 38px;
    text-align: center;
    padding: 6px;
    border: 1.5px solid #eee;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    font-weight: 600;
    outline: none;
    transition: border-color 0.2s;
}

.produk-card-qty:focus {
    border-color: #c9a227;
}

.produk-card-btn {
    flex: 1;
    height: 38px;
    padding: 0 12px;
    background: #c9a227;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.produk-card-btn:hover {
    background: #b38a2c;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(201, 162, 39, 0.2);
}

.produk-card-btn:active {
    transform: translateY(0);
}

.produk-card-detail {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px;
    border: 1.5px solid #eee;
    border-radius: 6px;
    color: #666;
    font-size: 12px;
    font-weight: 700;
    margin-top: 4px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.produk-card-detail:hover {
    background: #f8f9fa;
    color: #2a4c8c;
    border-color: #2a4c8c;
}

/* ===== LAYOUT ===== */
.produk-main {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.produk-content {
    flex: 1;
    min-width: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .cat-tab-list {
        gap: 8px;
    }
    .cat-tab-item {
        padding: 10px 15px;
        font-size: 11px;
    }
}

@media (max-width: 768px) {
    .cat-tab-bar {
        padding: 15px 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .cat-tab-list {
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding: 0 15px;
        width: max-content;
    }
    .produk-main {
        flex-direction: column;
    }
    .produk-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .cat-tab-bar {
        margin-bottom: 20px;
    }
    .cat-tab-item {
        font-size: 9px;
        padding: 6px 10px;
        min-height: 36px;
    }
    .produk-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .produk-card-body {
        padding: 10px;
    }
    .produk-card-name {
        font-size: 12px;
        min-height: 36px;
    }
    .produk-card-price {
        font-size: 13px;
    }
    .produk-card-actions {
        gap: 6px;
        margin-top: 6px;
    }
    .produk-card-qty {
        width: 40px;
        height: 32px;
        font-size: 12px;
    }
    .produk-card-btn {
        height: 32px;
        font-size: 10px;
        padding: 0 6px;
        gap: 4px;
    }
    .produk-card-btn i {
        font-size: 10px;
    }
    .produk-card-detail {
        padding: 8px;
        font-size: 10px;
    }
}

/* ===== BOX-STYLE CATEGORY NAVIGATION ===== */
.cat-tab-bar {
    padding: 10px 0;
    margin-bottom: 35px;
}

.cat-tab-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.cat-tab-item {
    padding: 8px 16px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #666;
    cursor: pointer;
    background: white;
    border: 1.5px solid #eee;
    border-radius: 4px;
    transition: all 0.25s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    user-select: none;
}

.cat-tab-item:hover {
    border-color: #c9a227;
    color: #c9a227;
    background: #fff;
}

.cat-tab-item.active {
    background: #2a4c8c;
    color: white;
    border-color: #2a4c8c;
}

/* ===== PRODUCT CARDS GRID ===== */
.produk-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.produk-card-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    border: 1px solid #eee;
    transition: all 0.25s;
    cursor: pointer;
}

.produk-card-item:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

.produk-card-img {
    background: #ffffff;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.produk-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.produk-card-item:hover .produk-card-img img {
    transform: scale(1.1);
}

.produk-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #e74c3c;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    pointer-events: none;
    display: block !important; /* Ensure always visible */
    opacity: 1 !important;
    visibility: visible !important;
}

.produk-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.produk-card-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.5;
    min-height: 42px; /* Ensure alignment */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.produk-card-price {
    font-size: 16px;
    font-weight: 700;
    color: #2a4c8c;
    margin-top: 4px;
}

.produk-card-stock {
    font-size: 12px;
    color: #27ae60;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.produk-card-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.produk-card-qty {
    width: 55px;
    height: 38px;
    text-align: center;
    padding: 6px;
    border: 1.5px solid #eee;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    font-weight: 600;
    outline: none;
    transition: border-color 0.2s;
}

.produk-card-qty:focus {
    border-color: #c9a227;
}

.produk-card-btn {
    flex: 1;
    height: 38px;
    padding: 0 12px;
    background: #c9a227;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.produk-card-btn:hover {
    background: #b38a2c;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(201, 162, 39, 0.2);
}

.produk-card-btn:active {
    transform: translateY(0);
}

.produk-card-detail {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px;
    border: 1.5px solid #eee;
    border-radius: 6px;
    color: #666;
    font-size: 12px;
    font-weight: 700;
    margin-top: 4px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.produk-card-detail:hover {
    background: #f8f9fa;
    color: #2a4c8c;
    border-color: #2a4c8c;
}

/* ===== LAYOUT ===== */
.produk-main {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.produk-content {
    flex: 1;
    min-width: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .cat-tab-list {
        gap: 8px;
    }
    .cat-tab-item {
        padding: 10px 15px;
        font-size: 11px;
    }
}

@media (max-width: 768px) {
    .cat-tab-bar {
        padding: 15px 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .cat-tab-list {
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding: 0 15px;
        width: max-content;
    }
    .produk-main {
        flex-direction: column;
    }
    .produk-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .cat-tab-bar {
        margin-bottom: 20px;
    }
    .cat-tab-item {
        font-size: 9px;
        padding: 6px 10px;
        min-height: 36px;
    }
    .produk-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .produk-card-body {
        padding: 10px;
    }
    .produk-card-name {
        font-size: 12px;
        min-height: 36px;
    }
    .produk-card-price {
        font-size: 13px;
    }
    .produk-card-actions {
        gap: 6px;
        margin-top: 6px;
    }
    .produk-card-qty {
        width: 40px;
        height: 32px;
        font-size: 12px;
    }
    .produk-card-btn {
        height: 32px;
        font-size: 10px;
        padding: 0 6px;
        gap: 4px;
    }
    .produk-card-btn i {
        font-size: 10px;
    }
    .produk-card-detail {
        padding: 8px;
        font-size: 10px;
    }
}

.summary-row span:last-child {
    font-weight: 600;
    color: var(--text-dark);
}

.summary-total {
    display: flex;
    justify-content: space-between;
    background: #fdf8ee;
    padding: 14px;
    border-radius: 8px;
    margin: 12px 0;
}

.summary-total span {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-grey);
}

.summary-total strong {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-gold);
}

.pph-note {
    font-size: 11px;
    color: var(--text-grey);
    background: #f9f9f9;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.btn-to-checkout {
    display: block;
    width: 100%;
    background: var(--primary-gold);
    color: white;
    border: none;
    padding: 15px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
    text-align: center;
    text-decoration: none;
}

.btn-to-checkout:hover {
    background: #b38a2c;
}

.btn-lanjut-belanja {
    display: block;
    text-align: center;
    margin-top: 10px;
    font-size: 13px;
    color: var(--primary-gold);
    text-decoration: underline;
}

/* ==================
   CHECKOUT PAGE
   ================== */
.checkout-section {
    padding: 35px 0 60px;
    background: #f7f7f7;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 25px;
    align-items: start;
}

.checkout-steps {
    display: flex;
    gap: 0;
    margin-bottom: 25px;
    border-radius: 8px;
    overflow: hidden;
}

.step {
    flex: 1;
    padding: 14px;
    text-align: center;
    background: #eee;
    font-size: 12px;
    font-weight: 600;
    color: #999;
    position: relative;
}

.step.done {
    background: #27ae60;
    color: white;
}

.step.active {
    background: var(--primary-gold);
    color: white;
}

.checkout-card {
    background: white;
    border-radius: 10px;
    border: 1px solid #eee;
    margin-bottom: 20px;
    overflow: hidden;
}

.checkout-card-header {
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
}

.checkout-card-header i {
    color: var(--primary-gold);
}

.checkout-card-body {
    padding: 20px;
}

.co-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.co-form-row.single {
    grid-template-columns: 1fr;
}

.co-form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.co-form-group input,
.co-form-group select,
.co-form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #ddd;
    border-radius: 7px;
    font-family: inherit;
    font-size: 13px;
    outline: none;
    transition: border-color 0.3s;
}

.co-form-group input:focus,
.co-form-group select:focus {
    border-color: var(--primary-gold);
}

.co-form-group input:read-only {
    background: #f9f9f9;
    cursor: not-allowed;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-option {
    border: 2px solid #eee;
    border-radius: 8px;
    padding: 14px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s;
}

.payment-option.selected {
    border-color: var(--primary-gold);
    background: #fdf8ee;
}

.payment-option input[type="radio"] {
    accent-color: var(--primary-gold);
    width: 16px;
    height: 16px;
}

.payment-option-info {
    flex: 1;
}

.payment-option-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.payment-option-desc {
    font-size: 12px;
    color: var(--text-grey);
}

.payment-option-logo {
    font-size: 24px;
    color: var(--primary-blue);
}

.btn-confirm-order {
    display: block;
    width: 100%;
    background: var(--primary-gold);
    color: white;
    border: none;
    padding: 16px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 5px;
}

.btn-confirm-order:hover {
    background: #b38a2c;
}

/* Order success modal */
.success-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.success-modal.show {
    display: flex;
}

.success-box {
    background: white;
    border-radius: 16px;
    padding: 50px 40px;
    text-align: center;
    max-width: 420px;
    width: 90%;
}

.success-box i {
    font-size: 60px;
    color: #27ae60;
    margin-bottom: 20px;
}

.success-box h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.success-box p {
    font-size: 14px;
    color: var(--text-grey);
    margin-bottom: 25px;
}

/* ==================
   GRAFIK HARGA PAGE
   ================== */
.grafik-section {
    padding: 35px 0 60px;
    background: #f7f7f7;
}

.grafik-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #eee;
    padding: 25px;
    margin-bottom: 25px;
}

.grafik-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.grafik-card-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

.range-btns {
    display: flex;
    gap: 6px;
}

.range-btn {
    padding: 6px 14px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: white;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-grey);
    transition: all 0.3s;
}

.range-btn:hover,
.range-btn.active {
    background: var(--primary-gold);
    border-color: var(--primary-gold);
    color: white;
}

.chart-wrap {
    position: relative;
    height: 300px;
}

.harga-table-wrap {
    overflow-x: auto;
}

.harga-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.harga-table th {
    background: var(--primary-blue);
    color: white;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
}

.harga-table td {
    padding: 11px 15px;
    border-bottom: 1px solid #f0f0f0;
    color: var(--text-dark);
}

.harga-table tr:hover td {
    background: #fafafa;
}

.harga-table .up {
    color: #27ae60;
    font-weight: 600;
}

.harga-table .down {
    color: #e74c3c;
    font-weight: 600;
}

.harga-table .neutral {
    color: var(--text-grey);
}

/* ==================
   AKUN / AUTH PAGE
   ================== */
.auth-section {
    min-height: calc(100vh - 160px);
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.auth-left {
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 40px;
}

.auth-form-wrap {
    width: 100%;
    max-width: 480px;
}

.auth-tabs {
    display: flex;
    border-bottom: 2px solid #eee;
    margin-bottom: 25px;
}

.auth-tab {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-grey);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s;
}

.auth-tab.active {
    color: var(--primary-gold);
    border-bottom-color: var(--primary-gold);
}

.auth-logo {
    text-align: center;
    margin-bottom: 22px;
}

.auth-logo p {
    font-size: 13px;
    color: var(--text-grey);
    margin-top: 6px;
}

.auth-form .form-group {
    margin-bottom: 14px;
}

.auth-form label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.input-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-wrap>i {
    position: absolute;
    left: 12px;
    color: #aaa;
    font-size: 14px;
}

.input-icon-wrap input {
    width: 100%;
    padding: 11px 14px 11px 36px;
    border: 1px solid #ddd;
    border-radius: 7px;
    font-family: inherit;
    font-size: 13px;
    outline: none;
    transition: border-color 0.3s;
}

.input-icon-wrap input:focus {
    border-color: var(--primary-gold);
}

.toggle-pw {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    font-size: 14px;
    padding: 5px;
}

.form-extras {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 13px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-grey);
    cursor: pointer;
}

.forgot-pw {
    color: var(--primary-gold);
    font-weight: 600;
}

.auth-btn {
    display: block;
    width: 100%;
    background: var(--primary-gold);
    color: white;
    border: none;
    padding: 13px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 7px;
    cursor: pointer;
    transition: background 0.3s;
}

.auth-btn:hover {
    background: #b38a2c;
}

.divider {
    text-align: center;
    position: relative;
    margin: 18px 0;
    color: var(--text-grey);
    font-size: 12px;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 38%;
    height: 1px;
    background: #eee;
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.social-auth {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 18px;
}

.btn-social-auth {
    padding: 10px;
    border-radius: 7px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid #ddd;
    transition: all 0.3s;
}

.btn-social-auth.google {
    background: white;
    color: #555;
}

.btn-social-auth.fb {
    background: #3b5998;
    color: white;
    border-color: #3b5998;
}

.auth-switch {
    text-align: center;
    font-size: 13px;
    color: var(--text-grey);
    margin-top: 15px;
}

.auth-switch a {
    color: var(--primary-gold);
    font-weight: 600;
}

.terms-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: var(--text-grey);
    margin-bottom: 16px;
    line-height: 1.5;
    cursor: pointer;
}

.terms-label a {
    color: var(--primary-gold);
}

.auth-form .form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 768px) {
    .auth-section {
        grid-template-columns: 1fr;
    }

    .auth-form .form-row-2 {
        grid-template-columns: 1fr;
    }

    .auth-right {
        padding: 40px 20px;
    }
}

.auth-right {
    background: linear-gradient(145deg, var(--primary-blue) 0%, #1d365a 60%, #0d2040 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 50px;
    position: relative;
    overflow: hidden;
}

.auth-right::before {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: rgba(197, 155, 54, 0.1);
    top: -80px;
    right: -80px;
}

.auth-right::after {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: rgba(197, 155, 54, 0.08);
    bottom: -60px;
    left: -60px;
}

.auth-right-content {
    color: white;
    text-align: center;
    position: relative;
    z-index: 2;
}

.auth-right-content h2 {
    font-size: 34px;
    font-weight: 700;
    color: var(--primary-gold);
    margin-bottom: 12px;
    line-height: 1.3;
}

.auth-right-content p {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 30px;
    line-height: 1.7;
}

.auth-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: left;
}

.auth-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.auth-feature i {
    color: var(--primary-gold);
    font-size: 18px;
}

/* Auth Extra Banner */
.auth-right-content {
    color: white;
}

.auth-right-content h2 {
    font-size: 28px;
    margin-bottom: 15px;
    font-weight: 700;
}

.auth-right-content p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.9;
}

.auth-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.auth-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 15px;
    border-radius: 8px;
}

.auth-feature i {
    color: var(--primary-gold);
    font-size: 18px;
}

/* Auth Responsive */
@media (max-width: 900px) {
    .auth-section {
        flex-direction: column;
        height: auto;
    }

    .auth-left,
    .auth-right {
        width: 100%;
        min-height: auto;
    }

    .auth-right {
        padding: 40px 20px;
        position: static;
        height: auto;
    }

    .auth-form-wrap {
        padding: 30px;
        margin: 40px auto;
    }
}

/* =========================================
   WooCommerce Checkout Styles
========================================= */

.checkout-wc-grid {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.checkout-billing {
    flex: 6;
}

.checkout-order {
    flex: 4;
    background: #fff;
    border: 2px solid #d3ced2;
    padding: 30px;
    border-radius: 4px;
}

.wc-checkout-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.wc-form-group {
    margin-bottom: 16px;
}

.wc-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #222;
}

.wc-form-group abbr.required {
    color: red;
    text-decoration: none;
    border: none;
}

.wc-form-group input,
.wc-form-group select,
.wc-form-group textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    background: #fff;
}

.wc-form-group input:focus,
.wc-form-group select:focus,
.wc-form-group textarea:focus {
    border-color: #2e3c54;
    outline: none;
}

.wc-col2 {
    display: flex;
    gap: 20px;
}

.wc-col2 .wc-form-group {
    flex: 1;
}

.wc-additional-info {
    margin-top: 40px;
}

/* Order Review Table */
.woocommerce-checkout-review-order-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 14px;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    padding: 12px 0;
    border-bottom: 1px solid #ebebeb;
    text-align: left;
}

.woocommerce-checkout-review-order-table th {
    font-weight: 600;
    color: #2e3c54;
}

.woocommerce-checkout-review-order-table td.product-total,
.woocommerce-checkout-review-order-table th.product-total {
    text-align: right;
}

.woocommerce-checkout-review-order-table tfoot th,
.woocommerce-checkout-review-order-table tfoot td {
    padding: 15px 0;
}

.woocommerce-checkout-review-order-table .order-total th,
.woocommerce-checkout-review-order-table .order-total td {
    border-bottom: none;
    font-size: 16px;
}

.woocommerce-checkout-review-order-table .order-total td {
    color: #2e3c54;
}

/* Add a wrapper for horizontal scrolling on mobile */
.woocommerce-checkout-review-order-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.woocommerce-shipping-methods {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: right;
}

.woocommerce-shipping-methods li {
    margin-bottom: 5px;
}

/* WC Payment */
.woocommerce-checkout-payment {
    background: #ebe9eb;
    border-radius: 4px;
    padding: 20px;
    margin-top: 20px;
}

.wc_payment_methods {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    border-bottom: 1px solid #d3ced2;
}

.wc_payment_method {
    margin-bottom: 15px;
}

.wc_payment_method label {
    font-weight: 600;
    display: inline-block;
    cursor: pointer;
    font-size: 14px;
}

.payment_box {
    position: relative;
    background: #dfdcde;
    padding: 15px;
    margin-top: 10px;
    border-radius: 4px;
    font-size: 13px;
    color: #515151;
    line-height: 1.5;
}

.payment_box::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 20px;
    border: 6px solid transparent;
    border-bottom-color: #dfdcde;
}

.wc-terms-and-conditions {
    font-size: 13px;
    margin-bottom: 20px;
}

.button.alt {
    width: 100%;
    background: #2e3c54;
    color: white;
    border: none;
    padding: 15px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s;
}

.button.alt:hover {
    background: #202b3d;
}

@media (max-width: 768px) {
    .checkout-wc-grid {
        flex-direction: column;
    }

    .checkout-order,
    .checkout-billing {
        flex: 100%;
        width: 100%;
    }

    .wc-col2 {
        flex-direction: column;
        gap: 0;
    }

    .checkout-order {
        padding: 20px 15px;
        /* Reduce padding on mobile */
    }

    .woocommerce-checkout-review-order-table th,
    .woocommerce-checkout-review-order-table td {
        font-size: 13px;
        /* Smaller font on mobile */
        padding: 10px 0;
    }
}

/* ==================
   RESPONSIVE
   ================== */
@media (max-width: 1024px) {
    .produk-main {
        grid-template-columns: 1fr;
    }

    .produk-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cart-grid,
    .checkout-grid {
        grid-template-columns: 1fr;
    }

    .detail-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 28px 0 22px;
    }

    .page-hero h1 {
        font-size: 24px;
    }

    .cat-icon-list {
        justify-content: flex-start;
    }

    .cat-icon-item {
        padding: 12px 18px;
    }

    .produk-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .lokasi-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .detail-container {
        padding: 20px;
    }

    .checkout-grid {
        grid-template-columns: 1fr;
    }

    .co-form-row {
        grid-template-columns: 1fr;
    }

    .auth-section {
        grid-template-columns: 1fr;
    }

    .auth-right {
        display: none;
    }

    .auth-left {
        padding: 35px 20px;
    }

    .grafik-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .produk-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .produk-img-wrap {
        padding: 14px;
    }

    .produk-img-wrap img {
        max-height: 110px;
    }

    .produk-body {
        padding: 10px;
    }

    .produk-name {
        font-size: 12px;
    }

    .produk-harga {
        font-size: 13px;
    }

    .produk-qty-row {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-add-cart {
        justify-content: center;
    }

    .weight-options {
        gap: 6px;
    }

    .weight-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .detail-info .detail-title {
        font-size: 18px;
    }

    .price-display .price-amount {
        font-size: 22px;
    }

    .cart-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .cart-item-right {
        flex-direction: row;
        width: 100%;
        justify-content: space-between;
        align-items: center;
    }

    .auth-form .form-row-2 {
        grid-template-columns: 1fr;
    }

    .social-auth {
        grid-template-columns: 1fr;
    }
}

/* NEW CATEGORY TILES */
.cat-tile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

@media (min-width: 768px) {
    .cat-tile-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.cat-tile-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cat-tile {
    position: relative;
    background: #0f356b;
    color: white;
    padding: 20px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    overflow: hidden;
    text-transform: uppercase;
    transition: transform 0.2s;
}

.cat-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cat-tile.active {
    background: #0a254d;
}

.cat-tile::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 50px 50px 0;
    border-color: transparent #d1a73b transparent transparent;
}

.cat-tile-label {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
}

.cat-tile-label strong {
    background: #d1a73b;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
}

/* NEW PRODUCT TABLE */
.produk-table-wrapper {
    overflow-x: auto;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-top: 15px;
}

.produk-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.produk-table th {
    background: #2a4c8c;
    color: white;
    padding: 12px 15px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}

.produk-table td {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.produk-table tr:last-child td {
    border-bottom: none;
}

.table-product-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.table-product-info img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border: 1px solid #eee;
    padding: 5px;
    border-radius: 4px;
    background: #fafafa;
}

.table-product-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.table-product-title {
    font-size: 14px;
    font-weight: 600;
    color: #0f356b;
    cursor: pointer;
}

.table-product-title:hover {
    color: var(--primary-gold);
    text-decoration: underline;
}

.table-product-stock {
    font-size: 12px;
    color: #27ae60;
    font-weight: 600;
}

.table-price {
    font-weight: 700;
    font-size: 15px;
    color: #333;
}

.table-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* NEW REVIEWS STYLES */
.review-summary {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
    flex-wrap: wrap;
}

.rs-left {
    text-align: center;
    padding-right: 30px;
    border-right: 1px solid #eee;
}

@media(max-width: 600px) {
    .review-summary {
        flex-direction: column;
        gap: 20px;
    }

    .rs-left {
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid #eee;
        padding-bottom: 20px;
        width: 100%;
    }
}

.rs-score {
    font-size: 42px;
    font-weight: 700;
    color: #333;
    line-height: 1;
}

.rs-score span {
    font-size: 20px;
    color: #888;
    font-weight: 400;
}

.rs-stars {
    color: #fbc02d;
    font-size: 16px;
    margin: 8px 0;
}

.rs-count {
    font-size: 12px;
    color: #888;
}

.rs-right {
    flex: 1;
    min-width: 250px;
}

.rs-bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 12px;
    color: #666;
}

.rs-bar-row i {
    color: #fbc02d;
    font-size: 10px;
}

.rs-bar-row .progress {
    flex: 1;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.rs-bar-row .progress-fill {
    height: 100%;
    background: #fbc02d;
    border-radius: 4px;
}

.review-filters {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.rf-btn {
    padding: 6px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    background: white;
    font-family: inherit;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
}

.rf-btn:hover {
    border-color: #fbc02d;
}

.rf-btn.active {
    background: #fbc02d;
    borderColor: #fbc02d;
    color: white;
}

.rf-btn i {
    color: #f1c40f;
    margin-left: 4px;
}

.rf-btn.active i {
    color: white;
}

.review-item {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    gap: 15px;
}

.ri-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-blue);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
    text-transform: uppercase;
}

.ri-content {
    flex: 1;
}

.ri-header {
    margin-bottom: 10px;
}

.ri-name {
    font-weight: 700;
    font-size: 14px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.ri-stars {
    color: #fbc02d;
    font-size: 11px;
}

.ri-date {
    font-size: 11px;
    color: #999;
}

.ri-text {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 12px;
}

.ri-photos {
    display: flex;
    gap: 10px;
}

.ri-photos img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

/* RELATED PRODUCTS SECTION */
.related-products {
    padding: 60px 0;
    background: #fcfcfc;
}

.related-header {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 30px;
    position: relative;
    padding-left: 15px;
}

.related-header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: var(--primary-gold);
    border-radius: 2px;
}

.related-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 5px 25px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.related-grid::-webkit-scrollbar {
    height: 6px;
}

.related-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.related-grid::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.related-grid::-webkit-scrollbar-thumb:hover {
    background: var(--primary-gold);
}

.related-grid .produk-card-item {
    min-width: 240px;
    max-width: 240px;
    flex-shrink: 0;
}

.rp-card {
    min-width: 240px;
    max-width: 240px;
    flex-shrink: 0;
    background: white;
    border-radius: 12px;
    border: 1px solid #eee;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.rp-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border-color: var(--primary-gold);
}

.rp-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    background: #e74c3c;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(231, 76, 60, 0.3);
}

.rp-img-wrap {
    aspect-ratio: 1/1;
    background: #fcfcfc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
    border-bottom: 1px solid #f9f9f9;
}

.rp-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.rp-card:hover .rp-img-wrap img {
    transform: scale(1.08);
}

.rp-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.rp-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-gold);
    margin-bottom: 6px;
}

.rp-name {
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 10px;
    line-height: 1.4;
    height: 36px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.rp-rating-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 15px;
}

.rp-stars {
    display: flex;
    gap: 2px;
    color: #ffc107;
    font-size: 11px;
}

.rp-review-count {
    font-size: 11px;
    color: #888;
    font-weight: 500;
}

.rp-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.rp-btn-share {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #eee;
    background: white;
    color: #666;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.rp-btn-share:hover {
    background: #f0f4ff;
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.rp-btn-detail {
    flex-grow: 1;
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.rp-btn-detail:hover {
    background: #1d365a;
    box-shadow: 0 4px 12px rgba(42, 78, 131, 0.2);
}

@media (max-width: 480px) {
    .rp-card {
        min-width: 200px;
        max-width: 200px;
        flex-shrink: 0;
    }
    .related-grid .produk-card-item {
        min-width: 200px;
        max-width: 200px;
        flex-shrink: 0;
    }
    .related-header {
        font-size: 18px;
    }
}

/* =============================================
   RESPONSIVE — Mobile First Improvements
   ============================================= */

/* General container on mobile */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    /* Checkout grid: stack on mobile */
    .checkout-wc-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .checkout-section {
        padding: 20px 0 60px;
    }

    /* Checkout steps */
    .checkout-steps {
        font-size: 12px;
        gap: 6px;
        flex-wrap: wrap;
        padding: 10px 15px;
    }

    /* Shipping cards stack */
    .shipping-cards,
    .ship-card {
        min-width: auto;
    }

    /* WC form fields */
    .wc-form-row.wc-col2 {
        grid-template-columns: 1fr !important;
    }

    .wc-form-group input,
    .wc-form-group select,
    .wc-form-group textarea {
        font-size: 16px !important;
        /* prevent iOS zoom */
    }

    /* Produk page card grid */
    .produk-cards-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }

    .produk-main {
        flex-direction: column;
    }

    /* Category tabs scroll on small screens */
    .cat-tab-bar {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .cat-tab-list {
        flex-wrap: nowrap;
        display: inline-flex;
        width: max-content;
    }

    .cat-tab-item {
        flex-shrink: 0;
    }

    /* Detail page */
    .detail-grid {
        grid-template-columns: 1fr !important;
    }

    .detail-tabs-vertical {
        flex-direction: column;
    }

    /* Footer */
    .footer-container {
        flex-direction: column;
        gap: 20px;
    }

    .footer-col.align-right {
        text-align: left;
    }

    .accreditation-logos img {
        height: 24px;
    }
}

@media (max-width: 480px) {

    /* Even smaller phones */
    .produk-cards-grid {
        gap: 10px;
    }

    .produk-card-body {
        padding: 10px;
    }

    .produk-card-name {
        font-size: 12px;
    }

    .produk-card-price {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .produk-card-btn {
        font-size: 12px;
        padding: 7px 8px;
    }

    .cat-tab-item {
        padding: 10px 12px;
        font-size: 11px;
    }

    .checkout-steps .step {
        font-size: 11px;
    }

    /* Konfirmasi page */
    .conf-box {
        border-radius: 0;
    }

    .conf-body {
        padding: 20px;
    }

    .pay-tabs {
        flex-direction: column;
        gap: 8px;
    }

    .bank-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .copy-btn {
        align-self: flex-end;
    }
}