/* Shop Page Styles - Converted from main-site/shop-styles.css */

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

/* Background tyre image */
.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;
    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);
    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-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;
    font-family: 'Montserrat', sans-serif;
}

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

.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);
}

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

.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;
    font-family: 'Montserrat', sans-serif;
}

.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-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;
    text-decoration: none;
}

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

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

.product-filter-search input[type="search"] {
    min-width: 240px;
    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;
    font-family: 'Montserrat', sans-serif;
}

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

.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;
    font-family: 'Montserrat', sans-serif;
}

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

/* Sort & Results Meta Bar */
.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;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
}

.filter-meta .orderby:focus {
    outline: none;
    border-color: #FFFF00;
}

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

/* Product Card */
.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;
}

.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;
}

.btn-favorite {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid #3a3a3a;
    background: rgba(18, 18, 18, 0.9);
    color: #888;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-favorite:hover {
    color: #ffff00;
    border-color: #ffff00;
}

.btn-favorite.active {
    color: #ffff00;
    border-color: #ffff00;
    background: rgba(60, 60, 0, 0.7);
}

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

.product-card__image-wrap {
    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-card__image-wrap::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__image {
    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 .product-card__image {
    transform: scale(1.08);
}

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

.product-card__brand {
    color: #ccc;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.product-card__name {
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card__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;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #FFFF00;
}

.product-card__original-price {
    color: #888;
    font-size: 14px;
    text-decoration: line-through;
}

@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-card__btn {
    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: calc(100% - 30px);
    margin: 0 15px 15px 15px;
    font-family: 'Montserrat', sans-serif;
}

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

/* 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 */
.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;
    font-family: 'Montserrat', sans-serif;
}

.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;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
}

.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);
}

.pagination-ellipsis {
    color: #666;
    padding: 0.75rem 0.5rem;
}

/* Loading Spinner */
.loading-spinner {
    text-align: center;
    font-size: 20px;
    color: #666;
    padding: 50px;
    grid-column: 1 / -1;
}

/* Responsive - Tablet */
@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);
    }

    .pagination {
        gap: 8px;
        padding: 15px;
    }

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

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

/* Responsive - Mobile */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-card__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%;
    }

    .page-header h1 {
        font-size: 32px;
    }

    .page-description {
        font-size: 15px;
    }

    .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;
    }

    .filter-meta {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

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

    .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;
    }
}

/* ==========================================
   Single Product Page Styles
   ========================================== */

.product-single {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.product-single__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.product-image {
    background: #1a1a1a;
    border-radius: 8px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: flex-start;
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.product-image img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.product-info {
    color: #fff;
}

.product-info__brand {
    color: #FFFF00;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-info__name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.product-info__price {
    font-size: 2.5rem;
    color: #FFFF00;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.product-info__availability {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #1a1a1a;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    color: #4ade80;
}

.product-info__availability--out {
    color: #f87171;
}

.product-info__specs {
    background: #1a1a1a;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.product-info__specs h3 {
    color: #FFFF00;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.product-info__specs-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-info__specs-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #333;
}

.product-info__specs-list li:last-child {
    border-bottom: none;
}

.product-info__specs-label {
    color: #aaa;
    font-size: 0.9rem;
}

.product-info__specs-value {
    color: #fff;
    font-weight: 600;
}

.product-info__actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.product-info__quantity {
    display: flex;
    align-items: center;
    background: #1a1a1a;
    border-radius: 4px;
    overflow: hidden;
}

.product-info__quantity-btn {
    padding: 1rem 1.25rem;
    background: transparent;
    border: none;
    color: #FFFF00;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.2s;
}

.product-info__quantity-btn:hover {
    background: #222;
}

.product-info__quantity-input {
    width: 60px;
    padding: 1rem 0.5rem;
    background: transparent;
    border: none;
    border-left: 1px solid #333;
    border-right: 1px solid #333;
    color: #fff;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
}

.product-info__quantity-input:focus {
    outline: none;
}

.product-info__add-to-cart {
    flex: 1;
    padding: 1rem 2rem;
    background: #FFFF00;
    border: none;
    border-radius: 4px;
    color: #151515;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-info__add-to-cart:hover {
    background: #e6e600;
    transform: scale(1.02);
}

.product-details {
    background: #1a1a1a;
    padding: 2rem;
    border-radius: 8px;
}

.product-details h2 {
    color: #FFFF00;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.product-details p {
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.product-details ul {
    list-style: none;
    padding-left: 0;
    color: #ccc;
}

.product-details ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.product-details ul li::before {
    content: "\25B8";
    color: #FFFF00;
    position: absolute;
    left: 0;
}

@media (max-width: 768px) {
    .product-single__container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-image {
        position: static;
    }

    .product-info__name {
        font-size: 1.5rem;
    }

    .product-info__price {
        font-size: 2rem;
    }

    .product-info__actions {
        flex-direction: column;
    }
}

/* ==========================================
   Single Product Page Enhancements
   ========================================== */

.product-info__price-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: -1rem 0 1.5rem;
}

.product-info__original-price {
    color: #aaa;
    text-decoration: line-through;
    font-weight: 600;
}

.product-info__discount-badge {
    background: rgba(255, 255, 0, 0.12);
    border: 1px solid rgba(255, 255, 0, 0.45);
    color: #FFFF00;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.product-thumbnails {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.thumbnail {
    width: 72px;
    height: 72px;
    border-radius: 6px;
    border: 1px solid #333;
    background: #0f0f0f;
    padding: 6px;
    object-fit: contain;
    cursor: pointer;
    opacity: 0.75;
    transition: all 0.2s ease;
}

.thumbnail:hover {
    border-color: #666;
    opacity: 0.95;
    transform: translateY(-1px);
}

.thumbnail.active {
    border-color: #FFFF00;
    opacity: 1;
    box-shadow: 0 0 0 2px rgba(255, 255, 0, 0.15);
}

.main-image {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.price-inquiry-section {
    padding: 3rem 1rem;
    background: #0f0f0f;
}

.inquiry-box {
    max-width: 900px;
    margin: 0 auto;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 2rem;
    color: #fff;
}

.inquiry-box h3 {
    color: #FFFF00;
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
}

.inquiry-box p {
    margin: 0 0 1.5rem;
    color: #ccc;
}

.inquiry-form .form-row {
    display: flex;
    gap: 1rem;
}

.inquiry-form .form-group {
    flex: 1;
    margin-bottom: 1rem;
}

.inquiry-form input,
.inquiry-form textarea {
    width: 100%;
    background: #111;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 12px 14px;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
}

.inquiry-form input:focus,
.inquiry-form textarea:focus {
    outline: none;
    border-color: #FFFF00;
    box-shadow: 0 0 0 3px rgba(255, 255, 0, 0.12);
}

.inquiry-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 8px;
    border: none;
    background: #FFFF00;
    color: #111;
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    transition: all 0.2s ease;
}

.inquiry-submit-btn:hover {
    background: #e6e600;
    transform: translateY(-1px);
}

.related-products {
    padding: 3rem 0;
    background: #151515;
}

.related-products .product-grid {
    margin-top: 1.5rem;
}

@media (max-width: 768px) {
    .inquiry-form .form-row {
        flex-direction: column;
    }

    .thumbnail {
        width: 64px;
        height: 64px;
    }
}
