/* ==========================================================================
   Hitek.kz 2026 Redesign Stylesheet
   Clean Modern Light UI — Header, Hero, Trust Bar, Product Cards, Catalogue
   ========================================================================== */

:root {
    --rd-bg: #f5f6f8;
    --rd-surface: #ffffff;
    --rd-surface-soft: #f8f9fb;
    --rd-text: #111827;
    --rd-text-secondary: #6b7280;
    --rd-text-muted: #9ca3af;
    --rd-border: #e5e7eb;
    --rd-border-soft: #eef0f4;
    --rd-accent: #2563eb;
    --rd-accent-soft: #eff6ff;
    --rd-dark: #111827;
    --rd-dark-hover: #1f2937;
    --rd-pink: #f43f5e;
    --rd-pink-soft: #ffe4e6;
    --rd-purple: #9333ea;
    --rd-green: #16a34a;
    --rd-green-bright: #22c55e;
    --rd-amber: #f59e0b;
    --rd-radius-xl: 24px;
    --rd-radius-lg: 18px;
    --rd-radius-md: 14px;
    --rd-radius-sm: 10px;
    --rd-shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.04);
    --rd-shadow-md: 0 8px 24px rgba(15, 23, 42, 0.07);
    --rd-shadow-lg: 0 16px 36px rgba(15, 23, 42, 0.10);
}

body.rd-body {
    background-color: var(--rd-bg) !important;
    color: var(--rd-text) !important;
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    padding-bottom: 76px;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

@media (min-width: 992px) {
    body.rd-body {
        padding-bottom: 32px;
    }
}

.rd-container {
    max-width: 1380px;
    margin: 0 auto;
    padding-left: 16px;
    padding-right: 16px;
}

@media (min-width: 768px) {
    .rd-container {
        padding-left: 24px;
        padding-right: 24px;
    }
}

/* ==========================================================================
   1. Top Header Navigation
   ========================================================================== */
.rd-header {
    position: sticky;
    top: 0;
    z-index: 1035;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--rd-border-soft);
}

.rd-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: 68px;
}

.rd-logo {
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--rd-text) !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: baseline;
    line-height: 1;
    flex-shrink: 0;
}

.rd-logo-dot {
    color: var(--rd-accent);
    margin-left: 1px;
}

.rd-nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.rd-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 13px;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 500;
    color: #374151 !important;
    text-decoration: none !important;
    transition: background-color 0.18s ease, color 0.18s ease;
    white-space: nowrap;
    cursor: pointer;
    border: none;
    background: transparent;
}

.rd-nav-link:hover,
.rd-nav-link.active {
    background-color: #f3f4f6;
    color: var(--rd-text) !important;
}

.rd-nav-link i {
    font-size: 0.95rem;
    color: #4b5563;
}

.rd-nav-link-promo i {
    color: #f97316 !important;
}

/* Header Search Input */
.rd-search-box {
    flex: 1;
    max-width: 360px;
    position: relative;
}

.rd-search-form {
    display: flex;
    align-items: center;
    background: #f3f4f6;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 4px 12px 4px 16px;
    transition: all 0.2s ease;
}

.rd-search-form:focus-within {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.rd-search-icon {
    color: #6b7280;
    font-size: 0.95rem;
    margin-right: 10px;
}

.rd-search-input {
    border: none;
    background: transparent;
    width: 100%;
    font-size: 0.92rem;
    color: var(--rd-text);
    outline: none;
    padding: 5px 0;
}

.rd-search-input::placeholder {
    color: #9ca3af;
}

.rd-search-cam-btn {
    border: none;
    background: transparent;
    color: #4b5563;
    padding: 4px 6px;
    border-radius: 8px;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.rd-search-cam-btn:hover {
    color: var(--rd-accent);
    background: rgba(37, 99, 235, 0.08);
}

/* Header Right Icons */
.rd-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.rd-icon-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1f2937 !important;
    text-decoration: none !important;
    font-size: 1.15rem;
    transition: background-color 0.18s ease, transform 0.15s ease;
    background: transparent;
    border: none;
}

.rd-icon-btn:hover {
    background-color: #f3f4f6;
}

.rd-badge-count {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--rd-pink);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 2px solid #ffffff;
}

/* Mobile Sub-header Search Bar */
.rd-mobile-search-bar {
    padding: 4px 0 12px;
    background: #ffffff;
    border-bottom: 1px solid var(--rd-border-soft);
}

@media (max-width: 991.98px) {
    .rd-header-inner {
        height: 56px;
    }
    .rd-logo {
        font-size: 1.45rem;
    }
}

/* Live Search Dropdown Light Override */
.rd-live-search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    min-width: 340px;
    background: #ffffff;
    border: 1px solid var(--rd-border);
    border-radius: 16px;
    box-shadow: var(--rd-shadow-lg);
    padding: 10px;
    z-index: 1060;
}

@media (max-width: 575.98px) {
    .rd-live-search-dropdown {
        min-width: 100%;
    }
}

/* ==========================================================================
   2. Hero Banner Slider (Homepage)
   ========================================================================== */
.rd-hero-wrap {
    margin-top: 16px;
    margin-bottom: 14px;
}

.rd-hero-card {
    position: relative;
    border-radius: var(--rd-radius-xl);
    background: linear-gradient(135deg, #e5e7eb 0%, #f3f4f6 48%, #d1d5db 100%);
    overflow: hidden;
    min-height: 360px;
    padding: 36px 44px;
    display: grid;
    grid-template-columns: 1.25fr 1fr 0.9fr;
    align-items: center;
    gap: 24px;
    box-shadow: var(--rd-shadow-sm);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

/* Decorative soft waves in hero background */
.rd-hero-card::before {
    content: "";
    position: absolute;
    right: 18%;
    top: -30%;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
}

.rd-hero-left {
    position: relative;
    z-index: 2;
}

.rd-hero-eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #4b5563;
    margin-bottom: 12px;
}

.rd-hero-title {
    font-size: clamp(2rem, 3.6vw, 3.35rem);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -0.03em;
    color: #0f172a;
    margin: 0 0 14px 0;
    white-space: pre-line;
}

.rd-hero-subtitle {
    font-size: 1.05rem;
    color: #374151;
    margin: 0 0 24px 0;
    max-width: 400px;
}

.rd-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #111827;
    color: #ffffff !important;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 12px 26px;
    border-radius: 999px;
    text-decoration: none !important;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 6px 18px rgba(17, 24, 39, 0.18);
}

.rd-hero-btn:hover {
    background: #1f2937;
    transform: translateY(-2px);
}

.rd-hero-center {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 290px;
}

.rd-hero-img {
    max-width: 100%;
    max-height: 285px;
    object-fit: contain;
    filter: drop-shadow(0 20px 30px rgba(15, 23, 42, 0.16));
    transition: transform 0.4s cubic-bezier(0.2, 0, 0.2, 1);
    border-radius: 20px;
}

.rd-hero-card:hover .rd-hero-img {
    transform: scale(1.03) translateY(-3px);
}

.rd-hero-right {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-left: 16px;
}

.rd-hero-feature {
    display: flex;
    align-items: center;
    gap: 14px;
}

.rd-hero-feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(8px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #111827;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.rd-hero-feature-text {
    font-size: 0.92rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.3;
}

.rd-hero-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 5;
}

.rd-hero-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 1.5px solid #4b5563;
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rd-hero-dot.active {
    background: #111827;
    border-color: #111827;
    transform: scale(1.15);
}

@media (max-width: 991.98px) {
    .rd-hero-card {
        grid-template-columns: 1.15fr 0.85fr;
        padding: 22px 20px 34px;
        min-height: 210px;
        gap: 12px;
    }
    .rd-hero-right {
        display: none;
    }
    .rd-hero-eyebrow {
        display: none;
    }
    .rd-hero-title {
        font-size: 1.55rem;
        margin-bottom: 8px;
    }
    .rd-hero-subtitle {
        font-size: 0.85rem;
        margin-bottom: 14px;
    }
    .rd-hero-btn {
        padding: 8px 18px;
        font-size: 0.84rem;
    }
    .rd-hero-center {
        height: 155px;
    }
    .rd-hero-img {
        max-height: 150px;
    }
}

/* ==========================================================================
   3. Trust / Benefits Strip
   ========================================================================== */
.rd-trust-strip {
    background: #ffffff;
    border-radius: var(--rd-radius-lg);
    border: 1px solid var(--rd-border-soft);
    padding: 12px 18px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    box-shadow: var(--rd-shadow-sm);
}

.rd-trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 12px;
    flex: 1;
    border-right: 1px solid #eef0f4;
    text-decoration: none !important;
    color: var(--rd-text) !important;
}

.rd-trust-item:last-of-type {
    border-right: none;
}

.rd-trust-icon {
    font-size: 1.35rem;
    color: #111827;
    flex-shrink: 0;
}

.rd-trust-text {
    font-size: 0.85rem;
    font-weight: 500;
    color: #374151;
    line-height: 1.25;
}

.rd-trust-promo-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fef3c7;
    color: #111827 !important;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 12px;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.rd-trust-promo-btn:hover {
    background: #fde68a;
    transform: translateY(-1px);
}

@media (max-width: 991.98px) {
    .rd-trust-strip {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        gap: 8px;
        margin-bottom: 22px;
    }
    .rd-trust-item {
        background: #ffffff;
        border: 1px solid var(--rd-border-soft);
        border-radius: 14px;
        padding: 10px 6px;
        flex-direction: column;
        text-align: center;
        gap: 6px;
        box-shadow: var(--rd-shadow-sm);
    }
    .rd-trust-icon {
        font-size: 1.15rem;
    }
    .rd-trust-text {
        font-size: 0.68rem;
        line-height: 1.18;
    }
    .rd-trust-promo-btn {
        display: none;
    }
}

/* ==========================================================================
   4. Section Titles
   ========================================================================== */
.rd-section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 16px;
}

.rd-section-title {
    font-size: clamp(1.35rem, 2.2vw, 1.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--rd-text);
    margin: 0;
}

.rd-section-link {
    font-size: 0.92rem;
    font-weight: 600;
    color: #374151 !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.15s ease;
}

.rd-section-link:hover {
    color: var(--rd-accent) !important;
}

/* ==========================================================================
   5. Redesigned Product Grid & Product Card
   ========================================================================== */
.rd-product-grid {
    display: grid;
    grid-template-columns: repeat(var(--products-per-row-desktop, 5), minmax(0, 1fr));
    gap: 16px;
}

@media (max-width: 1199.98px) {
    .rd-product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .rd-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }
}

@media (max-width: 767.98px) {
    .rd-product-grid {
        grid-template-columns: repeat(var(--products-per-row-mobile, 2), minmax(0, 1fr));
        gap: 10px;
    }
}

/* List mode override in catalogue */
.rd-product-grid.rd-list-view {
    grid-template-columns: 1fr !important;
}

.rd-product-grid.rd-list-view .rd-card {
    flex-direction: row;
    align-items: center;
    gap: 20px;
}

.rd-product-grid.rd-list-view .rd-card-media {
    width: 180px;
    flex-shrink: 0;
    margin-bottom: 0;
}

.rd-card {
    background: var(--rd-surface);
    border: 1px solid var(--rd-border-soft);
    border-radius: 20px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    box-shadow: var(--rd-shadow-sm);
    height: 100%;
}

@media (hover: hover) {
    .rd-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--rd-shadow-md);
        border-color: #d1d5db;
    }
}

/* Top Image Container */
.rd-card-media {
    position: relative;
    background: linear-gradient(180deg, #f8f9fb 0%, #f1f4f9 100%);
    border-radius: 14px;
    aspect-ratio: 1 / 0.95;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 12px;
}

.rd-card-img-link {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    text-decoration: none;
    overflow: hidden;
}

.rd-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 14px;
    display: block;
}

@media (hover: hover) {
    .rd-card:hover .rd-card-img {
        transform: scale(1.07);
    }
}

/* Top-left Status Badge */
.rd-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.10);
}

.rd-badge-discount {
    background: var(--rd-pink);
}

.rd-badge-purple {
    background: var(--rd-purple);
}

.rd-badge-hit {
    background: #1e293b;
}

.rd-badge-stock {
    background: var(--rd-green-bright);
}

.rd-badge-new {
    background: var(--rd-green);
}

.rd-badge-out {
    background: #6b7280;
}

/* Top-right Wishlist Heart Button */
.rd-card-fav-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #374151;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.18s ease;
}

.rd-card-fav-btn:hover {
    background: #ffffff;
    color: var(--rd-pink);
    transform: scale(1.08);
}

.rd-card-fav-btn.is-fav {
    color: var(--rd-pink);
}

/* Card Body */
.rd-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.rd-card-title {
    font-size: 0.94rem;
    font-weight: 700;
    color: var(--rd-text) !important;
    text-decoration: none !important;
    line-height: 1.32;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.48rem;
}

.rd-card-title:hover {
    color: var(--rd-accent) !important;
}

/* Rating & Stock row */
.rd-card-rating-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 0.78rem;
}

.rd-rating-stars {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--rd-text);
    font-weight: 700;
}

.rd-rating-stars i {
    color: #f59e0b;
    font-size: 0.78rem;
}

.rd-rating-count {
    color: var(--rd-text-secondary);
    font-weight: 400;
}

.rd-wholesale-stock-pill {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #475569;
}

/* Spec Chips Row (e.g. 20W, USB-C, Оригинал) */
.rd-card-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}

.rd-spec-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 7px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 0.72rem;
    font-weight: 600;
    color: #334155;
    line-height: 1.2;
    white-space: nowrap;
}

.rd-spec-chip i {
    font-size: 0.68rem;
    color: #475569;
}

/* Wholesale Bulk Price Row */
.rd-bulk-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 8px;
}

.rd-bulk-chip {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 6px;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

/* Price Row */
.rd-card-price-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: auto;
    margin-bottom: 10px;
}

.rd-price-current {
    font-size: 1.18rem;
    font-weight: 800;
    color: var(--rd-text);
    letter-spacing: -0.02em;
}

.rd-price-old {
    font-size: 0.82rem;
    color: var(--rd-text-muted);
    text-decoration: line-through;
    font-weight: 500;
}

.rd-price-SaveBadge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 6px;
    background: var(--rd-pink-soft);
    color: #e11d48;
}

/* Bottom Action Buttons */
.rd-card-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
}

.rd-btn-cart {
    flex: 1;
    min-width: 0;
    background: var(--rd-dark);
    color: #ffffff;
    border: none;
    border-radius: 11px;
    padding: 9px 10px;
    font-size: 0.84rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: background-color 0.18s ease, transform 0.12s ease;
    white-space: nowrap;
}

.rd-btn-cart:hover {
    background: var(--rd-dark-hover);
}

.rd-btn-cart:active {
    transform: scale(0.98);
}

.rd-btn-cart.is-added {
    background: var(--rd-green);
}

.rd-btn-quick {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    border: 1px solid var(--rd-border);
    background: #ffffff;
    color: #374151;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.18s ease;
    font-size: 0.88rem;
}

.rd-btn-quick:hover {
    border-color: var(--rd-dark);
    color: var(--rd-dark);
    background: #f9fafb;
}

.rd-cart-text-short {
    display: none;
}

.rd-btn-whatsapp {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: #25D366;
    color: #ffffff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.96rem;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.25);
    border: none;
}

.rd-btn-whatsapp:hover {
    background: #20ba59;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}

.rd-btn-whatsapp:active {
    transform: scale(0.96);
}

@media (max-width: 575.98px) {
    .rd-card {
        padding: 9px;
        border-radius: 16px;
    }
    .rd-card-title {
        font-size: 0.84rem;
        min-height: 2.2rem;
    }
    .rd-price-current {
        font-size: 1.04rem;
    }
    .rd-spec-chip {
        padding: 2px 6px;
        font-size: 0.66rem;
    }
    .rd-card-actions {
        gap: 5px;
    }
    .rd-btn-cart {
        padding: 8px 8px;
        font-size: 0.78rem;
    }
    .rd-btn-quick,
    .rd-btn-whatsapp {
        width: 32px;
        height: 32px;
        border-radius: 9px;
        font-size: 0.82rem;
    }
}

@media (max-width: 440px) and (min-width: 380px) {
    .rd-cart-text-full {
        display: none;
    }
    .rd-cart-text-short {
        display: inline;
    }
    .rd-btn-cart {
        padding: 7px 6px;
        gap: 4px;
        font-size: 0.74rem;
    }
}

@media (max-width: 379.98px) {
    .rd-card-actions {
        gap: 4px;
    }
    .rd-cart-text-full,
    .rd-cart-text-short {
        display: none;
    }
    .rd-btn-cart {
        padding: 7px 8px;
    }
    .rd-btn-quick,
    .rd-btn-whatsapp {
        width: 30px;
        height: 30px;
        border-radius: 8px;
        font-size: 0.78rem;
    }
}

/* ==========================================================================
   6. Bottom 3 Promo Banners (Homepage)
   ========================================================================== */
.rd-promo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 32px;
    margin-bottom: 24px;
}

.rd-promo-card {
    position: relative;
    border-radius: 20px;
    padding: 24px 26px;
    min-height: 185px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    text-decoration: none !important;
    box-shadow: var(--rd-shadow-sm);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.rd-promo-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--rd-shadow-md);
}

.rd-promo-dark {
    background: linear-gradient(135deg, #111827 0%, #1f2937 60%, #374151 100%);
    color: #ffffff !important;
}

.rd-promo-light {
    background: linear-gradient(135deg, #eef2f6 0%, #e2e8f0 100%);
    color: #111827 !important;
    border: 1px solid #e2e8f0;
}

.rd-promo-content {
    position: relative;
    z-index: 2;
    max-width: 62%;
}

.rd-promo-title {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.18;
    margin: 0 0 8px 0;
    white-space: pre-line;
}

.rd-promo-sub {
    font-size: 0.82rem;
    opacity: 0.82;
    margin: 0 0 16px 0;
    line-height: 1.35;
}

.rd-promo-btn {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 999px;
    width: fit-content;
    transition: all 0.18s ease;
}

.rd-promo-dark .rd-promo-btn {
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.rd-promo-dark:hover .rd-promo-btn {
    background: rgba(255, 255, 255, 0.18);
}

.rd-promo-light .rd-promo-btn {
    border: 1px solid #cbd5e1;
    color: #111827;
    background: #ffffff;
}

.rd-promo-img {
    position: absolute;
    right: -8px;
    bottom: -10px;
    width: 145px;
    height: 145px;
    object-fit: contain;
    z-index: 1;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.22));
    border-radius: 16px;
    transition: transform 0.3s ease;
}

.rd-promo-card:hover .rd-promo-img {
    transform: scale(1.06) rotate(-2deg);
}

@media (max-width: 991.98px) {
    .rd-promo-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .rd-promo-card {
        min-height: 155px;
        padding: 20px;
    }
}

/* ==========================================================================
   7. Catalogue Page Layout (Left Sidebar + Right Product Grid)
   ========================================================================== */
.rd-catalog-layout {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 22px;
    margin-top: 18px;
    align-items: start;
}

@media (max-width: 991.98px) {
    .rd-catalog-layout {
        grid-template-columns: 1fr;
    }
}

/* Sidebar Card */
.rd-sidebar {
    background: var(--rd-surface);
    border: 1px solid var(--rd-border-soft);
    border-radius: 20px;
    padding: 18px 16px;
    box-shadow: var(--rd-shadow-sm);
}

.rd-filter-group {
    border-bottom: 1px solid #eef0f4;
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.rd-filter-group:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.rd-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--rd-text);
    cursor: pointer;
    margin-bottom: 10px;
    user-select: none;
}

.rd-filter-header i {
    font-size: 0.75rem;
    color: #6b7280;
    transition: transform 0.2s ease;
}

/* Sidebar Category List */
.rd-cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.rd-cat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: 10px;
    text-decoration: none !important;
    color: #374151 !important;
    font-size: 0.86rem;
    font-weight: 500;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.rd-cat-item:hover {
    background: #f3f4f6;
}

.rd-cat-item.active {
    background: var(--rd-accent-soft);
    color: var(--rd-accent) !important;
    font-weight: 700;
}

.rd-cat-item-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.rd-cat-item-left i {
    width: 18px;
    text-align: center;
    font-size: 0.92rem;
    color: #4b5563;
}

.rd-cat-item.active .rd-cat-item-left i {
    color: var(--rd-accent);
}

.rd-cat-count {
    font-size: 0.78rem;
    color: var(--rd-text-muted);
    font-weight: 500;
    margin-left: 6px;
}

.rd-cat-item.active .rd-cat-count {
    color: var(--rd-accent);
}

/* Sidebar Checkbox List */
.rd-check-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.rd-check-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 0.86rem;
    color: #374151;
    padding: 2px 2px;
}

.rd-check-left {
    display: flex;
    align-items: center;
    gap: 9px;
}

.rd-check-input {
    width: 17px;
    height: 17px;
    border-radius: 5px;
    accent-color: var(--rd-accent);
    cursor: pointer;
}

/* Color Swatches */
.rd-color-swatches {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 4px;
}

.rd-color-swatch {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.rd-color-swatch:hover {
    transform: scale(1.12);
}

.rd-color-swatch.active {
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--rd-accent);
}

/* Catalogue Top Toolbar */
.rd-catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.rd-toolbar-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.rd-pill-control {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid var(--rd-border);
    border-radius: 12px;
    padding: 8px 14px;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--rd-text);
    cursor: pointer;
    box-shadow: var(--rd-shadow-sm);
}

.rd-sort-select {
    background: #ffffff;
    border: 1px solid var(--rd-border);
    border-radius: 12px;
    padding: 8px 14px;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--rd-text);
    cursor: pointer;
    box-shadow: var(--rd-shadow-sm);
    outline: none;
}

.rd-view-toggle {
    display: inline-flex;
    background: #ffffff;
    border: 1px solid var(--rd-border);
    border-radius: 12px;
    padding: 3px;
    gap: 2px;
}

.rd-view-btn {
    border: none;
    background: transparent;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.rd-view-btn.active {
    background: #111827;
    color: #ffffff;
}

/* Catalogue Grid (sidebar is 270px) - Match Home Page Card Size */
.rd-catalog-main .rd-product-grid {
    --products-per-row-desktop: 4;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1279.98px) and (min-width: 992px) {
    /* Laptops with sidebar visible: 3 columns keep cards ~240-280px, exactly like home page */
    .rd-catalog-main .rd-product-grid {
        --products-per-row-desktop: 3;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) and (min-width: 768px) {
    /* Tablets: sidebar collapsed into drawer, 3 columns */
    .rd-catalog-main .rd-product-grid {
        --products-per-row-desktop: 3;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    /* Mobile: 2 columns */
    .rd-catalog-main .rd-product-grid {
        grid-template-columns: repeat(var(--products-per-row-mobile, 2), minmax(0, 1fr));
        gap: 10px;
    }
}

/* List mode override in catalogue */
.rd-catalog-main .rd-product-grid.rd-list-view {
    grid-template-columns: 1fr !important;
}

/* ==========================================================================
   8. Circular Pagination
   ========================================================================== */
.rd-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    list-style: none;
    margin: 32px 0 16px;
    padding: 0;
}

.rd-page-link {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--rd-text) !important;
    text-decoration: none !important;
    background: #ffffff;
    border: 1px solid var(--rd-border-soft);
    transition: all 0.15s ease;
}

.rd-page-link:hover {
    background: #f3f4f6;
}

.rd-page-link.active {
    background: var(--rd-dark);
    color: #ffffff !important;
    border-color: var(--rd-dark);
}

/* ==========================================================================
   9. Mobile Bottom Navigation Bar (Clean Light)
   ========================================================================== */
.rd-mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 62px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--rd-border);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 1030;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.rd-mob-tab {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none !important;
    color: #6b7280 !important;
    font-size: 0.68rem;
    font-weight: 600;
    position: relative;
}

.rd-mob-tab i {
    font-size: 1.15rem;
}

.rd-mob-tab.active {
    color: var(--rd-accent) !important;
}

.rd-mob-tab.active::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 2.5px;
    border-radius: 0 0 4px 4px;
    background: var(--rd-accent);
}

/* ==========================================================================
   10. Left Slide-Out Categories Menu Drawer (Design Code)
   ========================================================================== */
.panel-backdrop {
    background: rgba(15, 23, 42, 0.42) !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
    z-index: 1055 !important;
}

.rd-cat-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 360px;
    max-width: 88vw;
    background: #ffffff;
    border-right: 1px solid var(--rd-border-soft);
    box-shadow: 16px 0 48px rgba(15, 23, 42, 0.14);
    z-index: 1065;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    will-change: transform;
}

.rd-drawer-enter-active {
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.rd-drawer-leave-active {
    transition: transform 0.22s cubic-bezier(0.4, 0, 1, 1), opacity 0.18s ease;
}

.rd-drawer-enter-from,
.rd-drawer-leave-to {
    transform: translateX(-100%);
    opacity: 0.6;
}

.rd-drawer-enter-to,
.rd-drawer-leave-from {
    transform: translateX(0);
    opacity: 1;
}

.rd-drawer-header {
    padding: 18px 18px 14px;
    border-bottom: 1px solid var(--rd-border-soft);
    background: #ffffff;
    flex-shrink: 0;
}

.rd-drawer-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.rd-drawer-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--rd-text);
    letter-spacing: -0.02em;
}

.rd-drawer-title-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: var(--rd-accent-soft);
    color: var(--rd-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.rd-drawer-close-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid var(--rd-border-soft);
    background: #f8f9fb;
    color: #4b5563;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.16s ease;
    font-size: 0.95rem;
}

.rd-drawer-close-btn:hover {
    background: #f1f5f9;
    color: var(--rd-text);
    border-color: #d1d5db;
}

/* Filter Search inside Left Drawer */
.rd-drawer-search {
    position: relative;
    display: flex;
    align-items: center;
    background: #f3f4f6;
    border: 1px solid transparent;
    border-radius: 11px;
    padding: 7px 12px;
    transition: all 0.18s ease;
}

.rd-drawer-search:focus-within {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.rd-drawer-search-icon {
    color: #6b7280;
    font-size: 0.85rem;
    margin-right: 9px;
}

.rd-drawer-search-input {
    border: none;
    background: transparent;
    width: 100%;
    font-size: 0.86rem;
    color: var(--rd-text);
    outline: none;
}

.rd-drawer-search-input::placeholder {
    color: #9ca3af;
}

.rd-drawer-search-clear {
    border: none;
    background: transparent;
    color: #9ca3af;
    padding: 0 4px;
    font-size: 0.85rem;
    cursor: pointer;
}

.rd-drawer-search-clear:hover {
    color: var(--rd-text);
}

/* Scrollable Category List inside Drawer */
.rd-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 10px 12px;
    overscroll-behavior: contain;
}

.rd-drawer-body::-webkit-scrollbar {
    width: 5px;
}

.rd-drawer-body::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 999px;
}

.rd-drawer-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.rd-drawer-divider {
    height: 1px;
    background: var(--rd-border-soft);
    margin: 6px 8px;
}

.rd-drawer-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 11px;
    border-radius: 12px;
    text-decoration: none !important;
    color: #1f2937 !important;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.rd-drawer-item:hover {
    background-color: #f3f4f6;
    color: var(--rd-text) !important;
}

.rd-drawer-item.active {
    background-color: var(--rd-accent-soft);
    color: var(--rd-accent) !important;
    font-weight: 700;
}

.rd-drawer-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.rd-drawer-item-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: #f8f9fb;
    border: 1px solid #eef0f4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #4b5563;
    font-size: 0.92rem;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.rd-drawer-item:hover .rd-drawer-item-icon {
    background: #ffffff;
    border-color: #e2e8f0;
    color: var(--rd-text);
}

.rd-drawer-item.active .rd-drawer-item-icon {
    background: #dbeafe;
    border-color: #bfdbfe;
    color: var(--rd-accent);
}

.rd-drawer-item-promo .rd-drawer-item-icon {
    background: #fff7ed;
    border-color: #ffedd5;
    color: #f97316;
}

.rd-drawer-item-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rd-drawer-item-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: 8px;
}

.rd-drawer-count {
    font-size: 0.76rem;
    font-weight: 600;
    color: #6b7280;
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 999px;
    line-height: 1.35;
}

.rd-drawer-item.active .rd-drawer-count {
    background: #dbeafe;
    color: var(--rd-accent);
}

.rd-drawer-chevron {
    font-size: 0.7rem;
    color: #9ca3af;
    transition: transform 0.15s ease, color 0.15s ease;
}

.rd-drawer-item:hover .rd-drawer-chevron {
    transform: translateX(2px);
    color: #4b5563;
}

/* Drawer Footer */
.rd-drawer-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--rd-border-soft);
    background: #f8f9fb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-shrink: 0;
}

.rd-drawer-footer-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #4b5563 !important;
    text-decoration: none !important;
    padding: 5px 8px;
    border-radius: 8px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.rd-drawer-footer-link:hover {
    background: #e5e7eb;
    color: var(--rd-text) !important;
}

/* ==========================================================================
   11. Redesigned Dropdown & Sheet Menus (Support, Admin, Profile, Search)
   ========================================================================== */
.rd-dropdown-panel {
    position: fixed;
    background: #ffffff;
    border: 1px solid var(--rd-border-soft);
    box-shadow: 0 22px 54px rgba(15, 23, 42, 0.16), 0 4px 14px rgba(15, 23, 42, 0.06);
    z-index: 1065;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: var(--rd-text);
}

/* Desktop: Floating Dropdown Menu below Top Navbar */
@media (min-width: 992px) {
    .rd-dropdown-panel {
        top: 76px;
        border-radius: 22px;
        max-height: calc(100vh - 104px);
    }
    .rd-dropdown-support {
        left: 50%;
        transform: translateX(-50%);
        width: 480px;
    }
    .rd-dropdown-admin {
        left: 50%;
        transform: translateX(-50%);
        width: 760px;
        max-width: 94vw;
    }
    .rd-dropdown-profile {
        right: max(24px, calc((100vw - 1380px) / 2 + 24px));
        width: 380px;
    }
    .rd-dropdown-search {
        left: 50%;
        transform: translateX(-50%);
        width: 580px;
    }
}

/* Mobile & Tablet: Clean Light Bottom Sheet */
@media (max-width: 991.98px) {
    .rd-dropdown-panel {
        left: 0;
        right: 0;
        bottom: 62px;
        border-radius: 22px 22px 0 0;
        max-height: calc(85vh - 62px);
    }
}

/* Transitions for Dropdown / Sheet */
.rd-menu-enter-active {
    transition: opacity 0.22s ease, transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.rd-menu-leave-active {
    transition: opacity 0.16s ease, transform 0.18s ease;
}

.rd-menu-enter-from,
.rd-menu-leave-to {
    opacity: 0;
}

.rd-menu-enter-to,
.rd-menu-leave-from {
    opacity: 1;
}

.rd-menu-header {
    padding: 16px 20px 14px;
    border-bottom: 1px solid var(--rd-border-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #ffffff;
    flex-shrink: 0;
}

.rd-menu-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rd-menu-badge-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.rd-icon-blue {
    background: #eff6ff;
    color: #2563eb;
}

.rd-icon-amber {
    background: #fffbeb;
    color: #d97706;
}

.rd-icon-emerald {
    background: #ecfdf5;
    color: #059669;
}

.rd-icon-purple {
    background: #faf5ff;
    color: #7c3aed;
}

.rd-icon-rose {
    background: #fff1f2;
    color: #e11d48;
}

.rd-icon-slate {
    background: #f1f5f9;
    color: #334155;
}

.rd-menu-title {
    font-size: 1.04rem;
    font-weight: 800;
    color: var(--rd-text);
    margin: 0;
    line-height: 1.2;
}

.rd-menu-subtitle {
    font-size: 0.76rem;
    color: var(--rd-text-secondary);
    margin: 2px 0 0 0;
}

.rd-menu-body {
    padding: 16px 20px 18px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.rd-menu-section-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--rd-text-muted);
    margin: 0 0 8px 4px;
}

/* Support Messenger Cards */
.rd-support-messengers {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.rd-messenger-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    text-decoration: none !important;
    border: 1px solid var(--rd-border-soft);
    background: #f8f9fb;
    transition: all 0.18s ease;
}

.rd-messenger-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--rd-shadow-sm);
}

.rd-messenger-wa {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.rd-messenger-wa:hover {
    background: #dcfce7;
}

.rd-messenger-tg {
    background: #f0f9ff;
    border-color: #bae6fd;
}

.rd-messenger-tg:hover {
    background: #e0f2fe;
}

.rd-messenger-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.rd-messenger-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--rd-text);
    line-height: 1.2;
}

.rd-messenger-sub {
    font-size: 0.72rem;
    color: var(--rd-text-secondary);
}

/* Phone Call Banner inside Support */
.rd-support-phone-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 14px;
    background: #f8f9fb;
    border: 1px solid var(--rd-border-soft);
    margin-bottom: 14px;
    text-decoration: none !important;
    color: var(--rd-text) !important;
    transition: background-color 0.15s ease;
}

.rd-support-phone-box:hover {
    background: #f1f5f9;
}

/* Admin Tools Grid */
.rd-admin-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

@media (max-width: 767.98px) {
    .rd-admin-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.rd-admin-card {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    border-radius: 13px;
    background: #f8f9fb;
    border: 1px solid var(--rd-border-soft);
    text-decoration: none !important;
    color: var(--rd-text) !important;
    transition: all 0.16s ease;
}

.rd-admin-card:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: var(--rd-shadow-sm);
    transform: translateY(-1px);
}

.rd-admin-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.rd-admin-card-info {
    min-width: 0;
    flex: 1;
}

.rd-admin-card-title {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--rd-text);
    line-height: 1.22;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rd-admin-card-desc {
    font-size: 0.7rem;
    color: var(--rd-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}

/* ==========================================================================
   Quick View Modal (Поп-ап окно с расширенной информацией) - 2026 Light Bento
   ========================================================================== */

/* Quick View Hover Button on Product Card */
.rd-card-media {
    position: relative;
}

.rd-card-quickview-btn {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 5;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 99px;
    padding: 6px 14px;
    font-size: 0.74rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2);
    cursor: pointer;
}

.rd-card:hover .rd-card-quickview-btn {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.rd-card-quickview-btn:hover {
    background: var(--rd-accent);
    color: #ffffff;
    border-color: var(--rd-accent);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}

/* Modal Backdrop */
.quick-view-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1250;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow-y: auto;
}

/* Modal Dialog Box */
.quick-view-dialog {
    position: relative;
    width: 100%;
    max-width: 920px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(15, 23, 42, 0.06);
    padding: 24px;
    max-height: 92vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: auto;
}

/* Top Header Bar */
.qv-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.qv-header-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 0.74rem;
    font-weight: 600;
}

.qv-pill-cat {
    background: #eff6ff;
    color: #1d4ed8;
}

.qv-pill-brand {
    background: #f1f5f9;
    color: #334155;
}

.qv-pill-sku {
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.qv-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.qv-close-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
    transform: scale(1.06);
}

/* Bento Grid */
.qv-body-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 24px;
    align-items: start;
}

@media (max-width: 860px) {
    .qv-body-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

/* Left Column: Gallery */
.qv-gallery-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.qv-main-img-box {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.qv-main-img {
    max-width: 88%;
    max-height: 88%;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.qv-main-img:hover {
    transform: scale(1.04);
}

.qv-stock-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
}

.qv-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
    color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 2;
}

.qv-arrow-prev {
    left: 10px;
}

.qv-arrow-next {
    right: 10px;
}

.qv-nav-arrow:hover {
    background: #ffffff;
    color: var(--rd-accent);
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.16);
}

.qv-thumbs-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 2px;
}

.qv-thumb-item {
    width: 58px;
    height: 58px;
    border-radius: 12px;
    border: 2px solid transparent;
    background: #f8fafc;
    overflow: hidden;
    padding: 3px;
    cursor: pointer;
    transition: all 0.18s ease;
    flex-shrink: 0;
}

.qv-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qv-thumb-item.active {
    border-color: var(--rd-accent);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25);
    background: #ffffff;
}

.qv-thumb-item:hover:not(.active) {
    border-color: #cbd5e1;
}

/* Right Column: Info & Details */
.qv-info-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.qv-title {
    font-size: 1.28rem;
    font-weight: 700;
    line-height: 1.32;
    color: #0f172a;
    margin: 0;
}

/* Feature Chips */
.qv-chips-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.qv-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 600;
    background: #f1f5f9;
    color: #475569;
}

.qv-chip.chip-bolt {
    background: #fef3c7;
    color: #b45309;
}

.qv-chip.chip-usb {
    background: #eff6ff;
    color: #1d4ed8;
}

.qv-chip.chip-shield {
    background: #ecfdf5;
    color: #047857;
}

/* Price Card */
.qv-price-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.qv-price-current {
    font-size: 1.55rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.qv-price-old {
    font-size: 1rem;
    text-decoration: line-through;
    color: #94a3b8;
    font-weight: 500;
}

.qv-discount-badge {
    background: #ef4444;
    color: #ffffff;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
}

.qv-guarantee-note {
    font-size: 0.74rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 2px;
}

/* Short Description */
.qv-desc-box {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    padding: 10px 12px;
}

.qv-desc-title {
    font-size: 0.74rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 3px;
}

.qv-desc-text {
    font-size: 0.84rem;
    color: #475569;
    line-height: 1.45;
    margin: 0;
}

/* Specifications Box */
.qv-specs-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 12px;
}

.qv-specs-title {
    font-size: 0.74rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.qv-specs-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.qv-spec-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    padding: 2px 0;
    border-bottom: 1px dashed #e2e8f0;
}

.qv-spec-k {
    color: #64748b;
    font-weight: 500;
}

.qv-spec-v {
    color: #0f172a;
    font-weight: 600;
    text-align: right;
}

/* Actions Row: Stepper + Add to Cart + 1-Click */
.qv-actions-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

.qv-stepper {
    display: flex;
    align-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #ffffff;
    overflow: hidden;
    height: 42px;
    flex-shrink: 0;
}

.qv-stepper-btn {
    width: 34px;
    height: 100%;
    border: none;
    background: transparent;
    color: #475569;
    cursor: pointer;
    transition: background 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
}

.qv-stepper-btn:hover:not(:disabled) {
    background: #f1f5f9;
    color: #0f172a;
}

.qv-stepper-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.qv-stepper-input {
    width: 40px;
    text-align: center;
    border: none;
    font-weight: 700;
    font-size: 0.92rem;
    color: #0f172a;
    outline: none;
    -moz-appearance: textfield;
}

.qv-stepper-input::-webkit-outer-spin-button,
.qv-stepper-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qv-btn-cart {
    height: 42px;
    border: none;
    border-radius: 12px;
    background: var(--rd-accent);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
    padding: 0 16px;
}

.qv-btn-cart:hover:not(:disabled) {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}

.qv-btn-cart:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.qv-btn-cart.is-added {
    background: var(--rd-green-bright) !important;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.3) !important;
}

.qv-btn-quick {
    height: 42px;
    border: 1px solid #f59e0b;
    border-radius: 12px;
    background: #fffbeb;
    color: #b45309;
    font-weight: 600;
    font-size: 0.86rem;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.qv-btn-quick:hover:not(:disabled) {
    background: #fef3c7;
    color: #92400e;
    border-color: #d97706;
}

.qv-btn-quick:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.qv-btn-whatsapp {
    height: 42px;
    width: 42px;
    border-radius: 12px;
    background: #25d366;
    border: 1px solid #22c55e;
    color: #ffffff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
    flex-shrink: 0;
}

.qv-btn-whatsapp:hover {
    background: #1fa851;
    border-color: #16a34a;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

/* Full Product Detail Link Button */
.qv-full-detail-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 14px;
    background: #f8fafc;
    color: #1e293b;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 0.88rem;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
    margin-top: 4px;
}

.qv-full-detail-link:hover {
    background: #eff6ff;
    color: var(--rd-accent) !important;
    border-color: #bfdbfe;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}

/* Details Accordion (Desktop vs Mobile Behavior) */
@media (min-width: 769px) {
    .qv-details-toggle-btn {
        display: none !important;
    }
    .qv-details-content {
        display: flex !important;
        flex-direction: column;
        gap: 10px;
        margin-top: 4px;
    }
}

/* Mobile Ultra-Compact Quick View (< 768px) */
@media (max-width: 768px) {
    .quick-view-modal-backdrop {
        padding: 8px;
    }

    .quick-view-dialog {
        padding: 12px 14px 16px;
        border-radius: 20px;
        gap: 8px;
        max-height: 94vh;
        width: 100%;
    }

    .qv-header {
        gap: 6px;
    }

    .qv-header-pill {
        padding: 2px 7px;
        font-size: 0.68rem;
    }

    .qv-close-btn {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    .qv-body-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .qv-gallery-col {
        gap: 6px;
    }

    .qv-main-img-box {
        height: 160px;
        aspect-ratio: unset;
        padding: 6px;
        border-radius: 14px;
    }

    .qv-main-img {
        max-height: 146px;
        max-width: 90%;
    }

    .qv-stock-badge {
        top: 8px;
        left: 8px;
    }

    .qv-stock-badge .badge {
        font-size: 0.65rem;
        padding: 2px 6px;
    }

    .qv-nav-arrow {
        width: 28px;
        height: 28px;
        font-size: 0.72rem;
    }

    .qv-arrow-prev {
        left: 6px;
    }

    .qv-arrow-next {
        right: 6px;
    }

    .qv-thumbs-strip {
        gap: 5px;
        padding: 1px 0;
    }

    .qv-thumb-item {
        width: 40px;
        height: 40px;
        border-radius: 8px;
        padding: 2px;
    }

    .qv-info-col {
        gap: 7px;
    }

    .qv-title {
        font-size: 1rem;
        line-height: 1.22;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin: 0;
    }

    .qv-chips-wrap {
        gap: 3px;
    }

    .qv-chip {
        padding: 2px 6px;
        font-size: 0.66rem;
        border-radius: 6px;
    }

    .qv-price-card {
        padding: 6px 10px;
        border-radius: 10px;
        gap: 1px;
    }

    .qv-price-current {
        font-size: 1.25rem;
    }

    .qv-price-old {
        font-size: 0.88rem;
    }

    .qv-discount-badge {
        font-size: 0.68rem;
        padding: 1px 5px;
    }

    .qv-guarantee-note {
        display: none; /* Hide on mobile to eliminate vertical scrolling */
    }

    .qv-actions-row {
        gap: 6px;
        margin-top: 1px;
    }

    .qv-stepper {
        height: 36px;
        border-radius: 9px;
    }

    .qv-stepper-btn {
        width: 28px;
        font-size: 0.72rem;
    }

    .qv-stepper-input {
        width: 30px;
        font-size: 0.84rem;
    }

    .qv-btn-cart {
        height: 36px;
        border-radius: 9px;
        font-size: 0.82rem;
        padding: 0 10px;
    }

    .qv-btn-quick {
        height: 36px;
        border-radius: 9px;
        font-size: 0.76rem;
        padding: 0 8px;
    }

    .qv-btn-whatsapp {
        height: 36px;
        width: 36px;
        border-radius: 9px;
        font-size: 1.05rem;
    }

    .qv-full-detail-link {
        padding: 8px 12px;
        border-radius: 9px;
        font-size: 0.8rem;
        margin-top: 1px;
    }

    .qv-details-accordion {
        margin-top: 2px;
    }

    .qv-details-toggle-btn {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 7px 10px;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 9px;
        font-size: 0.76rem;
        font-weight: 600;
        color: #475569;
        cursor: pointer;
        transition: all 0.15s ease;
    }

    .qv-details-toggle-btn:hover {
        background: #f1f5f9;
        color: #0f172a;
    }

    .qv-details-content {
        display: none;
        margin-top: 5px;
    }

    .qv-details-content.is-open {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .qv-desc-box, .qv-specs-box {
        padding: 7px 9px;
        border-radius: 9px;
    }

    .qv-desc-title, .qv-specs-title {
        font-size: 0.68rem;
        margin-bottom: 2px;
    }

    .qv-desc-text, .qv-spec-row {
        font-size: 0.76rem;
    }
}



