/**
 * Professional Design Enhancements for Belanja Keramik
 * This file contains improvements for better spacing, typography, and modern design
 */

/* ==========================================================================
   1. GENERAL IMPROVEMENTS
   ========================================================================== */

/* Better box-sizing for all elements */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Body improvements */
body {
    font-family: 'WorkSans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #2c2e30;
    overflow-x: hidden;
}

/* Container improvements */
.container-product {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/* ==========================================================================
   2. TYPOGRAPHY ENHANCEMENTS
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #2c2e30;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
    font-weight: 700;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
    font-weight: 600;
}

/* ==========================================================================
   3. HOME BANNER IMPROVEMENTS
   ========================================================================== */

.home-banner {
    margin-bottom: 3rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
}

.home-banner .carousel-inner {
    border-radius: 8px;
    width: 100%;
}

.home-banner .carousel-item {
    width: 100%;
    height: 100%;
}

.home-banner .carousel-item img {
    width: 100%;
    height: 100%;
    min-height: 520px;
    object-fit: cover;
    max-height: none;
}

.home-banner .carousel-caption {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 3rem;
    text-align: left !important;
}

.home-banner .carousel-caption h5 {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.cookie-bar-box {
    z-index: 9999999;
}

.home-banner .carousel-caption p {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Better carousel controls */
.home-banner .carousel-control-prev,
.home-banner .carousel-control-next {
    width: 50px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.home-banner .carousel-control-prev:hover,
.home-banner .carousel-control-next:hover {
    opacity: 1;
}

/* Carousel indicators */
.home-banner .carousel-indicators li {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid #fff;
}

.home-banner .carousel-indicators .active {
    background-color: #ffad00;
    border-color: #ffad00;
}

/* ==========================================================================
   4. PRODUCT CARD ENHANCEMENTS
   ========================================================================== */

.product-list {
    margin-bottom: 2rem;
}

.product-item {
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem;
    margin: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.product-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
    border-color: #ffad00;
}

.product-item .sale {
    position: absolute;
    top: 12px;
    left: -4px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
    color: #fff;
    padding: 6px 14px 6px 18px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.product-item .sale::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    border-width: 6px 6px 0 0;
    border-style: solid;
    border-color: #c6321c transparent transparent transparent;
}

.product-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

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

.product-item .item-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2c2e30;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    min-height: 2.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-item .item-title:hover {
    color: #ffad00;
}

.product-item .item-cost {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffad00;
    margin-bottom: 0.5rem;
}

.product-item .item-cost:not(:first-of-type) {
    font-size: 1rem;
    font-weight: 500;
    color: #999;
    text-decoration: line-through;
}

.product-item .btn-buy {
    display: block;
    width: 100%;
    background: #ffad00;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    margin-top: 1rem;
    transition: all 0.3s ease;
    border: 2px solid #ffad00;
}

.product-item .btn-buy:hover {
    background: #fff;
    color: #ffad00;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 173, 0, 0.3);
}

/* ==========================================================================
   5. LIST HOT ITEM (MOST POPULAR) SECTION
   ========================================================================== */

.list-hot-item {
    background: #fff;
    padding: 2.5rem 0;
    margin-bottom: 2rem;
}

.list-hot-item h4 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2c2e30;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.list-hot-item h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: #ffad00;
    border-radius: 2px;
}

/* Carousel controls for products */
.list-hot-item .carousel-control-prev,
.list-hot-item .carousel-control-next {
    width: 40px;
    height: 40px;
    background: #ffad00;
    border-radius: 50%;
    position: relative;
    opacity: 1;
    transition: all 0.3s ease;
}

.list-hot-item .carousel-control-prev:hover,
.list-hot-item .carousel-control-next:hover {
    background: #f1a300;
    transform: scale(1.1);
}

.list-hot-item .carousel-control-prev-icon,
.list-hot-item .carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

.separator-bottom {
    height: 1px;
    background: linear-gradient(to right, transparent, #e0e0e0, transparent);
    margin-top: 2rem;
}

/* ==========================================================================
   6. NAVBAR IMPROVEMENTS
   ========================================================================== */

.navbar {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0 !important;
    z-index: 1000;
    background: #fff;
    width: 100%;
    left: 0;
    right: 0;
    overflow: visible !important;
    /* Prevent cropping */
    min-height: fit-content;
}

.navbar.pull {}

/* Ensure navbar separator is included in sticky behavior */
.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    z-index: -1;
    background: inherit;
}

/* Ensure full navbar sticks including separator */
.navbar .separator {
    padding: 0.75rem 0;
    font-size: 0.875rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    width: 100%;
}

/* Yellow background separator styles (when using bg-primary) */
.navbar .separator.bg-primary a,
.navbar .separator.bg-primary .left-side,
.navbar .separator.bg-primary .right-side {
    color: #fff;
}

.navbar .separator.bg-primary a:hover {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

/* Default gray background separator styles */
.navbar .separator:not(.bg-primary) {
    background: #f8f9fa;
}

.navbar .separator:not(.bg-primary) a {
    color: #6c757d;
    transition: color 0.3s ease;
}

.navbar .separator:not(.bg-primary) a:hover {
    color: #ffad00;
    text-decoration: none;
}

.navbar .menu-language .language-toggle {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    padding: 4px 6px;
    border-radius: 4px;
}

.navbar .menu-language .language-toggle.active-language {
    background: rgba(255, 255, 255, 0.2);
}

/* Loyalty teaser sections */
.loyalty-teaser {
    margin: 3rem 0;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.loyalty-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.loyalty-header h4 {
    margin: 0;
    font-weight: 700;
}

.loyalty-card,
.prize-card {
    width: 100%;
    background: #fafafa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.loyalty-card h5 {
    margin-bottom: 0.35rem;
    font-weight: 700;
}

.prize-card .prize-thumb {
    width: 100%;
    height: 160px;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    margin-bottom: 0.75rem;
}

.prize-card .prize-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.prize-card .prize-body h6 {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.prize-card .prize-body .points {
    color: #ffad00;
    font-weight: 700;
    margin: 0;
}

.tier-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
}

.tier-classic {
    border-left: 4px solid #9d5d39;
}

.tier-classic .tier-badge {
    background: #6c757d;
}

.tier-platinum {
    border-left: 4px solid #8e8e9a;
}

.tier-platinum .tier-badge {
    background: linear-gradient(135deg, #c5c5d3, #8e8e9a);
}

.tier-diamond {
    border-left: 4px solid #00b4d8;
}

.tier-diamond .tier-badge {
    background: linear-gradient(135deg, #48cae4, #0096c7);
}

.navbar-body {
    padding: 1rem 0;
    background: #fff;
    position: relative;
    z-index: 1;
    width: 100%;
}

.navbar .logo img {
    max-height: 50px;
    transition: transform 0.3s ease;
}

.navbar .logo:hover img {
    transform: scale(1.05);
}

/* Search form improvements */
.navbar .form .input-group {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    overflow: hidden;
}

.navbar .form .form-control {
    border: 1px solid #e0e0e0;
    border-right: none;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
}

.navbar .form .form-control:focus {
    border-color: #ffad00;
    box-shadow: none;
}

.navbar .form .btn {
    border: 1px solid #e0e0e0;
    border-left: none;
    background: #fff;
    color: #6c757d;
    padding: 0.75rem 1.25rem;
    transition: all 0.3s ease;
}

.navbar .form .btn:hover {
    background: #ffad00;
    color: #fff;
    border-color: #ffad00;
}

/* ==========================================================================
   7. FOOTER ENHANCEMENTS
   ========================================================================== */

.footer {
    background: #fff;
    color: #1a1a1a;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer h5,
.footer h6 {
    color: #ffad00;
    font-weight: 700;
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
}

.footer p {
    color: #333333;
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer a {
    color: #1a1a1a;
    display: block;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-decoration: none;
}

.footer a:hover {
    color: #ffad00;
    padding-left: 0;
    text-decoration: none;
}

.footer .socmed {
    display: inline-block;
    margin-right: 1rem;
    margin-top: 1rem;
    transition: transform 0.3s ease;
}

.footer .socmed:hover {
    transform: translateY(-3px);
    padding-left: 0;
}

.footer .form input[type="text"] {
    border-radius: 8px 0 0 8px;
    border: 1px solid #989898;
    background: #fff;
    color: #1a1a1a;
    padding: 0.75rem 1rem;
}

.footer .form input[type="text"]::placeholder {
    color: #666666;
}

.footer .form input[type="submit"] {
    border-radius: 0 8px 8px 0;
    background: #ffad00;
    border: 1px solid #ffad00;
    color: #fff;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.footer .form input[type="submit"]:hover {
    background: #f1a300;
    border-color: #f1a300;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 173, 0, 0.3);
}

.footer-bottom {
    background: #f1f1f1;
    border-top: 1px solid #c8c8c8;
    padding: 1.5rem 0;
    margin-top: 2rem;
}

.footer-bottom p {
    margin: 0;
    text-align: center;
    color: #1a1a1a;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ==========================================================================
   8. UTILITY CLASSES
   ========================================================================== */

.mb-20-m {
    margin-bottom: 1.25rem;
}

/* Smooth transitions */
a,
button,
.btn {
    transition: all 0.3s ease;
}

/* Focus states */
a:focus,
button:focus,
.btn:focus,
input:focus {
    outline: 2px solid #ffad00;
    outline-offset: 2px;
}

/* ==========================================================================
   9. RESPONSIVE IMPROVEMENTS
   ========================================================================== */

/* Tablet responsive (768px - 991px) */
@media (max-width: 991px) and (min-width: 769px) {
    .container-product {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .ads-container .ads-body .stand-image {
        width: 150px;
        min-width: 150px;
    }

    .ads-container .ads-body .f-sim {
        width: 300px;
        min-width: 300px;
        height: 300px;
    }

    .ads-container .ads-body {
        height: 300px;
    }

    .ads-container .ads-body .square-image-big {
        height: 300px;
    }

    .ads-container .ads-body .stand-image {
        height: 300px;
    }
}

@media (max-width: 768px) {

    /* General mobile improvements */
    html,
    body {
        overflow-x: hidden;
        max-width: 100%;
    }

    body {
        font-size: 15px;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    h4 {
        font-size: 1.1rem;
    }

    /* Container spacing */
    .container-product {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
        padding-left: 1rem;
        padding-right: 1rem;
        overflow-x: hidden;
        max-width: 100%;
    }

    .container {
        overflow-x: hidden;
        max-width: 100%;
    }

    /* Home Banner Mobile */
    .home-banner {
        margin-bottom: 2rem;
        border-radius: 0;
        /* Remove border radius on mobile */
    }

    .home-banner .carousel-inner {
        border-radius: 0;
    }

    .home-banner .carousel-item img {
        max-height: 250px;
        border-radius: 0;
    }

    .home-banner .carousel-caption {
        padding: 1rem;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    }

    .home-banner .carousel-caption h5 {
        font-size: 1.1rem;
        margin-bottom: 0.25rem;
    }

    .home-banner .carousel-caption p {
        font-size: 0.85rem;
    }

    .home-banner .carousel-indicators li {
        width: 8px;
        height: 8px;
        margin: 0 3px;
    }

    /* Product Cards Mobile */
    .product-item {
        margin: 0.5rem 0.25rem;
        padding: 0.875rem;
        border-radius: 8px;
        flex: 0 0 auto;
        width: 160px;
        /* Fixed width for horizontal scroll */
    }

    .product-item img {
        height: 140px;
        width: 100%;
        border-radius: 6px;
        margin-bottom: 0.75rem;
    }

    .product-item .item-title {
        font-size: 0.85rem;
        min-height: 2.5rem;
        margin-bottom: 0.5rem;
    }

    .product-item .item-cost {
        font-size: 1rem;
        margin-bottom: 0.4rem;
    }

    .product-item .btn-buy {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
        margin-top: 0.75rem;
    }

    .product-item .sale {
        top: 8px;
        right: 8px;
        padding: 3px 8px;
        font-size: 0.65rem;
    }

    /* Most Popular Section Mobile - Horizontal Scroll */
    .list-hot-item {
        padding: 1.5rem 0;
        margin-bottom: 1.5rem;
        overflow: hidden;
    }

    .list-hot-item .product-list {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        margin: 0 -1rem;
        /* Negative margin to allow scroll to edges */
        padding: 0 1rem;
    }

    .list-hot-item .carousel-inner,
    .list-hot-item .carousel-item {
        display: block !important;
    }

    .list-hot-item .carousel-item .d-flex {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        gap: 0.5rem;
        padding-bottom: 1rem;
        /* Space for scrollbar */
    }

    .list-hot-item .carousel-item .product-item {
        scroll-snap-align: start;
    }

    .list-hot-item h4 {
        font-size: 1.35rem;
        margin-bottom: 1.5rem;
        padding-bottom: 0.75rem;
    }

    .list-hot-item h4:after {
        width: 50px;
        height: 3px;
    }

    /* Hide carousel controls on mobile - using horizontal scroll instead */
    .list-hot-item .carousel-control-prev,
    .list-hot-item .carousel-control-next,
    .list-hot-item .d-flex.align-items-center {
        display: none !important;
    }

    .separator-bottom {
        margin-top: 1.5rem;
    }

    /* Ads Container Mobile Improvements */
    .ads-container {
        margin-bottom: 2.5rem !important;
        padding-left: 4px;
        border-left-width: 4px;
        max-width: 100%;
        width: 100%;
        overflow-x: hidden;
        /* Prevent horizontal overflow */
    }

    /* Ensure container-product doesn't cause overflow */
    .container-product {
        overflow-x: hidden;
        max-width: 100%;
    }

    .ads-container .ads-header {
        padding-bottom: 0.75rem;
        margin-bottom: 1rem;
    }

    .ads-container .ads-header .pull-left {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .ads-container .ads-header .pull-left h3 {
        font-size: 1.15rem;
        margin-bottom: 0.25rem;
    }

    .ads-container .ads-header .pull-right {
        width: 100%;
    }

    .ads-container .ads-header .pull-right h2 {
        font-size: 1rem;
        margin-top: 0;
    }

    .ads-container .ads-body {
        flex-direction: column;
        gap: 0;
        overflow: hidden;
        /* Prevent overflow */
    }

    /* Hide stand banner on mobile */
    .ads-container .ads-body .stand-image {
        display: none !important;
    }

    .ads-container .ads-body .square-image-big {
        width: 100%;
        height: auto;
        max-height: 350px;
    }

    .ads-container .ads-body .square-image-big img {
        height: auto;
        max-height: 350px;
        width: 100%;
        object-fit: cover;
    }

    .ads-container .ads-body .f-sim {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        /* Prevent overflow */
        height: auto;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
        box-sizing: border-box;
    }

    .ads-container .ads-body .square-image-small {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        /* Keep squares */
        box-sizing: border-box;
        overflow: hidden;
    }

    .ads-container .ads-body .square-image-small img {
        height: auto;
        width: 100%;
        aspect-ratio: 1 / 1;
        object-fit: cover;
    }

    /* Navbar Mobile */
    .navbar .separator {
        padding: 0.5rem 0;
        font-size: 0.75rem;
    }

    .navbar .separator .left-side span {
        font-size: 0.7rem;
        margin-right: 0.5rem;
    }

    .navbar .separator .left-side i {
        width: 14px;
        height: 14px;
    }

    .navbar .logo img {
        max-height: 40px;
    }

    .navbar-body {
        padding: 0.75rem 0;
    }

    /* Footer Mobile */
    .footer {
        padding: 2rem 0 1rem;
        margin-top: 2.5rem;
    }

    .footer h5,
    .footer h6 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .footer p {
        font-size: 0.85rem;
        line-height: 1.6;
    }

    .footer a {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }

    .footer .form input[type="text"],
    .footer .form input[type="submit"] {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }

    .footer-bottom {
        padding: 1rem 0;
        margin-top: 1.5rem;
    }

    .footer-bottom p {
        font-size: 0.75rem;
    }
}

/* Small mobile devices (max-width: 480px) */
@media (max-width: 480px) {

    html,
    body {
        overflow-x: hidden !important;
    }

    .container-product {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .product-item {
        margin: 0.4rem 0.15rem;
        padding: 0.75rem;
        width: 145px;
        /* Smaller width for small phones */
    }

    .product-item img {
        height: 130px;
    }

    .product-item .item-title {
        font-size: 0.8rem;
    }

    .product-item .item-cost {
        font-size: 0.95rem;
    }

    .list-hot-item h4 {
        font-size: 1.2rem;
    }

    .ads-container .ads-header .pull-left h3 {
        font-size: 1rem;
    }

    .ads-container .ads-header .pull-right h2 {
        font-size: 0.9rem;
    }

    .ads-container {
        margin-bottom: 2rem !important;
        overflow-x: hidden !important;
    }

    .home-banner .carousel-item img {
        max-height: 200px;
    }

    .home-banner .carousel-caption h5 {
        font-size: 1rem;
    }

    .home-banner .carousel-caption p {
        font-size: 0.75rem;
    }
}

/* ==========================================================================
   10. GALLERY SECTIONS / ADS CONTAINER IMPROVEMENTS
   ========================================================================== */

/* Ads Container - Category Gallery Sections */
.ads-container {
    margin-bottom: 4rem !important;
    /* More space between categories */
    padding-left: 6px;
    /* Account for border */
    overflow: hidden;
    /* Prevent overflow */
    max-width: 100%;
    box-sizing: border-box;
}

/* Ads Header Improvements */
.ads-container .ads-header {
    max-width: 100%;
    width: 100%;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.ads-container .ads-header .pull-left h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2c2e30;
}

.ads-container .ads-header .pull-right h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #6c757d;
}

.ads-container .ads-header .pull-right h2 span {
    color: #ffad00;
    font-weight: 700;
}

/* Ads Body - Fix layout issues */
.ads-container .ads-body {
    display: flex;
    gap: 0;
    /* No gap between elements */
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    align-items: stretch;
}

/* Stand Image - Fix overflow issue */
.ads-container .ads-body .stand-image {
    flex-shrink: 0;
    width: 200px;
    min-width: 200px;
    height: 400px;
    overflow: hidden;
}

.ads-container .ads-body .stand-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Square Big - Ensure it fills remaining space */
.ads-container .ads-body .square-image-big {
    flex: 1;
    min-width: 0;
    /* Allow flexbox to shrink */
    height: 400px;
    overflow: hidden;
}

.ads-container .ads-body .square-image-big img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* F-sim container (4 small squares) */
.ads-container .ads-body .f-sim {
    flex-shrink: 0;
    display: flex;
    flex-wrap: wrap;
}

.ads-container .ads-body .square-image-small {
    width: 50%;
    height: 50%;
    overflow: hidden;
}

.ads-container .ads-body .square-image-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Carousel inside small squares */
.ads-container .carousel-inner {
    height: 100%;
}

.ads-container .carousel-item {
    height: 100%;
}

.ads-container .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hover effects for gallery images */
.ads-container .ads-body img {
    transition: transform 0.3s ease, filter 0.3s ease;
    cursor: pointer;
}

.ads-container .ads-body img:hover {
    transform: scale(1.05);
    filter: brightness(1.05);
}

/* Legacy Gallery Section Styles */
.gallery-section {
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.gallery-section h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.gallery-section h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: #ffad00;
    border-radius: 2px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* ==========================================================================
   11. LOADING & ANIMATION IMPROVEMENTS
   ========================================================================== */

/* Fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-item {
    animation: fadeIn 0.6s ease forwards;
}

.product-item:nth-child(1) {
    animation-delay: 0.1s;
}

.product-item:nth-child(2) {
    animation-delay: 0.2s;
}

.product-item:nth-child(3) {
    animation-delay: 0.3s;
}

.product-item:nth-child(4) {
    animation-delay: 0.4s;
}

.product-item:nth-child(5) {
    animation-delay: 0.5s;
}


.bg-primary {
    background-color: #ffaf05 !important;
}

.navbar .rear.menu-language {
    position: relative;
    margin-left: 20px;
}

/* ==========================================================================
   12. CATEGORY LISTING PAGE
   ========================================================================== */
.category-page {
    padding: 8rem 50px;
    background: #fff;
}

.category-page .breadcrumb-bar {
    font-size: 13px;
    color: #757575;
    margin-bottom: 16px;
}

.category-page .crumb-root {
    font-weight: 700;
    color: #ffb10a;
    text-transform: uppercase;
}

.category-page .crumbs a {
    color: #757575;
    text-decoration: none;
}

.category-page .crumbs a:hover {
    color: #ffb10a;
    text-decoration: none;
}

.category-page .crumb-current {
    font-weight: 600;
    color: #000;
}

.category-page .divider {
    margin: 0 6px;
    color: #c2c2c2;
}

.category-page .view-icons i {
    color: #a6a6a6;
    margin-left: 10px;
}

.category-page .view-icons i.active {
    color: #ffb10a;
}

.category-page .filter-panel {
    border: 1px solid #e6e6e6;
    padding: 16px 14px;
    background: #fff;
}

.category-page .child-links .title {
    font-size: 12px;
    font-weight: 700;
    color: #ffb10a;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.category-page .chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.category-page .chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    background: #f4f4f6;
    border: 1px solid #e7e7e7;
    border-radius: 12px;
    color: #555;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.category-page .chip:hover {
    background: #fff5da;
    border-color: #ffb10a;
    color: #d48b00;
}

.category-page .filter-section+.filter-section {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #ededed;
}

.category-page .filter-section .title {
    font-size: 12px;
    font-weight: 700;
    color: #ffb10a;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.category-page .filter-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-page .filter-check {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #4f4f4f;
    margin: 0;
}

.category-page .filter-check input {
    margin-right: 8px;
}

.category-page .filter-check .count {
    color: #9a9a9a;
    font-size: 11px;
}

.category-page .filter-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.category-page .btn-apply {
    background: #ffb10a;
    color: #fff;
    border: 1px solid #ffb10a;
    padding: 6px 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-page .btn-reset {
    background: #f8f8f8;
    color: #5b5b5b;
    border: 1px solid #dcdcdc;
    padding: 6px 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-page .btn-apply:hover {
    background: #8f7a46;
    color: #fff;
}

.category-page .btn-reset:hover {
    background: #ededed;
    color: #3c3c3c;
}

.category-page .toolbar {
    border: 1px solid #e4e4e4;
    padding: 10px 14px;
    background: #fbfbfb;
    margin-bottom: 18px;
}

.category-page .view-toggle .view-btn {
    border: 1px solid #dcdcdc;
    background: #fff;
    color: #9b9b9b;
    padding: 6px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.category-page .view-toggle .view-btn+.view-btn {
    border-left: none;
}

.category-page .view-toggle .view-btn.active {
    background: #ffaf05;
    color: #fff;
    border-color: #ffaf05;
}

.category-page .result-count {
    font-size: 13px;
    color: #555;
}

.category-page .preview-label {
    font-size: 12px;
    color: #777;
    margin-right: 8px;
}

.category-page .product-grid {
    margin-top: 4px;
}

.category-page .product-grid.view-list .product-col {
    flex: 0 0 100%;
    max-width: 100%;
}

.category-page .product-grid.view-list .category-product-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    border: 1px solid #ededed;
    padding: 12px;
}

.category-page .product-grid.view-list .thumb {
    width: 140px;
    height: 140px;
    flex-shrink: 0;
    margin-bottom: 0;
}

.category-page .product-grid.view-list .product-info {
    padding: 4px 0;
}

.category-page .product-grid.view-list .product-name {
    font-size: 14px;
}

.category-page .product-grid.view-list .product-subtitle {
    margin-bottom: 8px;
}

.category-page .category-product-card {
    text-align: left;
    font-size: 13px;
    color: #3a3a3a;
}

.category-page .category-product-card .thumb {
    border: 1px solid #e5e5e5;
    background: #f8f8f8;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
}

.category-page .category-product-card .thumb>img:not(.sale-ribbon-img) {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Adjust ribbon position to fit within overflow:hidden container */
.category-page .category-product-card .thumb .sale-ribbon-img {
    top: -5px;
    left: -5px;
    width: 80px;
}

.category-page .sale-badge {
    position: absolute;
    top: 12px;
    left: -4px;
    background: linear-gradient(135deg, #d6492e 0%, #c6321c 100%);
    color: #fff;
    padding: 6px 12px 6px 16px;
    border-radius: 2px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.category-page .sale-badge::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    border-width: 6px 6px 0 0;
    border-style: solid;
    border-color: #a92816 transparent transparent transparent;
}

.category-page .product-name {
    font-weight: 700;
    font-size: 13px;
    line-height: 1.35;
    margin-bottom: 6px;
    color: #3b3b3b;
    text-transform: uppercase;
}

.category-page .product-subtitle {
    color: #777;
    font-size: 12px;
    margin-bottom: 6px;
}

.category-page .product-pricing {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.category-page .product-pricing .price-line {
    display: flex;
    align-items: center;
    gap: 6px;
}

.category-page .product-pricing .price {
    font-weight: 700;
    color: #ffb10a;
}

.category-page .product-pricing .unit {
    font-size: 11px;
    color: #8a8a8a;
}

.category-page .product-pricing .original {
    color: #9c9c9c;
    font-size: 12px;
    text-decoration: line-through;
}

.category-page .discount {
    color: #6f6f6f;
    font-size: 12px;
    margin-top: 2px;
}

.category-page .pagination-wrapper {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
}

.category-page .pagination {
    margin-bottom: 0;
}

.category-page .pagination .page-item .page-link {
    color: #5c5c5c;
    border-color: #e0e0e0;
    padding: 6px 10px;
}

.category-page .pagination .page-item.active .page-link {
    background: #ffb10a;
    border-color: #ffb10a;
    color: #fff;
}

.category-page .pagination .page-item:not(.active) .page-link:hover {
    background: #f7f7f7;
    color: #ffb10a;
    border-color: #dcdcdc;
}

.category-page .empty-state {
    border: 1px dashed #dcdcdc;
    padding: 20px;
    color: #777;
    background: #fff;
}

/* ==========================================================================
   CATEGORY DIRECTORY PAGE
   ========================================================================== */
.category-directory {
    padding: 8rem 50px;
    background: #f9f9fb;
}

.directory-header h2 {
    font-weight: 700;
}

.directory-header p {
    color: #6b6b6b;
}

.breadcrumb-dir {
    color: #9a9a9a;
    font-size: 13px;
}

.breadcrumb-dir a {
    color: #ffaf05;
    text-decoration: none;
}

.breadcrumb-dir span {
    margin-left: 4px;
    margin-right: 4px;
}

.category-card {
    display: block;
    background: #fff;
    border: 1px solid #ededed;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
    transition: all 0.25s ease;
    text-decoration: none;
    color: inherit;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
    border-color: #ffaf05;
}

.category-card .card-body {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
}

.category-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #fff5da;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffaf05;
    font-size: 20px;
    flex-shrink: 0;
    border: 1px solid #ffe5a8;
}

.category-meta .category-name {
    font-weight: 700;
    color: #2c2c2c;
}

.category-meta .category-desc {
    font-size: 13px;
    color: #6f6f6f;
}

.category-meta .sub-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.badge-sub {
    background: #f1f1f3;
    color: #555;
    border-radius: 12px;
    padding: 4px 8px;
    font-size: 12px;
}

.badge-sub.more {
    background: #fff5da;
    color: #d48b00;
}

.category-arrow {
    margin-left: auto;
    color: #9f9f9f;
}

.category-card:hover .category-arrow {
    color: #ffaf05;
}

/* ==========================================================================
   PRODUCT DETAIL PAGE - PROFESSIONAL REDESIGN
   ========================================================================== */
.product-detail-page {
    padding: 24px 0 60px;
    background: #f9fafb;
    min-height: 100vh;
}

/* Breadcrumb */
.product-detail-page .pd-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    padding: 12px 16px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    font-size: 13px;
}

.product-detail-page .pd-breadcrumb .crumb-link {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s;
}

.product-detail-page .pd-breadcrumb .crumb-link:hover {
    color: #ffaf05;
}

.product-detail-page .pd-breadcrumb .divider {
    color: #d1d5db;
    font-size: 10px;
}

.product-detail-page .pd-breadcrumb .crumb-current {
    color: #1f2937;
    font-weight: 600;
}

/* Main Product Section */
.product-detail-page .pd-main-section {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 24px;
}

/* Gallery with Magnifier (Shopee Style) */
.product-detail-page .pd-gallery-wrapper {
    position: sticky;
    top: 100px;
}

.product-detail-page .pd-image-container {
    position: relative;
}

.product-detail-page .pd-main-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(145deg, #f8f9fa 0%, #e9ecef 100%);
    aspect-ratio: 1/1;
    cursor: default;
    border: 1px solid #e5e7eb;
}

.product-detail-page .pd-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-detail-page .pd-sale-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    z-index: 5;
}

/* Gallery Thumbnails */
.product-detail-page .pd-thumb-list {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    overflow-x: auto;
    padding: 4px;
    scrollbar-width: thin;
}

.product-detail-page .pd-thumb-list::-webkit-scrollbar {
    height: 4px;
}

.product-detail-page .pd-thumb-list::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 10px;
}

.product-detail-page .pd-thumb-list::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 10px;
}

.product-detail-page .pd-thumb-btn {
    flex-shrink: 0;
    border: 2px solid #e5e7eb;
    background: #fff;
    padding: 3px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.product-detail-page .pd-thumb-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.2s ease;
}

.product-detail-page .pd-thumb-btn:hover::after {
    background: rgba(0, 0, 0, 0.05);
}

.product-detail-page .pd-thumb-btn:hover {
    border-color: #fcd34d;
}

.product-detail-page .pd-thumb-btn.active {
    border-color: #ffaf05;
    box-shadow: 0 0 0 2px rgba(255, 175, 5, 0.3);
}

.product-detail-page .pd-thumb-btn.active::after {
    background: rgba(255, 175, 5, 0.08);
}

.product-detail-page .pd-thumb-btn img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 5px;
    display: block;
}

/* Image Counter */
.product-detail-page .pd-image-counter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    margin-top: 12px;
}

/* Product Info */
.product-detail-page .pd-info-wrapper {
    padding-left: 20px;
}

.product-detail-page .pd-product-title {
    font-size: 26px;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 12px;
    line-height: 1.3;
}

.product-detail-page .pd-code-badge {
    display: inline-block;
    background: #f3f4f6;
    color: #6b7280;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Pricing */
.product-detail-page .pd-price-section {
    margin-bottom: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-radius: 12px;
    border: 1px solid #fcd34d;
}

.product-detail-page .pd-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.product-detail-page .pd-current-price {
    font-size: 32px;
    font-weight: 800;
    color: #d97706;
}

.product-detail-page .pd-price-unit {
    font-size: 14px;
    color: #92400e;
    font-weight: 600;
}

.product-detail-page .pd-original-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.product-detail-page .pd-strikethrough {
    font-size: 16px;
    color: #9ca3af;
    text-decoration: line-through;
}

.product-detail-page .pd-discount-badge {
    background: #ef4444;
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

/* Specifications */
.product-detail-page .pd-specs-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.product-detail-page .pd-specs-title {
    font-size: 15px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f3f4f6;
}

.product-detail-page .pd-specs-table {
    width: 100%;
    border-collapse: collapse;
}

.product-detail-page .pd-specs-table tr:not(:last-child) td {
    padding-bottom: 12px;
    border-bottom: 1px solid #f3f4f6;
}

.product-detail-page .pd-specs-table tr:not(:first-child) td {
    padding-top: 12px;
}

.product-detail-page .pd-specs-table .spec-label {
    color: #6b7280;
    font-weight: 500;
    width: 120px;
    font-size: 14px;
}

.product-detail-page .pd-specs-table .spec-value {
    color: #1f2937;
    font-weight: 600;
    font-size: 14px;
}

/* Store Notice */
.product-detail-page .pd-store-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1px solid #6ee7b7;
    border-radius: 12px;
    color: #065f46;
    font-size: 14px;
    font-weight: 500;
}

.product-detail-page .pd-store-notice i {
    font-size: 20px;
    color: #10b981;
}

/* Details Section with Tabs */
.product-detail-page .pd-details-section {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 24px;
}

.product-detail-page .pd-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 2px solid #f3f4f6;
    padding-bottom: 12px;
}

.product-detail-page .pd-tab-btn {
    padding: 10px 20px;
    border: none;
    background: transparent;
    color: #6b7280;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.product-detail-page .pd-tab-btn:hover {
    background: #f3f4f6;
    color: #374151;
}

.product-detail-page .pd-tab-btn.active {
    background: #ffaf05;
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 175, 5, 0.3);
}

.product-detail-page .pd-tab-pane {
    display: none;
}

.product-detail-page .pd-tab-pane.active {
    display: block;
}

.product-detail-page .pd-content-body {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.8;
}

/* Related Products Section - Horizontal Scroll */
.product-detail-page .pd-related-section {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.product-detail-page .pd-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.product-detail-page .pd-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.product-detail-page .pd-scroll-nav {
    display: flex;
    gap: 8px;
}

.product-detail-page .pd-scroll-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: all 0.2s ease;
}

.product-detail-page .pd-scroll-btn:hover {
    background: #ffaf05;
    border-color: #ffaf05;
    color: #fff;
}

.product-detail-page .pd-related-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 16px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.product-detail-page .pd-related-scroll::-webkit-scrollbar {
    height: 6px;
}

.product-detail-page .pd-related-scroll::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 10px;
}

.product-detail-page .pd-related-scroll::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 10px;
}

.product-detail-page .pd-related-scroll::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.product-detail-page .pd-related-card {
    flex: 0 0 180px;
    scroll-snap-align: start;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.2s ease;
}

.product-detail-page .pd-related-card:hover {
    border-color: #ffaf05;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.product-detail-page .pd-related-image {
    position: relative;
    height: 140px;
    background: #f9fafb;
    overflow: hidden;
}

.product-detail-page .pd-related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-detail-page .pd-related-card:hover .pd-related-image img {
    transform: scale(1.05);
}

.product-detail-page .pd-mini-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #ef4444;
    color: #fff;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.product-detail-page .pd-related-info {
    padding: 12px;
}

.product-detail-page .pd-related-name {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 34px;
}

.product-detail-page .pd-related-price {
    font-size: 14px;
    font-weight: 700;
    color: #d97706;
}

.product-detail-page .pd-related-original {
    font-size: 11px;
    color: #9ca3af;
    text-decoration: line-through;
    margin-top: 2px;
}

/* Responsive */
@media (max-width: 991px) {
    .product-detail-page .pd-info-wrapper {
        padding-left: 0;
        margin-top: 24px;
    }

    .product-detail-page .pd-gallery-wrapper {
        position: static;
    }

    .product-detail-page .pd-main-image {
        cursor: default;
    }
}

@media (max-width: 768px) {
    .product-detail-page {
        padding: 16px 0 40px;
    }

    .product-detail-page .pd-main-section {
        padding: 16px;
        border-radius: 12px;
    }

    .product-detail-page .pd-product-title {
        font-size: 20px;
    }

    .product-detail-page .pd-current-price {
        font-size: 26px;
    }

    .product-detail-page .pd-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .product-detail-page .pd-tab-btn {
        flex-shrink: 0;
        padding: 8px 16px;
        font-size: 13px;
    }

    .product-detail-page .pd-related-card {
        flex: 0 0 160px;
    }

    .product-detail-page .pd-related-image {
        height: 120px;
    }

    .product-detail-page .pd-scroll-nav {
        display: none;
    }

    /* Thumbnails smaller on mobile */
    .product-detail-page .pd-thumb-btn img {
        width: 56px;
        height: 56px;
    }
}

@media (max-width: 480px) {
    .product-detail-page .pd-breadcrumb {
        font-size: 12px;
        padding: 10px 12px;
    }

    .product-detail-page .pd-main-section,
    .product-detail-page .pd-details-section,
    .product-detail-page .pd-related-section {
        padding: 14px;
        margin-left: -8px;
        margin-right: -8px;
        border-radius: 0;
    }

    .product-detail-page .pd-thumb-btn img {
        width: 48px;
        height: 48px;
    }

    .product-detail-page .pd-thumb-list {
        gap: 6px;
    }

    .product-detail-page .pd-specs-table .spec-label {
        width: 90px;
        font-size: 13px;
    }

    .product-detail-page .pd-specs-table .spec-value {
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .category-directory {
        padding: 20px 0 32px;
    }

    .category-card .card-body {
        padding: 14px;
    }
}

@media (max-width: 991px) {
    .category-page .row.no-gutters {
        margin: 0;
    }

    .category-page .filter-panel {
        margin-bottom: 16px;
    }

    .category-page .toolbar {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 8px;
    }

    .category-page .view-toggle {
        width: 100%;
        margin-bottom: 6px;
    }

    .category-page .view-toggle .view-btn {
        width: 50%;
    }

    .category-page .result-count {
        margin-left: 0 !important;
        margin-top: 6px;
    }

    .category-page .product-grid.view-list .category-product-card {
        flex-direction: column;
    }

    .category-page .product-grid.view-list .thumb {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .category-page .product-grid.view-list .product-info {
        width: 100%;
    }

    .category-page .pagination-wrapper {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .category-page {
        padding: 16px 0 32px;
    }

    .category-page .toolbar {
        padding: 10px;
    }

    .category-page .filter-panel {
        padding: 12px;
    }

    .category-page .product-grid.view-grid .product-col {
        padding-left: 6px;
        padding-right: 6px;
    }

    .category-page .category-product-card .thumb {
        height: 140px;
    }

    .category-page .product-name {
        font-size: 12px;
    }

    .category-page .product-pricing .price {
        font-size: 13px;
    }
}

.categories .container-product {
    padding-top: 0;
}

.point-info {
    background: linear-gradient(135deg, #ffb10a 0%, #a12c8d 100%) !important;
    color: white;
    border: none;
    padding: 25px !important;
}

.container {
    max-width: 80%;
}

.redeem-btn,
.btn-redeem {
    background: #ffb10a;
    color: #fff;
    padding: 5px;
}

/* ==========================================================================
   SALE RIBBON - CSS Based (Top Left Corner)
   ========================================================================== */

/* Base Sale Ribbon */
.sale-ribbon {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    overflow: hidden;
    width: 85px;
    height: 85px;
    pointer-events: none;
}

.sale-ribbon span {
    position: absolute;
    display: block;
    width: 120px;
    padding: 2px 40px;
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
    box-shadow: 0 3px 10px -5px rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    font-family: Arial, sans-serif;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    left: -22px;
    top: 22px;
    transform: rotate(-45deg);
}

/* Size variants */
.sale-ribbon.sale-ribbon-sm {
    width: 65px;
    height: 65px;
}

.sale-ribbon.sale-ribbon-sm span {
    width: 95px;
    padding: 5px 0;
    font-size: 10px;
    left: -18px;
    top: 18px;
    letter-spacing: 1px;
}

.sale-ribbon.sale-ribbon-md {
    width: 85px;
    height: 85px;
}

.sale-ribbon.sale-ribbon-lg {
    width: 110px;
    height: 110px;
}

.sale-ribbon.sale-ribbon-lg span {
    width: 150px;
    padding: 10px 0;
    font-size: 16px;
    left: -28px;
    top: 30px;
    letter-spacing: 3px;
}

/* Inline variant for preview-primary */
.sale-ribbon.sale-ribbon-inline {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
    width: 50px;
    height: 50px;
}

.sale-ribbon.sale-ribbon-inline span {
    width: 75px;
    padding: 4px 0;
    font-size: 8px;
    left: -18px;
    top: 10px;
    letter-spacing: 1px;
}

/* Positioning adjustments for containers with overflow:hidden */
.product-item .sale-ribbon {
    top: -8px;
    left: -8px;
}

.category-page .category-product-card .thumb .sale-ribbon {
    top: -8px;
    left: -8px;
}

.pd-related-image .sale-ribbon {
    top: -5px;
    left: -5px;
}

.pd-main-image .sale-ribbon {
    top: 0;
    left: 0;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .sale-ribbon {
        width: 70px;
        height: 70px;
    }

    .sale-ribbon span {
        width: 100px;
        padding: 6px 0;
        font-size: 11px;
        left: -24px;
        top: 15px;
    }

    .sale-ribbon.sale-ribbon-lg {
        width: 90px;
        height: 90px;
    }

    .sale-ribbon.sale-ribbon-lg span {
        width: 125px;
        padding: 8px 0;
        font-size: 13px;
        left: -30px;
        top: 20px;
    }

    .sale-ribbon.sale-ribbon-sm {
        width: 55px;
        height: 55px;
    }

    .sale-ribbon.sale-ribbon-sm span {
        width: 80px;
        padding: 4px 0;
        font-size: 9px;
        left: -18px;
        top: 12px;
    }
}

@media (max-width: 480px) {
    .sale-ribbon {
        width: 60px;
        height: 60px;
    }

    .sale-ribbon span {
        width: 90px;
        padding: 5px 0;
        font-size: 10px;
        left: -22px;
        top: 13px;
    }

    .sale-ribbon.sale-ribbon-lg {
        width: 75px;
        height: 75px;
    }

    .sale-ribbon.sale-ribbon-lg span {
        width: 105px;
        padding: 6px 0;
        font-size: 11px;
        left: -25px;
        top: 16px;
    }
}

/* ==========================================================================
   SALE RIBBON - Image Based (Top Left Corner) - Legacy Support
   ========================================================================== */

/* Base Sale Ribbon Image - Top Left Corner */
.sale-ribbon-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 70px;
    height: auto;
    z-index: 10;
    pointer-events: none;
}

/* Larger variant for product detail page */
.sale-ribbon-img.sale-ribbon-img-lg {
    width: 100px;
}

/* Smaller variant for related products */
.sale-ribbon-img.sale-ribbon-img-sm {
    width: 50px;
}

/* Inline variant for preview-primary (non-absolute positioning) */
.sale-ribbon-img.sale-ribbon-img-inline {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
    width: 60px;
}

/* Product item positioning - adjust for overflow:hidden */
.product-item .sale-ribbon-img {
    position: absolute;
    top: -5px;
    left: -5px;
    width: 80px;
}

/* Category page product card thumb positioning */
.category-page .category-product-card .thumb .sale-ribbon-img {
    position: absolute;
    top: 0;
    left: 0;
}

/* Related product positioning */
.pd-related-image .sale-ribbon-img {
    position: absolute;
    top: 0;
    left: 0;
}

/* Product detail main image positioning */
.pd-main-image .sale-ribbon-img {
    position: absolute;
    top: 0;
    left: 0;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .sale-ribbon-img {
        width: 55px;
    }

    .sale-ribbon-img.sale-ribbon-img-lg {
        width: 75px;
    }

    .sale-ribbon-img.sale-ribbon-img-sm {
        width: 40px;
    }

    .sale-ribbon-img.sale-ribbon-img-inline {
        width: 50px;
    }
}

@media (max-width: 480px) {
    .sale-ribbon-img {
        width: 45px;
    }

    .sale-ribbon-img.sale-ribbon-img-lg {
        width: 60px;
    }

    .sale-ribbon-img.sale-ribbon-img-sm {
        width: 35px;
    }

    .sale-ribbon-img.sale-ribbon-img-inline {
        width: 40px;
    }
}

/* Search Page Styles - Adjusted for body padding */
.search-page {
    padding: 5rem 50px 3rem;
    min-height: 60vh;
}

@media (max-width: 768px) {
    .search-page {
        padding: 2rem 15px;
    }
}

@media (max-width: 576px) {
    .search-page {
        padding: 1.5rem 15px;
    }
}

/* Hero Offset for Colored Headers to cover body padding gap */
.hero-offset {
    margin-top: -9rem;
    padding-top: 248px !important;
    padding-bottom: 2rem;
}

@media (max-width: 768px) {
    .hero-offset {
        margin-top: -196px;
        padding-top: 280px !important;
        /* 196px + 84px */
    }
}

/* ========================================
   IMPORTANT/LEGAL PAGES STYLES
   ======================================== */
.legal-hero::after {
    content: '';
    position: absolute;
    right: -120px;
    bottom: -120px;
    width: 260px;
    height: 260px;
    background: rgba(255, 255, 255, 0.25);
    filter: blur(6px);
    border-radius: 50%;
}

.legal-hero .breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 12px;
    font-size: 13px;
}

.legal-hero h1 {
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.legal-hero p.lead {
    max-width: 720px;
    margin-bottom: 6px;
    color: #2f2f2f;
}

.legal-meta {
    font-size: 13px;
    color: #4a4a4a;
}

.legal-body {
    background: #f8f8f6;
    padding: 40px 0 56px;
}

.legal-card {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
    padding: 32px;
    height: 100%;
    border: 1px solid #f0f0ed;
}

.legal-lang {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #1f1f1f;
    margin-bottom: 10px;
}

.legal-lang .badge {
    background: #f7c948;
    color: #1f1f1f;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.legal-heading {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.legal-summary {
    background: #fdf7e8;
    border: 1px solid #f5d77a;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 14px;
    color: #5a4400;
    margin-bottom: 18px;
}

.legal-rich h4 {
    font-size: 16px;
    margin-top: 24px;
    margin-bottom: 12px;
    font-weight: 700;
    color: #1a1a1a;
}

.legal-rich h4:first-child {
    margin-top: 0;
}

.legal-rich p {
    color: #3a3a3a;
    line-height: 1.7;
    margin-bottom: 14px;
    text-align: justify;
}

.legal-rich ol,
.legal-rich ul {
    padding-left: 0;
    margin-bottom: 16px;
    margin-left: 24px;
    list-style-position: outside;
}

.legal-rich ol {
    list-style-type: decimal;
}

.legal-rich ul {
    list-style-type: disc;
}

.legal-rich li {
    margin-bottom: 10px;
    padding-left: 8px;
    color: #2a2a2a;
    line-height: 1.7;
}

.legal-rich li:last-child {
    margin-bottom: 0;
}

/* Nested lists */
.legal-rich ol ol,
.legal-rich ul ul,
.legal-rich ol ul,
.legal-rich ul ol {
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: 28px;
}

.legal-rich ol ol {
    list-style-type: lower-alpha;
}

.legal-rich ol ol ol {
    list-style-type: lower-roman;
}

.legal-rich li strong {
    font-weight: 700;
    color: #1a1a1a;
}

.legal-rich a {
    color: #f0b429;
    text-decoration: underline;
    transition: color 0.2s;
}

.legal-rich a:hover {
    color: #d89610;
}

@media (max-width: 991px) {
    .legal-hero {
        padding: 32px 0 24px;
    }

    .legal-card {
        padding: 20px;
    }

    .legal-rich ol,
    .legal-rich ul {
        margin-left: 20px;
    }

    .legal-rich ol ol,
    .legal-rich ul ul,
    .legal-rich ol ul,
    .legal-rich ul ol {
        margin-left: 24px;
    }
}

/* ========================================
   CONTACT PAGE STYLES
   ======================================== */
.contact-page {
    padding: 36px 0 64px;
}

.contact-card {
    background: #fff;
    border: 1px solid #f1f1f1;
    border-radius: 10px;
    padding: 24px;
}

.contact-card .form-control {
    border-radius: 6px;
    min-height: 46px;
}

.office-card {
    position: relative;
    background: #fff;
    border: 1px solid #f1f1f1;
    border-radius: 10px;
    padding: 24px 24px 24px 32px;
    display: flex;
    align-items: stretch;
}

.office-card__divider {
    width: 4px;
    background: linear-gradient(180deg, #f6b21e 0%, #f2a513 100%);
    border-radius: 4px;
    margin-right: 16px;
}

.office-card__content {
    flex: 1;
}

@media (max-width: 767.98px) {
    .contact-page {
        padding: 24px 0 40px;
    }
}

@media (max-width: 991.98px) {
    .office-card {
        padding: 20px;
    }
}

/* ========================================
   STORE LOCATION PAGE STYLES
   ======================================== */
.store-location-page {
    padding-top: 6rem !important;
    padding-bottom: 64px;
}

.store-location-map iframe {
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    min-height: 320px;
}

.store-location-card {
    border: 1px solid #f0f0f0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

@media (max-width: 767.98px) {
    .store-location-page {
        padding-top: 20px;
        padding-bottom: 36px;
    }
}