/**
 * Add any custom CSS here.
 *
 * This file will be loaded after all other theme stylesheets.
 */

/* ── Scrolling Top Bar ── */
.rdtf-topbar {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    overflow: hidden;
    white-space: nowrap;
}

.rdtf-topbar a {
    color: #ff6b35;
    font-weight: 600;
    text-decoration: none;
}

.rdtf-topbar a:hover {
    color: #fff;
}

.rdtf-topbar::after {
    content: '';
    display: block;
    height: 3px;
    background: linear-gradient(90deg, #ff6b35, #e63946, #ff6b35);
}

.rdtf-topbar-track {
    display: inline-flex;
    padding: 0.5rem 0;
    animation: rdtf-scroll 45s linear infinite;
}

.rdtf-topbar-content {
    display: inline-block;
    flex-shrink: 0;
}

@keyframes rdtf-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.rdtf-topbar:hover .rdtf-topbar-track {
    animation-play-state: paused;
}

.rdtf-topbar-sticky {
    position: sticky;
    top: 0;
    z-index: 9999;
}

/* ── Custom Footer ──
   Dark footer with 4-column grid: Brand | Quick Links | Services | Contact
   Overrides default Storefront footer via PHP hook removal. */

/* Hide default Storefront footer and Elementor HF footer — replaced by .rdtf-footer.
   .site-footer = Storefront default, footer[itemscope] = Elementor HF builder footer (post 104). */
.site-footer,
footer.elementor-location-footer,
footer[itemscope][itemtype*="WPFooter"] {
    display: none !important;
}

/* Custom footer wrapper */
.rdtf-footer {
    background: #1a1a1a;
    color: rgba(255, 255, 255, 0.7);
}

/* Gradient accent bar — orange brand stripe above footer content */
.rdtf-footer-accent {
    height: 3px;
    background: linear-gradient(90deg, #ff6b35, #e63946, #ff6b35);
}

/* 4-column grid layout — collapses to 2 columns on tablet, 1 on mobile */
.rdtf-footer-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    padding: 3rem 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Column padding with subtle right-border dividers */
.rdtf-footer-brand,
.rdtf-footer-col {
    padding: 1.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.07);
}

/* Remove border on last column */
.rdtf-footer-inner > :last-child {
    border-right: none;
}

/* Brand column — flush left */
.rdtf-footer-brand {
    padding-left: 0;
}

/* Footer logo — inverted to white for dark background */
.rdtf-footer-logo {
    display: inline-block;
    margin-bottom: 1rem;
}

/* Footer logo — keep original colors, no white inversion */
.rdtf-footer-logo-img,
.rdtf-footer-logo img {
    height: 36px;
    width: auto;
}

/* Brand tagline — subdued text */
.rdtf-footer-brand > p {
    font-size: 0.85rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1rem;
}

/* Column headings — uppercase labels with bottom rule */
.rdtf-footer-col h4 {
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Footer links — muted white, brighten on hover */
.rdtf-footer a,
.rdtf-footer-col a,
.rdtf-footer-brand a {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.rdtf-footer a:hover,
.rdtf-footer-col a:hover,
.rdtf-footer-brand a:hover {
    color: #fff !important;
}

.rdtf-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rdtf-footer-col li {
    margin-bottom: 0.6rem;
}

/* Contact column — icon + text flex rows */
.rdtf-footer-contact {
    list-style: none;
    padding: 0;
}

.rdtf-footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.85rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.5;
}

/* Contact icons — prevent shrinking, align with first line of text */
.rdtf-footer-contact svg {
    flex-shrink: 0;
    margin-top: 2px;
    opacity: 0.5;
}

.rdtf-footer-contact a {
    font-size: 0.85rem !important;
}

/* Social media icon circles */
.rdtf-footer-social {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.rdtf-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.5) !important;
    transition: all 0.2s ease;
}

/* Hover fills with brand orange and brightens icon */
.rdtf-footer-social a:hover {
    background: #ff6b35;
    color: #fff !important;
}

/* Copyright bottom bar — subtle separator and muted text */
.rdtf-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem 2rem;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
    max-width: 1200px;
    margin: 0 auto;
}

/* ── Footer Responsive ── */

/* Tablet: 2-column grid */
@media (max-width: 768px) {
    .rdtf-footer-inner {
        grid-template-columns: repeat(2, 1fr);
        padding: 2rem 1.5rem 1rem;
    }

    /* Remove right border on 2nd and 4th columns in 2-col layout */
    .rdtf-footer-inner > :nth-child(2n) {
        border-right: none;
    }

    /* Add bottom border on first row */
    .rdtf-footer-brand,
    .rdtf-footer-inner > :nth-child(2) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
        padding-bottom: 2rem;
        margin-bottom: 1rem;
    }
}

/* Mobile: single column stack */
@media (max-width: 480px) {
    .rdtf-footer-inner {
        grid-template-columns: 1fr;
        padding: 2rem 1rem 1rem;
    }

    .rdtf-footer-brand,
    .rdtf-footer-col {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
        padding: 1.5rem 0;
    }

    .rdtf-footer-inner > :last-child {
        border-bottom: none;
    }
}

/* ── Shop Page ── */

/* Light background to give the page some depth */
.post-type-archive-product #content,
.tax-product_cat #content {
    background: #f7f7f7;
}

/* Shop page title */
.woocommerce-products-header__title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

/* Result count + sorting — flex row, left-aligned, vertically centered */
.storefront-sorting {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.woocommerce .woocommerce-ordering {
    float: none;
    margin: 0;
}

.woocommerce .woocommerce-result-count {
    float: none;
    margin: 0;
    font-size: 0.85rem;
    color: #999;
}

/* Sort dropdown — styled select */
.woocommerce-ordering select.orderby {
    appearance: none;
    -webkit-appearance: none;
    background: #fff 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='%23999' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 0.5rem 2.2rem 0.5rem 0.85rem;
    font-size: 0.85rem;
    color: #333;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.woocommerce-ordering select.orderby:hover {
    border-color: #bbb;
}

.woocommerce-ordering select.orderby:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.12);
}

/* ── Product Cards ── */

/* Card container — white card with subtle shadow, rounded corners */
.woocommerce ul.products li.product {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    padding: 0 !important;
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Lift card on hover */
.woocommerce ul.products li.product:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Product image — remove any borders, fill the card width */
.woocommerce ul.products li.product a img {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    border-radius: 12px 12px 0 0;
    margin: 0 !important;
    width: 100%;
    display: block;
}

/* Product title — clean typography inside card */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a1a;
    padding: 1rem 1rem 0.75rem;
    margin: 0;
    text-align: center;
    line-height: 1.4;
}

/* Product price — styled inside card */
.woocommerce ul.products li.product .price {
    padding: 0 1rem 1rem;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    color: #ff6b35;
}

/* Product link — remove default underlines */
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
    text-decoration: none;
}

/* ── Single Product Page cleanup ── */

/* Remove any blue image borders on single product pages too */
.woocommerce div.product div.images img {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}