/* Front theme: category dropdown and navbar fixes */
.categories-nav-wrapper {
    position: relative;
}

#navbar-vertical.navbar {
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    margin-top: 0;
    box-shadow: 0 0.5rem 1rem rgba(61, 70, 77, 0.15);
    border: 1px solid #e9ecef;
    border-top: none;
}

#navbar-vertical .navbar-nav {
    max-height: 70vh;
    overflow-y: auto;
    flex-direction: column;
}

.navbar-vertical.navbar-light .navbar-nav .nav-link {
    color: #3d464d;
    font-weight: 500;
    transition:
        background-color 0.2s,
        color 0.2s;
}

.navbar-vertical.navbar-light .navbar-nav .nav-link:hover {
    background-color: #ffd333;
    color: #3d464d;
}

.navbar-vertical.navbar-light .navbar-nav .nav-item.nav-link:first-child {
    border-top: none;
}

.categories-nav-wrapper .btn[aria-expanded="true"] .fa-angle-down {
    transform: rotate(180deg);
}
.categories-nav-wrapper .btn .fa-angle-down {
    transition: transform 0.2s ease;
}

@media (max-width: 991.98px) {
    .categories-nav-wrapper {
        display: none;
    }
}

/* Hero / carousel compact section (215px) */
#header-carousel .hero-slide {
    height: 215px;
}
#header-carousel .hero-caption {
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    padding: 0.5rem 1rem;
}
#header-carousel .hero-caption-inner {
    max-width: 100%;
    padding: 0;
    text-align: center;
}
#header-carousel .hero-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
#header-carousel .hero-subtitle {
    font-size: 0.8rem;
    line-height: 1.3;
    margin-bottom: 0.35rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
#header-carousel .hero-cta {
    font-size: 0.8rem;
}
#header-carousel .carousel-indicators {
    margin-bottom: 0.25rem;
}
#header-carousel .carousel-indicators li {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}
/* Hero offers: desktop right 25%, mobile below carousel - no JS */
.hero-offers-col {
    min-height: 215px;
}
.hero-offers-wrap {
    min-height: 215px;
}
#offer-carousel .carousel-inner,
#offer-carousel .carousel-item {
    height: 215px;
}
#offer-carousel .carousel-indicators-offer {
    margin-bottom: 0.25rem;
}
#offer-carousel .carousel-indicators-offer li {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}
.hero-offer {
    height: 215px;
    overflow: hidden;
    position: relative;
}
.hero-offer img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-offer .offer-text {
    padding: 0.5rem 0.75rem;
}
.hero-offer .offer-text h6 {
    font-size: 0.7rem;
    margin-bottom: 0.15rem;
}
.hero-offer .offer-text h3 {
    font-size: 1rem;
    margin-bottom: 0.35rem;
}
.hero-offer .offer-text .btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* Category cards: 3 per row on phone – compact vertical; horizontal from sm */
.cat-card {
    background: #fff;
    padding: 0.5rem 0.6rem;
    border-radius: 0.75rem;
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s ease;
}
.cat-card:hover {
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.12);
}
.cat-card-img {
    width: 72px;
    height: 72px;
    border-radius: 0.5rem;
    overflow: hidden;
}
.cat-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cat-card-body {
    padding-top: 0.2rem;
    padding-left: 0;
}
.cat-card-title {
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.cat-card-body small {
    font-size: 0.7rem;
}
@media (min-width: 576px) {
    .cat-card {
        padding: 0.75rem 1rem;
    }
    .cat-card-img {
        width: 120px;
        height: 120px;
    }
    .cat-card-body {
        padding-top: 0;
        padding-left: 0.75rem;
    }
    .cat-card-title {
        font-size: 1rem;
        -webkit-line-clamp: unset;
    }
    .cat-card-body small {
        font-size: 0.875rem;
    }
}

@media (min-width: 576px) {
    #header-carousel .hero-title {
        font-size: 1.5rem;
    }
    #header-carousel .hero-subtitle {
        font-size: 0.875rem;
    }
}
@media (min-width: 992px) {
    #header-carousel .hero-title {
        font-size: 1.65rem;
    }
}

/* Shop: filter collapsed on mobile, always visible on desktop */
@media (min-width: 768px) {
    .shop-filters-collapse.collapse {
        display: block !important;
        height: auto !important;
        visibility: visible !important;
    }
}

/* Shop: filter form fields - text fully visible (no clip) */
#shopFilters .form-control {
    min-height: 2.75rem;
    padding: 0.5rem 0.75rem;
    line-height: 1.5;
    display: block;
    box-sizing: border-box;
}
#shopFilters select.form-control {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    height: auto;
    min-height: 2.75rem;
}
#shopFilters .form-group {
    margin-bottom: 1rem;
    overflow: visible;
}
#shopFilters .form-group:last-of-type {
    margin-bottom: 1rem;
}
#shopFilters .btn-block[type="submit"] {
    margin-top: 0.25rem;
}
#shopFilters .bg-light.p-3 {
    overflow: visible;
}

/* Product card: Add to cart on image top-right */
.product-item .product-img {
    position: relative;
}
.product-item .product-img > a {
    position: relative;
    z-index: 0;
    display: block;
}
.product-add-to-cart {
    position: absolute !important;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 10;
    pointer-events: auto;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}
.product-add-to-cart form {
    display: inline-block;
    margin: 0;
}
.product-add-to-cart .btn-square,
.product-add-to-cart .btn {
    width: 2.25rem !important;
    height: 2.25rem !important;
    min-width: 2.25rem;
    min-height: 2.25rem;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: #FFD333 !important;
    border: 1px solid #e6be2e !important;
    color: #3D464D !important;
}
.product-add-to-cart .btn-square:hover {
    background: #e6be2e !important;
    border-color: #e6be2e !important;
    color: #3D464D !important;
}

/* Product card: discount price style & Hot Deal badge */
.product-price-current {
    font-size: 1.1rem;
    color: #3D464D;
}
.product-price-old {
    font-size: 0.9rem;
}
.product-price-off {
    font-size: 0.9rem;
    font-weight: 700;
    color: #198754 !important;
}
.product-badge-hot-deal {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 5;
    background: #d4edda;
    color: #155724;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}
.product-badge-hot-deal-inline {
    background: #d4edda;
    color: #155724;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

/* Shop product grid: fixed card height so grid stays even, tighter spacing */
.shop-product-grid.row {
    margin-left: -6px;
    margin-right: -6px;
}
.shop-product-grid [class*="col-"] {
    padding-left: 6px;
    padding-right: 6px;
}
.shop-product-grid .col {
    display: flex;
}
.shop-product-grid .product-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 200px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}
.shop-product-grid .product-item .product-img {
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
    position: relative;
    border-radius: 10px 10px 0 0;
}
.shop-product-grid .product-item .product-img > a {
    position: absolute;
    inset: 0;
    display: block;
}
.shop-product-grid .product-item .product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.shop-product-grid .product-item > .text-center {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Marquee: theme synced strip */
.marquee-strip {
    overflow: hidden;
    background: linear-gradient(90deg, #2b3238 0%, #3d464d 55%, #323a40 100%);
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(255, 211, 51, 0.45);
    margin-top: -30px;
    margin-bottom: 1rem;
    position: relative;
}
.marquee-strip-inner {
    display: flex;
    width: max-content;
    animation: marquee-scroll var(--marquee-duration, 28s) linear infinite;
    will-change: transform;
}
.marquee-strip:hover .marquee-strip-inner {
    animation-play-state: paused;
}
.marquee-track {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    padding: 0 1.5rem;
}
.marquee-track-dup {
    padding-left: 0;
}
.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    padding: 0 0.75rem;
}
.marquee-icon {
    color: #ffd333;
    font-size: 0.95rem;
}
.marquee-text,
.marquee-link {
    color: #ffd333;
    font-size: 1.05rem;
    font-weight: 300;
    letter-spacing: 0.08em;
    word-spacing: 0.35em;
    line-height: 1.35;
    font-family: "Poppins", "Roboto", sans-serif;
}
.marquee-link {
    text-decoration: none;
    transition: color 0.2s;
}
.marquee-link:hover {
    color: #ffe27a;
}
.marquee-sep {
    color: rgba(255, 211, 51, 0.75);
    font-size: 0.5rem;
    padding: 0 0.25rem;
    user-select: none;
}
@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@media (max-width: 575.98px) {
    .marquee-strip { padding: 0.35rem 0; margin-top: -30px; }
    .marquee-item { padding: 0 0.5rem; }
    .marquee-text, .marquee-link { font-size: 0.92rem; }
    .marquee-strip-inner { animation-duration: var(--marquee-duration, 22s); }
}
