/* Products Page Specific Styles */

/* ─── Enquiry Basket ───────────────────────────────────────────── */
.basket-fab {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #00c853, #00ff6b);
    color: #000;
    border: none;
    border-radius: 30px;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 200, 83, 0.4);
    transition: transform 0.2s;
}

.basket-fab:hover { transform: scale(1.05); }

.basket-fab.has-items { animation: basketPop 0.3s ease; }

@keyframes basketPop {
    50% { transform: scale(1.15); }
}

.basket-count {
    background: #0d0d0d;
    color: #00ff6b;
    font-size: 14px;
    font-weight: 800;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.basket-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
    z-index: 95;
}

.basket-overlay.show { opacity: 1; visibility: visible; }

.basket-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    max-width: 90vw;
    height: 100%;
    background: #141414;
    border-left: 1px solid rgba(0, 200, 83, 0.3);
    z-index: 100;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.basket-drawer.open { transform: translateX(0); }

.basket-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px;
    border-bottom: 1px solid rgba(0, 200, 83, 0.2);
}

.basket-head h3 {
    color: #00ff6b;
    font-size: 20px;
}

.basket-close {
    background: none;
    border: none;
    color: #c0c0e0;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s;
}

.basket-close:hover { color: #00ff6b; }

.basket-items {
    flex: 1;
    overflow-y: auto;
    padding: 15px 22px;
}

.basket-empty {
    color: #7a7a92;
    text-align: center;
    margin-top: 40px;
    font-size: 15px;
    line-height: 1.6;
}

.basket-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.basket-item-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.basket-item-name {
    color: #e8e8ee;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.basket-item-sku {
    color: #7a7a92;
    font-size: 12px;
}

.basket-item-price {
    color: #00ff6b;
    font-size: 14px;
    font-weight: 700;
}

.basket-item-remove {
    background: rgba(255, 60, 60, 0.12);
    border: 1px solid rgba(255, 60, 60, 0.3);
    color: #ff5c5c;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    flex-shrink: 0;
    transition: all 0.2s;
}

.basket-item-remove:hover { background: rgba(255, 60, 60, 0.25); }

.basket-foot {
    padding: 20px 22px;
    border-top: 1px solid rgba(0, 200, 83, 0.2);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.basket-clear {
    background: none;
    border: none;
    color: #8080a0;
    cursor: pointer;
    font-size: 13px;
    text-decoration: underline;
    align-self: flex-start;
}

.basket-clear:hover { color: #ff5c5c; }

.basket-send {
    text-align: center;
    width: 100%;
    padding: 14px;
    font-size: 16px;
}

.basket-send.disabled {
    opacity: 0.4;
    pointer-events: none;
}

.product-btn.added {
    background: rgba(0, 200, 83, 0.15);
    color: #00ff6b;
    border: 1px solid rgba(0, 200, 83, 0.4);
}

.products-hero {
    background: linear-gradient(135deg, var(--dark-bg) 0%, rgba(26, 31, 58, 0.8) 100%);
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.products-hero::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: radial-gradient(circle, rgba(0, 200, 83, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: slide 20s linear infinite;
    z-index: 0;
}

.products-hero .hero-accent {
    position: absolute;
    top: -30%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 255, 107, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    animation: float 8s ease-in-out infinite;
}

.products-hero .hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
    text-align: center;
}

.products-hero h1 {
    font-size: 56px;
    line-height: 1.2;
    background: linear-gradient(135deg, #00c853 0%, #00ff6b 50%, #1de9b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    font-weight: 900;
}

.products-hero p {
    font-size: 20px;
    color: #c0c0e0;
    max-width: 600px;
    margin: 0 auto;
}

/* ─── Shop Toolbar ─────────────────────────────────────────────── */
.products-filter {
    background: rgba(18, 18, 18, 0.95);
    padding: 18px 20px;
    border-bottom: 1px solid rgba(0, 200, 83, 0.15);
    position: sticky;
    top: 80px;
    z-index: 50;
    backdrop-filter: blur(10px);
}

.shop-toolbar {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-search {
    flex: 1;
    min-width: 240px;
}

.filter-search input {
    width: 100%;
    padding: 12px 18px;
    background: rgba(13, 13, 13, 0.8);
    border: 1px solid rgba(0, 200, 83, 0.3);
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 15px;
    transition: all 0.3s;
    outline: none;
}

.filter-search input::placeholder { color: #6a6a8a; }

.filter-search input:focus {
    border-color: #00c853;
    box-shadow: 0 0 12px rgba(0, 200, 83, 0.25);
}

.toolbar-selects {
    display: flex;
    gap: 12px;
}

.select-wrap {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 11px;
    color: #8080a0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.select-wrap select {
    padding: 10px 14px;
    background: rgba(13, 13, 13, 0.9);
    border: 1px solid rgba(0, 200, 83, 0.3);
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 14px;
    cursor: pointer;
    outline: none;
    min-width: 150px;
}

.select-wrap select:focus { border-color: #00c853; }

/* ─── Shop Layout (sidebar + grid) ─────────────────────────────── */
.products-section {
    padding: 40px 20px 80px;
    background: var(--dark-bg);
    min-height: 600px;
}

.shop-layout {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 35px;
    align-items: start;
}

.shop-sidebar {
    position: sticky;
    top: 170px;
    background: rgba(22, 22, 22, 0.6);
    border: 1px solid rgba(0, 200, 83, 0.15);
    border-radius: 12px;
    padding: 20px;
}

.shop-sidebar h3 {
    color: #00ff6b;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 200, 83, 0.15);
}

.group-list {
    list-style: none;
    max-height: 70vh;
    overflow-y: auto;
}

.group-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 12px;
    border-radius: 7px;
    cursor: pointer;
    color: #b0b0c8;
    font-size: 14px;
    transition: all 0.2s;
    margin-bottom: 2px;
}

.group-item:hover {
    background: rgba(0, 200, 83, 0.08);
    color: #fff;
}

.group-item.active {
    background: linear-gradient(135deg, rgba(0, 200, 83, 0.2), rgba(0, 255, 107, 0.1));
    color: #00ff6b;
    font-weight: 600;
}

.group-count {
    font-size: 12px;
    color: #6a6a8a;
    background: rgba(0, 0, 0, 0.3);
    padding: 1px 8px;
    border-radius: 10px;
}

.group-item.active .group-count { color: #00ff6b; }

.shop-main-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    flex-wrap: wrap;
    gap: 10px;
}

.results-count {
    color: #8080b0;
    font-size: 14px;
}

.active-filter .chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 200, 83, 0.12);
    border: 1px solid rgba(0, 200, 83, 0.3);
    color: #00ff6b;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
}

.active-filter .chip button {
    background: none;
    border: none;
    color: #00ff6b;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 22px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.page-btn {
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    background: rgba(26, 26, 26, 0.8);
    color: #c0c0e0;
    border: 1px solid rgba(0, 200, 83, 0.2);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
}

.page-btn:hover:not(:disabled) {
    border-color: #00c853;
    background: rgba(0, 200, 83, 0.1);
    color: #00ff6b;
}

.page-btn.active {
    background: linear-gradient(135deg, #00c853, #00ff6b);
    color: #000;
    border-color: #00c853;
    box-shadow: 0 0 15px rgba(0, 200, 83, 0.4);
}

.page-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.page-ellipsis {
    color: #6a6a8a;
    padding: 0 4px;
}

/* ─── Product Card ─────────────────────────────────────────────── */
.product-card {
    background: rgba(24, 24, 24, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    border-color: rgba(0, 200, 83, 0.6);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 200, 83, 0.3);
    transform: translateY(-4px);
}

.product-image {
    width: 100%;
    height: 180px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 14px;
}

.product-image.no-img,
.product-card.has-icon .product-image {
    background: linear-gradient(135deg, #1a1a1a, #222);
}

.product-content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-group {
    font-size: 11px;
    font-weight: 600;
    color: #00c853;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-name {
    font-size: 14px;
    font-weight: 600;
    color: #e8e8ee;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 39px;
}

.product-foot {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.product-price {
    font-size: 17px;
    font-weight: 800;
    color: #ffffff;
    white-space: nowrap;
}

.product-price .ex-vat {
    display: block;
    font-size: 10px;
    font-weight: 500;
    color: #7a7a92;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-poa {
    font-size: 14px;
    font-weight: 600;
    color: #00ff6b;
}

.product-btn {
    padding: 9px 16px;
    background: linear-gradient(135deg, #00c853, #00ff6b);
    color: #000;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
    transition: all 0.25s;
}

.product-btn:hover {
    box-shadow: 0 0 15px rgba(0, 200, 83, 0.5);
}

/* ─── Responsive ───────────────────────────────────────────────── */
@media (max-width: 900px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }
    .shop-sidebar {
        display: none;   /* dropdown in toolbar handles groups on mobile */
    }
}

@media (max-width: 768px) {
    .products-hero h1 { font-size: 36px; }
    .products-hero p { font-size: 16px; }
    .shop-toolbar { flex-direction: column; align-items: stretch; }
    .toolbar-selects { justify-content: space-between; }
    .select-wrap select { min-width: 0; width: 100%; }
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 14px;
    }
}

@media (max-width: 480px) {
    .products-hero { padding: 60px 20px; min-height: 340px; }
    .products-hero h1 { font-size: 28px; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .product-content { padding: 12px; }
    .product-foot { flex-direction: column; align-items: stretch; }
}