/* RESET */
*{margin:0;padding:0;box-sizing:border-box}

body{
    font-family:Arial, sans-serif;
    background:#f5f7fb;
    color:#111;
}

/* CONTAINER */
.container{
    max-width:1200px;
    margin:auto;
    padding:20px;
}

/* SECTION */
.section{
    margin-top:40px;
}

.section-title{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:20px;
}

.section-title h2{
    font-size:26px;
}

/* GRID 4 COL */
.grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;
}

/* CARD */
.card{
    background:#fff;
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 10px 30px rgba(0,0,0,0.05);
    transition:.2s;
}

.card:hover{
    transform:translateY(-5px);
}

/* IMAGE FIX */
.card-media{
    height:260px;
    background:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:20px;
}

.card-media img{
    width:100%;
    height:100%;
    object-fit:contain; /* 🔥 ВАЖНО */
}

/* BODY */
.card-body{
    padding:15px;
}

.card-body h3{
    font-size:16px;
    margin-bottom:8px;
}

/* TAGS */
.meta{
    display:flex;
    gap:8px;
    margin-bottom:10px;
}

.pill{
    background:#eef2f7;
    padding:5px 10px;
    border-radius:20px;
    font-size:12px;
}

.pill.orange{
    background:#fff3e0;
    color:#ff7a00;
}

/* PRICE */
.price{
    font-size:22px;
    font-weight:bold;
    margin-bottom:10px;
}

/* BUTTON */
.btn{
    display:inline-block;
    padding:10px 15px;
    background:#ff7a00;
    color:#fff;
    border-radius:10px;
    text-decoration:none;
    font-weight:bold;
}

.btn:hover{
    background:#e56f00;
}

/* RESPONSIVE */
@media(max-width:1000px){
    .grid{grid-template-columns:repeat(2,1fr);}
}

@media(max-width:600px){
    .grid{grid-template-columns:1fr;}
}

/* ================================
   JANTI.BG NEXT LEVEL PRODUCT CARDS
   FORCE OVERRIDE
================================ */

.section .grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 18px !important;
}

.section .card {
    background: #fff !important;
    border: 1px solid #dbe3ef !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(15,23,42,.08) !important;
    transition: .22s ease !important;
    position: relative !important;
}

.section .card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 28px rgba(15,23,42,.14) !important;
}

.section .card::before {
    content: "TOP";
    position: absolute;
    top: 165px;
    left: 0;
    background: linear-gradient(90deg, #29c7c7, #ffb347);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    padding: 5px 11px;
    z-index: 5;
}

.section .card::after {
    content: "♡";
    position: absolute;
    top: 12px;
    right: 14px;
    color: #6b7280;
    font-size: 32px;
    line-height: 1;
    z-index: 5;
}

.section .card-media {
    height: 210px !important;
    padding: 14px !important;
    background: #fff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.section .card-media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    transition: .25s ease !important;
}

.section .card:hover .card-media img {
    transform: scale(1.06) !important;
}

.section .card-body {
    padding: 14px 18px 18px !important;
}

.section .card-body h3 {
    font-size: 17px !important;
    line-height: 1.2 !important;
    color: #0f172a !important;
    margin-bottom: 5px !important;
    font-weight: 900 !important;
}

.section .card-body p {
    font-size: 13px !important;
    color: #6b7280 !important;
    margin-bottom: 12px !important;
    min-height: 34px !important;
}

.section .meta {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    margin: 10px 0 12px !important;
}

.section .pill {
    background: #eef4ff !important;
    color: #0757c8 !important;
    padding: 5px 9px !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    font-weight: 900 !important;
}

.section .pill.orange {
    background: #fff3e6 !important;
    color: #f97316 !important;
}

.section .price {
    color: #d62800 !important;
    font-size: 25px !important;
    font-weight: 950 !important;
    letter-spacing: -0.04em !important;
    margin: 8px 0 12px !important;
}

.section .price small {
    color: #64748b !important;
    font-size: 12px !important;
    font-weight: 800 !important;
}

.section .card .btn {
    width: 100% !important;
    text-align: center !important;
    border-radius: 999px !important;
    background: #ff8a00 !important;
    color: #fff !important;
    padding: 12px 14px !important;
    font-weight: 900 !important;
    box-shadow: 0 8px 18px rgba(249,115,22,.25) !important;
}

.section .card .btn:hover {
    background: #f97316 !important;
}

@media (max-width: 1200px) {
    .section .grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 800px) {
    .section .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 520px) {
    .section .grid {
        grid-template-columns: 1fr !important;
    }
}