/* =========================
GLOBAL RESPONSIVE LAYOUT (FIXED)
========================= */

.tos-flex {
    display:flex;
    gap:20px;
    align-items:flex-start;
    flex-wrap:wrap; /* 🔥 allows layout to break properly */
}

.tos-col {
    flex:1 1 0;
    min-width:0;
}

@media (max-width: 768px) {

    .tos-flex {
        flex-direction:column !important;
    }

    .tos-col {
        width:100% !important;
    }

    .tos-col + .tos-col {
        margin-top:20px;
    }

}



.tos-col img {
    max-width:100%;
    height:auto;
    display:block;
}

/* =========================
TIRE CARD NEW LAYOUT
========================= */
/* NEW CARD LAYOUT */
.wte-card.new-layout {
    display: grid;
    grid-template-columns: 0.8fr 2fr 1.2fr;
    gap: 24px;
    padding: 22px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
    margin-bottom: 20px;
    align-items: center;
}

.wte-card.new-layout {
    display: grid !important;
}

/* IMAGE */
.wte-image-col {
    display:flex;
    justify-content:center;
    align-items:center;
}

.tire-img {
    max-width: 140px;
}

/* INFO */
.tire-size {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 6px;
}

.tire-meta {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 10px;
}

.tire-desc {
    font-size: 13px;
    color: #555;
    margin-bottom: 10px;
}

.tire-features {
    list-style: none;
    padding: 0;
}

.tire-features li {
    font-size: 13px;
    margin-bottom: 5px;
}

/* PRICE */
.wte-price-col {
    text-align: center;
}

.retail-price {
    font-size: 15px;
    color: #FF0000;
    text-decoration: line-through;
}

.main-price {
    font-size: 30px;
    font-weight: 800;
    margin: 6px 0;
}

.price-note {
    font-size: 13px;
    color: #555;
}

.savings {
    font-size: 13px;
    color: #16a34a;
    margin: 10px 0;
}

/* TOGGLE */
.tire-toggle {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

/* TOGGLE CLEAN VERSION */
.tire-toggle button {
    flex:1;
    padding:10px;
    border-radius:8px;
    border:1px solid #d1d5db;
    background:#ffffff;
    color:#111;
    font-weight:600;
    cursor:pointer;
    transition: all 0.2s ease;
}

/* ACTIVE */
.tire-toggle button.active {
    background:#0f172a;
    color:#fff;
    border-color:#0f172a;
}

/* INACTIVE */
.tire-toggle button:not(.active) {
    background:#f9fafb;
    color:#374151;
}

/* HOVER */
.tire-toggle button:hover {
    border-color:#0f172a;
}

/* MOBILE */
@media (max-width: 768px) {

    .wte-card.new-layout {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 12px;
    }

    /* IMAGE BLOCK */
    .wte-image-col {
        order: 1;
    }

    /* SIZE + INFO */
    .wte-info-col {
        order: 2;
    }

    /* PRICE */
    .wte-price-col {
        order: 3;
    }

    /* IMAGE CONTROL */
    .tire-img {
        max-width: 160px;
        max-height: 160px;
        object-fit: contain;
        margin: 0 auto;
    }

    .tire-size {
        margin-top: 5px;
        font-size: 20px;
    }

}
/* =========================
RESULT CARDS (filter.php)
========================= */

/*.wte-card:not(.new-layout) {
    display:flex;
    gap:20px;
    align-items:flex-start;
}
*/
@media (max-width: 768px) {

    .wte-card {
        flex-direction:column;
    }

    .wte-card img {
        max-width:100%;
        height:auto;
    }

}

/* =========================
SCHEDULE GRID (LEGACY - SAFE)
========================= */

.tos-schedule-grid {
    display:flex;
    gap:15px;
}

@media (max-width: 480px) {
    .tos-schedule-grid {
        flex-direction:column;
    }
}

/* =========================
BUTTON FULL WIDTH MOBILE
========================= */

@media (max-width: 768px) {

    .wte-btn,
    #pay-btn {
        width:100%;
    }

}

/* =========================
NEW SCHEDULE SYSTEM (PRO)
========================= */

/* Container */
#schedule-days {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 16px; /* tighter */
}

/* Responsive grid */
@media (max-width: 1400px) {
    #schedule-days {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1024px) {
    #schedule-days {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================
DAY CARD
========================= */

#schedule-days > div {
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 12px;
    background: #fff;
    display:flex;
    flex-direction:column;
}

/* Day title */
#schedule-days strong {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 8px;
    color:#333;
}

/* =========================
SLOTS
========================= */

.slot {
    padding: 8px;
    margin-top: 6px;
    border-radius: 6px;
    border: 1px solid #dcdcdc;
    cursor: pointer;
    font-size: 13px;              /* 🔥 reduced */
    line-height: 1.35;
    color:#333;
    transition: all 0.2s ease;
}

/* SELECTED SLOT */
.slot.selected {
    background: #fff !important;
    border: 2px solid #EFFF00 !important;
    color: #111 !important;
    box-shadow: 0 0 0 2px rgba(239,255,0,0.25);
}

/* HOVER */
.slot:hover {
    border-color: #EFFF00 !important;
}

/* Disabled / booked */
.slot.disabled {
    background: #f3f3f3;
    color: #9a9a9a;
    border-color:#e2e2e2;
    cursor: not-allowed;
}

/* =========================
CLOSED DAY STYLE
========================= */

.closed-day {
    margin-top: 12px;
    padding: 12px;
    border-radius: 8px;
    background: #f8d7da;
    color: #842029;
    text-align: center;
    font-size: 11px;
    font-weight: 400;
    opacity: 0.8;  /* softer */
}

/* =========================
TABLET
========================= */

@media (max-width: 1024px) {
    #schedule-days {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================
MOBILE (SWIPE MODE ONLY)
========================= */

@media (max-width: 480px) {

    #schedule-days {
        display: flex;
        overflow-x: auto;
        gap: 14px;
        padding-bottom: 10px;
        scroll-snap-type: x mandatory;
    }

    #schedule-days > div {
        min-width: 85%;
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    .slot {
        font-size: 13px;
        padding: 8px;
    }

    #schedule-days strong {
        font-size: 13px;
    }

}



/* =========================
TIRE IMAGE FIX (CENTER PERFECT)
========================= */

.tire-image-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 180px; /* consistent box */
    margin-bottom: 10px;
}

.tire-image {
    max-width: 100%;
    max-height: 160px;
    object-fit: contain;
    display: block;
}


/* Retail line (clean + aligned) */
.retail-line {
    display:flex;
    justify-content:flex-end;
    gap:8px;
    font-size:13px;
    color:#6b7280;
    margin-bottom:4px;
}

.retail-label {
    font-weight:500;
}

.retail-price {
    color:#dc2626;
    text-decoration:line-through;
    font-weight:600;
}

/* Main price stronger */
.main-price {
    font-size:34px;
    font-weight:800;
    color:#111827;
}

/* Price note */
.price-note {
    font-size:13px;
    color:#6b7280;
    margin-top:4px;
}


/* You Pay line (aligned with retail) */
.pay-line {
    display:flex;
    justify-content:flex-end;
    align-items:baseline;
    gap:10px;
    margin:6px 0 4px 0;
}

.pay-label {
    font-size:13px;
    color:#6b7280;
    font-weight:500;
}

.main-price {
    font-size:34px;
    font-weight:800;
    color:#111827;
}


/* 🔥 MASTER CONTAINER (GLOBAL) */
.tires-container {
    max-width:1100px;
    margin:0 auto;
    padding:0 15px;
}

/* Search */
.wte-search-bar {
    display: flex;
    gap: 12px;
    align-items: center;
    background: #f9fafb;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    margin-bottom:20px;
}

.wte-search-bar select {
    flex: 1;
    height: 44px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #fff;
}

.wte-search-bar button {
    height: 44px;
    padding: 0 20px;
    border-radius: 10px;
    background: #EFFF00;
    color: #111;
    font-weight: 600;
    border: none;
}

.wte-season {
    display:flex;
    gap:10px;
    margin-bottom:15px;
}

/* FORCE SEARCH BAR STYLE */
.wte-search-bar {
    display: flex !important;
    gap: 12px !important;
    align-items: center !important;
}

.wte-search-bar select {
    flex: 1 !important;
}

.wte-search-bar button {
    background: #ffea00 !important;
}