/* Shop Page Styles */
.shop-page-layout {
    padding: 0;
    min-height: 100vh;
    margin-top: 0;
}

.container {
    margin: 0 auto;
    padding: 0 20px;
}

/* Remove any gaps from body */
body.post-type-archive-product,
body.tax-product_cat,
body.single-product,
body.shop-page-body {
    margin: 0;
    padding: 0;
    background-color: #151515;
    position: relative;
}

/* Background tyre image for shop pages */
body.post-type-archive-product::before,
body.tax-product_cat::before,
body.single-product::before,
body.shop-page-body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/images/tire-bg.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    opacity: 0.1;
    z-index: -1;
    pointer-events: none;
}

/* Top Bar - Logo and Red Banner - Matches static site exactly */
.top-bar {
    padding: 0 !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    position: fixed !important;
    top: 0 !important;
    height: 60px !important;
    min-height: 60px !important;
    max-height: 60px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border-bottom: none !important;
    z-index: 1000 !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    left: 0 !important;
}

.top-bar.scrolled {
    height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.logo-banner {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    background: #dc0000 !important;
    background-image: url('/images/red-bar.png') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    visibility: visible !important;
    opacity: 1 !important;
    border-bottom: 2px solid #000 !important;
    overflow: visible !important;
    height: 60px !important;
    min-height: 60px !important;
    z-index: 0 !important;
}

/* Main Nav - Sticky below top-bar - Matches static site exactly */
body.post-type-archive-product .main-nav,
body.tax-product_cat .main-nav,
body.single-product .main-nav,
body.shop-page-body .main-nav,
.main-nav {
    padding: 15px 0 !important;
    position: sticky !important;
    top: 60px !important;
    z-index: 999 !important;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
    background: rgba(21, 21, 21, 0.4) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    margin-top: 0 !important;
    width: 100% !important;
}

.main-nav .container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 1170px !important;
    max-width: 100% !important;
    padding: 0 30px !important;
    margin: 0 auto !important;
    position: relative !important;
    height: 60px !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

body.post-type-archive-product .main-nav.scrolled,
body.tax-product_cat .main-nav.scrolled,
body.single-product .main-nav.scrolled,
body.shop-page-body .main-nav.scrolled,
.main-nav.scrolled {
    background: rgba(21, 21, 21, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5) !important;
    padding: 10px 0 !important;
    top: 0 !important;
}

/* Nav menu items - matches static site exactly */
.main-nav ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    gap: 40px !important;
    align-items: center !important;
}

.main-nav li {
    margin: 0 !important;
}

.main-nav a {
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    padding: 10px 0 !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    display: block !important;
}

.main-nav a::after {
    content: '' !important;
    position: absolute !important;
    bottom: 5px !important;
    left: 0 !important;
    width: 0 !important;
    height: 2px !important;
    background: #FFFF00 !important;
    transition: width 0.3s ease !important;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100% !important;
}

.main-nav a.active,
.main-nav a:hover {
    color: #FFFF00 !important;
}

/* Shop Page Container */
.shop-page {
    padding: 10px 0 60px;
    min-height: 70vh;
    background: transparent !important;
    position: relative;
    z-index: 1;
}

/* Background Image for Shop Page */
.shop-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/images/tire-bg.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    opacity: 1 !important;
    z-index: -2;
    pointer-events: none;
}

.shop-page::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3) !important;
    z-index: -1;
    pointer-events: none;
}

.page-header {
    text-align: center;
    margin-bottom: 50px;
}

.page-header h1 {
    font-size: 48px;
    font-weight: 900;
    color: #FFFF00;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.page-description {
    color: #ccc;
    font-size: 18px;
}

/* Product Filter Card */
.product-filter-card {
    background: linear-gradient(145deg, #2d2d2d, #1a1a1a);
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 0, 0.2);
    margin-bottom: 40px;
    padding: 25px 30px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
    position: relative;
    z-index: 100;
}

.product-filter-card .btn-clear {
    background: #ff4444;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.product-filter-card .btn-clear:hover {
    background: #ff6666;
    transform: translateY(-1px);
}

.product-filter-card .btn-clear {
    text-decoration: none;
    font-weight: 700;
}

.product-filter-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(160px, 1fr));
    gap: 18px;
    margin-bottom: 20px;
}

.product-filter-grid .filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    z-index: 102;
}

.product-filter-grid .filter-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #ffeb3b 0%, #ffd700 100%);
    color: #111;
    box-shadow: 0 2px 6px rgba(255, 215, 0, 0.35);
}

.product-filter-grid .filter-label i {
    font-size: 13px;
    color: #111;
}

.product-filter-grid select,
.product-filter-grid input[type="search"] {
    background: #0f0f0f;
    border: 2px solid rgba(255, 255, 0, 0.2);
    border-radius: 10px;
    color: #fff;
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 600;
    outline: none;
    transition: all 0.2s ease;
    appearance: none;
    width: 100%;
    position: relative;
    z-index: 101;
}

.product-filter-grid select {
    cursor: pointer;
}

.product-filter-grid .filter-group {
    position: relative;
    z-index: 102;
}

.product-filter-grid select:focus,
.product-filter-grid input[type="search"]:focus {
    border-color: #FFFF00;
    box-shadow: 0 0 12px rgba(255, 255, 0, 0.35);
}

.product-filter-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.product-filter-actions button[type="submit"] {
    background: #FFFF00;
    color: #111;
    border: none;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-filter-actions button[type="submit"]:hover {
    background: #ffd700;
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(255, 215, 0, 0.35);
}

.product-filter-search {
    margin-left: auto;
    display: flex;
    gap: 12px;
}

.product-filter-search input[type="search"] {
    min-width: 240px;
}

.product-filter-search button {
    background: #ffeb3b;
    color: #111;
    border: none;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-filter-search button:hover {
    background: #fff176;
}

.filter-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.filter-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    color: #999;
    font-size: 13px;
}

.filter-meta .orderby {
    background: #0f0f0f;
    border: 2px solid rgba(255, 255, 0, 0.2);
    border-radius: 10px;
    color: #fff;
    padding: 8px 12px;
    font-size: 13px;
}

/* Product Grid - EXACT from static site */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    row-gap: 60px;
    margin-bottom: 40px;
    min-height: 300px;
}

/* Modern Product Card Styles - Consistent Design */
.product-card {
    background: #151515;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
}

/* Subtle Tech/Tyre Graphic Background */
.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.03) 10px,
        rgba(255, 255, 255, 0.03) 20px
    );
    border-radius: 0 0 0 100%;
    z-index: -1;
    pointer-events: none;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    border-color: #FFFF00;
}

.product-card-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    height: 100%;
    position: relative;
    z-index: 2;
    width: 100%;
}

.product-image-wrapper {
    width: 100%;
    height: 280px;
    background: #1a1a1a;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin: 0;
    box-sizing: border-box;
}

.product-image-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to top, #151515 0%, transparent 100%);
    z-index: 1;
}

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    margin: 0 auto;
    transition: transform 0.4s ease;
    z-index: 0;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
    padding: 0;
    display: block;
}

.product-card:hover img {
    transform: scale(1.08);
}

/* Product Badge Styles */
.sale-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #FFFF00;
    color: #000;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.product-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 8px;
    background: transparent;
}

.product-brand {
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    line-height: 1.2;
}

.product-size {
    color: #ccc;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 10px;
    border-radius: 4px;
    width: fit-content;
    border: 1px solid #FFFF00;
}

.product-size span {
    color: #FFFF00;
    font-weight: 800;
}

.product-description {
    color: #888;
    font-size: 12px;
    line-height: 1.4;
    margin: 5px 0 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 34px;
}

.product-price-container {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #FFFF00;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
}

.product-price {
    color: #FFFF00;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-shadow: 0 0 20px rgba(255, 255, 0, 0.6), 0 0 40px rgba(255, 255, 0, 0.3);
    animation: price-glow 2s ease-in-out infinite alternate;
}

@keyframes price-glow {
    0% {
        text-shadow: 0 0 20px rgba(255, 255, 0, 0.6), 0 0 40px rgba(255, 255, 0, 0.3);
    }
    100% {
        text-shadow: 0 0 30px rgba(255, 255, 0, 0.9), 0 0 60px rgba(255, 255, 0, 0.5);
    }
}

.product-price.contact-price {
    font-size: 18px;
    color: #FFA500;
}

.product-actions {
    padding: 0 15px 15px 15px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    margin-top: 0;
}

.btn-add-cart {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFFF00;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    padding: 0;
}

.btn-add-cart:hover {
    background: #FFFF00;
    color: #000;
    border-color: #FFFF00;
    transform: translateY(-2px);
}

.btn-buy-now {
    background: #FFFF00;
    color: #000;
    border: none;
    padding: 0 20px;
    height: 48px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.btn-buy-now:hover {
    background: #FFD700;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.2);
}

.btn-buy-now i {
    font-size: 16px;
}

/* Hide WooCommerce default product list COMPLETELY */
ul.products,
.woocommerce ul.products,
.woocommerce ul.products li.product,
.woocommerce-loop-product__title,
.woocommerce-loop-product__link,
.woocommerce-loop-product__title a {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Show only our custom product grid */
.shop-page .product-grid {
    display: grid !important;
    visibility: visible !important;
    opacity: 1 !important;
    grid-template-columns: repeat(4, 1fr) !important;
}

.shop-page .product-card {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex-direction: column !important;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        row-gap: 60px;
    }
    
    .product-filter-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-filter-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .product-price {
        font-size: clamp(20px, 4vw, 26px);
    }
    
    .product-filter-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-actions-row {
        flex-direction: column;
    }
    
    .product-filter-search {
        margin-left: 0;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .product-price {
        font-size: clamp(18px, 5vw, 24px);
    }
}



/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 40px 0;
    padding: 20px;
    flex-wrap: wrap;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(145deg, #2d2d2d, #1a1a1a);
    color: #fff;
    border: 2px solid rgba(255, 255, 0, 0.3);
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pagination-btn:hover {
    background: #FFFF00;
    color: #000;
    border-color: #FFFF00;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 255, 0, 0.3);
}

.pagination-btn i {
    font-size: 12px;
}

.pagination-numbers {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    background: linear-gradient(145deg, #2d2d2d, #1a1a1a);
    color: #fff;
    border: 2px solid rgba(255, 255, 0, 0.2);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination-number:hover {
    background: rgba(255, 255, 0, 0.1);
    border-color: #FFFF00;
    color: #FFFF00;
    transform: translateY(-2px);
}

.pagination-number.active {
    background: #FFFF00;
    color: #000;
    border-color: #FFFF00;
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(255, 255, 0, 0.4);
}

/* No Products Found */
.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(145deg, #2d2d2d, #1a1a1a);
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 0, 0.1);
}

.no-products h2 {
    color: #fff;
    font-size: 28px;
    margin-bottom: 10px;
}

.no-products p {
    color: #888;
    font-size: 16px;
}

/* Pagination Responsive - Tablet */
@media (max-width: 992px) {
    .pagination {
        gap: 8px;
        padding: 15px;
    }

    .pagination-btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .pagination-number {
        min-width: 40px;
        height: 40px;
        font-size: 13px;
    }
}

/* Pagination Responsive - Mobile */
@media (max-width: 768px) {
    .pagination {
        flex-direction: column;
        gap: 15px;
        padding: 20px 10px;
    }

    .pagination-numbers {
        order: -1;
        width: 100%;
        justify-content: center;
    }

    .pagination-btn {
        width: 100%;
        max-width: 200px;
        justify-content: center;
        padding: 14px 20px;
    }

    .pagination-number {
        min-width: 38px;
        height: 38px;
        font-size: 13px;
    }
}

/* Pagination Responsive - Small Mobile */
@media (max-width: 480px) {
    .pagination {
        padding: 15px 5px;
    }

    .pagination-numbers {
        gap: 5px;
    }

    .pagination-number {
        min-width: 36px;
        height: 36px;
        font-size: 12px;
        border-radius: 8px;
    }

    .pagination-btn {
        font-size: 12px;
        padding: 12px 16px;
    }
}

.bf-glow-bg {
    pointer-events: none !important;
    z-index: -1 !important;
}
