/* ============================================================
   REDESIGN CSS â€” Homepage UI/UX Overhaul
   Design System: Green-toned, Poppins + Playfair Display
   Reference: tzssbd.com style â€” clean, minimal, white
   ============================================================ */
/* Google Fonts moved to <link> tags in master.blade.php for faster parallel loading */

/* ---------- ROOT VARIABLES ---------- */
:root {
    --font-body: 'Poppins', 'Hind Siliguri', sans-serif;
    --font-heading: 'Playfair Display', 'Hind Siliguri', serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, .08);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, .12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, .16);
    --transition: 320ms cubic-bezier(.4, 0, .2, 1);
}

/* ---------- BASE RESET ---------- */
body.redesigned {
    font-family: var(--font-body);
    color: var(--text-color);
    background: #fafafa;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overscroll-behavior: none;
}

/* hide old legacy elements */
.redesigned header#navbar_top>.mobile-header,
.redesigned header#navbar_top>.mobile-search,
.redesigned header#navbar_top>.main-header,
.redesigned .sidebar-menu,
.redesigned .bottoads_area,
.redesigned .category-slider,
.redesigned .footer_top_ads_area,
.redesigned .customer-review,
.redesigned .footer_nav {
    display: none !important;
}

/* ---------- TOPBAR (hidden by default for TZSS style) ---------- */
.rd-topbar {
    display: none;
}

/* ---------- HEADER (TZSS style: clean white) ---------- */
.rd-header {
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow var(--transition);
}

.rd-header.scrolled {
    box-shadow: var(--shadow-md);
}

.rd-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px 20px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 32px;
}

.rd-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.rd-logo {
    flex-shrink: 0;
}

.rd-logo img {
    height: 42px;
    width: auto;
}

/* Search bar */
.rd-search {
    max-width: 520px;
    width: 100%;
    position: relative;
    justify-self: center;
    min-width: 0;
}

.rd-search form,
.rd-search input {
    min-width: 0;
}

.rd-search form {
    display: flex;
    align-items: center;
    width: 100%;
    border: 2px solid #f3f4f6;
    border-radius: var(--radius-full);
    background: #f9fafb;
    transition: all var(--transition);
    padding: 3px 4px 3px 0;
}

.rd-search-toggle,
.rd-search-close {
    display: none;
}

.rd-search form:focus-within {
    border-color: #bbf7d0;
    background: #fff;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.08);
}

.rd-search input {
    flex: 1;
    padding: 10px 24px;
    border: 0;
    font-size: 15px;
    font-family: var(--font-body);
    outline: none;
    background: transparent;
    color: #111827;
}

.rd-search input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.rd-search .search-btn {
    background: linear-gradient(135deg, var(--primary-color, #22c55e), var(--secondary-color, #16a34a));
    color: #fff;
    border: 0;
    padding: 0 24px;
    height: 36px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font-body);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 4px rgba(34, 197, 94, 0.2);
}

.rd-search .search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(34, 197, 94, 0.3);
}

.rd-search .search-btn svg {
    width: 16px;
    height: 16px;
}

.rd-search-results {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 999;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    max-height: 400px;
    overflow-y: auto;
    display: none;
}

/* Header actions */
.rd-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
}

.rd-bdt-badge {
    background: #dcfce7;
    color: #22c55e;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-style: italic;
}

.rd-header-actions .action-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4b5563;
    text-decoration: none;
    background: #f9fafb;
    border: 1px solid #f3f4f6;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    transition: all var(--transition);
    position: relative;
}

.rd-header-actions .action-icon:hover {
    color: var(--primary-color, #22c55e);
    background: #dcfce7;
    border-color: #bbf7d0;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(34, 197, 94, 0.1);
}

.rd-header-actions .action-icon svg {
    width: 22px;
    height: 22px;
}

.rd-cart-badge {
    position: absolute;
    top: -4px;
    right: -6px;
    background: #f97316;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border-radius: var(--radius-full);
    line-height: 1;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(249, 115, 22, 0.3);
}

.rd-header-actions .login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary-color, #22c55e), var(--secondary-color, #16a34a));
    color: #fff;
    text-decoration: none;
    padding: 10px 24px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-body);
    transition: all var(--transition);
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 42px;
}

.rd-header-actions .login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.35);
    color: #fff;
}

/* Cart hover dropdown */
.cshort-summary {
    position: absolute;
    top: 48px;
    right: 0;
    width: 360px;
    max-height: 460px;
    z-index: 999;
    background: #fff;
    padding: 12px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

#cart-qty:hover .cshort-summary,
.action-icon:hover .cshort-summary {
    opacity: 1;
    visibility: visible;
    top: 42px;
}

/* ---------- NAVIGATION BAR (TZSS style: simple text links) ---------- */
.rd-catnav {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
    z-index: 900;
    display: none;
}

@media(min-width:992px) {
    .rd-catnav {
        display: block;
    }
}

.rd-catnav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
}

.rd-catnav-item {
    position: relative;
}

.rd-catnav-item>a {
    display: block;
    padding: 14px 20px;
    color: #4b5563;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: color var(--transition);
    font-family: var(--font-body);
    position: relative;
}

.rd-catnav-item>a::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color, #22c55e), #f97316);
    transition: width var(--transition);
    border-radius: 3px;
}

.rd-catnav-item>a:hover,
.rd-catnav-item:hover>a {
    color: #111827;
}

.rd-catnav-item:hover>a::after {
    width: 60%;
}

/* Dropdown */
.rd-catnav-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 240px;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    z-index: 910;
}

.rd-catnav-item:hover>.rd-catnav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.rd-catnav-dropdown a {
    display: block;
    padding: 9px 20px;
    color: #374151;
    font-size: 13px;
    text-decoration: none;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    transition: background var(--transition), color var(--transition);
}

.rd-catnav-dropdown a:hover {
    background: #f9fafb;
    color: var(--primary-color);
}

/* Child dropdown */
.rd-sub-item {
    position: relative;
}

.rd-child-dropdown {
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 200px;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(8px);
    transition: all var(--transition);
}

.rd-sub-item:hover>.rd-child-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* ---------- HERO SLIDER ---------- */
.rd-hero {
    max-width: 1280px;
    margin: 24px auto;
    padding: 0 20px;
}

.rd-slider-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    aspect-ratio: 12/5;
    cursor: grab;
    touch-action: pan-y;
    -webkit-user-select: none;
    user-select: none;
}

.rd-slider-container:active {
    cursor: grabbing;
}

.rd-slider-track {
    display: flex;
    transition: transform 600ms cubic-bezier(.25, .8, .25, 1);
    height: 100%;
}

.rd-slider-track .slide {
    min-width: 100%;
    height: 100%;
}

.rd-slider-track .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rd-slider-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.rd-slider-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .5);
    border: 0;
    cursor: pointer;
    transition: all var(--transition);
}

.rd-slider-dots .dot.active {
    background: #fff;
    transform: scale(1.3);
}

/* Slider arrows */
.rd-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) scale(0.85);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #1f2937;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 300ms, transform 300ms, background 200ms;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.rd-slider-arrow svg {
    width: 22px;
    height: 22px;
}

.rd-arrow-prev {
    left: 14px;
}

.rd-arrow-next {
    right: 14px;
}

.rd-slider-container:hover .rd-slider-arrow {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

.rd-slider-arrow:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.rd-slider-arrow:active {
    transform: translateY(-50%) scale(0.92);
}

/* ---------- SECTION HEADERS ---------- */
.rd-section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    padding-bottom: 0;
    border-bottom: none;
    text-align: center;
    position: relative;
}

.rd-section-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 12px 0;
    font-family: var(--font-heading);
    font-style: italic;
    text-align: center;
    position: relative;
    display: inline-block;
    line-height: 1.4;
    padding-top: 8px;
    padding-right: 12px;
    padding-bottom: 8px;
    background: linear-gradient(90deg, #1f2937, var(--primary-color, #22c55e), #1f2937);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: textGradient 4s linear infinite;
}

@keyframes textGradient {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

.rd-section-header .accent-bar {
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color, #22c55e), #f97316);
    border-radius: var(--radius-full);
    margin: 0 auto;
    box-shadow: 0 2px 4px rgba(249, 115, 22, 0.3);
}

.rd-section-header .view-more {
    display: none;
}

.rd-section-header .view-more:hover {
    color: var(--secondary-color, #16a34a);
    text-decoration: underline;
}

.rd-cat-desc {
    margin: -16px auto 32px auto;
    max-width: 600px;
    color: #374151;
    font-size: 17px;
    line-height: 1.6;
    text-align: center;
    font-family: var(--font-body);
    font-weight: 500;
    letter-spacing: 0.3px;
    position: relative;
    padding: 0 16px;
}

.rd-cat-desc * {
    text-align: center !important;
    margin-bottom: 0;
    color: inherit;
    font-weight: inherit;
}

/* ---------- PRODUCT GRID ---------- */
.rd-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.rd-product-grid>* {
    width: auto;
}

@media(min-width:576px) {
    .rd-product-grid>* {
        width: auto;
    }
}

@media(min-width:768px) {
    .rd-product-grid>* {
        width: auto;
    }
}

@media(min-width:1024px) {
    .rd-product-grid>* {
        width: auto;
    }
}

@media(min-width:1280px) {
    .rd-product-grid>* {
        width: auto;
    }
}

/* Home Product Grid Centering */
.rd-product-grid.home-product-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.rd-product-grid.home-product-grid>* {
    width: calc(20% - 12.8px);
}

@media (max-width: 1200px) {
    .rd-product-grid.home-product-grid>* {
        width: calc(25% - 12px);
    }
}

@media (max-width: 991px) {
    .rd-product-grid.home-product-grid>* {
        width: calc(33.333% - 10.66px);
    }
}

@media (max-width: 767px) {
    .rd-product-grid.home-product-grid>* {
        width: calc(50% - 8px);
    }
}

/* ---------- PRODUCT CARD ---------- */
.rd-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    position: relative;
    display: block;
}

.rd-card .full-link {
    position: absolute;
    inset: 0;
    z-index: 10;
}

.rd-card .card-overlay,
.rd-card .bottom-cart-btn,
.rd-card .card-title a,
.rd-card form {
    position: relative;
    z-index: 20;
}

.rd-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-sm);
}

.rd-card .discount-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 5;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    line-height: 1.2;
}

.rd-card .card-img {
    aspect-ratio: 1;
    overflow: hidden;
    position: relative;
    background: linear-gradient(to bottom right, var(--muted-color), var(--secondary-color));
}

.rd-card .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 0;
    user-select: none;
    transition: transform 500ms cubic-bezier(.4, 0, .2, 1);
}

.rd-card:hover .card-img img {
    transform: scale(1.1);
}

.rd-card .card-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent, transparent);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 16px;
    opacity: 0;
    transition: opacity 300ms;
    pointer-events: none;
}

.rd-card:hover .card-overlay {
    opacity: 1;
    pointer-events: auto;
}

.rd-card .btn-inner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-color);
    color: #fff;
    padding: 10px 24px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    font-family: var(--font-body);
    border: none;
    cursor: pointer;
    transform: translateY(16px);
    transition: transform 300ms;
}

.rd-card:hover .btn-inner {
    transform: translateY(0);
}

.rd-card .btn-inner svg {
    width: 14px;
    height: 14px;
}

.rd-card .card-body {
    padding: 10px 14px;
}

.rd-card .card-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 6px;
}

.rd-card .card-stars svg {
    width: 12px;
    height: 12px;
}

.rd-card .card-stars .filled {
    fill: rgba(34, 197, 94, 0.8);
    color: rgba(34, 197, 94, 0.8);
}

.rd-card .card-stars .empty {
    fill: #d4d4d8;
    color: #d4d4d8;
}

.rd-card .bottom-cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background 300ms, transform 300ms;
    flex-shrink: 0;
    margin-left: 8px;
}

.rd-card .bottom-cart-btn:hover {
    background: var(--secondary-color, #16a34a);
    transform: scale(1.1);
}

.rd-card .card-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 8px;
    font-family: var(--font-body);
    color: var(--text-color);
}

.rd-card .card-title a {
    color: inherit;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 200ms;
}

.rd-card:hover .card-title a {
    color: var(--primary-color);
}

.rd-card .card-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.rd-card .card-price .new-price {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
}

.rd-card .card-price .old-price {
    font-size: 12px;
    color: #9ca3af;
    text-decoration: line-through;
}

/* ---------- HOMEPAGE SECTION ---------- */
.rd-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 20px;
}

/* ---------- HOW TO ORDER ---------- */
.rd-how-to-order {
    background: #f9fafb;
    padding: 48px 0;
}

.rd-how-to-order-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.rd-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 24px;
}

.rd-step-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 32px 24px;
    text-align: center;
    border: 1px solid #e5e7eb;
    transition: transform var(--transition), box-shadow var(--transition);
}

.rd-step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.rd-step-num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color, #16a34a));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 16px;
}

.rd-step-card h3 {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px;
    color: #1f2937;
}

.rd-step-card p {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
    text-align: center;
}

.rd-video-embed {
    margin-top: 32px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16/9;
}

.rd-video-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ---------- CHAT WIDGET ---------- */
.rd-chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    transition: all 0.3s ease-out;
}

.rd-chat-widget.hide-chat {
    transform: translateY(15px);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.rd-chat-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color, #16a34a));
    color: #fff;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition), box-shadow var(--transition);
    text-decoration: none;
    font-family: var(--font-body);
}

.rd-chat-pill:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
    color: #fff;
}

.rd-chat-options {
    display: none;
    flex-direction: column;
    gap: 8px;
    background: #fff;
    border-radius: var(--radius-md);
    padding: 12px;
    box-shadow: var(--shadow-lg);
    border: 1px solid #e5e7eb;
}

.rd-chat-options.open {
    display: flex;
}

.rd-chat-options a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    transition: background var(--transition);
}

.rd-chat-options a:hover {
    background: #f9fafb;
}

/* ---------- MOBILE BOTTOM NAV ---------- */
.rd-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9990;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.15);
    padding: 10px 0 calc(10px + env(safe-area-inset-bottom, 0px));
    border-radius: 24px 24px 0 0;
}

.rd-bottom-nav-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
    padding: 0 16px;
}

.rd-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    color: #9ca3af;
    font-size: 11px;
    font-weight: 500;
    transition: all var(--transition, 0.3s cubic-bezier(0.4, 0, 0.2, 1));
    position: relative;
    -webkit-tap-highlight-color: transparent;
    flex: 1;
}

.rd-bottom-nav a span {
    white-space: nowrap;
    line-height: 1;
    font-family: var(--font-body, inherit);
}

.rd-bottom-nav a.active,
.rd-bottom-nav a:hover {
    color: var(--primary-color, #22c55e);
}

.rd-bottom-nav a .icon-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    transition: transform var(--transition, 0.3s cubic-bezier(0.4, 0, 0.2, 1));
}

.rd-bottom-nav a svg {
    width: 22px;
    height: 22px;
    stroke-width: 2px;
    transition: stroke-width 0.3s;
}

.rd-bottom-nav a.active .icon-wrapper {
    transform: translateY(-2px);
}

.rd-bottom-nav a.active svg {
    stroke-width: 2.5px;
}

.rd-bottom-nav .nav-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    height: 18px;
    min-width: 18px;
    padding: 0 5px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.3);
}

/* ---------- HAMBURGER ---------- */
.rd-header .rd-hamburger.toggle {
    display: none !important;
    background: none;
    border: 0;
    cursor: pointer;
    color: #374151;
    margin: 0 !important;
    padding: 4px !important;
    line-height: 1 !important;
    align-self: center !important;
    flex-shrink: 0;
    min-height: 0 !important;
    float: none !important;
}

/* ---------- MOBILE RESPONSIVE ---------- */
@media(max-width:991px) {
    .rd-header-inner {
        padding: 10px 16px;
        gap: 12px;
    }

    .rd-search {
        max-width: 420px;
        min-width: 0;
    }

    .rd-search form,
    .rd-search input {
        min-width: 0;
    }

    .rd-search input {
        padding: 10px 16px;
        font-size: 13px;
        width: 100%;
    }

    /* .rd-catnav is already hidden by default (mobile-first) */

    .rd-bottom-nav {
        display: block;
    }

    .rd-header .rd-hamburger.toggle {
        display: flex !important;
    }

    .rd-hero {
        margin: 12px auto;
        padding: 0 8px;
    }

    #content {
        padding-top: 65px !important;
        margin-top: 0 !important;
    }

    .rd-slider-container {
        aspect-ratio: auto;
        border-radius: var(--radius-md);
    }

    .rd-slider-track,
    .rd-slider-track .slide {
        height: auto;
    }

    .rd-slider-track .slide img {
        height: auto;
        object-fit: contain;
    }

    .rd-section {
        padding: 16px 12px;
    }

    .rd-section-header {
        margin-bottom: 24px;
    }

    .rd-section-header h2 {
        font-size: 26px;
        margin-bottom: 10px;
    }

    .rd-steps-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .rd-chat-widget {
        bottom: 72px;
    }

    body.redesigned {
        padding-bottom: 0;
    }

    .rd-header-actions {
        gap: 6px;
        margin-left: 0;
    }

    .rd-header-actions .hide-mobile {
        display: none !important;
    }

    .rd-header-actions .action-icon {
        width: 36px;
        height: 36px;
    }

    .rd-header-actions .action-icon svg {
        width: 18px;
        height: 18px;
    }

    .rd-header-actions .login-btn {
        display: none !important;
    }

    .rd-header-actions .login-btn svg {
        width: 14px;
        height: 14px;
    }

    .rd-header-actions .login-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(34, 197, 94, 0.3);
        color: #fff;
    }
}

@media(max-width:575px) {
    .rd-header-inner {
        gap: 8px;
        justify-content: space-between;
    }

    /* Mobile Search Expanding Behavior */
    .rd-search {
        justify-self: end;
        width: auto;
    }

    .rd-search form {
        display: none;
        /* Hide form initially */
    }

    .rd-search-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: #f9fafb;
        border: 1px solid #f3f4f6;
        color: #4b5563;
        cursor: pointer;
        padding: 0;
    }

    /* When search is active */
    .rd-header-inner.search-active {
        gap: 8px;
    }

    .rd-header-inner.search-active .rd-hamburger,
    .rd-header-inner.search-active .rd-header-actions,
    .rd-header-inner.search-active .rd-search-toggle {
        display: none !important;
    }

    .rd-header-inner.search-active .rd-search {
        grid-column: 1 / -1;
        width: 100%;
        justify-self: stretch;
    }

    .rd-header-inner.search-active .rd-search form {
        display: flex;
        width: 100%;
    }

    .rd-search-close {
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        padding: 0 12px 0 16px;
        color: #4b5563;
        font-size: 24px;
        cursor: pointer;
    }

    .rd-search input {
        padding: 8px 12px;
        font-size: 13px;
    }

    .rd-search .search-btn {
        padding: 0 12px;
    }

    .rd-search .search-btn svg {
        width: 16px;
        height: 16px;
    }

    /* Hide completely on small mobile screens */
    .rd-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .rd-card .card-body {
        padding: 8px;
    }

    .rd-card .card-title {
        font-size: 12px;
    }

    .rd-card .card-price .new-price {
        font-size: 14px;
    }


}

/* ============================================================
   PRODUCT DETAILS PAGE REDESIGN
   ============================================================ */

.rd-details-page {
    background: #fff;
    padding: 32px 0 0 0;
}

/* Breadcrumb */
.rd-breadcrumb ul {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 500;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rd-breadcrumb ul li a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.rd-breadcrumb ul li a:hover {
    color: #111827;
}

.rd-breadcrumb ul li .separator {
    color: #d1d5db;
    font-weight: 300;
}

/* Gallery Column */
.rd-gallery-col {
    padding-right: 48px;
}

.product-details-discount-badge {
    position: absolute !important;
    top: 12px !important;
    left: 12px !important;
    right: auto !important;
    z-index: 20 !important;
}

/* Details Right / Info Column */
.rd-details-right {
    background: transparent;
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.rd-details-title {
    font-family: var(--font-body);
    font-size: 32px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 12px 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.rd-details-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
    font-size: 14px;
}

.rd-details-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rd-details-rating .stars {
    color: #fbbf24;
    font-size: 14px;
}

.rd-details-rating .review-count {
    color: #6b7280;
    font-weight: 500;
}

.rd-details-category .category-label {
    color: #9ca3af;
    margin-right: 4px;
}

.rd-details-category a {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.rd-details-category a:hover {
    color: #111827;
}

.rd-trust-badges {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.trust-badge-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4b5563;
    font-size: 13px;
    font-weight: 500;
}

.trust-badge-item i {
    color: var(--primary-color);
    font-size: 18px;
}

/* Price */
.rd-details-price-wrapper {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 20px;
}

.rd-new-price {
    font-family: var(--font-body);
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -1px;
}

.rd-old-price {
    font-size: 20px;
    color: #9ca3af;
    text-decoration: line-through;
    font-weight: 400;
}

/* Rating */
.rd-details-ratting {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid #f3f4f6;
}

.rd-stars {
    display: flex;
    gap: 2px;
}

.rd-stars i.filled {
    color: #f59e0b;
}

.rd-stars i.empty {
    color: #d1d5db;
}

.rd-rating-text {
    font-size: 14px;
    color: #4b5563;
    font-weight: 600;
}

.rd-review-link {
    font-size: 13px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.rd-review-link:hover {
    text-decoration: underline;
}

/* Meta Info (Code, Brand, Type, Unit) */
.rd-meta-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 32px;
}

.rd-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
}

.rd-meta-label {
    color: #9ca3af;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.rd-meta-value {
    color: #1f2937;
    font-weight: 600;
    font-size: 15px;
}

/* Variant Groups (Color & Size) */
.rd-variant-group {
    margin-bottom: 22px;
}

.rd-variant-title {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 12px 0;
}

.rd-variant-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.rd-variant-item {
    position: relative;
}

.rd-variant-radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.rd-variant-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    border: 2px solid #e5e7eb;
    background: #fff;
}

/* Color Labels */
.rd-color-label {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    position: relative;
}

.rd-color-label .check-icon {
    width: 16px;
    height: 16px;
    color: #fff;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s ease;
}

.rd-variant-radio:checked+.rd-color-label {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--primary-color);
}

.rd-variant-radio:checked+.rd-color-label .check-icon {
    opacity: 1;
    transform: scale(1);
}

/* Size Labels */
.rd-size-label {
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 500;
    color: #4b5563;
    border-color: #e5e7eb;
}

.rd-variant-radio:checked+.rd-size-label {
    border-color: #111827;
    background-color: #111827;
    color: #fff;
}

/* Actions Wrapper (Quantity & Buttons) */
.rd-actions-wrapper {
    display: flex;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 24px;
    padding-top: 24px;
    border-top: 1px solid #f3f4f6;
    flex-wrap: wrap;
}

.rd-quantity {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-full);
    height: 50px;
    padding: 0 8px;
    width: 135px;
}

.rd-quantity span {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #4b5563;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.rd-quantity span:hover {
    background: #f3f4f6;
    color: #111827;
}

.rd-quantity input {
    width: 48px;
    height: 100%;
    border: none;
    background: transparent;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    color: #111827;
    outline: none;
}

.rd-buttons {
    display: flex;
    gap: 12px;
    flex: 1;
}

.rd-btn {
    flex: 1;
    height: 50px;
    border-radius: var(--radius-full);
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font-heading);
    font-style: italic;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: none;
}

.rd-btn-order {
    background: #111827;
    color: #fff;
}

.rd-btn-order:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.rd-btn-cart {
    background: #fff;
    color: #111827;
    border: 2px solid #e5e7eb;
}

.rd-btn-cart:hover {
    border-color: #111827;
    background: #f9fafb;
}

/* Contact Buttons */
.rd-contact-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.rd-btn-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 48px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    letter-spacing: 0.5px;
}

.rd-btn-contact.hotline {
    background: #fff;
    border: 2px solid #e5e7eb;
    color: #374151;
}

.rd-btn-contact.hotline:hover {
    border-color: #d1d5db;
    background: #f9fafb;
}

.rd-btn-contact.whatsapp {
    background: #ecfdf5;
    border: 2px solid #a7f3d0;
    color: #16a34a;
}

.rd-btn-contact.whatsapp:hover {
    background: #d1fae5;
}

/* Delivery Info */
.rd-delivery-info {
    background: transparent;
    border-top: 1px solid #f3f4f6;
    border-bottom: 1px solid #f3f4f6;
    padding: 20px 0;
    margin-bottom: 24px;
}

.rd-delivery-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 16px;
    font-size: 15px;
    font-family: var(--font-heading);
    font-style: italic;
    letter-spacing: 0.5px;
}

.rd-delivery-header i {
    color: #6b7280;
    font-size: 18px;
}

.rd-delivery-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rd-delivery-item {
    font-size: 14px;
    color: #4b5563;
    display: flex;
    align-items: center;
    gap: 12px;
}

.rd-delivery-item::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d1d5db;
}

/* Tabs Area */
.rd-tabs-wrapper {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    margin-top: 48px;
    position: sticky;
    top: 65px;
    z-index: 100;
}

.rd-tabs-nav ul {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 800px;
    display: flex;
    justify-content: center;
    gap: 64px;
}

.rd-tabs-nav ul li a {
    display: block;
    padding: 24px 0;
    color: #6b7280;
    font-weight: 500;
    text-decoration: none;
    font-size: 16px;
    font-family: var(--font-heading);
    font-style: italic;
    position: relative;
    transition: color 0.3s;
    letter-spacing: 0.5px;
}

.rd-tabs-nav ul li a:hover,
.rd-tabs-nav ul li.active a {
    color: #111827;
}

.rd-tabs-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #111827;
    transition: width 0.3s ease;
}

.rd-tabs-nav ul li.active a::after,
.rd-tabs-nav ul li a:hover::after {
    width: 100%;
}

.rd-tabs-content-area {
    padding: 64px 0;
    background: #fff;
}

/* Common Section Title for Content Area */
.rd-section-title {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 24px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 12px;
}

/* Description Box */
.rd-description-box {
    background: #fafafa;
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 32px;
}

.rd-description-content {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.8;
    color: #374151;
}

.rd-description-content p {
    margin-bottom: 16px;
}

.rd-description-content ul,
.rd-description-content ol {
    margin-bottom: 16px;
    padding-left: 20px;
}

.rd-description-content li {
    margin-bottom: 8px;
}

/* Video Box */
.rd-video-box {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.rd-video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: #000;
}

.rd-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Reviews Section */
.rd-review-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 32px;
}

.rd-review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 24px;
}

.rd-btn-review {
    background: #111827;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-heading);
    font-style: italic;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.rd-btn-review:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.rd-review-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.rd-review-card {
    background: #fafafa;
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid #f3f4f6;
    transition: background 0.3s ease;
}

.rd-review-card:hover {
    background: #f9fafb;
}

.rd-review-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}

.rd-review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color, #16a34a));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    font-family: var(--font-heading);
    font-style: italic;
    margin-right: 16px;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.2);
}

.rd-review-meta {
    display: flex;
    flex-direction: column;
}

.rd-review-name {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    font-family: var(--font-heading);
    font-style: italic;
}

.rd-review-date {
    font-size: 13px;
    color: #6b7280;
}

.rd-review-stars {
    display: flex;
    gap: 2px;
}

.rd-review-stars .filled {
    color: #f59e0b;
    font-size: 14px;
}

.rd-review-stars .empty {
    color: #d1d5db;
    font-size: 14px;
}

.rd-review-body {
    font-size: 15px;
    line-height: 1.7;
    color: #4b5563;
}

.rd-review-empty {
    text-align: center;
    padding: 64px 24px;
    color: #9ca3af;
    background: #fafafa;
    border-radius: var(--radius-md);
    border: 1px dashed #d1d5db;
}

.rd-review-empty i {
    font-size: 48px;
    margin-bottom: 16px;
    color: #d1d5db;
}

.rd-review-empty p {
    font-size: 16px;
    margin: 0;
    color: #6b7280;
}

/* Custom Tabs for Details Page */
.rd-custom-tabs {
    margin-top: -16px;
    background: #fff;
}

.rd-tab-header {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 40px;
    border-bottom: 2px solid #f3f4f6;
    padding: 0 24px;
}

.rd-tab-link {
    background: transparent;
    border: none;
    padding: 16px 0;
    font-size: 18px;
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 600;
    color: #9ca3af;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.rd-tab-link:hover {
    color: #4b5563;
}

.rd-tab-link.active {
    color: var(--primary-color);
}

.rd-tab-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 4px 4px 0 0;
}

.rd-tab-body {
    padding: 0;
}

.rd-tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Owl Carousel Navigation Buttons */
.owl-carousel .owl-nav button.owl-prev,
.owl-carousel .owl-nav button.owl-next {
    position: absolute;
    top: 40%;
    transform: translateY(-50%) scale(0.8);
    opacity: 0;
    width: 44px;
    height: 44px;
    background-color: #fff !important;
    color: #111827 !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px !important;
    line-height: 1 !important;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none !important;
}

.owl-carousel:hover .owl-nav button.owl-prev,
.owl-carousel:hover .owl-nav button.owl-next {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

.owl-carousel .owl-nav button.owl-prev:hover,
.owl-carousel .owl-nav button.owl-next:hover {
    background-color: var(--primary-color) !important;
    color: #fff !important;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3) !important;
}

.owl-carousel .owl-nav button.owl-prev {
    left: -15px;
}

.owl-carousel .owl-nav button.owl-next {
    right: -15px;
}

@media (max-width: 767px) {

    .owl-carousel .owl-nav button.owl-prev,
    .owl-carousel .owl-nav button.owl-next {
        width: 32px;
        height: 32px;
        font-size: 20px !important;
        opacity: 1;
        /* Always visible on mobile */
        transform: translateY(-50%) scale(1);
    }

    .owl-carousel .owl-nav button.owl-prev {
        left: -5px;
    }

    .owl-carousel .owl-nav button.owl-next {
        right: -5px;
    }
}

/* Description Content Styling */
.rd-description-content {
    font-size: 16px;
    line-height: 1.8;
    color: #4b5563;
    padding: 32px;
    background: #fafafa;
    border-radius: var(--radius-md);
    border: 1px solid #f3f4f6;
}

.rd-description-content p {
    margin-bottom: 16px;
}

.rd-description-content p:last-child {
    margin-bottom: 0;
}

.rd-description-content ul,
.rd-description-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.rd-description-content li {
    margin-bottom: 8px;
}

.rd-description-content strong,
.rd-description-content b {
    color: #111827;
    font-weight: 600;
}

/* Hide floating chat widget on category pages to prevent overlapping */
body:has(.rd-category-page) .rd-chat-widget {
    display: none !important;
}

/* Image Slider overrides */
.rd-gallery-col .details_slider {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 16px;
    aspect-ratio: 1 / 1;
    background: #fff;
    border: 1px solid #e5e7eb;
}

.rd-gallery-col .details_slider .owl-stage-outer,
.rd-gallery-col .details_slider .owl-stage,
.rd-gallery-col .details_slider .owl-item,
.rd-gallery-col .details_slider .dimage_item {
    height: 100%;
}

.rd-gallery-col .details_slider .dimage_item {
    overflow: hidden;
    cursor: zoom-in;
}

.rd-gallery-col .details_slider .dimage_item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    transform: scale(1);
    transform-origin: center center;
    transition: transform 0.3s ease;
}

/* Active zoom state — toggled by JS class, no inline styles needed */
.rd-gallery-col .details_slider .dimage_item.rd-zooming img {
    transform: scale(2.5);
    will-change: transform;
}

/* Gallery Wrapper */
.rd-gallery-wrapper {
    display: block;
    max-width: 420px;
    margin: 0 auto;
}

.rd-gallery-wrapper .indicator_thumb {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    margin-top: 16px;
}

.rd-gallery-wrapper .indicator-item {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 1px solid #e5e7eb;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: border-color 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
}

.rd-gallery-wrapper .indicator-item:hover {
    border-color: var(--primary-color);
}

.rd-gallery-wrapper .indicator-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mobile Adjustments */
@media (max-width: 991px) {
    .rd-details-page {
        padding: 24px 0 64px 0;
    }

    .rd-gallery-col {
        margin-bottom: 24px;
    }

    .rd-details-title {
        font-size: 24px;
        margin-bottom: 8px;
    }

    .rd-new-price {
        font-size: 28px;
    }

    .rd-old-price {
        font-size: 18px;
    }
}

@media (max-width: 767px) {
    .rd-details-page {
        padding-top: 16px;
        padding-bottom: 24px;
    }

    .rd-gallery-col {
        margin-bottom: 8px;
        padding-right: 8px;
        /* Optically balance the thumbnails with the main image */
    }

    /* Prevent body scrolling when overlay is active */
    body.rd-overlay-open {
        overflow: hidden !important;
    }

    /* Mobile Image Fullscreen Overlay */
    .rd-image-overlay {
        display: none;
        position: fixed;
        z-index: 9999999;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: #000000;
        justify-content: center;
        align-items: center;
    }

    .rd-overlay-close {
        position: absolute;
        top: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.15);
        color: #ffffff;
        font-size: 20px;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 100000;
        transition: background-color 0.3s;
    }

    .rd-overlay-close:active {
        background-color: rgba(255, 255, 255, 0.3);
    }

    #rd-overlay-img {
        max-width: 100vw;
        max-height: 100vh;
        object-fit: contain;
        transform: scale(0.95);
        transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .rd-image-overlay.active #rd-overlay-img {
        transform: scale(1);
    }

    .rd-review-section {
        padding: 4px !important;
        border: none;
        box-shadow: none;
    }

    .rd-review-card {
        padding: 12px;
    }

    .rd-gallery-wrapper {
        display: flex;
        flex-direction: row;
        gap: 10px;
        align-items: flex-start;
    }

    .rd-gallery-wrapper .details_slider {
        flex: 1;
        width: 0;
        margin-bottom: 0;
        height: 290px;
        /* Perfectly matches 3 x 90px thumbnails + 2 x 10px gaps */
        border-radius: var(--radius-md);
        border: 1px solid #e5e7eb;
        overflow: hidden;
        background: #fff;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    }

    .rd-gallery-wrapper .details_slider .owl-stage-outer,
    .rd-gallery-wrapper .details_slider .owl-stage,
    .rd-gallery-wrapper .details_slider .owl-item,
    .rd-gallery-wrapper .details_slider .dimage_item {
        height: 100% !important;
    }

    .rd-gallery-wrapper .details_slider .dimage_item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        max-height: none;
    }

    .rd-gallery-wrapper .indicator_thumb {
        display: flex;
        flex-direction: column;
        width: 90px;
        gap: 10px;
        margin-top: 0;
    }

    .rd-gallery-wrapper .indicator-item {
        width: 100%;
        height: 90px;
        /* Fixed height for perfect math */
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: var(--radius-sm);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        overflow: hidden;
        flex-shrink: 0;
    }

    .rd-meta-info {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 20px;
    }

    .rd-product-cart form {
        display: flex;
        flex-direction: column;
    }

    .rd-product-cart form .rd-variant-group {
        order: 1;
        /* Push to bottom */
    }

    .rd-actions-wrapper {
        order: -2;
        /* Pull to top */
        flex-direction: row;
        border-top: none;
        padding-top: 0;
        margin-bottom: 16px;
        gap: 8px;
        align-items: center;
    }

    .rd-contact-buttons {
        order: -1;
        /* Pull to right below actions */
        margin-bottom: 24px;
    }

    .rd-quantity {
        width: 88px;
        height: 44px;
        padding: 0 2px;
        flex-shrink: 0;
    }

    .rd-quantity span {
        width: 26px;
        height: 26px;
    }

    .rd-quantity input {
        width: 28px;
        font-size: 14px;
        padding: 0;
    }

    .rd-buttons {
        width: auto;
        flex: 1;
        display: flex;
        flex-direction: row;
        gap: 8px;
        margin-top: 0;
    }

    .rd-buttons .rd-btn {
        height: 44px;
        font-size: 12px;
        flex: 1 1 0%;
        width: 50%;
        padding: 0 4px;
        letter-spacing: -0.2px;
        white-space: normal;
        line-height: 1.2;
    }

    .rd-contact-buttons {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-bottom: 16px;
    }

    .rd-btn-contact {
        height: 44px;
        font-size: 13px;
        gap: 6px;
    }

    /* Fix Variants Spacing */
    .rd-variant-group {
        margin-bottom: 16px;
    }

    .rd-variant-selector {
        gap: 8px;
    }

    .rd-size-label {
        padding: 8px 16px;
        font-size: 13px;
    }

    .rd-color-label {
        width: 32px;
        height: 32px;
    }

    /* Tabs adjustments */
    .rd-tab-header {
        flex-direction: row;
        justify-content: space-between;
        gap: 0;
        padding: 0;
        margin-bottom: 20px;
    }

    .rd-tab-link {
        font-size: 15px;
        padding: 12px 0;
        flex: 1;
        text-align: center;
    }

    .rd-tabs-content-area {
        padding: 24px 0;
    }

    .rd-description-content,
    .rd-review-section {
        padding: 8px;
    }
}

/* ---------- CATEGORY & FILTER PAGE REDESIGN ---------- */
.rd-category-page {
    padding: 40px 0 80px 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    min-height: 100vh;
}

/* Sort Bar - Sleek Glass Pill */
.rd-sort-bar {
    position: relative;
    z-index: 50;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-xl);
    padding: 16px 24px;
    margin-bottom: 32px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.rd-category-page .rd-product-grid {
    justify-content: flex-start;
}

.rd-breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.rd-breadcrumb a {
    color: #4b5563;
    text-decoration: none;
    transition: color var(--transition);
    padding: 4px 8px;
    border-radius: 6px;
}

.rd-breadcrumb a:hover {
    color: var(--primary-color, #22c55e);
    background: rgba(34, 197, 94, 0.08);
}

.rd-breadcrumb span {
    color: #d1d5db;
}

.rd-breadcrumb strong {
    color: var(--primary-color, #22c55e);
    font-weight: 700;
    background: rgba(34, 197, 94, 0.1);
    padding: 4px 12px;
    border-radius: var(--radius-full);
}

.rd-sort-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.rd-showing-data {
    font-size: 14px;
    color: #4b5563;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.rd-sort-select select {
    padding: 10px 40px 10px 16px;
    border: none;
    border-radius: var(--radius-full);
    background-color: #f3f4f6;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    outline: none;
    cursor: pointer;
    transition: all var(--transition);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.rd-sort-select select:hover,
.rd-sort-select select:focus {
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.15);
    color: var(--primary-color, #22c55e);
}

/* Sidebar Styling - Premium Flat Card */
.rd-sidebar {
    background: #fff;
    border: none;
    border-radius: var(--radius-xl);
    padding: 32px 24px;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.04);
    margin-bottom: 24px;
    position: sticky;
    top: 100px;
}

.rd-sidebar-item {
    margin-bottom: 32px;
}

.rd-sidebar-item:last-child {
    margin-bottom: 0;
}

.rd-sidebar-title {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 2px solid #f3f4f6;
    position: relative;
}

.rd-sidebar-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color, #22c55e);
    border-radius: 2px;
}

.rd-filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rd-filter-list li {
    margin-bottom: 12px;
}

.rd-filter-list li:last-child {
    margin-bottom: 0;
}

.rd-filter-list a {
    color: #4b5563;
    font-size: 15px;
    text-decoration: none;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
}

.rd-filter-list a:hover {
    color: var(--primary-color, #22c55e);
    background: rgba(34, 197, 94, 0.05);
    transform: translateX(4px);
    font-weight: 600;
}

/* Custom Checkbox */
.rd-checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 15px;
    color: #4b5563;
    transition: all var(--transition);
    padding: 6px 0;
}

.rd-checkbox-label:hover {
    color: #111827;
}

.rd-checkbox-label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    background-color: #fff;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.rd-checkbox-label:hover input[type="checkbox"] {
    border-color: var(--primary-color, #22c55e);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.1);
}

.rd-checkbox-label input[type="checkbox"]:checked {
    background-color: var(--primary-color, #22c55e);
    border-color: var(--primary-color, #22c55e);
}

.rd-checkbox-label input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.rd-checkbox-label span {
    transition: all 0.2s ease;
}

.rd-checkbox-label input[type="checkbox"]:checked+span {
    color: #111827;
    font-weight: 600;
}

/* Price Range Slider */
.rd-price-inputs {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.rd-price-refresh-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--primary-color, #22c55e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    padding: 0;
}

.rd-price-refresh-btn:hover {
    background: rgba(34, 197, 94, 0.1);
    transform: rotate(90deg);
}

.rd-price-inputs .price-box {
    flex: 1;
    position: relative;
}

.rd-price-inputs .price-box span {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 14px;
    font-weight: 600;
}

.rd-price-inputs input {
    width: 100%;
    padding: 10px 12px 10px 28px;
    border: 2px solid #f3f4f6;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    outline: none;
    background: #f9fafb;
    transition: all var(--transition);
    -moz-appearance: textfield;
    /* Firefox */
}

/* Hide number input spin buttons for Chrome, Safari, Edge, Opera */
.rd-price-inputs input::-webkit-outer-spin-button,
.rd-price-inputs input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.rd-price-inputs input:focus {
    background: #fff;
    border-color: var(--primary-color, #22c55e);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.1);
}

.rd-price-range {
    margin: 0 10px;
}

.rd-price-range .ui-slider-horizontal {
    height: 6px;
    background: #e5e7eb;
    border: none;
    border-radius: var(--radius-full);
}

.rd-price-range .ui-slider-range {
    background: linear-gradient(90deg, #c084fc 0%, #22c55e 100%);
    border-radius: var(--radius-full);
}

.rd-price-range .ui-slider-handle {
    width: 20px;
    height: 20px;
    background: #fff;
    border: 3px solid var(--primary-color, #22c55e);
    border-radius: 50%;
    top: -7px;
    cursor: grab;
    outline: none;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rd-price-range .ui-slider-handle:hover,
.rd-price-range .ui-slider-handle:active {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.6);
    cursor: grabbing;
}

/* Mobile Filter Button */
.rd-mobile-filter-btn {
    display: none;
    background: linear-gradient(135deg, #22c55e 0%, var(--secondary-color, #16a34a) 100%);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
    transition: all var(--transition);
}

.rd-mobile-filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.4);
}

/* Pagination Styling */
.custom_paginate .pagination {
    margin-top: 40px;
    justify-content: center;
    gap: 8px;
}

.custom_paginate .page-item .page-link {
    border: none;
    border-radius: 50%;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4b5563;
    font-weight: 600;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all var(--transition);
}

.custom_paginate .page-item.active .page-link,
.custom_paginate .page-item .page-link:hover {
    background: var(--primary-color, #22c55e);
    color: #fff;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
    transform: translateY(-2px);
}

.rd-filter-list {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rd-sidebar-footer {
    padding: 12px 16px;
    background: #fff;
    box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.08);
    position: sticky;
    bottom: 0;
    margin: 0;
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
    z-index: 100;
}

.rd-btn-apply {
    width: 100%;
    margin: 0;
    display: block;
    padding: 10px;
    border: none;
    border-radius: var(--radius-full);
    background: var(--primary-color, #22c55e);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.rd-btn-apply:hover {
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
    transform: translateY(-2px);
}

@media(max-width: 991px) {
    .rd-sidebar {
        padding: 24px 16px;
    }

    .rd-sort-bar {
        padding: 16px;
    }
}

@media(max-width: 767px) {
    .rd-category-page {
        padding: 24px 0 40px 0;
    }

    .rd-sort-bar {
        flex-direction: row;
        align-items: center;
        border-radius: var(--radius-lg);
        padding: 12px;
    }

    .rd-breadcrumb {
        display: none !important;
    }

    .rd-showing-data {
        display: none !important;
    }

    .rd-sort-actions {
        width: 100%;
        justify-content: space-between;
        gap: 12px;
    }

    .rd-mobile-filter-btn {
        display: flex !important;
        flex: 1;
        justify-content: center;
        height: 38px;
    }

    .rd-sort-select {
        flex: 1;
    }

    .rd-sort-select .nice-select {
        height: 38px;
        line-height: 36px;
        padding-left: 12px;
        padding-right: 32px;
        font-size: 13px;
    }

    .rd-card {
        padding: 8px;
    }

    .rd-card .card-img {
        border-radius: var(--radius-sm);
        overflow: hidden;
    }

    .rd-card-title {
        font-size: 13px;
        -webkit-line-clamp: 2;
        line-height: 1.4;
    }

    .rd-card-price-current {
        font-size: 15px;
    }

    .rd-btn-bag {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .rd-sidebar-wrapper {
        position: fixed;
        top: -100%;
        left: 0;
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: calc(100vh - 180px);
        background: #fff;
        z-index: 1050;
        overflow-y: auto;
        overflow-x: hidden;
        overscroll-behavior: none;
        transition: top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
        padding-bottom: 0;
    }

    .rd-sidebar-wrapper.active {
        top: 90px;
    }

    .rd-sidebar {
        box-shadow: none;
        padding: 24px;
        position: static;
    }

    .rd-filter-close {
        position: sticky;
        top: 16px;
        margin-left: auto;
        margin-right: 16px;
        margin-top: 16px;
        margin-bottom: -48px;
        width: 32px;
        height: 32px;
        background: #f3f4f6;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 110;
        font-size: 0;
        padding: 0;
        border: none;
        transition: all 0.2s ease;
    }

    .rd-filter-close:hover {
        background: #e5e7eb;
    }

    .rd-filter-close i {
        font-size: 14px;
        color: #4b5563;
        margin: 0;
    }
}

/* Custom Select2 Styling for Sort Bar */
.rd-sort-select .select2-container--default .select2-selection--single {
    border: 2px solid #f3f4f6;
    border-radius: var(--radius-full);
    height: 42px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    background: #f9fafb;
    transition: all var(--transition);
}

.rd-sort-select .select2-container--default .select2-selection--single:focus,
.rd-sort-select .select2-container--open .select2-selection--single {
    border-color: var(--primary-color, #22c55e);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.1);
    background: #fff;
    outline: none;
}

.rd-sort-select .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 40px;
    right: 12px;
}

.rd-sort-select .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #111827;
    font-weight: 600;
    font-size: 14px;
    line-height: 40px;
    padding-left: 0;
}

.select2-dropdown {
    border: none !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1) !important;
    padding: 8px !important;
    background: #fff !important;
    overflow: hidden;
}

.select2-results__option {
    padding: 10px 16px !important;
    border-radius: var(--radius-md) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #4b5563 !important;
    transition: all var(--transition) !important;
    margin-bottom: 2px !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted[aria-selected]:hover,
.select2-results__option:hover {
    background: #dcfce7 !important;
    color: var(--primary-color, #22c55e) !important;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background: var(--primary-color, #22c55e) !important;
    color: #fff !important;
}

/* Nice Select Dropdown Redesign */
.rd-sort-select {
    min-width: 180px;
}

.rd-sort-select .nice-select {
    width: 100%;
    border: 1px solid #f3f4f6;
    border-radius: var(--radius-full);
    height: 42px;
    line-height: 40px;
    padding-left: 16px;
    padding-right: 40px;
    font-size: 14px;
    font-weight: 600;
    color: #4b5563;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    transition: all var(--transition);
}

.rd-sort-select .nice-select::after {
    border-bottom: 2px solid #6b7280;
    border-right: 2px solid #6b7280;
    height: 6px;
    width: 6px;
    right: 18px;
}

.rd-sort-select .nice-select:hover {
    border-color: var(--primary-color, #22c55e);
}

.rd-sort-select .nice-select.open {
    border-color: var(--primary-color, #22c55e);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.rd-sort-select .nice-select .list {
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #f3f4f6;
    margin-top: 4px;
    width: 100%;
    z-index: 1000;
}

.rd-sort-select .nice-select .option {
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #4b5563;
    transition: all 0.2s;
    line-height: 24px;
    min-height: auto;
}

.rd-sort-select .nice-select .option:hover,
.rd-sort-select .nice-select .option.focus,
.rd-sort-select .nice-select .option.selected.focus {
    background: #f9fafb;
    color: var(--primary-color, #22c55e);
}

.rd-sort-select .nice-select .option.selected {
    font-weight: 600;
    color: var(--primary-color, #22c55e);
    background: rgba(34, 197, 94, 0.05);
}




/* ============================================================
   AUTH PAGES — Login · Register · Complete Profile
   Clean minimal card design — FF Game Shop inspired, elevated
   ============================================================ */

/* --- Section / Background --- */
.rd-auth-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px 60px;
    background: #f5f3f7;
    background-image:
        radial-gradient(ellipse at 30% 0%, rgba(34, 197, 94, .05) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 100%, rgba(249, 115, 22, .04) 0%, transparent 60%);
}

.rd-auth-section-register {
    min-height: auto;
    align-items: flex-start;
    padding-top: 16px;
}

.rd-auth-wrapper {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

/* --- Logo (above card) --- */
.rd-auth-logo {
    text-align: center;
    margin-bottom: 20px;
    animation: authFadeDown .5s ease;
}

.rd-auth-logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

@keyframes authFadeDown {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Card --- */
.rd-auth-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px 28px 24px;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, .04),
        0 8px 32px rgba(0, 0, 0, .06);
    animation: authCardUp .55s cubic-bezier(.4, 0, .2, 1);
}

@keyframes authCardUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Header --- */
.rd-auth-header {
    text-align: center;
    margin-bottom: 20px;
}

.rd-auth-title {
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 4px;
    font-family: var(--font-heading, 'Playfair Display', 'Hind Siliguri', serif);
    font-style: italic;
    text-align: center !important;
}

.rd-auth-subtitle {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    font-weight: 400;
    line-height: 1.4;
    text-align: center !important;
}

/* Step badge (complete-profile page) */
.rd-auth-step-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ecfdf5;
    color: #16a34a;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 14px;
    font-family: var(--font-heading, 'Playfair Display', 'Hind Siliguri', serif);
    font-style: italic;
}

.rd-auth-step-badge svg {
    flex-shrink: 0;
}

/* --- Google Button --- */
.rd-google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 50px;
    color: #374151;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
    margin-bottom: 24px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.rd-google-btn svg {
    flex-shrink: 0;
}

.rd-google-btn:hover {
    background: #fdfdfd;
    border-color: #d1d5db;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    color: #111827;
}

.rd-google-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* --- Divider --- */
.rd-auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
}

.rd-auth-divider::before,
.rd-auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.rd-auth-divider span {
    color: #9ca3af;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

/* --- Floating Label Input Group --- */
.rd-float-group {
    position: relative;
    margin-bottom: 18px;
}

.rd-float-input {
    width: 100%;
    padding: 14px 20px 4px !important;
    height: 48px !important;
    font-size: 15px;
    font-family: var(--font-body, 'Poppins', 'Hind Siliguri', sans-serif);
    color: #1f2937;
    background: #fff !important;
    border-width: 1px !important;
    border-style: solid !important;
    border-color: #d1d5db !important;
    border-radius: 50px;
    outline: none !important;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0) !important;
    box-sizing: border-box !important;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    -moz-appearance: textfield;
}

.rd-float-input::-webkit-outer-spin-button,
.rd-float-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Float label */
.rd-float-label {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    font-weight: 400;
    color: #9ca3af;
    pointer-events: none;
    transition: all .2s cubic-bezier(.4, 0, .2, 1);
    background: transparent;
    padding: 0;
    font-family: var(--font-body, 'Poppins', 'Hind Siliguri', sans-serif);
}

/* When input has focus or value (using placeholder-shown trick) */
.rd-float-input:focus+.rd-float-label,
.rd-float-input:not(:placeholder-shown)+.rd-float-label {
    top: 6px;
    transform: translateY(0);
    font-size: 11px;
    font-weight: 600;
    color: var(--primary-color, #22c55e);
    letter-spacing: 0.3px;
}

/* Focus ring */
.rd-float-input:focus {
    border: 1px solid var(--primary-color, #22c55e) !important;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, .08) !important;
    outline: none !important;
    background-color: #fff !important;
}

/* Hover */
.rd-float-input:hover {
    border-color: #c5c5c5;
}

/* Error state */
.rd-input-error-border {
    border-color: #ef4444 !important;
}

.rd-input-error-border:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, .08) !important;
}

.rd-field-error {
    display: block;
    color: #ef4444;
    font-size: 12px;
    font-weight: 500;
    margin-top: 5px;
    padding-left: 2px;
}

.rd-field-hint {
    display: block;
    color: #9ca3af;
    font-size: 12px;
    margin-top: 5px;
    padding-left: 2px;
}

/* --- Password Eye Toggle --- */
.rd-eye-toggle {
    position: absolute;
    right: 16px;
    top: 24px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #b0b0b0;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: color .2s, background .2s;
    z-index: 2;
}

.rd-eye-toggle:hover {
    color: var(--primary-color, #22c55e);
    background: rgba(34, 197, 94, .06);
}

/* --- Forgot / Options Row --- */
.rd-auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    margin-top: -6px;
}

.rd-forgot-link {
    color: var(--primary-color, #22c55e);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: color .2s;
}

.rd-forgot-link:hover {
    color: #16a34a;
    text-decoration: underline;
}

/* --- Submit Button --- */
.rd-auth-submit {
    width: 100%;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--primary-color, #22c55e), var(--secondary-color, #16a34a));
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    font-family: var(--font-heading, 'Playfair Display', 'Hind Siliguri', serif);
    font-style: italic;
    cursor: pointer;
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
    box-shadow: 0 4px 14px rgba(34, 197, 94, .25);
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.rd-auth-submit::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .12), transparent);
    transform: translateX(-100%);
    transition: transform .5s ease;
}

.rd-auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(34, 197, 94, .35);
}

.rd-auth-submit:hover::after {
    transform: translateX(100%);
}

.rd-auth-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(34, 197, 94, .2);
}

/* --- Footer --- */
.rd-auth-footer {
    text-align: center;
    margin-top: 24px;
    color: #6b7280;
    font-size: 14px;
}

.rd-auth-footer a,
.rd-auth-link {
    color: var(--primary-color, #22c55e);
    font-weight: 700;
    text-decoration: none;
    transition: color .2s;
}

.rd-auth-footer a:hover,
.rd-auth-link:hover {
    color: #4fed3a;
    text-decoration: underline;
}

/* --- Profile Info (complete-profile page) --- */
.rd-profile-info {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f9fafb;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 24px;
}

.rd-profile-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color, #22c55e), var(--secondary-color, #16a34a));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 700;
    font-family: var(--font-heading, 'Playfair Display', 'Hind Siliguri', serif);
    font-style: italic;
    flex-shrink: 0;
}

.rd-profile-details strong {
    display: block;
    color: #1f2937;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

.rd-profile-details span {
    display: block;
    color: #9ca3af;
    font-size: 12px;
    margin-top: 1px;
}

/* --- Responsive --- */
@media (max-width: 576px) {
    .rd-auth-section {
        padding: 32px 12px 48px;
        min-height: auto;
    }

    .rd-auth-card {
        padding: 28px 20px 24px;
        border-radius: 14px;
    }

    .rd-auth-title {
        font-size: 21px;
    }

    .rd-auth-logo img {
        height: 38px;
    }

    .rd-float-input {
        height: 44px;
        font-size: 14px;
    }

    .rd-eye-toggle {
        top: 22px;
    }

    .rd-auth-submit {
        padding: 11px 24px;
        font-size: 15px;
    }

    .rd-google-btn {
        padding: 10px 16px;
        font-size: 14px;
    }
}


/* ============================================================
   CHECKOUT PAGE REDESIGN
   Receipt-style, Green-toned, matches auth + details pages
   ============================================================ */

/* --- Section wrapper --- */
.rd-checkout-section {
    background: #f5f3f7;
    background-image:
        radial-gradient(ellipse at 20% 0%, rgba(34, 197, 94, .04) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 100%, rgba(249, 115, 22, .03) 0%, transparent 60%);
    padding: 40px 0 80px;
    min-height: 70vh;
}

.rd-checkout-section .container {
    max-width: 1100px;
}

/* Override legacy chheckout-section */
.rd-checkout-section.chheckout-section {
    padding: 40px 0 80px;
    background: transparent;
}

/* --- Grid layout --- */
.rd-checkout-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 28px;
    align-items: start;
}

/* --- Cards --- */
.rd-checkout-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, .04),
        0 8px 32px rgba(0, 0, 0, .06);
    animation: authCardUp .55s cubic-bezier(.4, 0, .2, 1);
}

.rd-checkout-card+.rd-checkout-card {
    margin-top: 20px;
}

/* --- Section titles --- */
.rd-checkout-title {
    font-family: var(--font-heading, 'Playfair Display', 'Hind Siliguri', serif);
    font-style: italic;
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rd-checkout-title i,
.rd-checkout-title svg {
    color: var(--primary-color, #22c55e);
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.rd-checkout-subtitle {
    font-size: 13px;
    color: #6b7280;
    margin: -12px 0 20px;
    line-height: 1.5;
}

/* --- Cart item list --- */
.rd-checkout-items {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.rd-checkout-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #f3f4f6;
    position: relative;
}

.rd-checkout-item:last-child {
    border-bottom: none;
}

.rd-checkout-item-img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid #f3f4f6;
    background: #f9fafb;
}

.rd-checkout-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rd-checkout-item-info {
    flex: 1;
    min-width: 0;
}

.rd-checkout-item-name {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rd-checkout-item-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.rd-checkout-item-name a:hover {
    color: var(--primary-color, #22c55e);
}

.rd-checkout-item-variant {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 500;
}

.rd-checkout-item-qty {
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}

.rd-checkout-item-price {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
    white-space: nowrap;
    flex-shrink: 0;
}

.rd-checkout-item-remove {
    position: absolute;
    top: 8px;
    right: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: transparent;
    color: #d1d5db;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    padding: 0;
}

.rd-checkout-item-remove:hover {
    background: #fef2f2;
    color: #ef4444;
}

/* --- Summary rows --- */
.rd-checkout-summary {
    border-top: 2px solid #f3f4f6;
    margin-top: 8px;
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rd-checkout-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #4b5563;
}

.rd-checkout-row span:first-child {
    font-weight: 500;
}

.rd-checkout-row span:last-child {
    font-weight: 600;
    color: #1f2937;
    font-family: var(--font-body);
}

.rd-checkout-row.discount span:last-child {
    color: #16a34a;
}

.rd-checkout-row.total {
    border-top: 2px solid #f3f4f6;
    padding-top: 12px;
    margin-top: 4px;
    font-size: 16px;
}

.rd-checkout-row.total span:first-child {
    font-weight: 700;
    color: #1f2937;
}

.rd-checkout-row.total span:last-child {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-color, #22c55e);
}

.rd-checkout-row.advance span:last-child {
    color: #16a34a;
    font-weight: 700;
}

.rd-checkout-row.due span:last-child {
    color: #ef4444;
    font-weight: 700;
}

/* --- Coupon section --- */
.rd-mobile-coupon {
    display: none;
}

.rd-coupon-section {
    margin-bottom: 0;
}

.rd-coupon-form {
    display: flex;
    gap: 8px;
}

.rd-coupon-input {
    flex: 1;
    padding: 10px 16px;
    height: 42px;
    font-size: 14px;
    font-family: var(--font-body, 'Poppins', 'Hind Siliguri', sans-serif);
    color: #1f2937;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 50px;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.rd-coupon-input:focus {
    border-color: var(--primary-color, #22c55e);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, .08);
    background: #fff;
}

.rd-coupon-btn {
    padding: 0 20px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary-color, #22c55e), var(--secondary-color, #16a34a));
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    font-family: var(--font-heading, 'Playfair Display', 'Hind Siliguri', serif);
    font-style: italic;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(34, 197, 94, .2);
}

.rd-coupon-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(34, 197, 94, .3);
}

.rd-coupon-applied {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    color: #166534;
}

.rd-coupon-applied a {
    color: #ef4444;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
}

.rd-coupon-applied a:hover {
    opacity: 0.7;
}

/* --- Payment methods --- */
.rd-payment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.rd-payment-option {
    position: relative;
    cursor: pointer;
}

.rd-payment-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.rd-payment-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    height: 52px;
    border: 2px solid #e5e7eb;
    border-radius: 50px;
    background: #fff;
    transition: all 0.25s ease;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.rd-payment-label:hover {
    border-color: #c4b5fd;
    background: #faf5ff;
}

.rd-payment-option input[type="radio"]:checked+.rd-payment-label {
    border-color: var(--primary-color, #22c55e);
    background: #faf5ff;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, .1);
}

.rd-payment-label img {
    height: 22px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.rd-payment-label .rd-pay-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}

.rd-payment-label .rd-pay-icon.cod {
    background: #ecfdf5;
    color: #16a34a;
}

/* --- Advance notice --- */
.rd-advance-notice {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 13px;
    color: #1e40af;
    line-height: 1.6;
    margin-bottom: 16px;
}

.rd-advance-notice b {
    font-weight: 700;
}

/* --- Order note --- */
.rd-order-note textarea {
    width: 100%;
    padding: 14px 20px;
    font-size: 14px;
    font-family: var(--font-body, 'Poppins', 'Hind Siliguri', sans-serif);
    color: #1f2937;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    outline: none;
    resize: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    min-height: 80px;
}

.rd-order-note textarea:focus {
    border-color: var(--primary-color, #22c55e);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, .08);
    background: #fff;
}

/* --- Submit button --- */
.rd-checkout-submit {
    width: 100%;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--primary-color, #22c55e), var(--secondary-color, #16a34a));
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    font-family: var(--font-heading, 'Playfair Display', 'Hind Siliguri', serif);
    font-style: italic;
    cursor: pointer;
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
    box-shadow: 0 4px 14px rgba(34, 197, 94, .25);
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
    margin-top: 8px;
}

.rd-checkout-submit::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .12), transparent);
    transform: translateX(-100%);
    transition: transform .5s ease;
}

.rd-checkout-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(34, 197, 94, .35);
}

.rd-checkout-submit:hover::after {
    transform: translateX(100%);
}

.rd-checkout-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(34, 197, 94, .2);
}

/* --- Sticky summary on desktop (right side) --- */
.rd-checkout-form-col {
    order: 1;
}

.rd-checkout-summary-col {
    order: 2;
    position: sticky;
    top: 90px;
}

/* --- Premium Select2 (area dropdown) --- */
.rd-checkout-form-grid .select2-container--default .select2-selection--single {
    height: 52px !important;
    padding: 18px 20px 4px !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 50px !important;
    background: #f8fafc;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    outline: none;
}

.rd-checkout-form-grid .select2-container--default.select2-container--open .select2-selection--single,
.rd-checkout-form-grid .select2-container--default .select2-selection--single:focus {
    background: #fff;
    border-color: var(--primary-color, #22c55e) !important;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, .08);
}

.rd-checkout-form-grid .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #1f2937;
    font-size: 14px;
    padding: 0;
    line-height: normal;
}

.rd-checkout-form-grid .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 50px;
    right: 14px;
}

.rd-checkout-form-grid .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #6b7280 transparent transparent transparent;
    border-width: 5px 4px 0 4px;
}

.rd-checkout-form-grid .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #6b7280 transparent;
    border-width: 0 4px 5px 4px;
}

/* Dropdown menu styling */
.select2-container--default .select2-dropdown.rd-select2-dropdown {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-top: 4px;
    padding: 6px;
    z-index: 1060;
}

.select2-container--default .rd-select2-dropdown .select2-results__option {
    padding: 10px 14px;
    font-size: 14px;
    color: #374151;
    border-radius: 8px;
    margin-bottom: 2px;
    transition: all 0.2s;
}

.select2-container--default .rd-select2-dropdown .select2-results__option--highlighted[aria-selected],
.select2-container--default .rd-select2-dropdown .select2-results__option:hover {
    background-color: #faf5ff !important;
    color: var(--primary-color, #22c55e) !important;
}

.select2-container--default .rd-select2-dropdown .select2-results__option[aria-selected="true"] {
    background-color: rgba(34, 197, 94, .08);
    color: var(--primary-color, #22c55e);
    font-weight: 600;
}

/* --- Form Grid --- */
.rd-checkout-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.rd-checkout-form-grid .rd-float-group {
    margin-bottom: 0;
}

/* --- Divider --- */
.rd-checkout-divider {
    height: 1px;
    background: #f3f4f6;
    margin: 20px 0;
    border: none;
}

/* --- Mobile Responsive --- */
@media (max-width: 991px) {
    .rd-checkout-section {
        padding: 24px 0 80px;
    }

    .rd-checkout-grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
        align-items: stretch !important;
    }

    .rd-checkout-form-col {
        order: 2;
        width: 100%;
    }

    .rd-checkout-summary-col {
        order: 1;
        position: static;
        width: 100%;
    }

    .rd-checkout-card {
        padding: 20px;
        border-radius: 14px;
        width: 100%;
    }

    .rd-checkout-form-grid {
        grid-template-columns: 1fr;
    }

    .rd-desktop-coupon {
        display: none !important;
    }

    .rd-mobile-coupon {
        display: block !important;
        order: 3;
        width: 100%;
    }
}

@media (max-width: 575px) {
    .rd-checkout-section {
        padding: 12px 0 80px;
    }

    .rd-checkout-card {
        padding: 16px;
        border-radius: 12px;
    }

    .rd-checkout-title {
        font-size: 16px;
    }

    .rd-checkout-item-img {
        width: 50px;
        height: 50px;
        border-radius: 8px;
    }

    .rd-checkout-item-name {
        font-size: 13px;
    }

    .rd-checkout-item-price {
        font-size: 14px;
    }

    .rd-payment-grid {
        grid-template-columns: 1fr;
    }

    .rd-checkout-row.total span:last-child {
        font-size: 18px;
    }

    .rd-coupon-form {
        flex-direction: column;
    }

    .rd-coupon-btn {
        width: 100%;
    }
}

/* ============================================================
   POLICY & CONTACT PAGES REDESIGN
   ============================================================ */

/* Policy Navigation (Pill shapes, horizontally scrollable) */
.rd-policy-nav {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 16px 0;
    margin-bottom: 30px;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
    align-items: center;
    justify-content: center;
}

.rd-policy-nav::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.rd-policy-link {
    white-space: nowrap;
    padding: 10px 24px;
    background: #fff;
    color: var(--text-color);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #e5e7eb;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
    font-family: var(--font-heading);
    font-style: italic;
}

.rd-policy-link:hover,
.rd-policy-link.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color, #16a34a));
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.25);
}

/* Contact Cards */
.rd-contact-info-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid #e5e7eb;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-color);
    height: 100%;
}

.rd-contact-info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: #bbf7d0;
}

.rd-contact-icon {
    width: 56px;
    height: 56px;
    background: #dcfce7;
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 8px;
}

.rd-contact-info-card h4 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    font-family: var(--font-heading);
    font-style: italic;
}

.rd-contact-info-card p {
    font-size: 15px;
    color: #4b5563;
    margin: 0;
    font-weight: 500;
}

/* Contact Form Card */
.rd-contact-form-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #e5e7eb;
}

.rd-contact-form-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    font-family: var(--font-heading);
    font-style: italic;
    color: #111827;
    position: relative;
    padding-bottom: 12px;
}

.rd-contact-form-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #f97316);
    border-radius: var(--radius-full);
}

/* Page Card */
.rd-page-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #e5e7eb;
    margin-bottom: 40px;
}

.rd-page-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 24px;
    font-family: var(--font-heading);
    font-style: italic;
    color: #111827;
    text-align: center;
    padding-bottom: 16px;
    border-bottom: 1px solid #f3f4f6;
}

.rd-page-content {
    font-size: 16px;
    line-height: 1.8;
    color: #374151;
}

.rd-page-content h1,
.rd-page-content h2,
.rd-page-content h3,
.rd-page-content h4,
.rd-page-content h5,
.rd-page-content h6 {
    font-family: var(--font-heading);
    font-style: italic;
    color: #111827;
    margin-top: 32px;
    margin-bottom: 16px;
    font-weight: 700;
}

.rd-page-content p {
    margin-bottom: 16px;
}

.rd-page-content ul,
.rd-page-content ol {
    margin-bottom: 24px;
    padding-left: 24px;
}

.rd-page-content li {
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .rd-policy-nav {
        justify-content: flex-start;
        padding: 16px 20px;
        margin: 0 -20px 24px -20px;
    }

    .rd-contact-form-card {
        padding: 24px;
        margin-top: 24px;
    }

    .rd-page-card {
        padding: 24px;
    }

    .rd-page-title {
        font-size: 24px;
    }
}

/* ============================================================
   HOVER FIXES (User Feedback)
   ============================================================ */

.rd-policy-link:hover {
    background: #f9fafb !important;
    color: var(--primary-color) !important;
    border-color: #d1d5db !important;
    transform: none !important;
    box-shadow: none !important;
}

.rd-policy-link.active {
    background: var(--primary-color) !important;
    color: #fff !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
    transform: none !important;
}

.rd-contact-info-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: var(--shadow-sm) !important;
    border-color: var(--primary-color) !important;
    background: #fdfcff !important;
}

.rd-submit-btn {
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 12px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s ease;
    width: 100%;
}

.rd-submit-btn:hover {
    background: var(--secondary-color);
    color: #fff;
    opacity: 0.95;
    transform: none;
}

/* ============================================================
   CONTACT FORM INPUT FIXES
   ============================================================ */

.rd-contact-form-card .form-control {
    border: 1px solid #e5e7eb !important;
    background: #f9fafb !important;
    border-radius: var(--radius-full) !important;
    padding: 12px 20px !important;
    font-size: 15px !important;
    color: #111827 !important;
    transition: all 0.2s ease !important;
    width: 100% !important;
    box-shadow: none !important;
}

.rd-contact-form-card textarea.form-control {
    border-radius: var(--radius-md) !important;
    min-height: 120px;
}

.rd-contact-form-card .form-control:focus {
    border-color: var(--primary-color) !important;
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.1) !important;
    outline: none !important;
}

/* Mobile Contact Card Fixes */
@media (max-width: 576px) {
    .rd-mobile-compact-card {
        padding: 16px 10px !important;
        gap: 8px !important;
    }

    .rd-mobile-compact-card .rd-contact-icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 18px !important;
    }

    .rd-mobile-compact-card h4 {
        font-size: 14px !important;
    }

    .rd-mobile-compact-card p {
        font-size: 12px !important;
        word-break: break-all;
    }
}

/* Improved Mobile Contact Card Layout */
@media (max-width: 576px) {
    .rd-contact-cards-row {
        margin-left: -8px !important;
        margin-right: -8px !important;
    }

    .rd-contact-cards-row>.px-2 {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .rd-mobile-compact-card {
        padding: 16px 8px !important;
        gap: 6px !important;
        border-radius: var(--radius-md) !important;
        justify-content: center !important;
    }

    .rd-mobile-compact-card .rd-contact-icon {
        width: 38px !important;
        height: 38px !important;
        font-size: 16px !important;
        margin-bottom: 2px !important;
    }

    .rd-mobile-compact-card h4 {
        font-size: 14px !important;
        margin-bottom: 2px !important;
    }

    .rd-mobile-compact-card p {
        font-size: 11px !important;
        line-height: 1.4 !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
        letter-spacing: -0.2px;
    }
}

/* Premium Combined Contact Card */
.rd-combined-contact-card {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid #e5e7eb;
    padding: 24px 32px;
    justify-content: space-around;
    gap: 16px;
}

.rd-combined-contact-card .contact-block {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    padding: 12px 24px;
    border-radius: var(--radius-lg);
    flex: 1;
    justify-content: center;
}

.rd-combined-contact-card .contact-block:hover {
    background: #f9fafb;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.rd-combined-contact-card .icon-wrap {
    width: 48px;
    height: 48px;
    background: #dcfce7;
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.rd-combined-contact-card .text-wrap {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.rd-combined-contact-card .label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 2px;
}

.rd-combined-contact-card .value {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    font-family: var(--font-heading);
    font-style: italic;
}

.rd-combined-contact-card .divider {
    width: 1px;
    height: 60px;
    background: #e5e7eb;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .rd-combined-contact-card {
        padding: 16px 12px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        border-radius: var(--radius-lg);
    }

    .rd-combined-contact-card .contact-block {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        padding: 8px;
        width: 45%;
        flex: none;
    }

    .rd-combined-contact-card .text-wrap {
        text-align: center;
    }

    .rd-combined-contact-card .icon-wrap {
        width: 42px;
        height: 42px;
        font-size: 18px;
        margin: 0 auto;
    }

    .rd-combined-contact-card .value {
        font-size: 13px;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .rd-combined-contact-card .divider {
        height: 80px;
    }
}

/* Force Single Line Email Mobile Fix */
@media (max-width: 768px) {
    .rd-combined-contact-card {
        padding: 16px 4px !important;
        margin-left: -12px;
        margin-right: -12px;
    }

    .rd-combined-contact-card .contact-block {
        padding: 8px 0 !important;
        width: 49% !important;
    }

    .rd-combined-contact-card .value {
        font-size: 11px !important;
        white-space: nowrap !important;
        letter-spacing: -0.2px !important;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* Force Email to Single Line on Mobile */
@media (max-width: 768px) {
    .rd-combined-contact-card {
        padding: 16px 4px !important;
        gap: 0 !important;
    }

    .rd-combined-contact-card .contact-block {
        width: auto !important;
        padding: 8px 4px !important;
    }

    .rd-combined-contact-card .contact-block:first-child {
        flex: 0.8 !important;
    }

    .rd-combined-contact-card .contact-block:last-child {
        flex: 1.2 !important;
    }

    .rd-combined-contact-card .value {
        white-space: nowrap !important;
        word-break: normal !important;
        font-size: 11.5px !important;
        letter-spacing: -0.2px !important;
    }
}

/* Final Adjustment for Contact Card Edges on Mobile */
@media (max-width: 576px) {
    .rd-combined-contact-card {
        padding: 16px 2px !important;
    }

    .rd-combined-contact-card .contact-block {
        padding: 4px 2px !important;
    }

    .rd-combined-contact-card .value {
        font-size: 10.5px !important;
        letter-spacing: -0.3px !important;
    }
}

/* DEFINITIVE FIX FOR MOBILE CONTACT CARD */
@media (max-width: 768px) {
    .rd-combined-contact-card {
        display: grid !important;
        grid-template-columns: 0.9fr 1px 1.1fr !important;
        gap: 2px !important;
        padding: 16px 2px !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .rd-combined-contact-card .contact-block {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 2px !important;
        width: 100% !important;
        flex: none !important;
    }

    .rd-combined-contact-card .icon-wrap {
        width: 34px !important;
        height: 34px !important;
        font-size: 15px !important;
        margin-bottom: 6px !important;
    }

    .rd-combined-contact-card .label {
        font-size: 11px !important;
        margin-bottom: 2px !important;
    }

    .rd-combined-contact-card .value {
        font-size: 10.5px !important;
        white-space: nowrap !important;
        letter-spacing: -0.2px !important;
        word-break: normal !important;
        overflow: visible !important;
    }

    .rd-combined-contact-card .divider {
        height: 50px !important;
        width: 1px !important;
        margin: auto !important;
    }
}

/* ============================================================
   SLEEK CONTACT INFO BAR (Redesign)
   ============================================================ */
.rd-contact-info-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 16px 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #e5e7eb;
}

.rd-contact-info-bar .info-item {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: #111827;
    transition: all 0.3s ease;
    flex: 1;
    justify-content: center;
}

.rd-contact-info-bar .info-item:hover {
    transform: translateY(-2px);
}

.rd-contact-info-bar .info-item:hover .icon-wrapper {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.rd-contact-info-bar .icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: #dcfce7;
    color: var(--primary-color);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.rd-contact-info-bar .info-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.rd-contact-info-bar .info-text span {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.rd-contact-info-bar .info-text strong {
    font-size: 16px;
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 700;
    word-break: break-word;
}

.rd-contact-info-bar .divider {
    width: 1px;
    height: 40px;
    background: #e5e7eb;
    margin: 0 24px;
}

@media (max-width: 576px) {
    .rd-contact-info-bar {
        flex-direction: column;
        padding: 24px 20px;
        gap: 20px;
        border-radius: var(--radius-lg);
        align-items: flex-start;
    }

    .rd-contact-info-bar .info-item {
        width: 100%;
        justify-content: flex-start;
    }

    .rd-contact-info-bar .divider {
        width: 100%;
        height: 1px;
        margin: 0;
    }
}

/* Remove extra mobile gap */
@media (max-width: 768px) {
    .contact-section .rd-contact-form-card {
        margin-top: 12px !important;
    }
}

/* ============================================================
   REDESIGNED PREMIUM FOOTER
   ============================================================ */
.rd-footer {
    position: relative;
    overflow: hidden;
    margin-top: 40px;
    border-radius: 24px 24px 0 0;
    background: linear-gradient(90deg,
            var(--primary-color, #22c55e),
            #f97316,
            var(--secondary-color, #16a34a),
            #f97316,
            var(--primary-color, #22c55e));
    background-size: 300% auto;
    animation: footerEdgeShimmer 6s linear infinite;
}

/* Decorative gradient top edge — now handled by .rd-footer padding */
.rd-footer-edge {
    display: none;
}

@keyframes footerEdgeShimmer {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 300% center;
    }
}

/* Main footer area */
.rd-footer-main {
    background: linear-gradient(165deg, #111827 0%, #1a2332 40%, #0f1923 100%);
    position: relative;
    padding: 56px 0 40px;
    margin-top: 5px;
    border-radius: 20px 20px 0 0;
}

/* Subtle ambient glow */
.rd-footer-main::before {
    content: '';
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 200px;
    background: radial-gradient(ellipse, rgba(34, 197, 94, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.rd-footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    position: relative;
    z-index: 1;
}

/* Footer columns */
.rd-footer-col {
    display: flex;
    flex-direction: column;
}

/* Brand column */
.rd-footer-logo {
    display: inline-block;
    margin-bottom: 16px;
}

.rd-footer-logo img {
    height: 44px;
    width: auto;
    filter: brightness(1.1);
    transition: filter 0.3s ease;
}

.rd-footer-logo:hover img {
    filter: brightness(1.3);
}

.rd-footer-tagline {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    font-family: var(--font-body);
    letter-spacing: 0.3px;
}

/* Contact info items */
.rd-footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rd-footer-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 13px;
    line-height: 1.5;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

.rd-footer-info-item:hover {
    color: rgba(255, 255, 255, 0.9);
    transform: translateX(4px);
}

.rd-footer-info-item i {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 197, 94, 0.12);
    color: var(--primary-color, #22c55e);
    border-radius: 8px;
    font-size: 13px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.rd-footer-info-item:hover i {
    background: var(--primary-color, #22c55e);
    color: #fff;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.rd-footer-info-item span {
    padding-top: 6px;
}

/* Footer headings */
.rd-footer-heading {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    font-family: var(--font-heading);
    font-style: italic;
    margin-bottom: 20px;
    padding-bottom: 12px;
    position: relative;
    letter-spacing: 0.3px;
}

.rd-footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color, #22c55e), transparent);
    border-radius: 3px;
}

/* Footer links */
.rd-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.rd-footer-links li {
    display: block;
}

.rd-footer-links li a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-size: 14px;
    padding: 8px 0;
    transition: all 0.3s ease;
    font-family: var(--font-body);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.rd-footer-links li:last-child a {
    border-bottom: none;
}

.rd-footer-links li a i {
    font-size: 9px;
    color: var(--primary-color, #22c55e);
    opacity: 0.4;
    transition: all 0.3s ease;
    transform: translateX(0);
}

.rd-footer-links li a:hover {
    color: #fff;
    padding-left: 6px;
}

.rd-footer-links li a:hover i {
    opacity: 1;
    transform: translateX(3px);
}

/* Social icons */
.rd-footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
    justify-content: center;
}

.rd-social-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 16px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.rd-social-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--primary-color, #22c55e), var(--secondary-color, #16a34a));
    opacity: 0;
    transition: opacity 0.35s ease;
}

.rd-social-icon i {
    position: relative;
    z-index: 1;
}

.rd-social-icon:hover {
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.25);
    border-color: transparent;
}

.rd-social-icon:hover::before {
    opacity: 1;
}

/* App download section */
.rd-footer-app {
    margin-top: 0;
    text-align: center;
}

.rd-app-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    margin-bottom: 10px;
    font-family: var(--font-body);
    font-weight: 500;
    text-align: center !important;
}

/* Play Store styled button */
.rd-playstore-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 8px 18px;
    color: #fff;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.rd-playstore-btn i {
    font-size: 22px;
    color: var(--primary-color, #22c55e);
    transition: all 0.3s ease;
}

.rd-playstore-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    text-align: left;
}

.rd-playstore-text small {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

.rd-playstore-text strong {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    font-family: var(--font-body);
    letter-spacing: 0.3px;
}

.rd-playstore-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(34, 197, 94, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: #fff;
}

.rd-playstore-btn:hover i {
    transform: scale(1.15);
    color: #4ade80;
}

/* Copyright bar */
.rd-footer-bottom {
    background: linear-gradient(165deg, rgba(8, 12, 20, 0.95) 0%, rgba(6, 10, 16, 0.98) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 16px 0;
    position: relative;
    z-index: 1;
}

/* Fix iOS bottom overscroll bounce showing white body background */
.rd-footer-bottom::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 50vh;
    background: #060a10;
    z-index: 0;
}

.rd-footer-bottom-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rd-copyright {
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
    font-family: var(--font-body);
    margin: 0;
    text-align: center;
}

.rd-copyright strong {
    color: rgba(255, 255, 255, 0.65);
    font-weight: 600;
}

/* ============================================================
   FOOTER RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
    .rd-footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .rd-footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 576px) {
    .rd-footer-main {
        padding: 36px 0 28px;
    }

    .rd-footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 20px 16px;
        padding: 0 16px;
    }

    .rd-footer-brand {
        grid-column: 1 / -1;
        text-align: center;
        align-items: center;
    }

    .rd-footer-col:last-child {
        grid-column: 1 / -1;
    }

    .rd-footer-logo img {
        height: 36px;
    }

    .rd-footer-tagline {
        font-size: 13px;
    }

    .rd-footer-contact-info {
        align-items: center;
    }

    .rd-footer-info-item {
        justify-content: center;
        text-align: left;
    }

    .rd-footer-heading {
        text-align: center;
        font-size: 15px;
    }

    .rd-footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .rd-footer-links li a {
        justify-content: center;
        font-size: 13px;
        padding: 7px 0;
    }

    .rd-footer-social {
        justify-content: center;
    }

    .rd-footer-app {
        text-align: center;
    }

    .rd-footer-bottom {
        padding: 14px 0 72px;
    }

    .rd-copyright {
        font-size: 12px;
    }
}

/* ============================================================
   FRESH BOUNCE PRELOADER
   A playful, logo-centric loading experience with
   bouncing brand dots, shimmer sweep, and gradient progress.
   ============================================================ */

/* ── Base container ── */
.rd-preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity .5s ease, transform .5s ease;
}

.rd-preloader.rd-preloader-dismiss {
    opacity: 0;
    transform: scale(1.06);
    pointer-events: none;
}

/* ── Bouncing dots ── */
.rd-preloader-dots {
    display: flex;
    gap: 10px;
    margin-bottom: 32px;
}

.rd-preloader-dots span {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: block;
    animation: rdBounce 1.4s ease-in-out infinite;
}

.rd-preloader-dots span:nth-child(1) {
    background: #22c55e;
    animation-delay: 0s;
}

.rd-preloader-dots span:nth-child(2) {
    background: #16a34a;
    animation-delay: .12s;
}

.rd-preloader-dots span:nth-child(3) {
    background: var(--primary-color, #22c55e);
    animation-delay: .24s;
}

.rd-preloader-dots span:nth-child(4) {
    background: #f97316;
    animation-delay: .36s;
}

.rd-preloader-dots span:nth-child(5) {
    background: #fb923c;
    animation-delay: .48s;
}

@keyframes rdBounce {

    0%,
    80%,
    100% {
        transform: translateY(0) scale(1);
    }

    40% {
        transform: translateY(-24px) scale(1.12);
    }
}

/* ── Logo ── */
.rd-preloader-logo {
    position: relative;
    overflow: hidden;
    line-height: 0;
}

.rd-preloader-logo img {
    width: 220px;
    max-width: 60vw;
    height: auto;
    opacity: 0;
    animation: rdLogoReveal .7s .3s ease forwards;
    filter: drop-shadow(0 6px 28px rgba(34, 197, 94, .1));
}

@keyframes rdLogoReveal {
    0% {
        opacity: 0;
        transform: translateY(14px) scale(.96);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Shimmer sweep across logo */
.rd-preloader-logo::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(105deg,
            transparent 40%,
            rgba(255, 255, 255, .75) 50%,
            transparent 60%);
    animation: rdShimmerSweep 2.2s .8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes rdShimmerSweep {
    0% {
        transform: translateX(-130%);
    }

    100% {
        transform: translateX(130%);
    }
}

/* ── Tagline ── */
.rd-preloader-tagline {
    margin-top: 18px;
    font-size: 13px;
    font-weight: 500;
    color: #9ca3af;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-family: var(--font-body, 'Poppins', sans-serif);
    opacity: 0;
    transform: translateY(10px);
    animation: rdFadeUp .6s .55s ease forwards;
}

@keyframes rdFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Gradient progress bar ── */
.rd-preloader-bar {
    width: 180px;
    max-width: 50vw;
    height: 3px;
    background: #f3f4f6;
    border-radius: 3px;
    margin-top: 18px;
    overflow: hidden;
}

.rd-preloader-bar-fill {
    height: 100%;
    width: 0;
    border-radius: 3px;
    background: linear-gradient(90deg, #22c55e, #16a34a, #f97316);
    animation: rdBarFill 2.2s .2s ease-in-out forwards;
}

@keyframes rdBarFill {
    0% {
        width: 0;
    }

    70% {
        width: 85%;
    }

    100% {
        width: 100%;
    }
}

/* ============================================================
   UPGRADED AJAX LOADING OVERLAY
   Frosted glass backdrop + gradient ring spinner.
   Overrides the legacy #loading / .custom-loader styles.
   ============================================================ */

body.redesigned #loading {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    background: rgba(255, 255, 255, .55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

body.redesigned #loading .custom-loader {
    display: none !important;
}

.rd-ajax-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.rd-spinner-ring {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3.5px solid #f3f4f6;
    border-top-color: #22c55e;
    border-right-color: #16a34a;
    animation: rdRingSpin .9s linear infinite;
    box-shadow: 0 0 20px rgba(34, 197, 94, .1);
}

@keyframes rdRingSpin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================================
   SKELETON TRANSITION OVERLAY
   Shows when navigating between pages (internal links).
   Mimics the page layout with shimmer placeholders.
   ============================================================ */

.rd-skeleton-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 990;
    background: #fafafa;
    display: none;
    opacity: 0;
    transition: opacity .15s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.rd-skeleton-overlay.active {
    display: block;
    opacity: 1;
}

.rd-skeleton-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 140px 20px 60px;
}

/* ── Shimmer base ── */
.rd-skel-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 37%, #f0f0f0 63%);
    background-size: 400% 100%;
    animation: rdSkelShimmer 1.4s ease infinite;
}

@keyframes rdSkelShimmer {
    0% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ── Skeleton hero banner ── */
.rd-skel-hero {
    width: 100%;
    aspect-ratio: 12 / 5;
    border-radius: var(--radius-lg, 16px);
    margin-bottom: 40px;
}

/* ── Skeleton section header ── */
.rd-skel-section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 28px;
    gap: 10px;
}

.rd-skel-title {
    width: 200px;
    height: 28px;
    border-radius: 8px;
}

.rd-skel-bar {
    width: 60px;
    height: 4px;
    border-radius: 4px;
}

/* ── Skeleton product grid ── */
.rd-skel-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
}

.rd-skel-card {
    width: calc(20% - 12.8px);
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-md, 12px);
    overflow: hidden;
    padding: 0 0 16px 0;
}

.rd-skel-card-img {
    width: 100%;
    aspect-ratio: 1;
}

.rd-skel-card-line {
    height: 12px;
    margin: 12px 14px 0;
    border-radius: 6px;
    width: calc(100% - 28px);
}

.rd-skel-card-line.short {
    width: calc(55% - 14px);
}

/* ── Skeleton responsive ── */
@media (max-width: 1200px) {
    .rd-skel-card {
        width: calc(25% - 12px);
    }
}

@media (max-width: 991px) {
    .rd-skel-card {
        width: calc(33.333% - 10.66px);
    }
}

@media (max-width: 767px) {
    .rd-skel-hero {
        aspect-ratio: 16 / 9;
        border-radius: var(--radius-md, 12px);
    }

    .rd-skel-card {
        width: calc(50% - 8px);
    }

    .rd-skel-title {
        width: 160px;
        height: 22px;
    }
}

/* ── Skeleton variants (hidden by default) ── */
.rd-skel-variant {
    display: none;
}

/* ============================================================
   PRODUCT DETAIL SKELETON
   ============================================================ */

/* Breadcrumb skeleton */
.rd-skel-breadcrumb {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    align-items: center;
}

.rd-skel-crumb {
    height: 14px;
    width: 80px;
    border-radius: 6px;
}

.rd-skel-crumb:nth-child(2) {
    width: 100px;
}

.rd-skel-crumb:nth-child(3) {
    width: 140px;
}

/* Product layout (image + info side by side) */
.rd-skel-product {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.rd-skel-product-img {
    flex: 0 0 36%;
    max-width: 36%;
}

.rd-skel-product-main-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-md, 12px);
}

.rd-skel-product-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.rd-skel-thumb {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    flex-shrink: 0;
}

.rd-skel-product-info {
    flex: 1;
    min-width: 0;
}

/* Text line variants */
.rd-skel-pline {
    height: 14px;
    border-radius: 6px;
}

.rd-skel-pline.xl {
    width: 85%;
    height: 26px;
}

.rd-skel-pline.lg {
    width: 60%;
    height: 18px;
}

.rd-skel-pline.price {
    width: 35%;
    height: 32px;
}

.rd-skel-pline.md {
    width: 90%;
}

.rd-skel-pline.sm {
    width: 55%;
}

.rd-skel-pline.full {
    width: 100%;
}

/* Action buttons skeleton */
.rd-skel-product-btns {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

.rd-skel-btn {
    height: 48px;
    flex: 1;
    border-radius: var(--radius-md, 12px);
}

/* ── Product detail responsive ── */
@media (max-width: 767px) {
    .rd-skel-product {
        flex-direction: column;
        gap: 24px;
    }

    .rd-skel-product-img {
        flex: none;
        max-width: 100%;
        width: 100%;
    }

    .rd-skel-thumb {
        width: 52px;
        height: 52px;
    }

    .rd-skel-pline.xl {
        height: 22px;
    }

    .rd-skel-pline.price {
        height: 26px;
    }
}

/* ============================================================
   GENERIC / CHECKOUT SKELETON
   ============================================================ */

.rd-skel-generic {
    max-width: 800px;
}

.rd-skel-block {
    width: 100%;
    height: 200px;
    border-radius: var(--radius-md, 12px);
}

@media (max-width: 767px) {
    .hide-on-mobile {
        display: none !important;
    }
}