/* SECTION WRAPPER */
.zdrive-product-categories { 
    padding: 0 !important; 
    margin: 0 !important;
}

/* CONTAINER */
.container-full { 
    width: 100%; 
    max-width: 1400px;
    margin: auto;
    padding: 0 200px;
    box-sizing: border-box; 
}

@media (max-width: 1024px) {
    .container-full { padding: 0 60px; }
}
@media (max-width: 768px) {
    .container-full { padding: 0 20px; }
}

/* TITLE (USES GLOBAL TYPOGRAPHY) */
.section-title { 
    text-align: center; 
    color: #000;
    font-weight: 700;
    margin: 0 0 50px 0 !important;
}

@media (max-width:768px) {
    .section-title { margin-bottom: 30px !important; }
}

/* GRID */
.categories-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 35px; 
}

/* CARD BASE */
.category-card { 
    perspective: 1200px; 
    position: relative; 
    transform-style: preserve-3d;
}

/* INNER CARD WRAPPER (OPTIMIZED GPU RENDERING) */
.card-inner { 
    width: 100%; 
    height: 100%;
    transform-style: preserve-3d; 
    transition: transform 0.55s cubic-bezier(0.4,0.2,0.2,1) !important;
    will-change: transform;
}

/* FLIP ON HOVER (DESKTOP ONLY) */
@media (min-width: 769px) {
    .category-card:hover .card-inner { 
        transform: rotateY(180deg) !important; 
    }
}

/* FRONT & BACK FACES */
.card-front, 
.card-back { 
    width: 100%; 
    height: 100%; 
    position: relative;
    border-radius: 14px; 
    overflow: hidden; 
    backface-visibility: hidden; 
    -webkit-backface-visibility: hidden;
    transform-style: preserve-3d;
}

/* FRONT FACE */
.card-front { 
    background: #fff; 
    border: 1px solid #eee; 
    border-bottom: 5px solid #ac8510; 
    transition: all 0.4s ease; 
}

/* BACK FACE */
.card-back { 
    position: absolute; 
    top: 0; 
    left: 0;
    background-color: #ac8510; 
    color: #fff; 
    transform: rotateY(180deg); 
    padding: 25px; 
    text-align: center; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
}

/* FRONT CONTENT */
.front-content { 
    text-align: center;
    padding-bottom: 15px;
}

.image-wrap { 
    width: 100%; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    margin-bottom: 15px; 
}

.image-wrap img { 
    width: 100%; 
    height: auto; 
    object-fit: contain; 
    transition: transform 0.4s ease; 
}

.front-content h3 { 
    font-size: 20px; 
    color: #111; 
    margin: 20px 0 8px; 
    font-weight: 700; 
    text-transform: uppercase; 
}

.front-content p { 
    font-size: 14px; 
    color: #666; 
    line-height: 1.6; 
    padding: 0 10px 10px; 
}

/* BACK CONTENT */
.card-back h3 { 
    font-size: 22px; 
    margin-bottom: 15px; 
    font-weight: 700; 
}

.card-back ul { 
    list-style: none; 
    padding: 0; 
    margin-bottom: 20px; 
}

.card-back ul li { 
    margin-bottom: 6px; 
    font-size: 14px; 
}

/* SPECIAL CASE — 2 COLUMN GRID */
.category-card:first-child .card-back ul { 
    display: grid; 
    grid-template-columns: repeat(2,1fr); 
    gap: 6px 20px; 
    justify-items: center; 
}

/* EXPLORE BUTTON */
.read-more { 
    display: inline-block; 
    background-color: #fff; 
    color: #ac8510; 
    padding: 8px 18px; 
    border-radius: 6px; 
    text-decoration: none; 
    font-weight: 600; 
    font-size: 13px; 
    transition: all 0.3s ease; 
}

.read-more:hover { 
    background-color: #222; 
    color: #fff; 
}

/* MOBILE — NO FLIP, USE BUTTON */
.mobile-toggle { 
    display: none; 
    position: absolute; 
    top: 10px; 
    left: 10px; 
    z-index: 10; 
    background: #ac8510; 
    color: #fff; 
    padding: 8px 14px; 
    border: none; 
    border-radius: 6px; 
    font-size: 13px; 
    cursor: pointer; 
}

/* MOBILE LOGIC */
@media (max-width: 768px) {

    .card-inner { transform: none !important; }
    .category-card:hover .card-inner { transform: none !important; }

    .card-back { display: none !important; }

    .mobile-toggle { display: block; }
}




.zdrive-product-categories .front-content p {
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #666 !important;
    margin: 0 !important;
    padding: 0 10px 10px !important;
    font-weight: 400 !important;
}



.zdrive-product-categories .card-back ul li {
    font-size: 14px !important;
    color: #fff !important;
    line-height: 1.4 !important;
    margin: 0 0 6px !important;
}
