/* Radius Custom Web Application Stylesheet */

.grecaptcha-badge { display: none; }
[v-cloak] { display: none !important; }

/* 1. Main Wheel floating animation */
@keyframes floatTire {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}
.main-wheel {
    animation: floatTire 4s ease-in-out infinite;
}

/* 2. Service Card hover animations */
.service-card-anim {
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}
.service-card-anim:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    background-color: #ffffff;
    border-radius: 8px;
}

/* 3. Search button arrow slide */
.search-btn-anim svg {
    transition: transform 0.3s ease;
}
.search-btn-anim:hover svg {
    transform: translateX(6px);
}

/* 4. Spinner style for AJAX loading indicator */
.lds-dual-ring {
    display: inline-block;
    width: 20px;
    height: 20px;
}
.lds-dual-ring:after {
    content: " ";
    display: block;
    width: 16px;
    height: 16px;
    margin: 2px;
    border-radius: 50%;
    border: 2px solid #fff;
    border-color: #fff transparent #fff transparent;
    animation: lds-dual-ring 1.2s linear infinite;
}
@keyframes lds-dual-ring {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 5. Custom Language & Currency Dropdown menus */
.rds-dropdown {
    position: relative;
    display: inline-block;
}
.rds-dropdown-toggle {
    cursor: pointer;
    background: #fff;
    border: 1px solid #cacaca;
    border-radius: 4px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}
.rds-dropdown-toggle:hover {
    border-color: #999;
    background-color: #f7f7f7;
}
.rds-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #cacaca;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 10000;
    min-width: 100px;
    margin-top: 4px;
    padding: 4px 0;
}
.rds-dropdown.show .rds-dropdown-menu {
    display: block;
}
.rds-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease;
}
.rds-dropdown-item:hover {
    background-color: #f0f0f0;
    color: #d1121d;
}
.rds-dropdown-item.active {
    background-color: #fce8e6;
    color: #d1121d;
}

/* 6. Product grid page styles (from products.php) */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 30px;
}
.product-card {
    background: #ffffff;
    border: 1px solid #cacaca;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}
.product-card-img-wrapper {
    height: 200px;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}
.product-card-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.season-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}
.season-summer { background: #fef3c7; color: #d97706; }
.season-winter { background: #dbeafe; color: #2563eb; }
.season-all-season { background: #dcfce7; color: #16a34a; }

.product-card-details {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.product-brand {
    font-size: 13px;
    font-weight: 700;
    color: #ef4444;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}
.product-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px 0;
    line-height: 1.3;
}
.product-spec {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 16px;
}
.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #f3f4f6;
    padding-top: 16px;
}
.product-price {
    font-size: 22px;
    font-weight: 800;
    color: #111827;
}
.stock-badge {
    font-size: 12px;
    font-weight: 500;
}
.stock-yes { color: #10b981; }
.stock-no { color: #ef4444; }

/* 7. Single Product detail page styles */
.product-detail-card {
    background: #ffffff;
    border: 1px solid #cacaca;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
.product-image-container {
    background-color: #fafafa;
    border-right: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    position: relative;
    min-height: 400px;
}
.main-product-img {
    max-width: 100%;
    max-height: 380px;
    object-fit: contain;
    transition: opacity 0.3s ease;
}
.thumbnail-gallery {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    justify-content: center;
}
.thumb-img-wrapper {
    width: 70px;
    height: 70px;
    border: 1px solid #cacaca;
    border-radius: 6px;
    padding: 4px;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.thumb-img-wrapper:hover, .thumb-img-wrapper.active {
    border-color: #E43123;
    box-shadow: 0 0 8px rgba(228, 49, 35, 0.15);
}
.thumb-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.product-info-container {
    padding: 40px;
}
.detail-brand-logo {
    max-height: 36px;
    max-width: 120px;
    object-fit: contain;
    margin-bottom: 12px;
}
.detail-brand-name {
    font-size: 14px;
    font-weight: 700;
    color: #E43123;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
}
.detail-product-title {
    font-size: 32px;
    font-weight: 800;
    color: #1D1E21;
    line-height: 1.2;
    margin-bottom: 8px;
}
.detail-product-size {
    font-size: 20px;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 24px;
}
.price-badge-container {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 24px;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 20px;
}
.detail-price {
    font-size: 36px;
    font-weight: 800;
    color: #1d1e21;
}
.detail-original-price {
    font-size: 20px;
    color: #9ca3af;
    text-decoration: line-through;
}
.detail-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 4px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.badge-summer { background-color: #fef3c7; color: #d97706; }
.badge-winter { background-color: #dbeafe; color: #2563eb; }
.badge-all-season { background-color: #dcfce7; color: #16a34a; }

.specs-table {
    width: 100%;
    margin-bottom: 24px;
}
.specs-table tr {
    border-bottom: 1px solid #f3f4f6;
}
.specs-table tr:last-child {
    border-bottom: 0;
}
.specs-table td {
    padding: 12px 0;
    font-size: 15px;
}
.specs-table td.label-cell {
    color: #6b7280;
    font-weight: 500;
    width: 40%;
}
.specs-table td.val-cell {
    color: #1d1e21;
    font-weight: 600;
}

/* Tabs styles */
.tab-nav-btn {
    color: #1d1e21;
    font-weight: 600;
    font-size: 16px;
    padding: 14px 20px;
    border-bottom: 2px solid transparent;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}
.tab-nav-btn:hover {
    color: #E43123;
}
.tab-nav-btn.active {
    color: #E43123;
    border-color: #E43123;
}
.tab-pane-content {
    display: none;
}
.tab-pane-content.active {
    display: block;
}

/* Credit Calculator */
.month-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border: 2px solid #cacaca;
    border-radius: 50%;
    font-weight: 600;
    cursor: pointer;
    margin-right: 10px;
    margin-bottom: 10px;
    transition: all 0.2s ease;
    user-select: none;
}
.month-pill:hover, .month-pill.active {
    border-color: #E43123;
    color: #E43123;
    box-shadow: 0 4px 10px rgba(228, 49, 35, 0.1);
}
.quantity-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid #cacaca;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    height: 48px;
}
.qty-btn {
    width: 48px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #f8fafc;
    border: 0;
    font-weight: bold;
    transition: background 0.2s ease;
}
.qty-btn:hover {
    background: #f1f5f9;
}
.qty-val {
    width: 48px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
}

/* --- Redesign: Section Title --- */
.v2-section-title {
    font-size: 28px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    margin-bottom: 30px;
    border-left: 4px solid #e43123;
    padding-left: 15px;
    color: #1d1e21;
}

/* --- Popular Choice Grid (Home v2) --- */
.popular-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

@media (max-width: 576px) {
    .popular-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

.popular-card {
    border: 1px solid #cacaca;
    border-radius: 6px;
    padding: 16px;
    background: #ffffff;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}
.popular-card:hover {
    box-shadow: 0 12px 24px rgba(0,0,0,0.06);
    transform: translateY(-5px);
    border-color: #1d1e21;
}

.popular-discount-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #e43123;
    color: #ffffff;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 3px;
    z-index: 10;
}

.popular-img-wrapper {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    background: #fafafa;
    border-radius: 4px;
    padding: 8px;
    overflow: hidden;
}
.popular-img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.popular-card:hover .popular-img {
    transform: scale(1.05);
}

.popular-brand {
    font-size: 11px;
    color: #ef4444;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.popular-name {
    font-size: 16px;
    font-weight: 700;
    color: #1d1e21;
    margin-bottom: 8px;
    line-height: 1.4;
    height: 44px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.popular-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}
.popular-spec-tag {
    border: 1px solid #cacaca;
    background: #f9fafb;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 500;
    border-radius: 3px;
    color: #555;
}

.popular-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
}
.popular-price-box {
    display: flex;
    flex-direction: column;
}
.popular-old-price {
    font-size: 12px;
    text-decoration: line-through;
    color: #9ca3af;
}
.popular-new-price {
    font-size: 20px;
    font-weight: 800;
    color: #e43123;
}

.popular-btn-cart {
    border: 1px solid #cacaca;
    background: #ffffff;
    color: #1d1e21;
    width: 38px;
    height: 38px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.popular-btn-cart:hover {
    border-color: #e43123;
    color: #e43123;
    background-color: #fce8e6;
}

/* --- Promo Countdown Banner (Home v2) --- */
.promo-banner {
    background-color: #1d1e21;
    color: #ffffff;
    border-radius: 8px;
    padding: 40px 60px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.promo-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.promo-text {
    flex: 1;
    max-width: 550px;
}

.promo-tag {
    background: rgba(228, 49, 35, 0.15);
    color: #e43123;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 16px;
}

.promo-text h2 {
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 12px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}
.promo-text h2 span {
    color: #e43123;
}

.promo-desc {
    font-size: 15px;
    color: #cacaca;
    margin-bottom: 16px;
    line-height: 1.6;
}

.promo-prices {
    display: flex;
    align-items: baseline;
    gap: 12px;
}
.promo-old-price {
    font-size: 16px;
    text-decoration: line-through;
    color: #9ca3af;
}
.promo-new-price {
    font-size: 32px;
    font-weight: 900;
    color: #e43123;
}

.timer {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}
.timer-box {
    background: #2b2c30;
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid #3d3e42;
    text-align: center;
    min-width: 70px;
}
.timer-val {
    font-size: 22px;
    font-weight: 700;
    color: #e43123;
    display: block;
    line-height: 1.2;
}
.timer-lbl {
    font-size: 10px;
    text-transform: uppercase;
    color: #9ca3af;
    letter-spacing: 0.5px;
}

.btn-promo-action {
    background: #e43123;
    color: #ffffff;
    padding: 12px 28px;
    border: none;
    font-size: 15px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    display: inline-block;
    transition: all 0.3s ease;
}
.btn-promo-action:hover {
    background: #c0291e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(228, 49, 35, 0.3);
    color: #ffffff;
}

.promo-visual-side {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
.promo-product-img {
    max-width: 320px;
    max-height: 320px;
    object-fit: contain;
    animation: floatTire 4s ease-in-out infinite;
}

.promo-discount-badge {
    position: absolute;
    top: 0;
    right: 20px;
    background: #e43123;
    color: white;
    font-size: 16px;
    font-weight: 800;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(228, 49, 35, 0.4);
    z-index: 10;
}

@media (max-width: 992px) {
    .promo-banner {
        padding: 30px;
    }
    .promo-content-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    .promo-text {
        max-width: 100%;
    }
    .timer {
        justify-content: center;
    }
    .promo-prices {
        justify-content: center;
    }
    .promo-visual-side {
        width: 100%;
        justify-content: center;
    }
    .promo-product-img {
        max-width: 240px;
        max-height: 240px;
    }
    .promo-discount-badge {
        right: 15%;
    }
}

