/* ===============================
   PART 9 FIXES
   Mobile 2 products + Search UI
================================ */

/* Shop banner */
.shop-page-top {
    padding-top: 24px;
}

.shop-banner-box {
    margin: 0 28px 24px;
    height: 260px;
    border-radius: 26px;
    overflow: hidden;
    border: 1px solid rgba(0,157,255,0.25);
    background: rgba(255,255,255,0.04);
    box-shadow: 0 0 35px rgba(0,157,255,0.18);
}

.shop-banner-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Search tools */
.shop-tools {
    padding: 0 28px 24px;
    display: grid;
    gap: 16px;
}

.shop-search {
    display: flex;
    gap: 10px;
    width: 100%;
}

.shop-search input {
    flex: 1;
    min-width: 0;
    border: 1px solid rgba(0,157,255,0.22);
    background: rgba(8, 18, 34, 0.85);
    color: white;
    padding: 14px 16px;
    border-radius: 14px;
    outline: none;
}

.shop-search input::placeholder {
    color: rgba(255,255,255,0.55);
}

.shop-search button {
    border: 0;
    background: linear-gradient(135deg, var(--orange), #ffb000);
    color: white;
    padding: 14px 18px;
    border-radius: 14px;
    font-weight: 900;
    cursor: pointer;
}

.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pill {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.10);
    color: #dff4ff;
    text-decoration: none;
    font-weight: 800;
    font-size: 14px;
}

.pill.active {
    border-color: rgba(255,122,0,0.55);
    color: #fff;
    background: rgba(255,122,0,0.14);
}

.search-result-box {
    padding: 13px 15px;
    border-radius: 14px;
    background: rgba(0,157,255,0.08);
    border: 1px solid rgba(0,157,255,0.20);
    color: #dff4ff;
}

.search-result-box a {
    color: #ffb000;
    font-weight: 900;
    margin-left: 10px;
}

/* Shop product grid */
.catalog-grid {
    padding: 0 28px 36px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.catalog-card {
    position: relative;
    background: linear-gradient(180deg, rgba(8,20,40,0.96), rgba(6,18,34,0.96));
    border: 1px solid rgba(64, 144, 255, 0.18);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.catalog-image {
    display: block;
    height: 210px;
    padding: 18px;
    background: radial-gradient(circle at center, rgba(0,157,255,0.20), transparent 60%);
}

.catalog-image img,
.catalog-image .media-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.catalog-info {
    padding: 16px;
}

.catalog-info .sku {
    color: #7fbfff;
    font-size: 12px;
    font-weight: 900;
}

.catalog-info h3 {
    margin: 6px 0 4px;
    font-size: 20px;
    line-height: 1.2;
}

.catalog-info h3 a {
    color: white;
    text-decoration: none;
}

.catalog-info h3 a:hover {
    color: var(--orange);
}

.catalog-info p {
    color: #a7b0c0;
    margin-bottom: 12px;
}

.price-lines {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}

.price-lines small {
    color: #8da1b8;
    display: block;
    font-size: 12px;
}

.price-lines strong {
    color: #ffb000;
    font-size: 18px;
}

.delivery-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 12px 0;
}

.delivery-tags span {
    font-size: 12px;
    color: #dff4ff;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 6px 8px;
    border-radius: 999px;
}

.catalog-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
}

.details-btn,
.quick-add-btn {
    border: 0;
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 12px;
    font-weight: 900;
    cursor: pointer;
    font-size: 13px;
}

.details-btn {
    color: white;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
}

.quick-add-btn {
    background: linear-gradient(135deg, var(--orange), #ffb000);
    color: white;
}

.variant-mini {
    margin-top: 10px;
    color: #a7b0c0;
    font-size: 12px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.variant-mini span {
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(0,157,255,0.12);
    color: #dff4ff;
    border: 1px solid rgba(0,157,255,0.22);
    font-size: 11px;
}

/* Home featured products grid */
.products-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 20px !important;
}

.product-card {
    border-radius: 24px;
    overflow: hidden;
}

.product-card .product-image {
    height: 210px;
    display: grid;
    place-items: center;
    padding: 18px;
}

.product-card .product-image img,
.product-card .product-image .media-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Empty */
.shop-empty {
    grid-column: 1 / -1;
}

/* Tablet */
@media (max-width: 1100px) {
    .catalog-grid,
    .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

/* Mobile: 2 products per row */
@media (max-width: 768px) {
    .site-header {
        position: sticky;
        top: 0;
        z-index: 100;
    }

    .shop-banner-box {
        margin: 0 14px 18px;
        height: 145px;
        border-radius: 18px;
    }

    .shop-tools {
        padding: 0 14px 18px;
        gap: 12px;
    }

    .shop-search {
        gap: 8px;
    }

    .shop-search input {
        padding: 11px 12px;
        border-radius: 12px;
        font-size: 13px;
    }

    .shop-search button {
        padding: 11px 13px;
        border-radius: 12px;
        font-size: 13px;
    }

    .category-pills {
        gap: 7px;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
    }

    .pill {
        white-space: nowrap;
        font-size: 12px;
        padding: 8px 10px;
    }

    .catalog-grid,
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
        padding-left: 14px;
        padding-right: 14px;
    }

    .catalog-card,
    .product-card {
        border-radius: 18px !important;
    }

    .catalog-image,
    .product-card .product-image {
        height: 120px !important;
        padding: 12px !important;
    }

    .catalog-info {
        padding: 12px;
    }

    .catalog-info h3,
    .product-card h3 {
        font-size: 15px !important;
        line-height: 1.25 !important;
    }

    .catalog-info p,
    .product-card p {
        font-size: 12px !important;
        line-height: 1.35 !important;
    }

    .price-lines strong,
    .product-price strong,
    .product-card strong {
        font-size: 15px !important;
    }

    .delivery-tags {
        display: none;
    }

    .catalog-actions {
        gap: 6px;
    }

    .details-btn,
    .quick-add-btn {
        padding: 8px 9px;
        border-radius: 10px;
        font-size: 11px;
    }

    .product-badge {
        font-size: 11px !important;
        padding: 7px 10px !important;
        border-radius: 10px !important;
    }

    .rating,
    .stars {
        font-size: 12px !important;
    }
}

/* Small mobile */
@media (max-width: 420px) {
    .catalog-grid,
    .products-grid {
        gap: 10px !important;
    }

    .catalog-image,
    .product-card .product-image {
        height: 105px !important;
    }

    .catalog-info h3,
    .product-card h3 {
        font-size: 14px !important;
    }

    .catalog-info p,
    .product-card p {
        font-size: 11px !important;
    }

    .details-btn,
    .quick-add-btn {
        font-size: 10px;
        padding: 7px 8px;
    }
}