/* ======================================================
   ZDRIVE SHOP ENGINE — VISUAL PARITY (OLD SITE)
   Author: zdrive
   ====================================================== */

/* =========================
   LAYOUT
   ========================= */
.zdrive-shop-wrapper {
    width: 100%;
    max-width: 1300px;
    margin: 20px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 35px;
    align-items: flex-start;
}

@media (max-width: 900px) {
    .zdrive-shop-wrapper {
        grid-template-columns: 1fr;
    }
}

/* =========================
   SIDEBAR
   ========================= */
.zdrive-sidebar {
    background: #ffffff;
    padding: 20px 22px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border-radius: 0;
    position: sticky;
    top: 0;
    height: fit-content;
    max-height: 85vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #AC8510 #f0f0f0;
}

.zdrive-sidebar::-webkit-scrollbar {
    width: 6px;
}
.zdrive-sidebar::-webkit-scrollbar-thumb {
    background: #AC8510;
}
.zdrive-sidebar::-webkit-scrollbar-track {
    background: #f0f0f0;
}

.zdrive-sidebar h3 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 18px;
    text-transform: uppercase;
    font-family: 'Barlow', sans-serif;
}

/* =========================
   CATEGORY BOX
   ========================= */
.zdrive-cat {
    margin-bottom: 14px;
    background: #fafafa;
    padding: 12px 14px;
    border: 1px solid #eee;
    transition: border-color .25s ease;
}

.zdrive-cat:hover {
    border-color: #AC8510;
}

.zdrive-cat-parent {
    display: flex;
    justify-content: space-between;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Barlow', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

.zdrive-toggle {
    color: #AC8510;
    font-size: 16px;
    font-weight: bold;
}

/* =========================
   ACCORDION
   ========================= */
.zdrive-subcat-wrap {
    display: none;
    margin-top: 12px;
    padding-left: 10px;
}

.zdrive-cat.zdrive-open .zdrive-subcat-wrap {
    display: block;
}

.zdrive-filter-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
    font-size: 14px;
    font-family: 'Barlow', sans-serif;
}

.zdrive-filter-checkbox {
    width: 14px;
    height: 14px;
}

/* =========================
   SEARCH BAR
   ========================= */
.zdrive-search-bar {
    margin-bottom: 30px;
}

.zdrive-search-bar input {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    font-family: 'Barlow', sans-serif;
    border: 1px solid #ddd;
    background: #fff;
    outline: none;
    transition: border-color .25s ease, box-shadow .25s ease;
    -webkit-appearance: none;
}

.zdrive-search-bar input:focus {
    border-color: #AC8510;
    box-shadow: 0 0 0 2px rgba(172,133,16,.15);
}

.zdrive-search-bar input::placeholder {
    color: #999;
    font-weight: 500;
}

/* =========================
   PRODUCT GRID
   ========================= */
.zdrive-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

@media (max-width: 900px) {
    .zdrive-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================
   PRODUCT CARD
   ========================= */
.zdrive-product-card {
    background: #fff;
    border-top: 3px solid #AC8510;
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease;
}

.zdrive-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.zdrive-image-wrapper {
    background: #f8f8f8;
    position: relative;
    overflow: hidden;
}

.zdrive-image-wrapper img {
    width: 100%;
    display: block;
    transition: opacity .4s ease;
}

.hover-img {
    position: absolute;
    inset: 0;
    opacity: 0;
}

.zdrive-product-card:hover .main-img {
    opacity: 0;
}
.zdrive-product-card:hover .hover-img {
    opacity: 1;
}

/* =========================
   PRODUCT INFO
   ========================= */
.zdrive-product-info {
    padding: 12px 10px 16px;
    text-align: center;
    font-family: 'Barlow', sans-serif;
}

.zdrive-product-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #222;
    text-decoration: none;
    display: block;
}

.zdrive-product-price {
    color: #AC8510;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
}

/* =========================
   VIEW PRODUCT BUTTON
   ========================= */
.zdrive-view-product {
    background: #000;
    color: #fff;
    padding: 10px 14px;
    display: block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    transition: background .25s ease, color .25s ease;
}

.zdrive-view-product:hover {
    background: #AC8510;
    color: #fff;
}

/* =========================
   VIEW MORE BUTTON
   ========================= */
.zdrive-load-more-wrap {
    text-align: center;
    margin: 40px 0 10px;
}

.zdrive-load-more-btn {
    background: #000;
    color: #fff;
    padding: 14px 36px;
    border: none;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    cursor: pointer;
    transition: background .25s ease, opacity .25s ease;
    -webkit-tap-highlight-color: transparent;
}

.zdrive-load-more-btn:hover {
    background: #AC8510;
}

.zdrive-load-more-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

/* ======================================================
   DISABLE STICKY SIDEBAR ON MOBILE (FIX)
   ====================================================== */
@media (max-width: 900px) {
    .zdrive-sidebar {
        position: static;
        top: auto;
        max-height: none;
        overflow: visible;
    }
}