/* Modern CSS Reset & Normalization */
*, *::before, *::after {
    box-sizing: border-box;
}

* {
    margin: 0;
}

html, body {
    height: 100%;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
    background-color: var(--brand-light);
    font-family: 'IBM Plex Sans Arabic', 'Inter', 'Cairo', sans-serif;
    color: var(--brand-black);
    color-scheme: light; /* Prevent forced browser dark mode overrides */
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

input, button, textarea, select {
    font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}

:root {
    --brand-yellow: #feee00;
    --brand-black: #404040;
    --brand-light: #f7f7fa;
    --brand-gray: #7e7e7e;
    --brand-border: #ebebed;
}

/* Global Width Expansion to 90% */
.container {
    max-width: 95% !important;
    width: 95% !important;
}

@media (max-width: 576px) {
    .container {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 90% !important;
        width: 90% !important;
    }
}


.navbar {
    background-color: var(--brand-yellow);
    padding: 8px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: -webkit-sticky; /* Safari */
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Modal Stacking Fixes */
.modal {
    z-index: 2500 !important;
}

.modal-backdrop {
    z-index: 2450 !important;
}

.navbar-brand img {
    height: 25px;
}

.search-container {
    flex-grow: 1;
    max-width: 800px;
    margin: 0 20px;
}

.search-bar {
    background: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 2px 12px;
}

.search-bar input {
    border: none;
    width: 100%;
    padding: 10px;
    outline: none;
    font-size: 0.95rem;
}

.nav-link {
    color: var(--brand-black) !important;
    background-color: transparent; /* Explicit for color-scheme */
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    padding: 0 15px !important;
    text-decoration: none;
}

.nav-link i {
    font-size: 1.2rem;
    margin-left: 8px;
}

.main-wrapper {
    display: flex;
    margin-top: 20px;
}

/* Category Horizontal Navigation */
.category-scroll-container {
    overflow-x: auto;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* Internet Explorer 10+ */
}

.category-scroll-container::-webkit-scrollbar {
    display: none;
    /* WebKit */
}

.category-nav-link {
    transition: color 0.2s, background-color 0.2s;
    border-radius: 4px;
}

.category-nav-link:hover {
    color: #3866df !important;
    background-color: rgba(56, 102, 223, 0.05);
}

.content-area {
    flex-grow: 1;
    width: 100%;
}

/* Product Cards */
.product-card {
    background: white;
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 15px;
    transition: all 0.3s;
    height: 100%;
    cursor: pointer;
}

.product-card:hover {
    border-color: var(--brand-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.product-img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 12px;
}

.product-name {
    font-size: 0.85rem;
    height: 38px;
    overflow: hidden;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    color: #404040;
    line-height: 1.3;
}

.product-price {
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.currency {
    font-size: 0.75rem;
    margin-left: 4px;
}

.rating {
    font-size: 0.8rem;
    color: #38ae04;
    background: #f3fbf2;
    padding: 2px 6px;
    border-radius: 10px;
    display: inline-block;
}

.footer {
    background-color: white;
    padding: 40px 0;
    margin-top: 50px;
    border-top: 1px solid #ddd;
}

/* Premium Slider & Carousel Enhancements */
.carousel-item {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.trending-slider-wrapper {
    position: relative;
    overflow: hidden;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    /* Standard property */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    /* Standard property */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 40px;
    height: 40px;
    padding: 10px;
}

/* Premium Noon-Style Product Cards */
.product-card {
    background: white;
    border-radius: 4px;
    padding: 8px;
    position: relative;
    transition: transform 0.3s cubic-bezier(.25, .8, .25, 1), box-shadow 0.3s, border-color 0.3s;
    border: 1px solid #f0f0f2 !important;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 410px;
}

@media (max-width: 576px) {
    .product-card {
        min-height: auto;
        padding: 6px;
    }
    .product-img-wrapper {
        height: 140px;
        padding: 4px;
    }
    .product-name {
        font-size: 0.75rem;
        height: 2.1rem;
        margin-bottom: 4px;
    }
    .current-price {
        font-size: 1rem;
    }
    .price-row {
        gap: 4px;
    }
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    border-color: #ddd !important;
}

.wishlist-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    color: #b5b5b5;
    cursor: pointer;
    transition: color 0.3s, transform 0.3s cubic-bezier(.25, .8, .25, 1), box-shadow 0.3s;
    background: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.wishlist-btn:hover {
    color: #ff4d4f;
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(255, 77, 79, 0.25);
}

.wishlist-btn:active {
    animation: heartBounce 0.4s ease;
}

@keyframes heartBounce {
    0% {
        transform: scale(1.2);
    }

    40% {
        transform: scale(1.5);
    }

    70% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1.2);
    }
}

.best-product-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #004d40;
    color: white;
    font-size: 0.6rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
    z-index: 10;
}

.product-img-wrapper {
    height: 180px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    overflow: hidden;
    position: relative;
}

.product-img-wrapper img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.5s cubic-bezier(.25, .8, .25, 1);
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.08);
}


.product-info-wrapper {
    display: flex;
    flex-direction: column;
    padding: 0 4px;
    flex-grow: 1;
}

.product-name {
    font-size: 0.82rem;
    color: #404040;
    text-decoration: none;
    line-height: 1.4;
    height: 2.3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
    font-weight: 400;
}

.rating-block {
    display: flex;
    align-items: center;
    font-size: 0.75rem;
    margin-bottom: 8px;
    gap: 4px;
}

.rating-value-pill {
    background: white;
    padding: 2px 6px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 2px;
    color: #388e3c;
    border: 1px solid #388e3c;
}

.rating-score {
    color: #404040;
}

.rating-value-pill i {
    color: #388e3c;
    font-size: 0.65rem;
}

.rating-count {
    color: #7e7e7e;
    font-size: 0.7rem;
    font-weight: normal;
}

.price-block {
    display: flex;
    flex-direction: column;
    margin-top: auto;
    gap: 2px;
}

.price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.discount-tag {
    color: #38ae04;
    font-weight: 700;
    font-size: 0.8rem;
    animation: none;
}

.old-price {
    text-decoration: line-through;
    color: #b5b5b5;
    font-size: 0.75rem;
}

.current-price {
    font-weight: 700;
    font-size: 1.25rem;
    color: #000;
    display: flex;
    align-items: baseline;
    gap: 3px;
    margin-top: 0;
}

.current-price .currency {
    font-size: 0.8rem;
    font-weight: 700;
    color: #000;
}

.fast-ship-tag {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.65rem;
    color: #3c5898;
    margin-top: 2px;
}

.fast-ship-tag i {
    font-size: 0.7rem;
}

.express-tag-blue {
    background: #feee00;
    color: #404040;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 2px;
    font-weight: 800;
    font-style: italic;
    display: inline-block;
    width: fit-content;
    border: 1px solid #e0e0e0;
}

.golden-points-tag {
    background: linear-gradient(135deg, #f5a623, #f7c948);
    color: #6b3a0a;
    font-size: 0.65rem;
    padding: 2px 7px;
    border-radius: 4px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    width: fit-content;
    border: 1px solid #e8941a;
    box-shadow: 0 1px 3px rgba(245, 166, 35, 0.3);
}

/* Gallery Dots & Controls */
.gallery-controls {
    position: absolute;
    inset: 0;
    z-index: 10;
    pointer-events: none;
}

.gallery-controls * {
    pointer-events: auto;
}

.gallery-dots {
    position: absolute;
    bottom: 8px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .gallery-dots {
    opacity: 1;
}

.gallery-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
}

.gallery-dot:hover,
.gallery-dot.active {
    background: #384abd;
    transform: scale(1.3);
}

.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    color: #333;
    font-size: 0.7rem;
}

.product-card:hover .gallery-nav-btn {
    opacity: 1;
}

.gallery-nav-btn.prev {
    left: 5px;
}

.gallery-nav-btn.next {
    right: 5px;
}

.gallery-nav-btn:hover {
    background: #fff;
    color: #384abd;
    transform: translateY(-50%) scale(1.1);
}

.product-img-wrapper img {
    transition: opacity 0.3s ease;
}

.add-btn-plus {
    position: absolute;
    top: 155px;
    left: 10px;
    width: 32px;
    height: 32px;
    border: 1px solid #ebebed;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #404040;
    cursor: pointer;
    background: white;
    z-index: 15;
    font-size: 1.2rem;
    font-weight: 400;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.add-btn-plus:hover {
    background: #f8f9fa;
    border-color: #004d40;
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Express tag slide-in */
.product-card .express-tag-blue {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Fast ship tag animation */
.fast-ship-tag i {
    display: inline-block;
    animation: shipMove 2s ease-in-out infinite;
}

@keyframes shipMove {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(4px);
    }
}

/* Product name hover color transition */
.product-name-link {
    transition: color 0.3s ease;
}

.product-card:hover .product-name {
    color: #384abd;
}

/* Slider Navigation Buttons */
.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: white;
    border: 1px solid var(--brand-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s cubic-bezier(.25, .8, .25, 1);
    color: var(--brand-black);
    opacity: 0.8;
}

.slider-nav-btn:hover {
    opacity: 1;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-50%) scale(1.1);
    background-color: var(--brand-light);
}

.slider-nav-btn.prev {
    left: -20px;
}

.slider-nav-btn.next {
    right: -20px;
}

/* RTL Support for Slider Buttons */
[dir="rtl"] .slider-nav-btn.prev {
    left: auto;
    right: -20px;
}

[dir="rtl"] .slider-nav-btn.next {
    right: auto;
    left: -20px;
}

/* Hide on mobile */
@media (max-width: 768px) {
    .slider-nav-btn {
        display: none;
    }
}

/* Mobile Header & Search */
@media (max-width: 768px) {
    .navbar-brand img {
        height: 20px !important;
    }
    .search-inner {
        padding: 0 8px !important;
    }
    .mobile-search-container {
        padding: 8px 15px;
        background: var(--brand-yellow);
        border-top: 1px solid rgba(0,0,0,0.05);
    }
}

/* Category Bar Mobile */
@media (max-width: 768px) {
    .category-scroll-container .nav {
        font-size: 0.85rem !important;
    }
    .category-nav-link {
        padding: 0 10px !important;
    }
}
.details-page-wrapper {
    background: #fff;
    padding: 24px 0;
}

.gallery-vertical-wrapper {
    display: flex;
    gap: 12px;
}

@media (max-width: 768px) {
    .gallery-vertical-wrapper {
        flex-direction: column-reverse;
    }
    .vertical-thumbs {
        flex-direction: row !important;
        width: 100% !important;
        overflow-x: auto;
        padding-bottom: 5px;
    }
    .vertical-thumb {
        flex: 0 0 60px;
    }
}

.vertical-thumbs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 60px;
    flex-shrink: 0;
}

.vertical-thumb {
    width: 60px;
    height: 60px;
    border: 1px solid #ebebed;
    border-radius: 4px;
    padding: 2px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vertical-thumb:hover,
.vertical-thumb.active {
    border-color: #384abd;
    box-shadow: 0 0 0 1px #384abd;
}

.vertical-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.main-image-viewport {
    flex-grow: 1;
    border: 1px solid #f2f2f2;
    border-radius: 8px;
    padding: 20px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.main-image-viewport img {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
}

/* Premium Badges */
.badge-ramadan {
    background: #331d10;
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.badge-ramadan i {
    color: #f9b800;
}

.brand-link {
    color: #384abd;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
    display: block;
}

.product-title-h1 {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.4;
    color: #404040;
    margin-bottom: 12px;
}

.rating-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.rating-pill {
    display: flex;
    align-items: center;
    background: white;
    color: #388e3c;
    border: 1px solid #388e3c;
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    gap: 4px;
}

.rating-count-text {
    color: #384abd;
    font-size: 0.85rem;
    font-weight: 400;
    text-decoration: underline;
}

.price-section {
    border-top: 1px solid #f2f2f2;
    padding-top: 16px;
    margin-bottom: 24px;
}

.details-price {
    font-size: 2rem;
    font-weight: 800;
    color: #404040;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.details-price .currency {
    font-size: 1rem;
    font-weight: 600;
}

.price-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

.details-old-price {
    text-decoration: line-through;
    color: #7e7e7e;
    font-size: 0.95rem;
}

.details-discount {
    background: #e5f3e5;
    color: #388e3c;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 2px 6px;
    border-radius: 4px;
}

.best-seller-pill {
    background: #fdf3f3;
    color: #d32f2f;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
}

.best-seller-pill i {
    font-size: 0.9rem;
}

/* Delivery Info */
.delivery-info-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
}

.delivery-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.delivery-row:last-child {
    margin-bottom: 0;
}

.express-tag-lg {
    background: #f9b800;
    color: #333;
    font-weight: 900;
    font-style: italic;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.super-mall-tag-lg {
    background: #384abd;
    color: #fff;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
}

.delivery-text {
    font-size: 0.9rem;
    color: #404040;
}

.delivery-text .date {
    font-weight: 700;
}

.action-btns {
    display: flex;
    gap: 12px;
}

.buy-btn {
    flex-grow: 1;
    background: #f9b800;
    border: none;
    color: #333;
    height: 48px;
    border-radius: 8px;
    font-weight: 700;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.buy-btn:hover {
    background: #eab000;
    color: #333;
}

.wishlist-details-btn {
    width: 48px;
    height: 48px;
    border: 1px solid #ebebed;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7e7e7e;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wishlist-details-btn:hover {
    color: #d32f2f;
    border-color: #d32f2f;
    background: #fff5f5;
}

/* Specs Refined */
.specs-table-fancy {
    width: 100%;
    margin-top: 32px;
    border-collapse: collapse;
}

.specs-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f2f2f2;
}

.specs-table-fancy tr {
    border-bottom: 1px solid #f2f2f2;
}

.specs-table-fancy td {
    padding: 12px;
    font-size: 0.9rem;
    color: #404040;
}

.specs-table-fancy .spec-label {
    width: 30%;
    background: #f8f9fa;
    font-weight: 600;
    color: #7e7e7e;
}

@media (max-width: 991px) {
    .gallery-vertical-wrapper {
        flex-direction: column-reverse;
    }

    .vertical-thumbs {
        flex-direction: row;
        width: 100%;
        overflow-x: auto;
        padding: 4px;
    }
}

/* ======================================
   Suggested Topics Section
   ====================================== */

.suggested-topics-wrapper {
    background: linear-gradient(135deg, #fffde7 0%, #fff9c4 40%, #fef9e7 100%);
    border: 1px solid #f0e84a;
    border-radius: 16px;
    padding: 28px 32px 20px;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
}

.suggested-topics-wrapper::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(254, 238, 0, 0.35) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.suggested-topics-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
}

.suggested-topics-icon-anim {
    width: 54px;
    height: 54px;
    background: linear-gradient(135deg, #feee00, #ffc107);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #404040;
    box-shadow: 0 4px 14px rgba(254, 193, 7, 0.4);
    animation: compassSpin 6s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes compassSpin {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(15deg);
    }

    75% {
        transform: rotate(-15deg);
    }
}

.suggested-topics-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 4px;
}

.suggested-topics-sub {
    font-size: 0.85rem;
    color: #6b6b6b;
    margin: 0;
}

/* Category Chips Row */
.category-chips-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: white;
    border: 1.5px solid #e8e800;
    color: #333;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 7px 18px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(.25, .8, .25, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.category-chip i {
    color: #c8a900;
    font-size: 0.75rem;
    transition: transform 0.25s ease;
}

.category-chip:hover {
    background: #feee00;
    border-color: #feee00;
    color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(254, 238, 0, 0.35);
    text-decoration: none;
}

.category-chip:hover i {
    transform: rotate(20deg);
}

[dir="rtl"] .suggested-topics-wrapper::before {
    right: auto;
    left: -40px;
}

/* Premium See More Button */
.btn-see-more-premium {
    background-color: var(--brand-yellow);
    color: var(--brand-black);
    border: 1px solid #d1d1d1;
    padding: 12px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.btn-see-more-premium:hover {
    background-color: #f7e600;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    border-color: #bbb;
}

.btn-see-more-premium:active {
    transform: translateY(0);
}

.btn-see-more-premium:disabled {
    background-color: #f0f0f0;
    color: #999;
    cursor: not-allowed;
    border-color: #ddd;
}

/* Description Truncation */
.description-container {
    position: relative;
    max-height: 120px;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
}

.description-container.expanded {
    max-height: 2000px;
}

.description-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent, #fff);
    pointer-events: none;
    transition: opacity 0.3s;
}

.description-container.expanded .description-overlay {
    opacity: 0;
}

.btn-read-more {
    color: #384abd;
    background: none;
    border: none;
    padding: 0;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    margin-top: 5px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-read-more:hover {
    text-decoration: underline;
}

.btn-read-more i {
    transition: transform 0.3s;
}

.btn-read-more.active i {
    transform: rotate(180deg);
}

/* Premium Shop Display (Homepage) */
.shop-scroll-wrapper {
    display: flex;
    overflow-x: auto;
    gap: 24px;
    padding: 10px 5px 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.shop-scroll-wrapper::-webkit-scrollbar {
    display: none;
}

.shop-bubble-premium {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    min-width: 90px;
}

.shop-bubble-premium:hover {
    transform: scale(1.1);
    text-decoration: none;
}

.shop-logo-circle-lg {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: white;
    padding: 10px;
    border: 1px solid #f0f0f2;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.shop-logo-circle-lg img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.shop-name-label-lg {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--brand-black);
    text-align: center;
}

/* Responsive Banner */
.hero-banner-img {
    height: 400px;
    object-fit: cover;
}

@media (max-width: 991px) {
    .hero-banner-img {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .hero-banner-img {
        height: 180px;
    }
}

/* Mobile Shop Adjustments */
@media (max-width: 576px) {
    .shop-scroll-wrapper {
        gap: 15px;
    }
    .shop-logo-circle-lg {
        width: 60px;
        height: 60px;
        padding: 6px;
    }
    .shop-name-label-lg {
        font-size: 0.75rem;
    }
}

/* Admin Award Panel Mobile */
@media (max-width: 576px) {
    .admin-award-panel .col-auto {
        width: 100% !important;
        margin-bottom: 15px;
    }
    .admin-award-panel .col-auto d-flex.gap-2 {
        flex-direction: column;
        width: 100%;
    }
    .admin-award-panel .btn-award-save, 
    .admin-award-panel .btn-award-remove {
        width: 100%;
        text-align: center;
        margin-bottom: 5px;
    }
}

/* Shop Details Branding Mobile */
@media (max-width: 768px) {
    .shop-brand-container {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    .shop-logo-giant {
        width: 80px;
        height: 80px;
    }
    .shop-hero .col-lg-3 {
        text-align: center;
        justify-content: center !important;
    }
}

/* Orders Mobile Adjustments */
@media (max-width: 576px) {
    .order-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .order-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .order-item-img {
        width: 100%;
        height: 150px;
    }
    .order-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* Mobile Category Bar Toggle */
@media (max-width: 768px) {
    .category-bar {
        display: none;
        transition: all 0.3s ease;
    }
    .category-bar.show {
        display: block !important;
        animation: slideDown 0.3s ease-out;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header Avatar refinement */
.nav-link img {
    border: 1.5px solid rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.nav-link:hover img {
    transform: scale(1.1);
}

.dropdown-menu .btn-sm {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    font-weight: 700;
}