/* ============================================
   HERO CAROUSEL
   ============================================ */

.carousel-container {
    position: relative;
    width: 100%;
    height: 450px;
    /* Height adjusted to 450px as requested by user */
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-content {
    position: absolute;
    top: 50%;
    left: 100px;
    /* Moved right as requested */
    transform: translateY(-50%);
    color: white;
    max-width: 600px;
    z-index: 2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    /* Stronger shadow for readability */
}

.carousel-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.carousel-desc {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.95;
    font-weight: 500;
    line-height: 1.5;
}

.carousel-btn {
    display: inline-block;
    background: white;
    color: var(--text-main);
    padding: 14px 32px;
    border-radius: 12px;
    /* Matches --radius-md */
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.carousel-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 125, 51, 0.4);
}

/* Navigation Arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    z-index: 10;
    transition: all 0.2s ease;
    padding: 0;
    /* Reset padding */
}

.carousel-arrow svg {
    width: 24px;
    height: 24px;
    stroke-width: 2.5;
    /* Slightly thicker icons */
}

.carousel-arrow:hover {
    background: white;
    color: var(--primary);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

/* Dots */
.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: white;
    width: 25px;
    /* Pill shape for active */
    border-radius: 5px;
}

/* ============================================
   KATEGORIYA KARTOCHKALARI (Redesign)
   ============================================ */

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category-card {
    text-decoration: none;
    background: #ffffff;
    border: none;
    border-radius: 16px;
    padding: 15px;
    /* Tight padding */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    /* Tight gap */
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    min-height: 220px;
    /* Reverted to compact height */
    justify-content: flex-start;
    /* Align to top */
    padding-bottom: 60px;
}

.category-card:hover,
.brand-card:hover {
    padding-bottom: 60px;
}

.category-card::after {
    display: none;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.category-image-container {
    position: relative;
    width: 100%;
    /* Fill width */
    height: 110px;
    /* Optimal height for compact card */
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-image-container img {
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.category-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
    flex: 1;
    /* Take available space */
}

.category-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    /* Slightly smaller for compactness */
    line-height: 1.1;
    color: var(--text-main);
    margin: 0;
}

.category-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 400;
    margin: 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    /* Standard property for compatibility */
    -webkit-box-orient: vertical;
}

.category-divider {
    width: 100%;
    height: 1px;
    background-color: #f0f0f0;
    margin: 5px 0;
}

.category-action {
    display: none !important;
}

@media (max-width: 480px) {

    .category-subtitle,
    .category-divider,
    .category-action {
        display: none !important;
    }

    .category-card {
        min-height: 100px;
        /* Reduced specific height */
        padding: 10px;
        align-items: flex-end;
        /* Align content to right */
        justify-content: space-between;
        text-align: right;
    }

    .category-info {
        align-items: flex-end;
        /* Align text to right */
        width: 100%;
    }

    .category-name {
        font-size: 0.8rem;
        /* Smaller font */
        text-align: right;
        width: 100%;
        margin-bottom: 5px;
    }

    .category-image-container {
        height: 100px;
        /* Larger image area */
        width: 80%;
        /* Don't take full width to allow text wrapping if needed, or overlap */
        align-self: flex-start;
        /* Image to left/center */
        margin-bottom: -10px;
        /* Pull bottom closer */
        margin-left: -10px;
        /* Pull left */
    }
}

.category-card:hover .category-action {
    color: var(--primary);
    /* Sayt rangiga o'zgartirish */
}

/* Strelkani "chapga kattartirish" effekti */
.category-card:hover .category-action svg {
    transform: translateX(10px);
    /* O'ngga siljiydi, lekin vizual "cho'zilish" beradi */
}

.category-card:hover .category-action svg line {
    stroke-dasharray: 20;
    stroke-dashoffset: 0;
    transform: scaleX(1.5);
    transform-origin: right;
    transition: all 0.3s ease;
}

.category-action svg {
    transition: transform 0.3s ease;
}

/* Card Enter Button (Refined: Transparent, always visible, slides right) */
.card-enter-btn {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: transparent;
    color: var(--primary);
    padding: 5px 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    font-weight: 800;
    font-size: 0.95rem;
    opacity: 1;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 5;
    width: fit-content;
}

.card-enter-btn::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.category-card:hover .card-enter-btn::after,
.brand-card:hover .card-enter-btn::after {
    width: 100%;
}

.card-enter-btn svg {
    transition: transform 0.4s ease;
}

.category-card:hover .card-enter-btn,
.brand-card:hover .card-enter-btn {
    transform: translateX(10px);
    color: var(--primary-hover);
}

.category-card:hover .card-enter-btn svg,
.brand-card:hover .card-enter-btn svg {
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .card-enter-btn {
        display: none !important;
    }
}



/* ============================================
   KATEGORIYA SAHIFASI
   ============================================ */

.category-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.category-header-icon {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.category-header-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.category-header-icon span {
    color: white;
    font-size: 2rem;
}

.category-title {
    font-size: 2.5rem;
    font-weight: 800;
}

.category-meta {
    color: var(--text-muted);
}

/* Subkategoriya tag'lari */
.subcategory-tags {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.subcategory-tag {
    text-decoration: none;
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-weight: 600;
    color: var(--text-main);
    transition: all 0.2s ease;
}

.subcategory-tag:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(255, 125, 51, 0.05);
}

/* ============================================
   MAHSULOT KARTOCHKALARI
   ============================================ */


.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    align-items: stretch;
}

.product-grid.horizontal-scroll {
    display: flex !important;
    overflow-x: auto;
    gap: 15px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.product-grid.horizontal-scroll::-webkit-scrollbar {
    height: 6px;
}

.product-grid.horizontal-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.product-grid.horizontal-scroll::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.product-grid.horizontal-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.product-grid.horizontal-scroll .product-card {
    flex: 0 0 calc(20% - 12px);
    width: calc(20% - 12px);
    min-width: 220px;
}

@media (max-width: 1200px) {
    .product-grid.horizontal-scroll .product-card {
        flex: 0 0 calc(25% - 12px);
        width: calc(25% - 12px);
    }
}

@media (max-width: 900px) {
    .product-grid.horizontal-scroll .product-card {
        flex: 0 0 calc(33.33% - 10px);
        width: calc(33.33% - 10px);
    }
}

@media (max-width: 600px) {
    .product-grid.horizontal-scroll .product-card {
        flex: 0 0 calc(50% - 10px);
        width: calc(50% - 10px);
        min-width: 160px;
    }
}

.btn-load-more {
    background: white;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-load-more:hover {
    background: var(--primary);
    color: white;
}

.btn-load-more:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Olib tashlangan tugmalar o'rniga moslashuvchanlik */
.product-card {
    text-decoration: none;
    color: inherit;
    background: white;
    border: none;
    border-radius: 20px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 460px;
    /* Desktopda bir xil balandlik */
    height: 100%;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

@media (max-width: 768px) {
    .product-card {
        min-height: unset;
        height: auto;
        padding: 10px;
    }

    .product-image {
        height: 140px !important;
    }
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.product-image {
    height: 180px;
    /* Desktopda rasm kattaroq */
    background: #f8f9fa;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.extra-actions-container {
    margin-top: 10px;
    width: 100%;
}

.btn-remove-favorite {
    width: 100%;
    padding: 10px;
    background: #E03137;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-remove-favorite:hover {
    background: #c22b31;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(224, 49, 55, 0.2);
}

/* Favorite button on top of image */
.btn-favorite-toggle {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    color: #8b8e99;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-favorite-toggle:hover {
    transform: scale(1.1);
    background: white;
}

.btn-favorite-toggle.active {
    color: var(--primary);
    background: white;
    animation: heartPop 0.45s cubic-bezier(0.17, 0.89, 0.32, 1.49);
}

.btn-favorite-toggle svg {
    transition: all 0.3s ease;
}

.btn-favorite-toggle.active svg {
    fill: var(--primary) !important;
    stroke: var(--primary) !important;
}

/* Legacy product card specific styles */
.product-card .btn-favorite-toggle {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    color: #8b8e99;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-card .btn-favorite-toggle:hover {
    transform: scale(1.1);
    background: white;
}

.product-card .btn-favorite-toggle.active {
    color: var(--primary);
    background: white;
    animation: heartPop 0.45s cubic-bezier(0.17, 0.89, 0.32, 1.49);
}

.product-card .btn-favorite-toggle svg {
    transition: all 0.3s ease;
}

.product-card .btn-favorite-toggle.active svg {
    fill: var(--primary);
    stroke: var(--primary);
}

@keyframes heartPop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.4);
    }

    100% {
        transform: scale(1.1);
    }
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* ============================================
   DESKTOP GRID OVERRIDES (Force 6 columns & Ultra Compact Cards)
   ============================================ */
@media (min-width: 992px) {

    /* Desktopda scroll-ni o'chirish va grid qilish */
    .product-grid.horizontal-scroll {
        display: grid !important;
        grid-template-columns: repeat(5, 1fr) !important;
        flex-wrap: wrap !important;
        overflow-x: visible !important;
        gap: 20px !important;
        padding-bottom: 0;
    }

    .product-grid.horizontal-scroll .product-card {
        flex: none !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    body .product-grid:not(.horizontal-scroll),
    .market-products-section .product-grid:not(.horizontal-scroll) {
        display: grid !important;
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 20px !important;
        width: 100%;
        justify-content: start;
    }

    body .product-card,
    .market-products-section .product-card {
        padding: 15px !important;
        min-height: 460px !important;
        height: 100% !important;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    body .product-image,
    .market-products-section .product-image {
        height: 180px !important;
        /* Reduced from 220px */
        margin-bottom: 10px;
        border-radius: 12px;
        flex-shrink: 0;
    }

    body .product-name {
        font-size: 1rem !important;
        font-weight: 700;
        margin-bottom: 8px !important;
        line-height: 1.3 !important;
        height: 2.6em !important;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    body .product-market-info {
        min-height: 52px;
        height: auto !important;
        flex-shrink: 0;
        margin-bottom: 5px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    body .product-price-section {
        height: 52px;
        margin-bottom: 12px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

/* Internal Styles for new card elements */
.product-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.product-market-info {
    min-height: 52px;
    height: auto !important;
    flex-shrink: 0;
    /* Qat'iy balandlik */
    margin-bottom: 5px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.product-market-name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #004d40;
    /* Darker green for market */
}

.product-divider {
    width: 100%;
    height: 1px;
    background: #f1f3f5;
}

.product-price-section {
    height: 52px;
    /* Qat'iy balandlik */
    margin-bottom: 5px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
}

.product-card-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background: #f1f3f5;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    transition: all 0.2s ease;
    margin-top: auto;
}

.product-card:hover .product-card-action {
    background: var(--primary);
    color: white;
}

/* Mahsulot ma'lumotlari qismi */
.product-info-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 5px;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
    height: 2.6em;
    /* Fix CLS */
    height: 2.6em;
    /* 2 qator uchun qat'iy joy */
}

.product-description {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: auto;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    height: 2.8em;
}

.product-price-block {
    margin-top: 10px;
}

.product-price-label {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.product-price {
    color: var(--text-main);
    /* Qora rang */
    font-size: 1.1rem;
    font-weight: 630;
}

.product-actions {
    margin-top: 10px;
}

.product-cta {
    display: block;
    text-decoration: none;
    text-align: center;
    background: var(--bg-gray);
    padding: 10px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
    transition: all 0.2s ease;
}

.product-cta:hover {
    background: var(--primary);
    color: white;
}

/* ============================================
   MAHSULOT TAFSILOTLARI
   ============================================ */

.product-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 40px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 40px;
    margin-bottom: 40px;
}

.product-detail-image {
    background: var(--bg-light);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 350px;
}

.product-detail-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-detail-image span {
    color: #ccc;
    font-size: 3rem;
}

.product-detail-category {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
}

.product-detail-title {
    font-size: 3rem;
    font-weight: 800;
    margin: 10px 0 20px;
}

.product-detail-description {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.offers-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.offers-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.offer-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fafafa;
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.offer-card:hover {
    border-color: var(--primary);
}

.offer-market {
    display: flex;
    align-items: center;
    gap: 15px;
}

.carousel-container {
    position: relative;
    width: 100%;
    margin-bottom: 30px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.offer-market-logo {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #eee;
}

.offer-market-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.offer-market-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.offer-price-container {
    text-align: right;
}

.offer-old-price {
    font-size: 0.9rem;
    text-decoration: line-through;
    color: #999;
}

.offer-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
}

.offer-price.discount {
    color: var(--primary);
}

.no-offers {
    color: var(--text-muted);
}

/* ============================================
   YANGI MAHSULOT OYNASI DIZAYNI (Refined)
   ============================================ */

.product-view-wrapper {
    width: 100%;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 32px;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.product-view-main {
    display: flex;
    padding: 40px;
    gap: 40px;
    align-items: stretch;
}

.product-view-left {
    flex: 1.2;
    display: flex;
    flex-direction: column;
}

.product-view-right {
    flex: 1;
    background: #f8f9fa;
    border-radius: 24px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.product-view-right img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-view-right:hover img {
    transform: scale(1.05);
}

.product-view-title {
    font-size: 32px;
    font-weight: 800;
    color: #1f2026;
    margin-bottom: 12px;
    line-height: 1.2;
}

.product-view-description {
    font-size: 16px;
    color: #585962;
    line-height: 1.6;
    margin-bottom: 30px;
}

.product-view-store {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding: 12px;
    background: #f8f9fadb;
    border-radius: 16px;
    transition: background 0.2s ease;
}

.product-view-store:hover {
    background: #f1f3f5;
}

.product-view-store-logo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.product-view-store-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-view-store-info {
    display: flex;
    flex-direction: column;
}

.product-view-store-name {
    font-size: 18px;
    font-weight: 700;
    color: #1f2026;
}

.product-view-store-cat {
    font-size: 14px;
    color: #8b8e99;
}

/* Narx Kartochkasi */
.product-view-price-card {
    background: #ffffff;
    border: 2px solid #f1f3f5;
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.price-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-card-label {
    font-size: 14px;
    color: #8b8e99;
    font-weight: 500;
}

.product-view-price {
    font-size: 36px;
    font-weight: 800;
    color: #E03137;
    letter-spacing: -1px;
}

.product-view-loc-btn {
    width: 50px;
    height: 50px;
    background: #f06292;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 16px rgba(240, 98, 146, 0.2);
    transition: all 0.2s ease;
}

.product-view-loc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(240, 98, 146, 0.3);
}

.product-view-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.btn-v-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-v-action:hover {
    transform: translateY(-2px);
}

.btn-v-action:active {
    transform: scale(0.98);
}

.btn-v-fav {
    background: #fff0e6;
    color: #FF7D33;
}

.btn-v-fav.active {
    background: #fff0f0;
    /* Light red background */
    color: #E03137;
    /* Brand red for text and SVG stroke/fill via currentColor */
}

.btn-v-share {
    background: #fceef3;
    color: #f06292;
}

.btn-v-market-all {
    width: 100%;
    background: #f1f3f5;
    color: #585962;
    padding: 18px;
    border-radius: 18px;
    font-weight: 700;
    font-size: 16px;
    border: none;
    cursor: pointer;
    margin-top: 15px;
    text-align: center;
    text-decoration: none;
    display: block;
    transition: all 0.2s ease;
}

.btn-v-market-all:hover {
    background: #e9ecef;
    color: #1f2026;
}

@media (max-width: 900px) {
    .product-view-main {
        flex-direction: column-reverse;
        padding: 24px;
        gap: 24px;
    }

    .product-view-right {
        width: 100%;
        height: 300px;
    }

    .product-view-title {
        font-size: 26px;
    }
}

/* ============================================
   MARKET KARTOCHKALARI (Grid View)
   ============================================ */

/* Market Grid for Markets Page */
.market-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 30px;
}

@media (max-width: 1600px) {
    .market-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1200px) {
    .market-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .market-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .market-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        /* Smaller gap for mobile */
    }

    /* Kichikroq kartochkalar uchun stillar */
    .market-card {
        padding: 16px;
        gap: 12px;
    }

    .market-logo {
        width: 48px;
        height: 48px;
        border-radius: 10px;
    }

    .market-name {
        font-size: 1rem;
    }

    .market-address,
    .market-hours {
        font-size: 0.8rem;
    }

    .market-view-btn {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
}

.market-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: all 0.3s ease;
}

.market-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.market-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.market-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.market-logo {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    overflow: hidden;
    background: #eee;
}

.market-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.market-name {
    font-size: 1.4rem;
    font-weight: 800;
}

.market-address {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.market-view-btn {
    text-decoration: none;
    background: var(--primary);
    color: white;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.8rem;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.market-view-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.market-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.market-hours {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.market-contact {
    text-decoration: none;
    color: var(--primary);
    font-weight: 800;
    transition: color 0.2s ease;
}

.market-contact:hover {
    color: var(--primary-hover);
}

/* ============================================
   AUTH SAHIFALARI (Login/Signup)
   ============================================ */

.auth-container {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    padding: 40px;
}

.auth-box {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
}

.auth-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.6rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-weight: 600;
    font-size: 0.9rem;
}

.form-input {
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.form-input:focus {
    border-color: var(--primary);
}

.form-help {
    color: #999;
    font-size: 0.85rem;
}

.btn-submit {
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.2s ease;
}

.btn-submit:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    color: var(--text-muted);
}

.auth-link {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-link:hover {
    color: var(--primary-hover);
}

/* ============================================
   QIDIRUV SAHIFASI
   ============================================ */

.search-header {
    font-size: 2rem;
    margin-bottom: 30px;
}

.empty-state {
    grid-column: 1/-1;
    text-align: center;
    padding: 100px 0;
}

.empty-state p {
    font-size: 1.2rem;
    color: var(--text-muted);
}

/* ============================================
   FAVORITES TABS
   ============================================ */

.favorites-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #f1f3f5;
    margin-bottom: 30px;
}

.favorites-tab {
    flex: 1;
    padding: 16px 24px;
    background: transparent;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    position: relative;
    bottom: -2px;
}

.favorites-tab:hover {
    color: var(--text-main);
    background: #f8f9fa;
}

.favorites-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 700;
}

.favorites-tab-content {
    display: none;
}

.favorites-tab-content.active {
    display: block;
}

/* ============================================
   SECTION HEADER
   ============================================ */

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    /* Spacing below header */
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.5px;
}

.section-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-muted);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 12px;
    background: #F2F4F7;
    /* Light button style */
    transition: all 0.2s ease;
}

.section-link:hover {
    background: #EBEBEB;
    color: var(--text-main);
    transform: translateX(5px);
}

/* Base styles for Home Categories Header (Desktop default) */
.home-categories-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-link-red {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-muted);
    /* Same as normal link on desktop */
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 12px;
    background: #F2F4F7;
    transition: all 0.2s ease;
}

.section-link-red:hover {
    background: #EBEBEB;
    color: var(--text-main);
    transform: translateX(5px);
}

/* ============================================
   FEATURE BUTTONS (Real Image-Based)
   ============================================ */

/* ============================================
   FEATURE CARDS (White Clean Design)
   ============================================ */

/* ============================================
   FEATURE CARDS (Horizontal Pill Design)
   ============================================ */

/* ============================================
   FEATURE CARDS (Horizontal Pill Design)
   ============================================ */

.features-row {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 15px;
    margin: 30px 0;
    padding: 0 5px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.features-row::-webkit-scrollbar {
    display: none;
}

.feature-card {
    background: #F2F4F7;
    border-radius: 16px;
    padding: 10px 20px 10px 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    height: 76px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    box-shadow: none;
    flex: 1;
    min-width: 0;
    /* Allow shrink if flexed */
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    background: #E4E7EB;
    transform: translateY(-2px);
}

.f-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    background: #fff;
    /* White bg for icon container */
    padding: 4px;
    /* Internal padding */
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card:hover .f-icon {
    transform: none;
}

.f-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: none;
}

.feature-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1F2026;
    text-align: left;
    margin: 0;
    line-height: 1.3;
    display: block;
    z-index: 1;
}

/* Remove unused styles */
.feature-card::before {
    display: none;
}

.f-glow {
    display: none;
}

/* Responsive */
@media (max-width: 1200px) {
    .feature-title {
        font-size: 0.9rem;
    }
}

@media (max-width: 900px) {
    .features-row {
        gap: 12px;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 10px;
        /* Space for scroll */
    }

    .feature-card {
        min-width: 240px;
        flex: 0 0 auto;
    }
}

@media (max-width: 480px) {

    /* Reset mobile styles from previous media query */
    .features-row {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        /* Ensure items start from left */
        margin: 15px 0;
        padding-left: 15px;
        /* Add padding so first item isn't flush or cut off */
        padding-right: 15px;
        gap: 10px;
        /* Ensure scrolling works */
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }

    .feature-card {
        min-width: 160px;
        height: 60px;
        padding: 5px 12px;
        /* Adjusted padding */
        gap: 10px;
        border-radius: 12px;
        flex: 0 0 auto;
        /* Ensure it doesn't shrink */
        scroll-snap-align: start;
    }

    .f-icon {
        width: 40px;
        /* Slightly smaller for better fit */
        height: 40px;
        min-width: 40px;
        border-radius: 10px;
        padding: 2px;
    }

    .feature-title {
        font-size: 0.8rem;
        line-height: 1.2;
    }
}

/* End of Premium Feature Cards */

/* ============================================
   MARKET DETAILS PAGE (Base)
   ============================================ */
.market-detail-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}

.market-detail-left {
    flex: 0 0 300px;
    width: 100%;
}

.market-logo-box {
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.market-logo-box img {
    max-width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
}

.market-detail-right {
    flex: 1;
    min-width: 300px;
}

.market-title {
    font-size: 2.5rem;
    margin: 0 0 15px 0;
    color: #333;
}

.market-desc {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.market-info-box {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #eee;
}

.market-info-row {
    margin-bottom: 10px;
    display: flex;
    gap: 10px;
}

.market-info-label {
    font-weight: 600;
    min-width: 100px;
}

.market-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    transition: all 0.2s;
}

.action-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #fff5f0;
}


/* Products Grid on Market Page - Compact View */
/* Market product section now uses standard .mt-lg and .section-header */

/* ============================================
   PREMIUM FOOTER
   ============================================ */

.main-footer {
    padding-top: 50px;
    font-family: 'Poppins', sans-serif;
    background: #f4f5f5;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    padding-bottom: 50px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-title-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: default;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
}

/* ============================================
   MARKET DETAIL PREMIUM REDESIGN
   ============================================ */

.section-market-detail {
    background: #F2F4F7;
    /* Overall background */
    min-height: 100vh;
}

.market-header-premium {
    background: #FFFFFF;
    border-radius: 0 0 24px 24px;
    /* Rounded bottom */
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.market-header-top {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.market-logo-premium {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    border: 1px solid #f0f0f0;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    flex-shrink: 0;
}

.market-logo-premium img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

.market-info-premium {
    flex: 1;
}

.market-title-premium {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 4px;
    color: #1F2026;
    line-height: 1.2;
}

.market-desc-premium {
    font-size: 0.9rem;
    color: #8B8E99;
    line-height: 1.3;
}

.market-meta-row {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #8B8E99;
    font-size: 0.85rem;
    margin-top: 8px;
}

.market-actions-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.btn-premium {
    flex: 1;
    border: none;
    border-radius: 12px;
    padding: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.2s;
}

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

.btn-premium-orange {
    background: #FF9E5E;
    color: white;
    border: 2px solid #3B82F6 !important;
    /* Blue border as per image */
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy spring transition */
    position: relative;
    overflow: hidden;
}

.btn-premium-orange:active {
    transform: scale(0.92);
    box-shadow: 0 2px 5px rgba(59, 130, 246, 0.2);
}

.btn-premium-orange.active {
    background: #E03137 !important;
    border-color: #E03137 !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(224, 49, 55, 0.3);
    animation: pulseRed 0.4s ease-out;
}

@keyframes pulseRed {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(224, 49, 55, 0.7);
    }

    70% {
        transform: scale(1.02);
        box-shadow: 0 0 0 10px rgba(224, 49, 55, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(224, 49, 55, 0);
    }
}

.btn-premium-red {
    background: #EB5757;
    /* Soft Red */
}

.btn-premium-loc {
    flex: 0 0 48px;
    /* Square/Circle */
    width: 48px;
    background: #EB5757;
    padding: 0;
    font-size: 1.2rem;
}

/* Horizontal Product Card */
.product-list-container {
    padding: 0 15px 20px 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.product-card-horizontal {
    text-decoration: none;
    color: inherit;
    background: #FFFFFF;
    border-radius: 20px;
    padding: 15px;
    display: flex;
    gap: 15px;
    align-items: center;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.card-loc-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 24px;
    height: 24px;
    background: #EB5757;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
}

.card-loc-icon svg {
    width: 14px;
    height: 14px;
}

.card-img-left {
    width: 100px;
    height: 120px;
    background: #F8F9FB;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-img-left img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.card-info-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 120px;
}

.card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1F2026;
    margin-bottom: 5px;
    line-height: 1.3;
}

.card-desc {
    font-size: 0.8rem;
    color: #8B8E99;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-market-mini {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: #8B8E99;
    margin-bottom: auto;
    /* Push price down */
}

.card-price-premium {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1F2026;
    margin-top: 10px;
}

.footer-chevron {
    display: none;
    /* Only show on mobile */
    transition: transform 0.3s ease;
    color: var(--text-muted);
}

.footer-links {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-app-badges {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.app-badge img {
    height: 40px;
    width: auto;
    display: block;
}

.footer-socials {
    margin-top: 10px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #eef0f1;
    color: var(--text-main);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    background: #f4f5f5;
    padding: 25px 0;
    border-top: 1px solid #e5e5e5;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
    color: var(--text-main);
}

/* ============================================
   MARKET HEADER CARD (Uzum Detail Style)
   ============================================ */

.section-market-detail .container {
    padding: 0;
}

.market-header-card {
    background: #fff;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
    width: 100%;
}

.market-header-top {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.market-card-logo {
    width: 160px;
    height: 160px;
    min-width: 160px;
    border: 1.5px solid #FF5050;
    border-radius: 24px;
    padding: 0;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.market-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.market-card-main-info {
    flex: 1;
}

.market-card-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0 0 8px 0;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

.market-card-desc {
    font-size: 1.1rem;
    color: #8E8E93;
    margin: 0;
    font-weight: 400;
}

.market-card-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.market-detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #8E8E93;
    font-size: 1.05rem;
}

.market-detail-item svg {
    color: #8E8E93;
}

.market-card-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
}

.btn-market-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    border-radius: 20px;
    border: none;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 25px;
}

.btn-market-fav {
    background: #FF9F5A;
    color: #fff;
}

.btn-market-fav.active {
    /* background: #E03137 !important; */
    color: white !important;
}

.btn-market-share {
    background: #FF6B6B;
    color: #fff;
}

.btn-market-loc {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #FF6B6B;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.btn-market-action:active,
.btn-market-loc:active {
    transform: scale(0.95);
    opacity: 0.9;
}

/* Category Results Header Refinements */
.category-results-header {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 15px !important;
    margin-top: 20px !important;
    border-bottom: 1px solid #eee !important;
    padding-bottom: 20px !important;
}

.category-header-titles {
    flex: 1;
}

.category-results-header .btn-back {
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    color: var(--text-main) !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    display: flex;
    /* Removed !important to allow responsive hide */
    align-items: center !important;
    gap: 8px !important;
    height: fit-content !important;
    cursor: pointer !important;
}

.category-results-header .btn-back:hover {
    color: var(--primary) !important;
    background: none !important;
    transform: translateX(-5px) !important;
}

.category-results-header .btn-back svg {
    margin: 0 !important;
    width: 24px !important;
    height: 24px !important;
}

/* OTP Verification Styles */
.otp-container {
    padding: 20px;
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
}

.otp-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
}

.otp-subtitle {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
}

.otp-phone {
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.otp-inputs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.otp-input-field {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 12px;
    background-color: #f0f0f0;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    color: #333;
    transition: all 0.2s;
}

.otp-input-field:focus {
    background-color: #fff;
    box-shadow: 0 0 0 2px var(--primary);
    outline: none;
}

.otp-input-field.filled {
    background-color: #f8f9fa;
}

.otp-resend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
    font-size: 1rem;
    color: #666;
}

.otp-timer {
    background-color: #f0f0f0;
    padding: 5px 12px;
    border-radius: 8px;
    font-weight: 600;
    color: #333;
    min-width: 60px;
}

.btn-resend {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
}

.btn-resend:disabled {
    color: #999;
    cursor: not-allowed;
}

/* Profile Page Styles */
.profile-container {
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.profile-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 30px;
}

.profile-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.profile-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    cursor: pointer;
    border-bottom: 1px solid #f8f9fa;
    transition: background 0.2s;
}

.profile-menu-item:last-child {
    border-bottom: none;
}

.profile-menu-item:active {
    background-color: #f8f9fa;
}

.profile-menu-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.profile-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 10px;
    color: var(--primary);
    transition: all 0.2s ease;
}

.profile-menu-item:hover .profile-icon {
    background: var(--primary);
    color: white;
}

.profile-menu-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
}

.profile-menu-item.logout .profile-menu-title {
    color: #f05a5a;
}

.profile-menu-item.logout .profile-icon {
    color: #E03137;
    background: #fff5f5;
}

.profile-menu-item.logout:hover .profile-icon {
    background: #E03137;
    color: white;
}

.profile-arrow {
    font-size: 1.5rem;
    color: #ccc;
    font-weight: 300;
}

/* Profile Header Styles */
.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
    text-align: center;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), #ff9d66);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    color: white;
    box-shadow: 0 8px 20px rgba(255, 125, 51, 0.3);
}

.profile-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.profile-phone-subtitle {
    font-size: 1rem;
    color: #666;
}

/* Profile Edit Form */
.profile-edit-box {
    padding: 20px;
}