/* ══════════════════════════════════════════
   RAJA CYLINDER — MARKETPLACE FIX CSS
   Product Grid · Card · Responsive
   Memuat setelah marketplace.css
══════════════════════════════════════════ */


/* ══════════════════════════════════════════
   PRODUCT SECTION WRAPPER
══════════════════════════════════════════ */
.product-section { margin-bottom: 48px; }


/* ══════════════════════════════════════════
   PRODUCT GRID — 5 kolom di desktop lebar
══════════════════════════════════════════ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}


/* ══════════════════════════════════════════
   PRODUCT CARD — compact & clickable
══════════════════════════════════════════ */
.prod-card {
    background: var(--white);
    border-radius: var(--r);
    border: 1.5px solid var(--border);
    overflow: hidden;
    transition: all var(--t);
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.prod-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sh-md);
    border-color: rgba(13, 15, 91, .12);
}


/* ══════════════════════════════════════════
   PRODUCT IMAGE — square, contain (no crop)
══════════════════════════════════════════ */
.prod-img-wrap {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #f8f9fc;
    overflow: hidden;
}

.prod-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    transition: transform .4s ease;
    display: block;
}

.prod-card:hover .prod-img-wrap img { transform: scale(1.06); }


/* ══════════════════════════════════════════
   BADGE
══════════════════════════════════════════ */
.prod-badge {
    position: absolute;
    top: 10px; left: 10px;
    font-size: 10px; font-weight: 800;
    padding: 3px 9px; border-radius: 20px;
    z-index: 1; letter-spacing: .04em;
}

.prod-badge-hot  { background: rgba(255,243,224,.95); color: #e65100; }
.prod-badge-new  { background: rgba(232,245,233,.95); color: #2e7d32; }
.prod-badge-sale { background: rgba(252,228,236,.95); color: #c62828; }


/* ══════════════════════════════════════════
   WISHLIST BUTTON
══════════════════════════════════════════ */
.prod-wish {
    position: absolute;
    top: 8px; right: 8px;
    width: 30px; height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,.95);
    border: 1px solid var(--border-lt);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; color: var(--muted);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
    transition: all var(--t);
    opacity: 0;
}

.prod-card:hover .prod-wish { opacity: 1; }
.prod-wish:hover { color: #e53935; transform: scale(1.12); border-color: #ffcdd2; }
.prod-wish.wished { opacity: 1; color: #e53935; border-color: #ffcdd2; }


/* ══════════════════════════════════════════
   PRODUCT INFO
══════════════════════════════════════════ */
.prod-info {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.prod-brand {
    display: inline-block;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 4px;
}

.prod-name {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}

.prod-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 8px;
}

.stars  { color: #f59e0b; font-size: 10px; }
.rcount { font-size: 10px; color: var(--muted); }


/* ══════════════════════════════════════════
   PRICE ROW
══════════════════════════════════════════ */
.prod-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-top: auto;
}

.prod-price     { font-size: 14px; font-weight: 800; color: var(--navy); }
.prod-price-ori { font-size: 10.5px; color: #b0b3c6; text-decoration: line-through; margin-top: 1px; }


/* ══════════════════════════════════════════
   ADD TO CART BUTTON
══════════════════════════════════════════ */
.prod-cart-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--navy);
    color: white;
    border: none;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all var(--t);
}

.prod-cart-btn:hover { background: var(--green); color: var(--navy); transform: scale(1.08); }
.prod-cart-btn.added { background: var(--green); color: var(--navy); }

/* Out of stock label */
.out-of-stock {
    font-size: 10.5px;
    color: #e53935;
    font-weight: 700;
    padding: 6px 0;
}


/* ══════════════════════════════════════════
   EMPTY STATE
══════════════════════════════════════════ */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--muted);
}

.empty-state i { font-size: 52px; display: block; margin-bottom: 18px; opacity: .3; }
.empty-state h2 { font-size: 20px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.empty-state p  { font-size: 13.5px; margin-bottom: 22px; }


/* ══════════════════════════════════════════
   PAGINATION
══════════════════════════════════════════ */
.pagination-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 40px;
}

.pagination-list {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    flex-wrap: wrap;
    justify-content: center;
}

.page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px; height: 40px;
    padding: 0 4px;
    border-radius: var(--r-sm);
    border: 1.5px solid var(--border);
    background: var(--white);
    font-size: 13.5px; font-weight: 700;
    color: var(--navy);
    text-decoration: none;
    transition: all var(--t);
    font-family: 'Glacial Indifference', sans-serif;
}

.page-btn:hover { border-color: var(--navy); background: var(--navy-xl); }
.page-active    { background: var(--navy); color: white; border-color: var(--navy); }
.pagination-info { font-size: 12px; color: var(--muted); }


/* ══════════════════════════════════════════
   BREADCRUMB
══════════════════════════════════════════ */
.breadcrumb-nav { background: var(--white); border-bottom: 1px solid var(--border-lt); padding: 9px 0; }

.breadcrumb-inner {
    max-width: 1260px; margin: 0 auto; padding: 0 28px;
    display: flex; align-items: center; justify-content: space-between;
}

.breadcrumb-list {
    display: flex; align-items: center; gap: 6px;
    list-style: none; font-size: 12.5px;
}

.breadcrumb-list a { color: var(--navy); text-decoration: none; transition: color var(--t); }
.breadcrumb-list a:hover { color: var(--green-dk); }
.bc-sep  { color: var(--muted); font-size: 10px; }
.bc-total { font-size: 12px; color: var(--muted); }


/* ══════════════════════════════════════════
   RESULT HEADER (halaman kategori / search)
══════════════════════════════════════════ */
.result-header-section { padding: 24px 0 0; }

.result-h1 {
    font-size: clamp(20px, 3vw, 26px);
    font-weight: 700; color: var(--navy);
    margin-bottom: 4px;
}

.result-h1 em { font-style: normal; color: var(--green-dk); }
.result-subtitle { color: var(--green-dk); }
.result-count { font-size: 13px; color: var(--muted); }
.cat-seo-desc { font-size: 13.5px; color: var(--text-md); margin: 10px 0 8px; max-width: 700px; line-height: 1.7; }

.back-link {
    font-size: 13px; color: var(--navy);
    text-decoration: none; display: inline-flex;
    align-items: center; gap: 6px;
    transition: gap var(--t);
}

.back-link:hover { gap: 10px; }

/* Sort select inline style */
.sort-select-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sort-label { font-size: 13px; color: var(--muted); }

.sort-select {
    border: 1.5px solid var(--border);
    border-radius: var(--r-sm);
    padding: 7px 12px;
    font-size: 13px; font-weight: 700;
    color: var(--navy);
    font-family: 'Glacial Indifference', sans-serif;
    background: var(--white);
    cursor: pointer; outline: none;
    transition: border-color var(--t);
}

.sort-select:hover { border-color: var(--navy); }


/* ══════════════════════════════════════════
   SKU / PART NUMBER
══════════════════════════════════════════ */
.prod-sku {
    display: block;
    font-size: 10.5px;
    color: var(--muted);
    margin-bottom: 4px;
    letter-spacing: .02em;
}


/* ══════════════════════════════════════════
   SEO CONTENT BLOCK
══════════════════════════════════════════ */
.seo-content-block {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 36px 40px;
    margin-top: 24px;
}

.seo-content-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.seo-content-inner h2 { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.seo-content-inner h3 { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.seo-content-inner p  { font-size: 13.5px; color: var(--text-md); line-height: 1.75; margin-bottom: 12px; }
.seo-content-inner strong { color: var(--navy); }

.seo-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.seo-list li a {
    font-size: 13px; color: var(--navy);
    text-decoration: none; font-weight: 600;
    transition: color var(--t);
}

.seo-list li a:hover { color: var(--green-dk); }


/* ══════════════════════════════════════════
   RESPONSIVE OVERRIDES — PRODUCT GRID
══════════════════════════════════════════ */
@media (max-width: 1400px) {
    .product-grid { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 1200px) {
    .product-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 900px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
}

@media (max-width: 600px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .prod-info    { padding: 8px 10px 10px; }
    .prod-name    { font-size: 12px; }
    .prod-price   { font-size: 13px; }
    .prod-cart-btn { width: 30px; height: 30px; font-size: 12px; }
    .seo-content-inner { grid-template-columns: 1fr; }
    .seo-list { grid-template-columns: 1fr; }
    .breadcrumb-inner { flex-direction: column; align-items: flex-start; gap: 4px; }
}