/* ============================================
   RESTO MARKET THEME — Rasmdagidek dizayn
   ============================================ */

/* Top Bar */
.resto-top-bar {
    position: sticky;
    top: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}
.top-bar-brand {
    font-size: 15px;
    font-weight: 700;
    color: #F25D19;
    letter-spacing: 0.2px;
}
.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.top-bar-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #FFF5EF;
    color: #F25D19;
    transition: background 0.15s;
}
.top-bar-icon:hover { background: #FFE4D4; }


/* Scanner Frame + Laser Animation */
.scanner-frame {
    position: absolute;
    inset: 40px;
    pointer-events: none;
    overflow: hidden;
    border-radius: 12px;
}
.scan-corner {
    position: absolute;
    width: 34px;
    height: 34px;
    border: 3px solid rgba(255, 255, 255, 0.95);
    filter: drop-shadow(0 0 6px rgba(242, 93, 25, 0.6));
}
.scan-tl { top: 0; left: 0; border-right: none; border-bottom: none; border-top-left-radius: 10px; }
.scan-tr { top: 0; right: 0; border-left: none; border-bottom: none; border-top-right-radius: 10px; }
.scan-bl { bottom: 0; left: 0; border-right: none; border-top: none; border-bottom-left-radius: 10px; }
.scan-br { bottom: 0; right: 0; border-left: none; border-top: none; border-bottom-right-radius: 10px; }
.scan-laser {
    position: absolute;
    left: 4%;
    right: 4%;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, rgba(242, 93, 25, 0.3) 15%, #F25D19 50%, rgba(242, 93, 25, 0.3) 85%, transparent 100%);
    box-shadow: 0 0 14px #F25D19, 0 0 28px rgba(242, 93, 25, 0.6);
    border-radius: 2px;
    animation: scanLaser 2.4s ease-in-out infinite;
}
.scan-laser::before {
    content: '';
    position: absolute;
    left: 0; right: 0;
    top: -24px;
    height: 24px;
    background: linear-gradient(180deg, transparent, rgba(242, 93, 25, 0.18));
    pointer-events: none;
}
@keyframes scanLaser {
    0%   { top: 0%; opacity: 0.7; }
    50%  { top: calc(100% - 3px); opacity: 1; }
    100% { top: 0%; opacity: 0.7; }
}

:root {
    --rm-orange: #F25D19;
    --rm-orange-light: #FF8C4B;
    --rm-orange-bg: #FFF5EF;
    --rm-dark: #1A1A1A;
    --rm-gray: #888;
    --rm-light: #F5F5F5;
    --rm-border: #EEEEEE;
    --rm-green: #00B578;
    --rm-white: #FFFFFF;
    --rm-radius: 10px;
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    background: var(--rm-light) !important;
    margin: 0;
    padding-bottom: 65px !important;
    -webkit-font-smoothing: antialiased;
}

/* Hide ALL default Bagisto UI elements */
header,
header.shadow-gray,
.shadow-gray,
footer,
[class*="services"],
.skip-to-main-content-link,
#app > header,
#app > div > header {
    display: none !important;
    height: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
    position: absolute !important;
}

/* ===== TOP TABS ===== */
.resto-top-tabs {
    display: flex;
    gap: 0;
    background: var(--rm-white);
    padding: 0;
    border-bottom: 1px solid var(--rm-border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.resto-top-tabs .tab {
    flex: 1;
    text-align: center;
    padding: 6px 4px;
    font-size: 10px;
    font-weight: 500;
    white-space: nowrap;
    color: var(--rm-gray);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}
.resto-top-tabs .tab.active {
    color: var(--rm-orange);
    border-bottom-color: var(--rm-orange);
    font-weight: 600;
}

/* ===== SEARCH BAR ===== */
/* ===== SEARCH BAR (responsive, pill + circular button) ===== */
.resto-search {
    box-sizing: border-box;
    width: 100%;
    padding: 10px 12px;
    background: #fff;
}
.resto-search-form {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 5px 5px 5px 14px;
    background: #f5f5f7;
    border: 1px solid #ebebeb;
    border-radius: 999px;
    transition: border-color 0.15s, background 0.15s;
}
.resto-search-form:focus-within {
    border-color: #F25D19;
    background: #fff;
}
.search-camera {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    color: #9a9a9a;
    cursor: pointer;
}
.search-camera:hover { color: #F25D19; }
.resto-search-form input {
    flex: 1 1 auto;
    min-width: 0;
    border: none;
    background: transparent;
    padding: 8px 0;
    font-size: 12px;
    line-height: 20px;
    color: #222;
    outline: none;
    font-family: inherit;
}
.resto-search-form input::placeholder { color: #b5b5b5; font-size: 12px; }
.search-btn {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #F25D19;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}
.search-btn:hover { background: #e04d0e; }
.search-btn:active { transform: scale(0.95); }

/* ===== QUICK ACTION BUTTONS ===== */
.resto-actions {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    background: var(--rm-white);
    overflow-x: auto;
    scrollbar-width: none;
}
.resto-actions::-webkit-scrollbar { display: none; }
.action-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 4px;
    padding: 4px 10px;
    background: var(--rm-orange-bg);
    border-radius: 14px;
    white-space: nowrap;
    font-size: 10px;
    font-weight: 500;
    color: var(--rm-dark);
    text-decoration: none;
    flex-shrink: 0;
}
.action-icon {
    width: 20px;
    height: 20px;
    background: var(--rm-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== PROMO BANNER ===== */
.resto-promo-banner {
    margin: 8px 12px;
}
.promo-row {
    display: flex;
    gap: 8px;
}
.promo-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: var(--rm-radius);
    flex: 1;
}
.promo-delivery {
    background: linear-gradient(135deg, var(--rm-orange), var(--rm-orange-light));
    color: white;
}
.promo-delivery strong { font-size: 11px; display: block; }
.promo-delivery small { font-size: 10px; opacity: 0.85; }
.promo-safe {
    background: #F0FFF4;
    border: 1px solid #C6F6D5;
}
.promo-safe small { font-size: 11px; color: #2D7A4F; }

/* ===== BANNER SLIDER ===== */
.resto-banner-slider {
    padding: 8px 12px;
    position: relative;
}
.banner-track {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.banner-track::-webkit-scrollbar { display: none; }
.banner-slide {
    flex-shrink: 0;
    width: calc(100% - 24px);
    min-height: 90px;
    scroll-snap-align: start;
}
.banner-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
}
.banner-dots .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ddd;
    transition: all 0.2s;
}
.banner-dots .dot.active {
    background: var(--rm-orange);
    width: 16px;
    border-radius: 3px;
}

/* ===== PRODUCT SCROLL ===== */
.resto-scroll-section {
    background: var(--rm-white);
    margin-top: 8px;
    padding: 12px 0;
}
.scroll-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px 8px;
    gap: 10px;
}
.scroll-header h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--rm-dark);
    margin: 0;
    flex: 1;
    min-width: 0;
}
.scroll-header a {
    font-size: 20px;
    color: var(--rm-gray);
    text-decoration: none;
    line-height: 1;
    flex-shrink: 0;
}
.scroll-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 0 12px;
    scrollbar-width: none;
}
.scroll-container::-webkit-scrollbar { display: none; }
.scroll-card {
    flex-shrink: 0;
    width: 100px;
    text-decoration: none;
}
.scroll-img {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--rm-light);
    border: 1px solid var(--rm-border);
}
.scroll-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.scroll-price {
    font-size: 11px;
    font-weight: 600;
    color: var(--rm-dark);
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== CATEGORY TABS ===== */
.resto-cat-tabs {
    display: flex;
    gap: 0;
    padding: 0 12px;
    background: var(--rm-white);
    margin-top: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    border-bottom: 1px solid var(--rm-border);
}
.resto-cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab {
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--rm-gray);
    white-space: nowrap;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    flex-shrink: 0;
}
.cat-tab.active, .cat-tab:hover {
    color: var(--rm-dark);
    border-bottom-color: var(--rm-dark);
    font-weight: 600;
}

/* ===== ECONOMY / CASHBACK ===== */
.resto-economy {
    margin: 8px 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #FF6B35, #FF9A5C);
    border-radius: var(--rm-radius);
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
}
.eco-label {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.eco-desc {
    font-size: 12px;
    opacity: 0.85;
    margin-left: 6px;
}
.eco-right {
    font-size: 11px;
    opacity: 0.9;
    text-align: right;
    max-width: 55%;
}

/* ===== PRODUCTS GRID ===== */
.resto-products-section {
    padding: 8px 12px;
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
@media (max-width: 380px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); }
}
.product-card {
    background: var(--rm-white);
    border-radius: var(--rm-radius);
    overflow: hidden;
    text-decoration: none;
    border: 1px solid var(--rm-border);
    transition: box-shadow 0.2s;
}
.product-card:active {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.card-img {
    width: 100%;
    aspect-ratio: 1;
    background: var(--rm-light);
    overflow: hidden;
}
.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.card-price-glass {
    position: absolute;
    left: 6px;
    bottom: 6px;
    padding: 4px 9px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    color: #1a1a1a;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    letter-spacing: 0.2px;
}
.card-info {
    padding: 6px 7px;
}
.card-price {
    font-size: 12px;
    font-weight: 700;
    color: var(--rm-dark);
    line-height: 1.2;
}
.card-name {
    font-size: 9px;
    color: var(--rm-gray);
    margin-top: 1px;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}
.card-min {
    display: none;
}

/* Wishlist heart button */
.card-wish {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.card-wish:active { transform: scale(0.8); }
.card-wish.liked { animation: heartPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes heartPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Add to cart button */
.card-add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: 100%;
    padding: 4px 0;
    background: var(--rm-orange);
    color: white;
    border: none;
    border-radius: 0 0 var(--rm-radius) var(--rm-radius);
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.card-add-btn svg { width: 12px; height: 12px; }
.card-add-btn:active {
    background: #d94e10;
    transform: scale(0.97);
}

/* Card img relative for wish button */
.card-img {
    position: relative;
}

/* ===== DELIVERY INFO ===== */
.resto-delivery-info {
    margin: 8px 12px;
    padding: 12px 16px;
    background: var(--rm-white);
    border-radius: var(--rm-radius);
    border-left: 4px solid var(--rm-orange);
}
.delivery-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
.delivery-badge strong {
    font-size: 13px;
    color: var(--rm-dark);
}
.resto-delivery-info p {
    font-size: 12px;
    color: var(--rm-gray);
    margin: 0;
}

/* ===== FLOATING CART BUTTON (yuqori o'ng burchak) ===== */
.floating-cart-btn {
    position: fixed;
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #FF6B35, var(--rm-orange));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(242, 93, 25, 0.4);
    z-index: 1000;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.floating-cart-btn:active { transform: scale(0.9); }
.floating-cart-btn [style*="background:#"] {
    position: absolute !important;
    top: -4px !important;
    right: -4px !important;
    border: 2px solid white;
}
@media (min-width: 769px) {
    .floating-cart-btn {
        right: calc(50% - 240px + 12px);
    }
}

/* ===== BOTTOM NAVIGATION — iOS Style with Animations ===== */
.resto-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    padding: 4px 0 env(safe-area-inset-bottom, 6px);
    z-index: 999;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.resto-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    font-size: 10px;
    color: #999;
    text-decoration: none;
    padding: 6px 12px 4px;
    border: none;
    background: none;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-tap-highlight-color: transparent;
}

.resto-bottom-nav .nav-item svg {
    width: 24px;
    height: 24px;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    fill: none;
    stroke: #999;
    stroke-width: 1.8;
}

.resto-bottom-nav .nav-item span {
    font-weight: 500;
    font-size: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.7;
}

/* Active state — scale + color + indicator dot */
.resto-bottom-nav .nav-item.active {
    color: var(--rm-orange);
}

.resto-bottom-nav .nav-item.active svg {
    fill: var(--rm-orange);
    stroke: var(--rm-orange);
    transform: scale(1.1) translateY(-2px);
    filter: drop-shadow(0 2px 4px rgba(242, 93, 25, 0.25));
}

.resto-bottom-nav .nav-item.active span {
    color: var(--rm-orange);
    font-weight: 700;
    opacity: 1;
    transform: translateY(-1px);
}

/* Active indicator dot */
.resto-bottom-nav .nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--rm-orange);
    border-radius: 0 0 3px 3px;
    animation: navIndicatorIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes navIndicatorIn {
    0% { width: 0; opacity: 0; }
    100% { width: 20px; opacity: 1; }
}

/* Hover/Touch effect — ripple */
.resto-bottom-nav .nav-item:active svg {
    transform: scale(0.85);
    transition: transform 0.1s ease;
}

.resto-bottom-nav .nav-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: var(--rm-orange);
    opacity: 0;
    transition: opacity 0.3s;
}

.resto-bottom-nav .nav-item:active::after {
    opacity: 0.06;
}

/* ===== CART BUTTON — Floating elevated style ===== */
.resto-bottom-nav .nav-item.cart-nav {
    position: relative;
}

.resto-bottom-nav .nav-item.cart-nav .cart-icon-wrap {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #FF6B35, var(--rm-orange));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -24px;
    margin-bottom: 2px;
    box-shadow: 0 6px 20px rgba(242, 93, 25, 0.4), 0 2px 6px rgba(242, 93, 25, 0.2);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

/* Cart button shine effect */
.resto-bottom-nav .nav-item.cart-nav .cart-icon-wrap::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(255,255,255,0.15) 50%,
        transparent 60%
    );
    animation: cartShine 3s ease-in-out infinite;
}

@keyframes cartShine {
    0%, 100% { transform: translateX(-100%) rotate(0deg); }
    50% { transform: translateX(100%) rotate(0deg); }
}

.resto-bottom-nav .nav-item.cart-nav .cart-icon-wrap svg {
    fill: none;
    stroke: white;
    stroke-width: 2;
    width: 24px;
    height: 24px;
    filter: none;
    position: relative;
    z-index: 1;
}

.resto-bottom-nav .nav-item.cart-nav:active .cart-icon-wrap {
    transform: scale(0.9);
    box-shadow: 0 3px 10px rgba(242, 93, 25, 0.3);
}

.resto-bottom-nav .nav-item.cart-nav span {
    color: var(--rm-orange);
    font-weight: 600;
    font-size: 10px;
}

/* Scanner ichidagi rasm/svg — pulsing glow */
.resto-bottom-nav .nav-item.cart-nav .cart-icon-wrap {
    background: linear-gradient(135deg, #FF6B35, var(--rm-orange));
    animation: scannerPulse 2.5s ease-in-out infinite;
}
@keyframes scannerPulse {
    0%, 100% { box-shadow: 0 6px 20px rgba(242, 93, 25, 0.4), 0 0 0 0 rgba(242, 93, 25, 0.5); }
    50% { box-shadow: 0 6px 20px rgba(242, 93, 25, 0.4), 0 0 0 10px rgba(242, 93, 25, 0); }
}

/* Cart nav — no indicator dot */
.resto-bottom-nav .nav-item.cart-nav::before { display: none !important; }
.resto-bottom-nav .nav-item.cart-nav::after { display: none !important; }

/* ===== Chat badge animation ===== */
.resto-bottom-nav .nav-item [style*="background:#F25D19"] {
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* ===== Page transition animation ===== */
@keyframes navPageIn {
    0% { opacity: 0; transform: translateY(8px); }
    100% { opacity: 1; transform: translateY(0); }
}

.resto-home,
.resto-categories-page,
main#main > * {
    animation: navPageIn 0.35s ease-out;
}

/* ===== SHIMMER LOADING ===== */
.products-loading {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.shimmer-card {
    background: white;
    border-radius: var(--rm-radius);
    overflow: hidden;
    border: 1px solid var(--rm-border);
}
.shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}
.shimmer-img { width: 100%; aspect-ratio: 1; }
.shimmer-text { height: 14px; margin: 8px; border-radius: 4px; }
.shimmer-text-sm { height: 10px; margin: 0 8px 8px; border-radius: 4px; width: 60%; }
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ===== GLOBAL OVERRIDES ===== */
main#main { background: var(--rm-light) !important; }
.bg-navyBlue { background: var(--rm-orange) !important; }
.border-navyBlue { border-color: var(--rm-orange) !important; }
.text-navyBlue { color: var(--rm-orange) !important; }

/* ===== DESKTOP: wider layout ===== */
@media (min-width: 769px) {
    .resto-home { max-width: 480px; margin: 0 auto; }
    .resto-bottom-nav { max-width: 480px; left: 50%; transform: translateX(-50%); }
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    header, footer { display: none !important; }
}

/* ============================================
   HORECA SAHIFASI
   ============================================ */

/* Banner slider (b2b kategoriyalar) */
.horeca-banner-slider {
    position: relative;
    margin: 12px 14px;
    overflow: hidden;
    border-radius: 14px;
}
.horeca-track {
    display: flex;
    transition: transform 0.4s ease;
    will-change: transform;
}
.horeca-slide {
    flex: 0 0 100%;
    min-height: 140px;
    padding: 22px 20px;
    position: relative;
    display: flex;
    align-items: center;
    border-radius: 14px;
    color: #fff;
    text-decoration: none;
    overflow: hidden;
    box-sizing: border-box;
}
.horeca-slide .slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.1));
}
.horeca-slide .slide-content {
    position: relative;
    z-index: 1;
    flex: 1;
}
.horeca-slide .slide-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 6px;
    color: inherit;
}
.horeca-slide .slide-content p {
    font-size: 13px;
    opacity: 0.9;
    margin: 0;
    color: inherit;
}
.horeca-dots {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 10px;
}
.horeca-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d0d0d0;
    cursor: pointer;
    transition: all 0.25s;
}
.horeca-dot.active {
    background: var(--rm-orange);
    width: 18px;
    border-radius: 3px;
}

/* Horeca promo badges (bosh sahifa stilida) */
.horeca-badges {
    display: flex;
    gap: 8px;
    padding: 8px 14px;
    overflow-x: auto;
    scrollbar-width: none;
}
.horeca-badges::-webkit-scrollbar { display: none; }
.horeca-badges .badge-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}
.horeca-badges .badge-orange { background: var(--rm-orange-bg); color: var(--rm-orange); }
.horeca-badges .badge-green  { background: #F0FFF4; color: var(--rm-green); }

/* ============================================
   MANUFACTURERS (Ishlab chiqaruvchilar)
   ============================================ */
.manuf-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 8px 14px 20px;
}
.manuf-card {
    background: #fff;
    border-radius: 12px;
    padding: 14px 10px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    border: 1px solid #eee;
    transition: transform 0.12s, box-shadow 0.2s;
}
.manuf-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
}
.manuf-logo {
    width: 80px;
    height: 80px;
    background: #f7f7f7;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.manuf-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}
.manuf-placeholder {
    font-size: 34px;
}
.manuf-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--rm-dark);
    text-align: center;
    line-height: 1.25;
}
.manuf-country {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #666;
}
.manuf-count {
    font-size: 10px;
    color: var(--rm-orange);
    font-weight: 600;
}

/* Manufacturer detail banner */
.manuf-banner {
    display: flex;
    gap: 14px;
    padding: 16px 14px;
    background: linear-gradient(135deg, #FFF5EF 0%, #fff 100%);
    border-bottom: 1px solid #eee;
}
.manuf-banner-logo {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    background: #fff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.manuf-banner-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}
.manuf-banner-logo span {
    font-size: 44px;
}
.manuf-banner-info { flex: 1; min-width: 0; }
.manuf-banner-info h1 {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 4px;
    color: var(--rm-dark);
}
.manuf-banner-country {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #666;
    margin: 0 0 6px;
}
.manuf-banner-desc {
    font-size: 12px;
    color: #444;
    margin: 0 0 8px;
    line-height: 1.45;
}
.manuf-banner-web {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--rm-orange);
    text-decoration: none;
    font-weight: 600;
}
.manuf-banner-web:hover { text-decoration: underline; }

@media (min-width: 600px) {
    .manuf-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================
   RFQ (Tijoriy taklif) sahifasi
   ============================================ */

.rfq-page {
    background: #f4f5f7;
    min-height: 100vh;
    padding-bottom: 80px;
}

/* Header */
.rfq-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 16px;
    background: linear-gradient(180deg, #3E2A7D 0%, #4A3499 100%);
    color: #fff;
}
.rfq-back {
    position: absolute;
    left: 14px;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
}
.rfq-title {
    display: flex;
    align-items: center;
    gap: 8px;
}
.rfq-title h1 {
    font-size: 17px;
    font-weight: 700;
    margin: 0;
    color: #fff;
}
.rfq-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 26px;
    padding: 0 8px;
    background: #fff;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--rm-orange);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Hero */
.rfq-hero {
    background: linear-gradient(180deg, #4A3499 0%, #5B3FB8 100%);
    color: #fff;
    padding: 12px 14px 16px;
}
.rfq-hero h2 {
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 3px;
    line-height: 1.3;
    color: #fff;
}
.rfq-hero p {
    font-size: 10.5px;
    margin: 0;
    opacity: 0.88;
    color: #fff;
    line-height: 1.4;
}

/* Popular Requests (purple fon ustida) */
.rfq-popular {
    background: linear-gradient(180deg, #5B3FB8 0%, #6F52CC 100%);
    padding: 0 14px 16px;
}
.rfq-popular-title {
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 8px;
    opacity: 0.95;
}
.rfq-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.rfq-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.08));
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    padding: 10px 8px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-height: 150px;
}
.rfq-card-label {
    font-size: 10.5px;
    font-weight: 600;
    text-align: center;
    line-height: 1.25;
    color: #fff;
    min-height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px 4px;
}
.rfq-card-img {
    width: 100%;
    flex: 1;
    min-height: 88px;
    background: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* ===== Before/After compare slider ===== */
.rfq-compare {
    position: relative;
    display: block !important;
    min-height: 110px !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
.rfq-compare img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    box-sizing: border-box;
    pointer-events: none;
    user-select: none;
}
.rfq-compare-before {
    z-index: 1;
    clip-path: inset(0 0 0 0);
    -webkit-clip-path: inset(0 0 0 0);
    animation: rfqCompareHideBefore 5s ease-in-out infinite;
}
.rfq-compare-after {
    z-index: 2;
    clip-path: inset(0 100% 0 0);
    -webkit-clip-path: inset(0 100% 0 0);
    animation: rfqCompareReveal 5s ease-in-out infinite;
}
.rfq-compare-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(242, 93, 25, 0.3) 15%,
        #F25D19 50%,
        rgba(242, 93, 25, 0.3) 85%,
        transparent 100%);
    box-shadow: 0 0 14px #F25D19, 0 0 28px rgba(242, 93, 25, 0.6);
    border-radius: 2px;
    left: 0;
    z-index: 3;
    animation: rfqCompareLine 5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes rfqCompareReveal {
    0%   { clip-path: inset(0 100% 0 0); -webkit-clip-path: inset(0 100% 0 0); }
    45%  { clip-path: inset(0 0 0 0);    -webkit-clip-path: inset(0 0 0 0); }
    55%  { clip-path: inset(0 0 0 0);    -webkit-clip-path: inset(0 0 0 0); }
    100% { clip-path: inset(0 100% 0 0); -webkit-clip-path: inset(0 100% 0 0); }
}
@keyframes rfqCompareHideBefore {
    0%   { clip-path: inset(0 0 0 0);    -webkit-clip-path: inset(0 0 0 0); }
    45%  { clip-path: inset(0 0 0 100%); -webkit-clip-path: inset(0 0 0 100%); }
    55%  { clip-path: inset(0 0 0 100%); -webkit-clip-path: inset(0 0 0 100%); }
    100% { clip-path: inset(0 0 0 0);    -webkit-clip-path: inset(0 0 0 0); }
}
@keyframes rfqCompareLine {
    0%   { left: 0; }
    45%  { left: calc(100% - 3px); }
    55%  { left: calc(100% - 3px); }
    100% { left: 0; }
}
.rfq-logo-placeholder {
    background: #FFF;
    border: 2px dashed #888;
    border-radius: 4px;
    padding: 8px 10px;
    font-size: 9px;
    font-weight: 700;
    color: #333;
    text-align: center;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

/* Info bar */
.rfq-info-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: linear-gradient(180deg, #6F52CC 0%, #7856D9 100%);
}
.rfq-learn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    text-decoration: underline;
    font-size: 12px;
    font-weight: 500;
}
.rfq-learn-icon {
    width: 20px; height: 20px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.rfq-stats {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
}
.rfq-stats-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px; height: 24px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 6px;
}
.rfq-stats-dot {
    position: absolute;
    top: 2px; right: 2px;
    width: 6px; height: 6px;
    background: #FF3B30;
    border-radius: 50%;
    border: 1.5px solid #fff;
}

/* Form section */
.rfq-form-section {
    background: #fff;
    margin: 12px 14px;
    padding: 16px;
    border-radius: 14px;
}
.rfq-form-title {
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px;
}
.rfq-form-box {
    position: relative;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 12px;
    background: #fff;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.rfq-upload-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.rfq-upload-btn {
    width: 56px; height: 56px;
    border: 1px dashed #ccc;
    border-radius: 8px;
    background: #fafafa;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.2s;
}
.rfq-upload-btn:hover { border-color: var(--rm-orange); }

.rfq-preview-list {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.rfq-preview-item {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eee;
    flex-shrink: 0;
}
.rfq-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.rfq-preview-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.rfq-preview-remove:hover { background: rgba(242, 93, 25, 0.9); }
.rfq-textarea {
    width: 100%;
    border: none;
    outline: none;
    resize: none;
    font-family: inherit;
    font-size: 11.5px;
    color: #1a1a1a;
    min-height: 46px;
    padding: 0;
    line-height: 1.4;
    background: transparent;
}
.rfq-textarea::placeholder { color: #999; font-size: 11.5px; }

.rfq-suggest {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    background: #fff5ef;
    border-radius: 20px;
    width: fit-content;
    max-width: 100%;
}
.rfq-suggest-label {
    font-size: 10px;
    color: var(--rm-orange);
    font-weight: 600;
    flex-shrink: 0;
}
.rfq-suggest-text {
    font-size: 10px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rfq-ai-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    font-size: 13px;
    color: #1a1a1a;
    font-weight: 500;
    cursor: pointer;
}
.rfq-ai-toggle input[type="checkbox"] {
    width: 18px; height: 18px;
    accent-color: var(--rm-orange);
    margin: 0;
}
.rfq-ai-icon {
    width: 20px; height: 20px;
    background: linear-gradient(135deg, #7B61FF, #5B3FB8);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.rfq-submit-btn {
    width: 100%;
    margin-top: 12px;
    padding: 12px;
    background: var(--rm-orange);
    color: #fff;
    border: none;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(242, 93, 25, 0.25);
    transition: transform 0.1s, box-shadow 0.2s;
}
.rfq-submit-btn:hover { box-shadow: 0 6px 14px rgba(242, 93, 25, 0.35); }
.rfq-submit-btn:active { transform: scale(0.98); }

/* Browsing history */
.rfq-browsing {
    padding: 12px 14px 20px;
}
.rfq-browsing-title {
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 4px 0 10px;
}
.rfq-browse-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.rfq-browse-card {
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.rfq-browse-meta {
    font-size: 10px;
    color: #888;
}
.rfq-browse-name {
    font-size: 12px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 2px 0;
}
.rfq-browse-custom {
    font-size: 10px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}
.rfq-browse-img {
    margin-top: 4px;
    height: 90px;
    background: #f7f7f7;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.rfq-browse-link {
    font-size: 12px;
    font-weight: 600;
    color: var(--rm-orange);
    text-decoration: none;
    margin-top: 4px;
}
