/**
 * Ride Landing Page Styles
 * 
 * Styles for /ride/{slug} pages.
 * Loaded via ZenCart's template CSS auto-loader (alphabetical order by filename).
 */

/* ═══ Hero ═══ */
.dc-ride-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 280px;
    display: flex;
    align-items: center;
}
.dc-ride-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.7) 100%);
    z-index: 0;
}
.dc-ride-hero .container {
    position: relative;
    z-index: 1;
}
.dc-ride-hero h1 {
    font-size: 2.4rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.dc-ride-hero-stats .badge {
    font-size: .85rem;
    padding: .45em .75em;
}

/* ═══ Sticky Navigation ═══ */
.dc-ride-nav {
    border-bottom: 1px solid #e5e5e5;
}
.dc-ride-nav-pills .nav-link {
    color: var(--secondary, #666);
    font-weight: 500;
    font-size: .9rem;
    padding: .5rem 1rem;
    border-radius: 20px;
    white-space: nowrap;
    transition: all .2s ease;
}
.dc-ride-nav-pills .nav-link:hover {
    color: var(--primary, #c00);
    background: rgba(200,0,0,0.06);
}
.dc-ride-nav-pills .nav-link.active {
    color: #fff;
    background: var(--primary, #c00);
}

/* ═══ About Section ═══ */
.dc-ride-image-wrapper {
    border: 1px solid #eee;
}
.dc-ride-image-wrapper img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}
.dc-ride-placeholder {
    border-radius: .5rem;
}
.dc-ride-description {
    color: #555;
}

/* ═══ Specs Table ═══ */
.dc-specs-table tr td:first-child {
    color: #333;
    font-weight: 600;
    padding-left: 0;
    width: 160px;
}
.dc-specs-table tr td:last-child {
    color: #666;
}
.dc-specs-table tr {
    border-bottom: 1px solid #f0f0f0;
}

/* ═══ Product Sections ═══ */
.dc-ride-products-section {
    border-top: 1px solid #f0f0f0;
}
.dc-ride-products-section h3 svg {
    vertical-align: -4px;
}
.dc-ride-product-grid .card-product {
    height: 100%;
}
.dc-ride-product-grid .card-product-wrapper {
    aspect-ratio: 1 / 1;
    overflow: hidden;
}
.dc-ride-product-grid .card-product-wrapper .product-img {
    height: 100%;
}
.dc-ride-product-grid .img-product,
.dc-ride-product-grid .img-hover {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ═══ FAQ Accordion ═══ */
.dc-ride-accordion .accordion-item {
    border: 1px solid #eee;
    border-radius: .5rem !important;
    margin-bottom: .75rem;
    overflow: hidden;
}
.dc-ride-accordion .accordion-button {
    font-weight: 600;
    font-size: 1rem;
    padding: 1rem 1.25rem;
    background: #fff;
    color: #333;
}
.dc-ride-accordion .accordion-button:not(.collapsed) {
    color: var(--primary, #c00);
    background: #fafafa;
    box-shadow: none;
}
.dc-ride-accordion .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23333'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
.dc-ride-accordion .accordion-body {
    font-size: .95rem;
    line-height: 1.7;
    padding: .75rem 1.25rem 1.25rem;
}

/* ═══ CTA Section ═══ */
.dc-ride-cta .dc-set-ride-btn {
    font-size: .95rem;
}

/* ═══ Responsive ═══ */
@media (max-width: 991.98px) {
    .dc-ride-hero h1 {
        font-size: 1.75rem;
    }
    .dc-ride-hero-stats .badge {
        font-size: .75rem;
    }
}
@media (max-width: 575.98px) {
    .dc-ride-hero h1 {
        font-size: 1.4rem;
    }
    .dc-ride-nav-pills .nav-link {
        font-size: .8rem;
        padding: .4rem .75rem;
    }
    .dc-specs-table tr td:first-child {
        width: 120px;
        font-size: .85rem;
    }
}
