/* ========================================
   EQUIPMENT PAGE LAYOUT
   ======================================== */
.equipment-container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    gap: 2rem;
    overflow-x: hidden; /* Prevent horizontal overflow */
}

/* ========================================
   FILTER SIDEBAR
   ======================================== */
.filter-sidebar {
    width: 340px;
    flex-shrink: 0;
}

/* Hide sidebar on mobile by default */
@media (max-width: 768px) {
    .filter-sidebar:not(.active) {
        left: -100% !important;
    }
}

.filter-section {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: var(--shadow-subtle);
    position: sticky;
    top: 100px;
}

.filter-section h3 {
    color: var(--coral);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    border-bottom: 2px solid var(--coral);
    padding-bottom: 0.5rem;
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-group h4 {
    color: var(--navy-blue);
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.filter-list {
    list-style: none;
    padding: 0;
}

.filter-list li {
    margin-bottom: 0.5rem;
}

.filter-list a {
    display: block;
    padding: 0.5rem 0.8rem;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.filter-list a:hover {
    background: rgba(232, 166, 135, 0.1);
    color: var(--coral);
}

.filter-list a.active {
    background: var(--coral);
    color: var(--white);
}

/* Active Filters */
.active-filters {
    background: var(--light-gray);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.active-filters h4 {
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--coral);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    margin: 0.2rem;
}

.filter-tag .remove-filter {
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
}

.clear-filters {
    display: block;
    margin-top: 0.8rem;
    color: var(--coral);
    font-size: 0.9rem;
    text-decoration: none;
}

.clear-filters:hover {
    text-decoration: underline;
}

/* Price Filter */
.price-filter-form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-inputs input {
    width: 80px;
    padding: 0.5rem;
    border: 2px solid var(--gray);
    border-radius: 5px;
    font-size: 0.9rem;
}

.price-inputs input:focus {
    outline: none;
    border-color: var(--coral);
}

.apply-price-btn {
    background: var(--navy-blue);
    color: var(--white);
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.apply-price-btn:hover {
    background: var(--coral);
}

/* ========================================
   MOBILE FILTER ELEMENTS
   ======================================== */
.mobile-filter-toggle {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--coral);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(232, 166, 135, 0.4);
    transition: all 0.3s ease;
    align-items: center;
    gap: 8px;
}

.mobile-filter-toggle:hover {
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 6px 25px rgba(232, 166, 135, 0.5);
}

.mobile-filter-toggle .filter-icon {
    font-size: 1.1rem;
}

.mobile-filter-toggle .filter-badge {
    background: var(--white);
    color: var(--coral);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: bold;
}

.filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 37, 64, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.filter-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.filter-header-mobile {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray);
    margin-bottom: 1rem;
}

.filter-header-mobile h3 {
    margin: 0;
    border: none;
    padding: 0;
}

.filter-close-mobile {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text-dark);
    cursor: pointer;
    padding: 5px;
    line-height: 1;
}

.mobile-apply-filters {
    display: none;
    width: 100%;
    padding: 1rem;
    background: var(--coral);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1.5rem;
    transition: background 0.3s ease;
}

.mobile-apply-filters:hover {
    background: var(--navy-blue);
}

/* ========================================
   EQUIPMENT MAIN CONTENT
   ======================================== */
.equipment-main {
    flex: 1;
    min-width: 0;
    overflow-x: hidden; /* Prevent horizontal overflow */
}

/* TILES OPTIMIZED FOR VERTICAL/PORTRAIT IMAGES */
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.equipment-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-subtle);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.equipment-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* TALLER IMAGE AREA FOR PORTRAIT PHOTOS - DESKTOP */
.equipment-card-image {
    height: 800px;
    overflow: hidden;
    background: var(--navy-blue, #0b253f);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.equipment-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.equipment-card:hover .equipment-card-image img {
    transform: scale(1.1);
}

.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--navy-blue), var(--light-navy));
    color: var(--coral);
    font-size: 5rem;
    font-weight: bold;
}

.equipment-card-content {
    padding: 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.equipment-card-content h3 {
    color: var(--navy-blue);
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.equipment-category {
    color: var(--light-coral);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.equipment-colour {
    color: var(--text-dark);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.equipment-colour span {
    font-weight: 600;
}

.equipment-description {
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.equipment-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--gray);
    margin-top: auto;
}

.equipment-quantity {
    color: var(--text-dark);
    font-size: 1rem;
}

.equipment-price {
    color: var(--coral);
    font-weight: bold;
    font-size: 1.3rem;
}

/* ========================================
   BASKET BUTTON
   ======================================== */
.basket-button {
    position: fixed;
    top: 120px;
    right: 2rem;
    background: var(--coral);
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 999;
    transition: all 0.3s ease;
}

.basket-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

#basket-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--navy-blue);
    color: var(--white);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

/* ========================================
   BASKET SIDEBAR
   ======================================== */
.basket-sidebar.active {
    right: 0;
}

.basket-header {
    background: var(--navy-blue);
    color: var(--white);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.basket-header h2 {
    margin: 0;
    color: var(--coral);
}

.basket-close {
    background: transparent;
    color: var(--white);
    border: none;
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.basket-close:hover {
    transform: rotate(90deg);
}

.basket-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.empty-basket {
    text-align: center;
    color: var(--text-dark);
    padding: 2rem;
    opacity: 0.7;
}

.basket-item {
    background: var(--light-gray);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.basket-item-info {
    flex: 1;
}

.basket-item-info h4 {
    color: var(--navy-blue);
    margin-bottom: 0.3rem;
}

.basket-item-info p {
    color: var(--text-dark);
    font-size: 0.9rem;
}

.basket-item-remove {
    background: none;
    border: none;
    color: var(--coral);
    cursor: pointer;
    font-size: 1.2rem;
}

.basket-footer {
    padding: 1.5rem;
    border-top: 2px solid var(--gray);
    background: var(--light-gray);
}

.basket-total {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    text-align: center;
}

.basket-total span {
    color: var(--coral);
    font-weight: bold;
}

.checkout-btn {
    background: var(--coral);
    color: var(--white);
    border: none;
    padding: 1rem;
    width: 100%;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkout-btn:hover {
    background: var(--navy-blue);
}

/* ========================================
   PRODUCT POPUP MODAL
   ======================================== */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.popup-overlay.active {
    display: flex;
}

.popup-content {
    background: var(--white);
    border-radius: 20px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    animation: popupFadeIn 0.3s ease;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--coral);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.popup-close:hover {
    background: var(--navy-blue);
    transform: rotate(90deg);
}

.popup-body {
    display: flex;
}

.popup-image {
    width: 50%;
    max-height: 500px;
    overflow: hidden;
}

.popup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popup-details {
    width: 50%;
    padding: 2rem;
    overflow-y: auto;
    max-height: 500px;
}

.popup-details h2 {
    color: var(--navy-blue);
    margin-bottom: 0.5rem;
}

.popup-category {
    color: var(--coral);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.popup-colour {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.popup-description {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.popup-info {
    background: var(--light-gray);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.popup-info p {
    margin: 0.5rem 0;
}

.popup-price {
    font-size: 1.2rem;
    color: var(--coral);
}

.popup-add-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-controls button {
    width: 40px;
    height: 40px;
    border: 2px solid var(--gray);
    background: var(--white);
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quantity-controls button:hover {
    border-color: var(--coral);
    color: var(--coral);
}

.quantity-controls input {
    width: 60px;
    text-align: center;
    padding: 0.5rem;
    border: 2px solid var(--gray);
    border-radius: 8px;
    font-size: 1rem;
}

.add-to-basket-btn {
    background: var(--coral);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.add-to-basket-btn:hover {
    background: var(--navy-blue);
}

/* ========================================
   NO PRODUCTS MESSAGE
   ======================================== */
.no-products {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: var(--shadow-subtle);
}

.no-products-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.no-products h2 {
    color: var(--coral);
    margin-bottom: 1rem;
}

.no-products p {
    color: var(--text-dark);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.back-btn {
    display: inline-block;
    background: var(--coral);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.back-btn:hover {
    background: var(--navy-blue);
}

/* ========================================
   CHECKOUT MODAL
   ======================================== */
.checkout-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
}

.checkout-modal-content {
    background: var(--white, #ffffff);
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 2rem;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.checkout-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--coral, #e8a687);
    color: var(--white, #ffffff);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkout-modal-close:hover {
    background: var(--navy-blue, #0a2540);
    transform: rotate(90deg);
}

.checkout-modal-content h2 {
    color: var(--navy-blue, #0a2540);
    margin-bottom: 1.5rem;
    padding-right: 3rem;
}

/* Delivery Promo Notice */
.delivery-promo-notice {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    border: 2px solid #ffb74d;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.delivery-promo-notice.promo-active {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-color: #66bb6a;
}

.delivery-promo-notice .promo-icon {
    font-size: 1.5rem;
}

/* Delivery Tabs */
.delivery-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.delivery-tab {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 2px solid var(--gray, #e0e0e0);
    background: var(--white, #ffffff);
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    color: var(--text-dark, #333);
}

.delivery-tab:hover {
    border-color: var(--coral, #e8a687);
}

.delivery-tab.active {
    background: var(--coral, #e8a687);
    border-color: var(--coral, #e8a687);
    color: var(--white, #ffffff);
}

/* Form Groups */
.checkout-modal .form-group {
    margin-bottom: 1.25rem;
}

.checkout-modal .form-group label {
    display: block;
    color: var(--navy-blue, #0a2540);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.checkout-modal .form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray, #e0e0e0);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.checkout-modal .form-group input:focus {
    outline: none;
    border-color: var(--coral, #e8a687);
}

/* Calculate Button */
.calculate-btn {
    background: var(--navy-blue, #0a2540);
    color: var(--white, #ffffff);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
    white-space: nowrap;
}

.calculate-btn:hover {
    background: var(--coral, #e8a687);
}

/* Checkout Summary */
.checkout-summary {
    background: var(--light-gray, #f5f5f5);
    border-radius: 10px;
    padding: 1.25rem;
    margin: 1.5rem 0;
}

.checkout-summary h3 {
    color: var(--navy-blue, #0a2540);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.checkout-items-list {
    margin-bottom: 1rem;
    max-height: 150px;
    overflow-y: auto;
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray, #e0e0e0);
    font-size: 0.95rem;
}

.checkout-item:last-child {
    border-bottom: none;
}

.checkout-total-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 1rem;
}

.checkout-total-amount {
    color: var(--coral, #e8a687);
    font-size: 1.2rem;
    font-weight: bold;
}

/* Submit and Cancel Buttons */
.checkout-submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--coral, #e8a687);
    color: var(--white, #ffffff);
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-bottom: 0.75rem;
}

.checkout-submit-btn:hover {
    background: var(--navy-blue, #0a2540);
}

.checkout-submit-btn:disabled {
    background: var(--gray, #cccccc);
    cursor: not-allowed;
}

.checkout-cancel-btn {
    width: 100%;
    padding: 0.8rem;
    background: transparent;
    color: var(--text-dark, #333);
    border: 2px solid var(--gray, #e0e0e0);
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkout-cancel-btn:hover {
    border-color: var(--coral, #e8a687);
    color: var(--coral, #e8a687);
}

/* ========================================
   BASKET SIDEBAR OVERRIDE
   ======================================== */
#basket-sidebar {
    position: fixed !important;
    top: 0 !important;
    right: -400px !important;
    width: 380px !important;
    max-width: 380px !important;
    height: 100vh !important;
    background: #ffffff !important;
    z-index: 2000 !important;
    display: flex !important;
    flex-direction: column !important;
}

#basket-sidebar.active {
    right: 0 !important;
}

/* ========================================
   GLOBAL OVERFLOW FIX
   ======================================== */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* ========================================
   TABLET RESPONSIVE (768px and below)
   ======================================== */
@media (max-width: 768px) {
    /* Prevent horizontal scroll */
    html, body {
        overflow-x: hidden;
        width: 100%;
    }

    /* Show mobile filter toggle */
    .mobile-filter-toggle {
        display: flex !important;
        position: fixed !important;
        bottom: 100px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        z-index: 100 !important;
    }

    .equipment-container {
        flex-direction: column;
        padding: 0.5rem;
        padding-bottom: 160px !important;
        max-width: 100vw;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    /* Hide filter sidebar by default on mobile */
    .filter-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 300px;
        max-width: 85vw;
        height: 100vh;
        height: 100dvh;
        z-index: 999;
        background: var(--white, #fff);
        overflow-y: auto;
        transition: left 0.3s ease;
        padding: 0;
        box-shadow: 5px 0 30px rgba(0, 0, 0, 0.2);
        display: block !important;
    }

    .filter-sidebar.active {
        left: 0;
    }

    .filter-section {
        border-radius: 0;
        position: relative;
        top: 0;
        padding: 1.5rem;
        min-height: 100%;
    }

    .filter-header-mobile {
        display: flex;
    }

    .filter-section > h3:not(.filter-header-mobile h3) {
        display: none;
    }

    .mobile-apply-filters {
        display: block;
    }

    /* Equipment Grid - Full width single column with TikTok-style scroll */
    .equipment-main {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        overflow-x: hidden;
    }

    .equipment-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        max-width: 100%;
    }

    /* ========================================
       TIKTOK-STYLE CARDS - SAMSUNG S24 OPTIMIZED
       Samsung S24: 360px width x 800px height
       Cards at 90% viewport height for comfortable scrolling
       ======================================== */
    .equipment-card {
        max-width: 100%;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        /* Card height = 90% of viewport for comfortable scrolling */
        height: 90dvh;
        min-height: 620px; /* Fallback for Samsung S24 */
        max-height: 720px; /* Cap for taller devices */
        border-radius: 16px;
        margin-bottom: 0;
    }

    /* Image takes maximum space - optimized for portrait photos */
    .equipment-card-image {
        flex: 1; /* Take all available space */
        min-height: 0; /* Allow flex to shrink */
        width: 100%;
        background: var(--navy-blue, #0b253f);
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .equipment-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Fill the space beautifully */
        object-position: center top; /* Prioritize top of portrait images */
        transition: transform 0.5s ease;
    }

    .equipment-card:hover .equipment-card-image img {
        transform: scale(1.02);
    }

    .placeholder-image {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, var(--navy-blue), var(--light-navy));
        color: var(--coral);
        font-size: 4rem;
        font-weight: bold;
    }

    /* FIXED: Expanded content area with fully visible product name */
    .equipment-card-content {
        padding: 0.875rem 1rem 1rem;
        flex-shrink: 0; /* Don't shrink the content */
        height: auto;
        min-height: 130px;
        max-height: 150px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        background: var(--card-bg, #fff);
        gap: 0.2rem;
    }

    /* FIXED: Product name - coral colour, fully visible up to 2 lines */
    .equipment-card-content h3 {
        font-size: 1.05rem;
        line-height: 1.35;
        margin-bottom: 0.2rem;
        /* Allow text to wrap to 2 lines */
        white-space: normal;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2; /* Show up to 2 lines */
        -webkit-box-orient: vertical;
        text-overflow: ellipsis;
        color: var(--coral, #e8a687); /* CORAL colour */
        font-weight: 600;
        word-break: break-word;
        min-height: 2.7em; /* Reserve space for 2 lines */
    }

    .equipment-category {
        font-size: 0.8rem;
        margin-bottom: 0;
        flex-shrink: 0;
        line-height: 1.2;
    }

    .equipment-colour {
        font-size: 0.85rem;
        margin-bottom: 0;
        display: none; /* Hide for cleaner TikTok look */
    }

    /* Hide description completely for TikTok-style */
    .equipment-description {
        display: none;
    }

    .equipment-details {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        padding-top: 0.5rem;
        border-top: 1px solid var(--gray);
        margin-top: auto;
    }

    .equipment-quantity {
        font-size: 0.85rem;
        white-space: nowrap;
        opacity: 0.8;
    }

    .equipment-price {
        font-size: 1.25rem;
        white-space: nowrap;
        font-weight: bold;
    }

    /* Basket Button - Samsung Browser Fix */
    .basket-button {
        position: fixed !important;
        top: auto !important;
        bottom: 100px !important;
        right: 20px !important;
        width: 55px !important;
        height: 55px !important;
        z-index: 999 !important;
    }

    /* Basket Sidebar Full Width */
    .basket-sidebar,
    #basket-sidebar {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Product Popup - Full screen on mobile */
    .popup-content {
        max-height: 100vh;
        max-height: 100dvh;
        height: 100%;
        border-radius: 0;
        display: flex;
        flex-direction: column;
    }

    .popup-body {
        flex-direction: column;
        flex: 1;
        overflow: hidden;
    }

    .popup-image {
        width: 100%;
        flex: 1;
        min-height: 50%;
    }

    .popup-image img {
        object-fit: contain;
        background: var(--navy-blue, #0b253f);
    }

    .popup-details {
        width: 100%;
        padding: 1.5rem;
        max-height: 45%;
        overflow-y: auto;
    }

    .popup-details h2 {
        font-size: 1.4rem;
    }

    .quantity-controls {
        justify-content: center;
    }

    .add-to-basket-btn {
        width: 100%;
    }

    /* No Products */
    .no-products {
        padding: 2rem 1rem;
        min-height: calc(100dvh - 200px);
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .no-products-icon {
        font-size: 3.5rem;
    }

    /* Checkout Modal */
    .checkout-modal {
        padding: 0.5rem;
        align-items: flex-start;
        padding-top: 2rem;
    }

    .checkout-modal-content {
        max-height: none;
        border-radius: 15px;
        padding: 1.5rem;
    }

    .delivery-tabs {
        flex-direction: column;
    }

    .delivery-tab {
        width: 100%;
    }
}

/* ========================================
   SAMSUNG S24 SPECIFIC (360px width)
   ======================================== */
@media (max-width: 380px) {
    .equipment-card {
        height: 90dvh;
        min-height: 600px;
        max-height: 700px;
        border-radius: 12px;
    }

    .equipment-card-content {
        padding: 0.75rem 1rem 1rem;
        min-height: 125px;
        max-height: 145px;
    }

    .equipment-card-content h3 {
        font-size: 1rem;
        line-height: 1.35;
        -webkit-line-clamp: 2;
        min-height: 2.7em;
        color: var(--coral, #e8a687);
    }

    .equipment-category {
        font-size: 0.8rem;
    }

    .equipment-price {
        font-size: 1.2rem;
    }

    .equipment-quantity {
        font-size: 0.8rem;
    }
}

/* ========================================
   SMALL PHONE RESPONSIVE (480px and below)
   ======================================== */
@media (min-width: 381px) and (max-width: 480px) {
    .equipment-card {
        height: 90dvh;
        min-height: 580px;
        max-height: 680px;
    }

    .equipment-card-content {
        padding: 0.875rem 1rem 1rem;
        min-height: 125px;
        max-height: 145px;
    }

    .equipment-card-content h3 {
        font-size: 1.05rem;
        line-height: 1.35;
        -webkit-line-clamp: 2;
        min-height: 2.8em;
        color: var(--coral, #e8a687);
    }

    .filter-sidebar {
        width: 100%;
        max-width: 100%;
    }

    .popup-close {
        top: 0.5rem;
        right: 0.5rem;
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
}

/* ========================================
   LARGER PHONES (481px to 768px)
   ======================================== */
@media (min-width: 481px) and (max-width: 768px) {
    .equipment-card {
        height: 90dvh;
        min-height: 620px;
        max-height: 800px;
    }

    .equipment-card-content {
        min-height: 130px;
        max-height: 150px;
    }

    .equipment-card-content h3 {
        font-size: 1.15rem;
        line-height: 1.35;
        -webkit-line-clamp: 2;
        min-height: 3em;
        color: var(--coral, #e8a687);
    }

    .equipment-price {
        font-size: 1.3rem;
    }
}

/* ========================================
   SNAP SCROLL FOR TRUE TIKTOK FEEL (Optional)
   Uncomment below for snap-to-card scrolling
   ======================================== */
/*
@media (max-width: 768px) {
    .equipment-grid {
        scroll-snap-type: y mandatory;
        overflow-y: scroll;
        height: 100dvh;
    }

    .equipment-card {
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }
}
*/

/* ========================================
   SCROLL TO TOP BUTTON
   ======================================== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--navy-blue, #0a2540);
    color: var(--white, #ffffff);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(10, 37, 64, 0.4);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.scroll-to-top:hover {
    background: var(--coral, #e8a687);
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(232, 166, 135, 0.5);
}

.scroll-to-top:active {
    transform: translateX(-50%) scale(0.95);
}

/* Arrow icon using CSS */
.scroll-to-top::before {
    content: '↑';
    font-weight: bold;
}

/* Mobile adjustments for scroll-to-top */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 170px; /* Above the filter button and basket */
        left: 20px;
        transform: translateX(0) translateY(100px);
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    .scroll-to-top.visible {
        transform: translateX(0) translateY(0);
    }

    .scroll-to-top:hover {
        transform: translateX(0) scale(1.1);
    }

    .scroll-to-top:active {
        transform: translateX(0) scale(0.95);
    }
}