/* =============================================
   VINESTA CATEGORY GRID
   ============================================= */
.vn-cat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}

.vn-cat-item {
    position: relative;
    display: block;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    aspect-ratio: 3/4;
    background: #3B010B;
}

.vn-cat-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.vn-cat-item:hover img { transform: scale(1.04); }

.vn-cat-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(59,1,11,0.98) 0%,
        rgba(59,1,11,0.95) 15%,
        transparent 30%
    );
    border-radius: 14px;
}

.vn-cat-content {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 0 12px 16px;
    text-align: center;
    z-index: 2;
}

.vn-cat-name {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
    line-height: 1.2;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.vn-cat-btn {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.75);
    border-radius: 4px;
    padding: 4px 12px;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    text-decoration: none;
}
.vn-cat-item:hover .vn-cat-btn { background: #fff; color: #3B010B; }

/* Desktop */
@media (min-width: 900px) {
    .vn-cat-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
    .vn-cat-name { font-size: 18px; }
}

/* =============================================
   BEST SELLERS
   ============================================= */
.vn-bs-wrap {
    padding: 40px 0 0;
    box-sizing: border-box;
    width: 100%;
}
.vn-bs-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 20px;
}
.vn-bs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

.vn-bs-item {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    background: #fff;
    border: 1px solid #f0f0f0;
    transition: box-shadow 0.2s ease;
}
.vn-bs-item:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }

.vn-bs-img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.vn-bs-item:hover .vn-bs-img { transform: scale(1.03); }

.vn-bs-info { padding: 10px 10px 12px; }

.vn-bs-name {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 4px;
    line-height: 1.4;
    display: block;
    text-decoration: none;
}

.vn-bs-price {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px;
    display: block;
}
.vn-bs-price .woocommerce-Price-amount { color: #1a1a1a; }

.vn-bs-btns { display: flex; gap: 6px; }

.vn-bs-btn {
    flex: 1;
    text-align: center;
    padding: 9px 4px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    display: block;
    box-sizing: border-box;
    line-height: 1.4;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.vn-bs-cart { background: #2271b1; color: #fff !important; border: none; }
.vn-bs-cart:hover { background: #135e96; }
.vn-bs-buy { background: #1a1a1a; color: #fff !important; border: none; }
.vn-bs-buy:hover { background: #8a6d3b; }

.vn-bs-see-all {
    display: inline-block;
    border: 1px solid #1a1a1a;
    color: #1a1a1a;
    padding: 10px 28px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.vn-bs-see-all:hover { background: #1a1a1a; color: #fff; }

/* Desktop */
@media (min-width: 900px) {
    .vn-bs-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
    .vn-bs-name { font-size: 14px; }
    .vn-bs-btn { font-size: 12px; padding: 10px 4px; }
    .vn-bs-wrap { padding: 40px 0; }
}

/* Mobile */
@media (max-width: 899px) {
    .vn-cat-grid { padding: 0 !important; margin: 0 !important; gap: 6px !important; }
    .vn-cat-item { border-radius: 8px !important; }
    .vn-bs-wrap { padding: 32px 0 0 !important; margin: 0 !important; }
    .vn-bs-grid { padding: 0 !important; margin: 0 !important; gap: 6px !important; }
    .vn-bs-item { border-radius: 8px !important; }
    .vn-bs-info { padding: 8px !important; }
    .vn-bs-title { font-size: 22px !important; }
    .vn-bs-name { font-size: 12px !important; }
    .vn-bs-price { font-size: 13px !important; margin-bottom: 8px !important; }
    .vn-bs-btn { font-size: 10px !important; padding: 7px 2px !important; }
    .elementor-section, .elementor-container, .e-con, .e-con-inner {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* =============================================
   BUY NOW — Shop/Archive
   ============================================= */
.vn-btn-wrap {
    display: flex !important;
    gap: 6px !important;
    margin-top: 8px !important;
    width: 100% !important;
}
.vn-btn-wrap a.button {
    flex: 1 !important;
    margin: 0 !important;
    float: none !important;
    text-align: center !important;
    padding: 12px 4px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    display: block !important;
    box-sizing: border-box !important;
    line-height: 1.4 !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    text-decoration: none !important;
}
.vn-btn-wrap .vn-buy-now-loop {
    background: #1a1a1a !important;
    color: #fff !important;
    border: none !important;
}
.vn-btn-wrap .vn-buy-now-loop:hover { background: #8a6d3b !important; color: #fff !important; }

/* BUY NOW — Single Product */
.single-product .cart {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
}
.vn-buy-now-single {
    background: #2271b1 !important;
    color: #fff !important;
    text-decoration: none !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 13px 24px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    display: inline-block !important;
    cursor: pointer !important;
    line-height: 1.4 !important;
}
.vn-buy-now-single:hover { background: #135e96 !important; color: #fff !important; }

@media (max-width: 600px) {
    .vn-btn-wrap a.button { font-size: 11px !important; padding: 10px 2px !important; }
}