/* Budget Tyres — Customer Website Styles
   Color scheme matched to existing budgettyres.com.au:
   - Background: black (#000000)
   - Text: off-white (#f5f5f5)
   - Headings: dark red (#970014)
   - Accent (buttons, links): red (#f60000)
   - Surface (cards): white (#ffffff)
   - Fonts: Open Sans (body), Jost (headings), Poppins (nav)
*/

/* === Base styles === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #f5f5f5;
    background-color: #000000;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Jost", sans-serif;
    color: #970014;
}

a {
    color: #f60000;
    text-decoration: none;
    transition: 0.3s;
}

a:hover {
    color: #ff3333;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === Top bar === */
.top-bar {
    background-color: #000000;
    color: #f5f5f5;
    padding: 12px 0;
    border-bottom: 1px solid #222;
}

.top-bar-inner {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    max-height: 120px;
    width: auto;
}

.admin-btn {
    padding: 0 2px;
    font-size: 14px;
    font-weight: 700;
    border: none;
    background: transparent;
    color: #777;
    cursor: pointer;
    font-family: "Jost", sans-serif;
}

.admin-btn:hover {
    color: #f60000;
}

.contact-info .phone {
    font-family: "Poppins", sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #f5f5f5;
    text-decoration: none;
    padding: 8px 20px;
    border: 2px solid #f60000;
    border-radius: 50px;
    transition: 0.3s;
}

.contact-info .phone:hover {
    background-color: #f60000;
    color: #ffffff;
}

/* === Search section === */
.search-section {
    background: linear-gradient(135deg, #000000 0%, #1a0000 100%);
    color: #f5f5f5;
    padding: 80px 0 60px;
    text-align: center;
}

.search-section h1 {
    font-size: 36px;
    margin-bottom: 10px;
    color: #ffffff;
}

.subtitle {
 font-size: 18px;
 color: #ddaaaa;
 margin-bottom: 25px;
}

/* === All-inclusive price banner === */
.price-banner {
    background: linear-gradient(135deg, rgba(246, 0, 0, 0.15) 0%, rgba(151, 0, 20, 0.15) 100%);
    border: 1px solid rgba(246, 0, 0, 0.3);
    border-radius: 12px;
    padding: 16px 20px;
    margin: 0 auto 30px;
    max-width: 550px;
    animation: banner-glow 3s ease-in-out infinite;
}

@keyframes banner-glow {
    0%, 100% { box-shadow: 0 0 5px rgba(246, 0, 0, 0.2); }
    50% { box-shadow: 0 0 20px rgba(246, 0, 0, 0.4); }
}

.price-banner-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.price-banner-item {
    font-size: 15px;
    font-weight: 600;
    color: #ffcccc;
    font-family: "Poppins", sans-serif;
    white-space: nowrap;
}

.price-banner-text {
 font-size: 14px;
 color: #ccaaaa;
 text-align: center;
 margin: 0;
}

/* === "Includes" text on product cards === */
.product-includes {
    font-size: 12px;
    color: #888;
    text-align: center;
    padding: 6px 8px;
    margin-bottom: 10px;
    background: #f5f5f5;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

/* === Multi-field search (4 fields: width, profile, rim, commercial) === */
.search-prompt {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #f60000;
    margin-bottom: 12px;
    animation: prompt-bounce 2s ease-in-out infinite;
}

.search-prompt-arrow {
    font-size: 20px;
}

@keyframes prompt-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.search-toggle-bar {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.search-toggle-switch {
    position: relative;
    display: inline-flex;
    background: #1a1a1a;
    border-radius: 50px;
    padding: 5px;
    border: 2px solid #333;
    width: 340px;
    max-width: 100%;
    overflow: hidden;
}

.search-toggle-slider {
    position: absolute;
    top: 5px;
    left: 5px;
    width: calc(50% - 5px);
    height: calc(100% - 10px);
    background: #4a9d5e;
    border-radius: 50px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    box-shadow: 0 2px 12px rgba(74, 157, 94, 0.4);
}

.search-toggle-switch.trailer-active .search-toggle-slider {
    transform: translateX(100%);
}

.search-toggle-option {
    flex: 1;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    background: transparent;
    color: #666;
    cursor: pointer;
    font-family: "Jost", sans-serif;
    border-radius: 50px;
    transition: color 0.3s;
    z-index: 2;
    position: relative;
    white-space: nowrap;
    text-align: center;
}

.search-toggle-option.active {
    color: #ffffff;
}

.search-toggle-option:not(.active) {
    color: #555;
}

.search-toggle-emoji {
    font-size: 18px;
    display: inline-block;
    vertical-align: middle;
}

.toggle-svg {
    width: 32px;
    height: 18px;
    display: inline-block;
    vertical-align: middle;
    stroke-width: 2.5;
}

.toggle-svg-wide {
    width: 36px;
}

.search-field-static {
    display: flex;
    flex-direction: column;
    gap: 4px;
    justify-content: flex-end;
}

.static-R {
    font-size: 18px;
    font-weight: bold;
    color: #999;
    text-align: center;
    padding: 14px 16px;
    border: 3px solid #f60000;
    border-radius: 12px;
    width: 50px;
    background: #f5f5f5;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-box-multi {
    display: flex;
    flex-wrap: wrap;
    max-width: 650px;
    margin: 0 auto;
    gap: 10px;
    align-items: flex-end;
    justify-content: center;
}

.search-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.search-field label {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.commercial-tooltip-icon {
    cursor: help;
    color: #f60000;
    font-size: 14px;
    border: 1px solid #f60000;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-weight: bold;
    font-style: normal;
}

.search-field input,
.search-field select {
    padding: 12px 16px;
    font-size: 18px;
    border: 3px solid #f60000;
    border-radius: 50px;
    outline: none;
    background: #ffffff;
    color: #333;
    font-family: "Open Sans", sans-serif;
    width: 90px;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 2px 8px rgba(246, 0, 0, 0.15);
}

.search-field input:focus,
.search-field select:focus {
    border-color: #f60000;
    box-shadow: 0 0 0 4px rgba(246, 0, 0, 0.2);
    transform: scale(1.05);
}

.search-field input {
    border-style: solid !important;
    border-width: 3px !important;
    border-color: #f60000 !important;
    border-radius: 12px !important;
    color: #1a1a1a !important;
    font-weight: 800 !important;
    text-shadow: 0 0 1px rgba(246, 0, 0, 0.3) !important;
}

.search-field input::placeholder {
    color: #f60000;
    font-weight: 400;
    opacity: 0.25;
    letter-spacing: 1px;
}

.search-field select {
    cursor: pointer;
    width: 110px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 32px;
}

.search-btn {
    padding: 12px 28px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 50px;
    background-color: #f60000;
    color: #ffffff;
    cursor: pointer;
    font-family: "Jost", sans-serif;
    transition: 0.3s;
    white-space: nowrap;
}

.search-btn:hover {
    background-color: #ff3333;
}

/* Keep old search-box styles for backward compat */
.search-box {
    display: flex;
    max-width: 550px;
    margin: 0 auto;
    gap: 8px;
}

.search-box input {
    flex: 1;
    padding: 14px 18px;
    font-size: 17px;
    border: 2px solid #f60000;
    border-radius: 50px;
    outline: none;
    background: #ffffff;
    color: #333;
    font-family: "Open Sans", sans-serif;
}

.search-box input:focus {
    border-color: #f60000;
    box-shadow: 0 0 0 3px rgba(246, 0, 0, 0.2);
}

.search-box button {
    padding: 14px 32px;
    font-size: 17px;
    font-weight: bold;
    border: none;
    border-radius: 50px;
    background-color: #f60000;
    color: #ffffff;
    cursor: pointer;
    font-family: "Jost", sans-serif;
    transition: 0.3s;
}

.search-box button:hover {
    background-color: #ff3333;
}

.search-hint {
 margin-top: 18px;
 font-size: 14px;
 color: #aaa;
}

/* === Fitting location banner — one exclusive workshop per town === */
.fitting-location-banner {
    margin-top: 40px;
    padding: 24px 32px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a1a1a 100%);
    border: 1px solid #970014;
    border-radius: 12px;
    text-align: center;
}

.fitting-location-inner {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.fitting-location-logo-link {
    display: inline-block;
    margin-left: 8px;
}

.fitting-location-logo {
    height: 50px;
    width: auto;
    border-radius: 6px;
    transition: transform 0.3s;
}

.fitting-location-logo:hover {
    transform: scale(1.08);
}

.fitting-location-pin {
    font-size: 36px;
    line-height: 1;
    filter: hue-rotate(290deg) saturate(1.8) brightness(1.1);
}

.fitting-location-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.fitting-location-label {
    font-family: "Jost", sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #f60000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fitting-location-address {
    font-size: 16px;
    font-weight: 600;
    color: #f5f5f5;
    margin-top: 2px;
}

.fitting-directions-link {
    color: #f60000;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    margin-left: 6px;
}

.fitting-directions-link:hover {
    text-decoration: underline;
}

.fitting-location-agent {
 font-size: 13px;
 color: #bbb;
 margin-top: 4px;
}

/* === Results section === */
.results-section {
    padding: 30px 0 60px;
    background-color: #000000;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #222;
}

.results-header h2 {
    font-size: 24px;
    color: #970014;
}

.back-button {
    padding: 8px 20px;
    font-size: 14px;
    border: 2px solid #f60000;
    border-radius: 50px;
    background: transparent;
    color: #f60000;
    cursor: pointer;
    font-weight: 600;
    font-family: "Poppins", sans-serif;
    transition: 0.3s;
}

.back-button:hover {
    background-color: #f60000;
    color: #ffffff;
}

/* === Loading === */
.loading {
    text-align: center;
    padding: 60px 0;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #222;
    border-top-color: #f60000;
    border-radius: 50%;
    margin: 0 auto 16px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading p {
    color: #888;
    font-size: 16px;
}

/* === Error message === */
.error-message {
    background-color: #1a0000;
    border: 2px solid #f60000;
    color: #ff9999;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

/* === Tier sections === */
.tier-section {
    margin-bottom: 36px;
}

.tier-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.tier-badge {
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: "Poppins", sans-serif;
}

.tier-badge.budget {
    background-color: #1a3a00;
    color: #66cc66;
    border: 1px solid #336633;
}

.tier-badge.mid-range {
    background-color: #333300;
    color: #cccc66;
    border: 1px solid #666633;
}

.tier-badge.premium {
    background-color: #3a0000;
    color: #ff6666;
    border: 1px solid #993333;
}

.tier-badge.other {
    background-color: #1a1a1a;
    color: #999;
    border: 1px solid #333;
}

.tier-count {
    font-size: 14px;
    color: #666;
}

/* === Product cards === */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.product-card {
    background: #ffffff;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, transform 0.1s;
}

.product-card:hover {
    box-shadow: 0 4px 20px rgba(246, 0, 0, 0.3);
    transform: translateY(-2px);
}

.product-image-wrap {
    text-align: center;
    margin-bottom: 12px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image {
    max-height: 120px;
    width: auto;
    max-width: 100%;
    border-radius: 8px;
    object-fit: contain;
}

.product-brand {
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 4px;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.4;
}

.product-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.product-stock {
    font-size: 14px;
    color: #333;
}

.stock-yes {
    color: #28a745;
    font-weight: 600;
}

.stock-no {
    color: #dc3545;
    font-weight: 600;
}

.product-price {
    text-align: right;
}

.price-regular {
    text-decoration: line-through;
    color: #999;
    font-size: 14px;
}

.price-current {
    font-size: 22px;
    font-weight: bold;
    color: #970014;
    font-family: "Jost", sans-serif;
}

.sale-badge {
    display: inline-block;
    background-color: #f60000;
    color: #ffffff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: middle;
}

.select-button {
    width: 100%;
    padding: 12px;
    background-color: #f60000;
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    font-family: "Jost", sans-serif;
    transition: 0.3s;
    margin-top: auto;
}

.select-button:hover {
    background-color: #ff3333;
}

.select-button:disabled {
    background-color: #444;
    color: #888;
    cursor: not-allowed;
}

/* === No results === */
.no-results {
    text-align: center;
    padding: 40px;
    color: #888;
}

.no-results p {
    font-size: 18px;
    margin-bottom: 8px;
}

/* === Checkout === */
.checkout-section {
    padding: 30px 0 60px;
    background-color: #000000;
    min-height: 60vh;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.checkout-details {
    background-color: #111;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 24px;
}

.checkout-details h3,
.checkout-form h3 {
    font-size: 20px;
    color: #970014;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #333;
}

.checkout-tyre-card {
    background: #ffffff;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 16px;
}

.checkout-tyre-card .product-brand {
    margin-bottom: 6px;
    color: #999;
}

.checkout-tyre-card .product-name {
    font-size: 18px;
    margin-bottom: 8px;
    color: #333;
}

.checkout-tyre-price {
    font-size: 28px;
    font-weight: bold;
    color: #970014;
    font-family: "Jost", sans-serif;
}

.checkout-form {
    background-color: #111;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 24px;
}

.form-field {
    margin-bottom: 16px;
}

.form-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #ccc;
    font-family: "Poppins", sans-serif;
}

.form-field input,
.form-field select {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    border: 1px solid #333;
    border-radius: 6px;
    outline: none;
    background: #1a1a1a;
    color: #f5f5f5;
    font-family: "Open Sans", sans-serif;
}

.form-field select#quantity {
    background: #2d1b3d;
    border: 2px solid #d946ef;
    color: #f5f5f5;
    font-size: 18px;
    font-weight: 600;
    padding: 14px 40px 14px 14px;
    box-shadow: 0 0 12px rgba(217, 70, 239, 0.3);
    animation: qty-glow 2s ease-in-out infinite;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23d946ef' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 24px;
}

@keyframes qty-glow {
    0%, 100% { box-shadow: 0 0 8px rgba(217, 70, 239, 0.2); }
    50% { box-shadow: 0 0 16px rgba(217, 70, 239, 0.4); }
}

.form-field select#quantity:focus {
    border-color: #e879f9;
    box-shadow: 0 0 0 3px rgba(217, 70, 239, 0.25);
}

.form-field input:focus,
.form-field select:focus {
    border-color: #f60000;
    box-shadow: 0 0 0 3px rgba(246, 0, 0, 0.15);
}

.price-summary {
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.price-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 15px;
    color: #ccc;
}

.price-summary-total {
    border-top: 2px solid #4a9d5e;
    margin-top: 8px;
    padding-top: 12px;
    font-size: 20px;
    font-weight: bold;
    color: #4a9d5e;
    font-family: "Jost", sans-serif;
    background-color: #e8f5e9;
    border-radius: 6px;
    padding: 12px 16px;
}

.price-summary-includes {
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #4a9d5e;
    padding: 8px 12px;
    margin: 4px 0;
    background-color: #f1f8f3;
    border-radius: 6px;
    border: 1px solid #c8e6c9;
}

.checkout-button {
    width: 100%;
    padding: 16px;
    font-size: 18px;
    font-weight: bold;
    background-color: #f60000;
    color: #ffffff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-family: "Jost", sans-serif;
    transition: 0.3s;
}

.checkout-button:hover {
    background-color: #ff3333;
}

.payment-note {
 text-align: center;
 font-size: 13px;
 color: #999;
 margin-top: 10px;
}

/* === Footer === */
.footer {
    background-color: #000000;
    color: #888;
    padding: 40px 0 30px;
    border-top: 3px solid #f60000;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    color: #f60000;
    font-size: 18px;
    margin-bottom: 12px;
    font-family: "Jost", sans-serif;
}

.footer-section p {
    margin-bottom: 6px;
    font-size: 14px;
}

.footer-section a {
    color: #ccc;
}

/* === Checkout tyre pivot image — slow rotating animation === */
.checkout-tyre-pivot-wrap {
    text-align: center;
    margin: 20px 0;
    overflow: visible;
    perspective: 800px;
    position: relative;
}

.checkout-tyre-pivot-img {
    max-height: 160px;
    width: auto;
    max-width: 100%;
    border-radius: 12px;
    transform-origin: center center;
    cursor: pointer;
}

/* Magnify button overlay */
.tyre-magnify-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(246, 0, 0, 0.9);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: transform 0.2s;
}

.tyre-magnify-btn:hover {
    transform: scale(1.15);
}

/* Full-screen tread overlay */
.tyre-zoom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    animation: zoom-fade-in 0.3s ease-out;
}

.tyre-zoom-overlay-img {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
    animation: zoom-scale-in 0.3s ease-out;
}

@keyframes zoom-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoom-scale-in {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.footer-logo {
    max-height: 60px;
    width: auto;
    margin-top: 8px;
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.15);
}

.footer-bottom {
 border-top: 1px solid #222;
 padding-top: 20px;
 text-align: center;
 font-size: 13px;
 color: #888;
}

/* === Responsive (mobile) === */
@media (max-width: 768px) {
    .search-section h1 {
        font-size: 24px;
    }
    .search-box {
        flex-direction: column;
    }
    .search-box-multi {
        flex-direction: row;
        justify-content: center;
        gap: 4px;
        max-width: 100%;
        flex-wrap: wrap;
    }
    .search-field input,
    .search-field select {
        width: 60px;
        font-size: 15px;
        padding: 8px 10px;
    }
    .search-field select {
        width: 75px;
    }
    .search-field input {
        border-width: 2px !important;
    }
    .static-R {
        padding: 8px 10px;
        height: 40px;
        font-size: 16px;
    }
    .search-toggle-switch {
        width: 100%;
        max-width: 320px;
    }
    .search-prompt {
        font-size: 14px;
    }
    .search-btn {
        width: 100%;
        margin-top: 4px;
        padding: 10px 20px;
        font-size: 15px;
    }
    .checkout-grid {
        grid-template-columns: 1fr;
    }
    .top-bar-inner {
        flex-direction: column;
        gap: 12px;
    }
    .footer-content {
        grid-template-columns: 1fr;
    }
    .fitting-location-banner {
        padding: 16px 20px;
    }
    .fitting-location-label {
        font-size: 16px;
    }
    .fitting-location-address {
        font-size: 14px;
    }
    .fitting-location-agent {
        font-size: 12px;
    }
}

/* === Fitting calendar messages === */
.fitting-day-message {
    margin-top: 8px;
    font-size: 13px;
}

.fitting-error {
    color: #ff6666;
    font-weight: 600;
}

.fitting-ok {
    color: #66cc66;
    font-weight: 600;
}

/* === Fitting calendar === */
.calendar-instruction {
 font-size: 14px;
 color: #aaa;
 margin-bottom: 12px;
}

.fitting-calendar {
    margin-bottom: 10px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.calendar-day-header {
    text-align: center;
    font-size: 12px;
    font-weight: bold;
    color: #666;
    padding: 8px 4px;
    text-transform: uppercase;
    font-family: "Poppins", sans-serif;
}

.calendar-day-header.weekend {
    color: #444;
}

.calendar-day {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 10px 4px;
    text-align: center;
    min-height: 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2px;
    position: relative;
}

.calendar-day.available {
    background: #1a3a00;
    border: 2px solid #28a745;
    cursor: pointer;
    transition: all 0.2s;
}

.calendar-day.available:hover {
    background: #28a745;
    transform: scale(1.05);
    box-shadow: 0 0 12px rgba(40, 167, 69, 0.5);
}

.calendar-day.available.selected {
    background: #28a745;
    border-color: #66ff66;
    box-shadow: 0 0 15px rgba(40, 167, 69, 0.8);
}

.calendar-day.available.unlocked {
    border-color: #f60000;
    box-shadow: 0 0 15px rgba(246, 0, 0, 0.5);
}

.calendar-day.weekend-day {
    background: #1a1a1a;
    border: 1px solid #333;
    color: #555;
}

.calendar-day.past-day {
    background: #1a1a1a;
    border: 1px solid #222;
    color: #333;
}

.calendar-day-name {
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    color: #999;
}

.calendar-day.available .calendar-day-name,
.calendar-day.available:hover .calendar-day-name,
.calendar-day.available.selected .calendar-day-name {
    color: #ffffff;
}

.calendar-day-num {
    font-size: 20px;
    font-weight: bold;
    color: #ccc;
    font-family: "Jost", sans-serif;
}

.calendar-day.available .calendar-day-num,
.calendar-day.available:hover .calendar-day-num,
.calendar-day.available.selected .calendar-day-num {
    color: #ffffff;
}

.calendar-day-month {
    font-size: 10px;
    color: #777;
}

.calendar-day.available .calendar-day-month,
.calendar-day.available:hover .calendar-day-month,
.calendar-day.available.selected .calendar-day-month {
    color: #ccffcc;
}

/* === Bullseye and "Date Booked" label on selected date === */
.calendar-booked-label {
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9px;
    font-weight: bold;
    text-transform: uppercase;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.5);
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
    animation: booked-label-appear 0.3s ease-out 0.3s backwards;
    font-family: "Poppins", sans-serif;
}

@keyframes booked-label-appear {
    0% { opacity: 0; transform: translateX(-50%) translateY(8px); }
    100% { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.calendar-day.available.unlocked .calendar-booked-label {
    display: none;
}
.calendar-bullseye {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    animation: bullseye-appear 0.3s ease-out;
}

@keyframes bullseye-appear {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.calendar-bullseye-inner {
    font-size: 28px;
    line-height: 1;
    z-index: 1;
    animation: bullseye-pulse 1.5s ease-in-out infinite;
}

@keyframes bullseye-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.calendar-dart {
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 24px;
    line-height: 1;
    z-index: 2;
    pointer-events: none;
    animation: dart-hit 0.4s ease-in forwards;
}

@keyframes dart-hit {
    0% {
        opacity: 0;
        transform: translate(-150px, -150px) rotate(-45deg) scale(1.5);
    }
    60% {
        opacity: 1;
        transform: translate(-20px, -20px) rotate(-15deg) scale(1.2);
    }
    80% {
        transform: translate(2px, 2px) rotate(-5deg) scale(1);
    }
    100% {
        opacity: 1;
        transform: translate(0, 0) rotate(-5deg) scale(1);
    }
}

.calendar-dart-impact {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    opacity: 0;
    pointer-events: none;
    animation: dart-impact 0.5s ease-out 0.35s forwards;
}

@keyframes dart-impact {
    0% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(0);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(2);
    }
}

.calendar-day.available.unlocked {
    border-color: #f60000;
    box-shadow: 0 0 15px rgba(246, 0, 0, 0.5);
}

.calendar-day.available.unlocked .calendar-bullseye,
.calendar-day.available.unlocked .calendar-dart,
.calendar-day.available.unlocked .calendar-dart-impact {
    display: none;
}

.time-hint {
 font-size: 12px;
 color: #999;
 font-weight: 400;
}

.time-confirmation {
    margin-top: 10px;
}

.time-ok {
 color: #66cc66;
 font-weight: 600;
 font-size: 16px;
}

.time-error {
 color: #ff6666;
 font-weight: 600;
 font-size: 14px;
}

.time-checking {
    color: #aaa;
    font-weight: 400;
    font-size: 14px;
    font-style: italic;
}

.time-checking::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid #555;
    border-top-color: #f60000;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
    animation: time-check-spin 0.8s linear infinite;
}

@keyframes time-check-spin {
    to { transform: rotate(360deg); }
}

/* === Tyre Sidewall Guide with Glowing Numbers === */

.tyre-guide {
    display: flex;
    gap: 32px;
    align-items: center;
    margin: 24px auto 32px;
    padding: 24px;
    background: #1a1a1a;
    border-radius: 16px;
    border: 1px solid #333;
    max-width: 800px;
}

.tyre-guide-image-wrap {
    flex-shrink: 0;
    width: 280px;
}

.tyre-sidewall-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

.tyre-guide-content {
    flex: 1;
}

.tyre-guide-content h3 {
    color: #f5f5f5;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.tyre-guide-content > p {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

/* The tyre size number display — large bold numbers that glow in sequence */
.tyre-size-display {
    display: flex;
    align-items: baseline;
    gap: 2px;
    font-family: "Jost", sans-serif;
    font-weight: 700;
    font-size: 2.4rem;
    margin: 12px 0 8px;
    letter-spacing: 1px;
}

.tyre-num {
    color: #999;
    transition: color 0.3s, text-shadow 0.3s;
    padding: 2px 4px;
    border-radius: 4px;
}

.tyre-sep {
    color: #666;
    margin: 0 1px;
}

.tyre-letter {
    color: #666;
    margin: 0 1px;
    transition: color 0.3s, text-shadow 0.3s;
}

/* Glow animation — each number lights up in sequence, left to right */
/* Total cycle: 6 seconds (1.5s per number, 4 numbers) */

.tyre-num-1 {
    animation: tyre-glow 6s infinite;
    animation-delay: 0s;
}
.tyre-num-2 {
    animation: tyre-glow 6s infinite;
    animation-delay: 1.5s;
}
.tyre-num-3 {
    animation: tyre-glow 6s infinite;
    animation-delay: 3s;
}
.tyre-num-4 {
    animation: tyre-glow 6s infinite;
    animation-delay: 4.5s;
}

@keyframes tyre-glow {
    0% {
        color: #999;
        text-shadow: none;
    }
    10% {
        color: #f60000;
        text-shadow: 0 0 20px rgba(246, 0, 0, 0.8), 0 0 40px rgba(246, 0, 0, 0.4);
    }
    25% {
        color: #ff3333;
        text-shadow: 0 0 25px rgba(246, 0, 0, 0.9), 0 0 50px rgba(246, 0, 0, 0.5);
    }
    35% {
        color: #f60000;
        text-shadow: 0 0 20px rgba(246, 0, 0, 0.8), 0 0 40px rgba(246, 0, 0, 0.4);
    }
    45% {
        color: #999;
        text-shadow: none;
    }
    100% {
        color: #999;
        text-shadow: none;
    }
}

/* Labels under the numbers */
.tyre-guide-labels {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.tyre-label {
    font-size: 0.75rem;
    color: #888;
    padding: 3px 8px;
    background: #222;
    border-radius: 4px;
    border: 1px solid #333;
    transition: color 0.3s, border-color 0.3s, background 0.3s;
}

/* Glow the labels in sync with the numbers */
.tyre-label-1 {
    animation: label-glow 6s infinite;
    animation-delay: 0s;
}
.tyre-label-2 {
    animation: label-glow 6s infinite;
    animation-delay: 1.5s;
}
.tyre-label-3 {
    animation: label-glow 6s infinite;
    animation-delay: 3s;
}
.tyre-label-4 {
    animation: label-glow 6s infinite;
    animation-delay: 4.5s;
}

@keyframes label-glow {
    0% {
        color: #888;
        border-color: #333;
        background: #222;
    }
    10% {
        color: #fff;
        border-color: #f60000;
        background: rgba(246, 0, 0, 0.15);
    }
    25% {
        color: #fff;
        border-color: #f60000;
        background: rgba(246, 0, 0, 0.2);
    }
    35% {
        color: #fff;
        border-color: #f60000;
        background: rgba(246, 0, 0, 0.15);
    }
    45% {
        color: #888;
        border-color: #333;
        background: #222;
    }
    100% {
        color: #888;
        border-color: #333;
        background: #222;
    }
}

.tyre-guide-tip {
    font-size: 0.85rem;
    color: #aaa;
    line-height: 1.5;
}

.tyre-guide-tip strong {
    color: #f5f5f5;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .tyre-guide {
        flex-direction: column;
        gap: 16px;
        padding: 16px;
    }
    .tyre-guide-image-wrap {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    .tyre-size-display {
        font-size: 1.8rem;
    }
    .tyre-guide-labels {
        gap: 6px;
    }
    .tyre-label {
        font-size: 0.7rem;
        padding: 2px 6px;
    }
}

/* === Workshop photo next to calendar with fade-in animation === */

.calendar-with-photo {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.workshop-photo-wrap {
    flex-shrink: 0;
    width: 220px;
    position: relative;
    opacity: 0.5;
    transition: opacity 1.5s ease-out;
}

.workshop-photo-wrap.activated {
    opacity: 1;
}

.workshop-photo {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    border: 1px solid #333;
    /* Start blurred — sharpens when quantity is selected */
    filter: blur(6px) grayscale(0.3);
    opacity: 0.4;
    transition: filter 1.5s ease-out, opacity 1.5s ease-out;
}

.workshop-photo.activated {
    filter: blur(0) grayscale(0);
    opacity: 1;
    animation: workshop-glow 2s ease-out;
}

@keyframes workshop-glow {
    0% { filter: blur(6px) grayscale(0.3) brightness(1.5); opacity: 0.4; }
    50% { filter: blur(1px) grayscale(0) brightness(1.2); opacity: 0.8; }
    100% { filter: blur(0) grayscale(0) brightness(1); opacity: 1; }
}

.workshop-photo-caption {
    font-size: 0.72rem;
    color: #888;
    text-align: center;
    margin-top: 6px;
    line-height: 1.3;
    opacity: 0;
    animation: workshop-caption-fade 2.5s ease-out 0.8s forwards;
}

.calendar-wrap {
    flex: 1;
    min-width: 0;
}

/* Keyframe: opacity 0 -> 1 (translucent to solid) */
@keyframes workshop-fade-in {
    0% {
        opacity: 0;
    }
    30% {
        opacity: 0.3;
    }
    60% {
        opacity: 0.6;
    }
    100% {
        opacity: 1;
    }
}

/* Keyframe: blur fades out (surfaces into focus) */
@keyframes workshop-sharpen {
    0% {
        filter: blur(6px);
    }
    50% {
        filter: blur(2px);
    }
    100% {
        filter: blur(0);
    }
}

/* Keyframe: caption fades in slightly after the image */
@keyframes workshop-caption-fade {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* === Floating mushroom with message (dismissible) === */
.floating-mushroom {
    position: fixed;
    top: 8%;
    left: 3%;
    z-index: 9999;
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    animation: mushroomFloat 6s ease-in-out forwards;
    animation-delay: 1.5s;
}

.floating-mushroom.dismissed {
    animation: none;
    transform: translateX(120vw) rotate(45deg);
    opacity: 0;
    pointer-events: none;
}

/* Classic Nintendo-style Super Mushroom */
.mushroom {
    position: relative;
    width: 48px;
    height: 56px;
    flex-shrink: 0;
}

.mushroom-cap {
    position: absolute;
    top: 0;
    left: 0;
    width: 48px;
    height: 30px;
    background: #e4000f;
    border-radius: 50% 50% 15% 15% / 90% 90% 15% 15%;
    box-shadow: inset 0 -2px 0 rgba(0,0,0,0.15), 0 2px 4px rgba(0,0,0,0.2);
    z-index: 2;
}

.mushroom-cap .spot {
    position: absolute;
    background: #fff;
    border-radius: 50%;
}

.spot-1 { width: 12px; height: 12px; top: 6px; left: 7px; }
.spot-2 { width: 10px; height: 10px; top: 4px; right: 8px; }
.spot-3 { width: 9px;  height: 9px;  bottom: 6px; left: 14px; }
.spot-4 { width: 8px;  height: 8px;  bottom: 8px; right: 12px; }

.mushroom-stem {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background: #f8e8c8;
    border-radius: 6px 6px 12px 12px;
    box-shadow: inset 0 -3px 0 rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1;
}

.eye {
    position: absolute;
    top: 8px;
    width: 7px;
    height: 9px;
    background: #1a1a1a;
    border-radius: 40%;
}

.eye-left { left: 5px; }
.eye-right { right: 5px; }

.mushroom-bubble {
    display: inline-flex;
    align-items: center;
    background: #fff;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 30px 10px 16px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    white-space: nowrap;
    position: relative;
}

.mushroom-bubble::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-right: 9px solid #fff;
}

.bubble-dismiss {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    user-select: none;
}

.bubble-dismiss:hover {
    color: #e4000f;
}

@keyframes mushroomFloat {
    0% {
        left: 3%;
        top: 8%;
        opacity: 0;
        transform: scale(0.3) translateX(0);
    }
    8% {
        opacity: 1;
        transform: scale(0.5) translateX(0);
    }
    20% {
        left: 50%;
        top: 30%;
        transform: scale(1) translateX(-50%);
    }
    75% {
        left: 50%;
        top: 30%;
        transform: scale(1) translateX(-50%);
    }
    88% {
        opacity: 1;
        transform: scale(0.6) translateX(-30%);
    }
    100% {
        left: 92%;
        top: 8%;
        opacity: 0;
        transform: scale(0.3) translateX(0);
    }
}

@media (max-width: 768px) {
    .mushroom {
        width: 38px;
        height: 46px;
    }
    .mushroom-cap {
        width: 38px;
        height: 24px;
    }
    .spot-1 { width: 9px; height: 9px; top: 5px; left: 5px; }
    .spot-2 { width: 8px; height: 8px; top: 3px; right: 6px; }
    .spot-3 { width: 7px; height: 7px; bottom: 4px; left: 11px; }
    .spot-4 { width: 6px; height: 6px; bottom: 6px; right: 9px; }
    .mushroom-stem {
        width: 24px;
        height: 24px;
    }
    .eye {
        width: 5px;
        height: 7px;
        top: 6px;
    }
    .eye-left { left: 4px; }
    .eye-right { right: 4px; }
    .mushroom-bubble {
        font-size: 12px;
        padding: 8px 26px 8px 12px;
    }
}

/* Mobile responsive for calendar + photo */
@media (max-width: 768px) {
    .calendar-with-photo {
        flex-direction: column;
        gap: 12px;
    }
    .workshop-photo-wrap {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}

/* === Discreet contact FAB (replaces floating mushroom) === */
.contact-fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-fab a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #f60000;
    color: #ffffff;
    font-size: 22px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: 0.3s;
}

.contact-fab a:hover {
    background-color: #ff3333;
    transform: scale(1.1);
}

.contact-fab .contact-fab-text {
    background-color: #970014;
}

.contact-fab .contact-fab-text:hover {
    background-color: #bb0022;
}

/* Hide the old floating mushroom (replaced by contact FAB) */
.floating-mushroom {
    display: none !important;
}

/* === Time slot picker === */
.time-slot-picker {
    margin-top: 10px;
}

.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
    max-width: 500px;
}

.time-slot {
    background: #1a3a00;
    border: 2px solid #28a745;
    border-radius: 8px;
    padding: 12px 4px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.time-slot:hover {
    background: #28a745;
    transform: scale(1.05);
    box-shadow: 0 0 12px rgba(40, 167, 69, 0.5);
}

.time-slot-label {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    font-family: "Jost", sans-serif;
}

.time-slot.selected {
    background: #28a745;
    border-color: #66ff66;
    box-shadow: 0 0 15px rgba(40, 167, 69, 0.8);
}

.time-slot.selected .time-slot-label {
    color: #ffffff;
}

.time-slot-dart {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    line-height: 1;
    z-index: 2;
    animation: time-dart-hit 0.4s ease-out forwards;
    pointer-events: none;
}

@keyframes time-dart-hit {
    0% {
        opacity: 0;
        transform: translate(-150px, -150px) rotate(-45deg) scale(1.5);
    }
    60% {
        opacity: 1;
        transform: translate(-20px, -20px) rotate(-15deg) scale(1.2);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) rotate(-5deg) scale(1);
    }
}

.time-slot.selected .time-slot-label {
    display: none;
}

/* === Time confirmation mushroom === */
.time-mushroom {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 12px;
    background: linear-gradient(135deg, #1a3a00 0%, #2a1a1a 100%);
    border: 1px solid #28a745;
    border-radius: 12px;
    animation: time-mushroom-appear 0.5s ease-out;
}

@keyframes time-mushroom-appear {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.time-mushroom-mushroom {
    position: relative;
    width: 38px;
    height: 46px;
    flex-shrink: 0;
}

.time-mushroom-bubble {
    display: inline-flex;
    align-items: center;
    background: #fff;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    white-space: nowrap;
    font-family: "Poppins", sans-serif;
}

@media (max-width: 768px) {
    .time-slots-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 100%;
    }
    .time-mushroom-bubble {
        font-size: 13px;
        padding: 6px 10px;
        white-space: normal;
    }
    .time-mushroom-mushroom {
        width: 32px;
        height: 38px;
    }
    .time-mushroom-mushroom .mushroom-cap {
        width: 32px;
        height: 20px;
    }
    .time-mushroom-mushroom .mushroom-stem {
        width: 24px;
        height: 22px;
    }
}

/* === Stock limit warning === */
.stock-warning {
    background-color: #1a0000;
    border: 1px solid #f60000;
    color: #ff9999;
    padding: 10px 14px;
    border-radius: 6px;
    margin-top: 8px;
    font-size: 14px;
    display: none;
}

/* === Call/text link styling in top bar === */
.contact-info .text-link {
    font-size: 14px;
    padding: 8px 16px;
    margin-left: 8px;
}

@media (max-width: 768px) {
    .contact-fab {
        bottom: 16px;
        right: 16px;
    }
    .contact-fab a {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
}
