/* ==================================================================
   FILE:   public_html/assets/css/rf-footer.css
   ACTION: NEW file (moved out of footer.php on 1 Nov 2026 - same rules, unchanged)
   Trust badges, pre-footer (COD & locations), main footer, newsletter, chat buttons.
   ================================================================== */
    /* =========================================================
       PREMIUM FOOTER VARIABLES (MATCHING HEADER)
    ========================================================= */
    :root {
        --k-bg: var(--main-bg, #2c3e50);       /* Follows Navbar color from Admin Settings */
        --k-bg-dark: color-mix(in srgb, var(--main-bg, #2c3e50) 80%, black);  /* Darker shade for Copyright */
        --k-text: #ecf0f1;
        --k-white: #ffffff;
        --k-accent: var(--accent, #febd69);   /* Follows Accent color from Admin Settings */
        --k-input-bg: #ffffff;
        --k-btn-bg: rgb(234, 174, 97);
        --btt-bg: color-mix(in srgb, var(--main-bg, #2c3e50) 85%, white);     /* Back to top background */
    }

    /* =========================================================
       1. MARKETPLACE SLIDER (ORIGINAL CARD STYLE)
    ========================================================= */
    .pf-trust-area {
        background: var(--site-bg, #fdfdfd);
        padding: 40px 0 40px 0;
        border-top: 1px solid rgba(0,0,0,0.06);
    }

    .trust-section-title {
        text-align: center;
        font-family: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        font-size: 13px;
        font-weight: 700;
        text-transform: uppercase;
        color: #8C7B70;
        margin-bottom: 22px;
        letter-spacing: 2.5px;
    }

    .marketplace-slider-wrap {
        width: 100%;
        overflow: hidden;
        padding: 10px 0 30px 0;
        position: relative;
        -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
        mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    }
    
    .marketplace-track {
        display: flex;
        width: max-content;
        animation: scrollLogos 25s linear infinite;
        gap: 15px;
    }
    
    .marketplace-track:hover { animation-play-state: paused; }
    @keyframes scrollLogos { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

    /* Original Card Style Restored */
    .mp-card {
        background: #fff;
        border: 1px solid #eaeaea;
        border-radius: 8px;
        height: 60px;
        width: 140px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 10px 20px;
        flex-shrink: 0;
        box-shadow: 0 2px 8px rgba(0,0,0,0.02);
        transition: all 0.3s ease;
    }
    .mp-card img {
        max-height: 100%;
        max-width: 100%;
        object-fit: contain;
        filter: grayscale(15%);
        transition: 0.3s;
    }
    .mp-card:hover { transform: translateY(-3px); box-shadow: 0 8px 15px rgba(0,0,0,0.06); border-color: #ddd; }
    .mp-card:hover img { filter: grayscale(0%); }

            /* =========================================================
       2. PRE-FOOTER: CASH ON DELIVERY & LOCATIONS (.rf-pf)
    ========================================================= */
    .rf-pf {
      --rf-maroon: #5C1F2E;
      --rf-gold: #C9A961;
      --rf-gold-dk: #B8954A;
      --rf-dark: #3B2218;
      --rf-muted: #6B5B55;
      --rf-cream: #F6F1E7;
      --rf-paper: #FFFDF9;
      --rf-line: rgba(201, 169, 97, 0.35);
      background: var(--rf-cream);
      padding: 64px 20px;
      border-top: 1px solid var(--rf-line);
      font-family: 'Jost', 'Hind Siliguri', system-ui, sans-serif;
    }
    .rf-pf * { box-sizing: border-box; }
    .rf-pf__panel {
      max-width: 960px;
      margin: 0 auto;
      background: var(--rf-paper);
      border: 1px solid rgba(201, 169, 97, 0.5);
      border-radius: 4px;
    }

    /* Top: Cash on Delivery (maroon highlight) */
    .rf-pf__cod {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 18px;
      padding: 24px 28px;
      text-align: left;
      background: var(--rf-maroon);
      border-radius: 3px 3px 0 0;
    }
    .rf-pf__cod-icon {
      flex: 0 0 54px;
      width: 54px;
      height: 54px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(246, 241, 231, 0.08);
      border: 1px solid rgba(201, 169, 97, 0.7);
      color: var(--rf-cream);
    }
    .rf-pf__cod-icon svg { width: 30px; height: 30px; }
    .rf-pf__cod-title {
      margin: 0;
      font-family: 'Cormorant Garamond', 'Noto Serif Bengali', Georgia, serif;
      font-weight: 600;
      font-size: 26px;
      line-height: 1.15;
      color: var(--rf-cream);
    }
    .rf-pf__cod-title em {
      font-style: italic;
      font-weight: 500;
      color: var(--rf-gold);
    }
    .rf-pf__cod-sub {
      margin: 4px 0 0;
      font-weight: 500;
      font-size: 11.5px;
      letter-spacing: .16em;
      text-transform: uppercase;
      color: rgba(246, 241, 231, 0.72);
    }

    /* Bottom: 2 columns (desktop) */
    .rf-pf__grid {
      position: relative;
      display: grid;
      grid-template-columns: 1fr 1fr;
    }
    .rf-pf__col { padding: 34px 36px; }
    .rf-pf__col + .rf-pf__col { border-left: 1px solid var(--rf-line); }
    .rf-pf__label {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 14px;
      font-weight: 600;
      font-size: 11.5px;
      letter-spacing: .24em;
      text-transform: uppercase;
      color: var(--rf-gold-dk);
    }
    .rf-pf__label svg { width: 18px; height: 18px; color: var(--rf-maroon); }
    .rf-pf__title {
      margin: 0 0 8px;
      font-family: 'Cormorant Garamond', 'Noto Serif Bengali', Georgia, serif;
      font-weight: 600;
      font-size: 24px;
      line-height: 1.2;
      color: var(--rf-dark);
    }
    .rf-pf__addr {
      margin: 0 0 16px;
      font-style: normal;
      font-size: 14.5px;
      line-height: 1.7;
      color: var(--rf-muted);
    }
    .rf-pf__link {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding-bottom: 4px;
      border-bottom: 1px solid var(--rf-gold);
      text-decoration: none !important;
      font-weight: 600;
      font-size: 11.5px;
      letter-spacing: .16em;
      text-transform: uppercase;
      color: var(--rf-maroon) !important;
      transition: color .2s ease, border-color .2s ease;
    }
    .rf-pf__link:hover, .rf-pf__link:focus {
      text-decoration: none !important;
      color: var(--rf-gold-dk) !important;
      border-bottom-color: var(--rf-maroon);
    }
    .rf-pf__link svg { width: 14px; height: 14px; transition: transform .25s ease; }
    .rf-pf__link:hover svg { transform: translateX(3px); }

    .rf-pf__dots { display: none; }

    /* Tablet: comfortable spacing */
    @media (min-width: 601px) and (max-width: 768px) {
      .rf-pf { padding: 40px 16px; }
      .rf-pf__col { padding: 24px 20px; }
      .rf-pf__cod { padding: 20px; }
    }

    /* Phone: compact + side-by-side auto slider */
    @media (max-width: 600px) {
      .rf-pf { padding: 32px 14px; }
      .rf-pf__cod { gap: 12px; padding: 18px 16px; justify-content: flex-start; }
      .rf-pf__cod-icon { flex: 0 0 42px; width: 42px; height: 42px; }
      .rf-pf__cod-icon svg { width: 20px; height: 20px; }
      .rf-pf__cod-title { font-size: 19px; }
      .rf-pf__cod-sub { font-size: 9.5px; letter-spacing: .1em; }

      .rf-pf__grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
      }
      .rf-pf__grid::-webkit-scrollbar { display: none; }
      .rf-pf__col { flex: 0 0 100%; scroll-snap-align: start; padding: 20px 18px 16px; }
      .rf-pf__col + .rf-pf__col { border-left: none; }
      .rf-pf__label { margin-bottom: 8px; font-size: 10.5px; }
      .rf-pf__title { font-size: 20px; margin-bottom: 4px; }
      .rf-pf__addr { font-size: 13.5px; line-height: 1.6; margin-bottom: 10px; }

      .rf-pf__dots { display: flex; justify-content: center; gap: 8px; padding: 0 0 16px; }
      .rf-pf__dot {
        width: 7px;
        height: 7px;
        padding: 0;
        border: 1px solid var(--rf-gold);
        border-radius: 50%;
        background: transparent;
        cursor: pointer;
        outline: none;
        transition: background .25s ease, width .25s ease, border-color .25s ease;
      }
      .rf-pf__dot.is-active {
        background: var(--rf-maroon);
        border-color: var(--rf-maroon);
        width: 20px;
        border-radius: 4px;
      }
    }
/* =========================================================
       4. AMAZON STYLE "BACK TO TOP" BUTTON
    ========================================================= */
    .amazon-btt {
        background-color: var(--btt-bg);
        color: white;
        text-align: center;
        padding: 16px 0;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        width: 100%;
        display: block;
        transition: background-color 0.2s;
        letter-spacing: 0.5px;
    }
    .amazon-btt:hover {
        background-color: #475a6f;
    }

    /* =========================================================
       5. DARK FOOTER AREA
    ========================================================= */
    .premium-footer-wrap {
        background-color: var(--k-bg);
        color: var(--k-text);
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        padding-top: 40px;
    }

    /* Newsletter Section (Mobile Responsive Fix Included) */
    .pf-newsletter { text-align: center; max-width: 800px; margin: 0 auto 40px auto; padding: 0 20px; }
    .pf-newsletter h2 { font-size: 20px; color: var(--k-white); margin-bottom: 25px; font-weight: 600; }
    .pf-nl-form { display: flex; flex-direction: column; gap: 15px; max-width: 500px; margin: 0 auto; }
    
    .pf-input-group { 
        display: flex; 
        background: var(--k-input-bg); 
        border-radius: 6px; 
        overflow: hidden; 
        width: 100%;
        box-sizing: border-box;
    }
    .pf-input-group input { 
        flex: 1; 
        border: none; 
        padding: 12px 15px; 
        font-size: 14px; 
        outline: none; 
        color: #333; 
        min-width: 0; 
    }
    .pf-input-group button { 
        background: rgb(234, 174, 97) !important; 
        border: none; 
        padding: 0 20px; 
        color: #111; 
        cursor: pointer; 
        transition: 0.3s; 
        font-size: 16px; 
        font-weight: bold;
        white-space: nowrap; 
        flex-shrink: 0; 
    }
    .pf-input-group button:hover { background: rgb(215, 155, 78) !important; }

    @media (max-width: 768px) {
        .pf-input-group button { padding: 0 15px; font-size: 14px; }
    }

    /* Links Row & Accordion */
    .pf-links-row { border-top: 1px solid rgba(255,255,255,0.05); padding: 40px 0 20px 0; }
    
    /* SEO Footer Widget Title Fix */
    .footer-widget-title {
        color: var(--k-white);
        font-size: 16px;
        font-weight: 700;
        text-transform: uppercase;
        margin-bottom: 20px;
        letter-spacing: 0.5px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .accordion-header {
        color: var(--k-white);
        font-size: 16px;
        font-weight: 700;
        text-transform: uppercase;
        margin-bottom: 20px;
        letter-spacing: 0.5px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .accordion-header i { display: none; } 

    .accordion-content { list-style: none; padding: 0; margin: 0; }
    .accordion-content li { margin-bottom: 12px; }
    .accordion-content li a { color: #bdc3c7; text-decoration: none; font-size: 14px; transition: 0.2s; display: inline-flex; align-items: center; gap: 8px;}
    .accordion-content li a i { font-size: 16px; width: 16px; text-align: center; }
    .accordion-content li a:hover { color: var(--k-white); text-decoration: underline; }

    /* --- NEW SEO SOCIAL ICONS ROW --- */
    .pf-social-icons-row { 
        display: flex; 
        justify-content: center; 
        gap: 15px; 
        margin-top: 30px; 
        margin-bottom: 40px; 
        flex-wrap: wrap;
    }
    .pf-social-circle {
        width: 44px;
        height: 44px;
        background: rgba(255,255,255,0.1);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 20px;
        transition: all 0.3s ease;
        text-decoration: none !important;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }
    .pf-social-circle:hover {
        background: var(--k-accent);
        color: #111;
        transform: translateY(-4px);
        box-shadow: 0 6px 15px rgba(254, 189, 105, 0.4);
    }
    .pf-tiktok-svg {
        width: 18px;
        height: 18px;
        fill: currentColor;
    }

    .pf-bottom { background: var(--k-bg-dark); padding: 25px 0; text-align: center; font-size: 13px; color: #95a5a6; }
    .pf-bottom p { margin: 0; }

    /* =========================================================
       MOBILE ACCORDION LOGIC
    ========================================================= */
    @media (max-width: 768px) {
        .pf-links-row { padding: 20px 0; }
        .pf-widget { margin-bottom: 10px; }
        
        .accordion-header {
            cursor: pointer;
            border-bottom: 1px solid rgba(255,255,255,0.05);
            padding-bottom: 15px;
            margin-bottom: 0;
            font-size: 15px;
        }
        .accordion-header i { display: block; transition: transform 0.3s ease; }
        .accordion-header.active i { transform: rotate(180deg); color: var(--k-accent); }
        .accordion-content { display: none; padding: 15px 0 20px 0; }
    }

    /* =========================================================
       ROOT FOODS — LUXURY FLOATING SUPPORT WIDGET
    ========================================================= */
    .rc-chat-wrap { 
        position: fixed; 
        right: 20px; 
        bottom: 85px; 
        z-index: 999998; 
        display: flex; 
        flex-direction: column; 
        align-items: center; 
        font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    }
    .rc-chat-actions { 
        display: flex; 
        flex-direction: column; 
        align-items: center;
        gap: 12px; 
        margin-bottom: 12px; 
        opacity: 0; 
        visibility: hidden; 
        transform: translateY(20px); 
        transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
        pointer-events: none;
    }
    .rc-chat-wrap.open .rc-chat-actions { 
        opacity: 1; 
        visibility: visible; 
        transform: translateY(0); 
        pointer-events: auto;
    }
    .rc-chat-btn { 
        width: 44px; 
        height: 44px; 
        border-radius: 50%; 
        border: none; 
        cursor: pointer; 
        display: inline-flex; 
        align-items: center; 
        justify-content: center; 
        box-shadow: 0 4px 12px rgba(0,0,0,0.18); 
        transition: transform 0.2s ease, box-shadow 0.2s ease; 
    }
    .rc-chat-btn:hover { 
        transform: scale(1.08); 
        box-shadow: 0 6px 16px rgba(0,0,0,0.25); 
    }
    .rc-chat-btn:active { transform: scale(0.92); }
    .rc-chat-btn svg { fill: #fff; }

    /* Main Toggle Button: Burgundy & Gold with Smiling Bubble */
    .rc-chat-toggle { 
        width: 56px; 
        height: 56px; 
        border-radius: 50%; 
        border: 1.5px solid rgba(229, 169, 60, 0.55); 
        cursor: pointer; 
        background: linear-gradient(135deg, #541E2A 0%, #3D121D 100%); 
        display: inline-flex; 
        align-items: center; 
        justify-content: center; 
        box-shadow: 0 8px 24px rgba(61, 18, 29, 0.35); 
        transition: transform 0.2s ease, box-shadow 0.3s ease, border-color 0.2s ease; 
        flex-shrink: 0;
        padding: 0;
    }
    .rc-chat-toggle:hover { 
        transform: translateY(-2px); 
        box-shadow: 0 10px 28px rgba(61, 18, 29, 0.45); 
        border-color: rgba(229, 169, 60, 0.85);
    }
    .rc-chat-toggle:active { transform: scale(0.92); }
    
    .rc-icon-chat { 
        width: 28px; 
        height: 28px; 
        transition: transform 0.25s ease; 
    }
    .rc-chat-toggle:hover .rc-icon-chat {
        transform: scale(1.06);
    }
    .rc-icon-close { 
        width: 24px; 
        height: 24px; 
        stroke: #E5A93C; 
        fill: none; 
        display: none; 
    }
    .rc-chat-wrap.open .rc-icon-chat { display: none; }
    .rc-chat-wrap.open .rc-icon-close { display: block; }
    
    /* MOBILE ONLY: Lift above sticky Add to Cart / Order Now bar & make minimal */
    @media (max-width: 768px) { 
        .rc-chat-wrap { 
            right: 14px; 
            bottom: 92px; /* Floats cleanly above sticky bottom bars */
            bottom: calc(92px + env(safe-area-inset-bottom)); /* iPhone home-bar space */
        }
        .rc-chat-actions {
            gap: 10px;
            margin-bottom: 10px;
        }
        .rc-chat-btn {
            width: 38px;
            height: 38px;
        }
        .rc-chat-btn svg {
            width: 17px !important;
            height: 17px !important;
        }
        .rc-chat-toggle { 
            width: 46px; 
            height: 46px; 
            box-shadow: 0 6px 18px rgba(61, 18, 29, 0.4);
        }
        .rc-icon-chat { 
            width: 22px; 
            height: 22px; 
        }
        .rc-icon-close {
            width: 20px;
            height: 20px;
        }
    }
    /* Account pages (phone app tab bar at the bottom): float just above the tab bar */
    @media (max-width: 991px) {
        .rc-chat-wrap.rc-above-tabs { right: 14px; bottom: calc(78px + env(safe-area-inset-bottom)); }
        .rc-chat-wrap.rc-hide-mobile { display: none; }   /* ticket chat screen has its own message box */
    }
    .amazon-btt:focus-visible, .rc-chat-btn:focus-visible, .rc-chat-toggle:focus-visible { outline: 2px solid var(--k-accent); outline-offset: 2px; }
