/* ============================================================
   ResinArt Store — Main Stylesheet
   Uses CSS custom properties from dynamic_css.php
   ============================================================ */

/* ── Base ──────────────────────────────────────────────────── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: #333;
    line-height: 1.7;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    color: var(--primary);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* ── Top Bar ─────────────────────────────────────────────── */
.top-bar {
    background: var(--primary-dark);
    color: #fff;
    padding: 6px 0;
    font-size: 0.82rem;
}

.top-bar a {
    color: rgba(255, 255, 255, 0.85);
    margin-right: 18px;
    text-decoration: none;
    transition: color 0.3s;
}

.top-bar a:hover {
    color: #fff;
}

.top-bar-right a {
    margin: 0 6px;
    font-size: 1rem;
}

/* ── Navbar ──────────────────────────────────────────────── */
.main-navbar {
    background: var(--header-bg);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding: 12px 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.main-navbar .container {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

.main-navbar .navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-logo {
    height: 45px;
}

.brand-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff !important;
}

.main-navbar .nav-link {
    color: rgba(255, 255, 255, 0.88) !important;
    font-weight: 500;
    padding: 8px 12px !important;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    font-size: 0.9rem;
}

.main-navbar .nav-link i {
    font-size: 1rem;
    line-height: 1;
    display: inline !important;
}

.main-navbar .navbar-nav {
    flex-direction: row;
    align-items: center;
    gap: 2px;
}

.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.12);
}

.main-navbar .navbar-toggler {
    border: none;
    color: #fff;
    font-size: 1.5rem;
    padding: 4px 8px;
}

.main-navbar .navbar-toggler:focus {
    box-shadow: none;
}

/* Cart Link */
.cart-link {
    position: relative !important;
}

.cart-badge {
    position: absolute;
    top: 0;
    right: 4px;
    background: var(--secondary);
    color: var(--primary-dark);
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.main-navbar .dropdown-menu {
    border: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    padding: 8px;
}

.main-navbar .dropdown-item {
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 0.9rem;
}

.main-navbar .dropdown-item:hover {
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--primary);
}

.main-navbar .dropdown-item i {
    margin-right: 8px;
}

/* ── Hero / Banner Slider ────────────────────────────────── */
.hero-slider {
    position: relative;
    overflow: hidden;
    background: #1a1a2e;
}

.hero-slider .carousel-item {
    background: #1a1a2e;
}

.hero-slider .carousel-item img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    display: block;
}

.hero-slider .carousel-caption {
    bottom: 50%;
    transform: translateY(50%);
}

.hero-slider .carousel-caption h2 {
    font-size: 3rem;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 0.8s ease;
}

.hero-slider .carousel-control-prev-icon,
.hero-slider .carousel-control-next-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(var(--primary-rgb), 0.6);
    border-radius: 50%;
    background-size: 50%;
}

.hero-no-banner {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-no-banner h1 {
    color: #fff;
    font-size: 3rem;
}

.hero-no-banner p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* ── Section Styles ──────────────────────────────────────── */
.section {
    padding: 70px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 45px;
    position: relative;
}

.section-title h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.section-title p {
    color: #777;
    font-size: 1rem;
    max-width: 550px;
    margin: 0 auto;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--secondary);
    margin: 14px auto 0;
    border-radius: 3px;
}

.section-alt {
    background: rgba(var(--secondary-rgb), 0.1);
}

/* ── Product Card ────────────────────────────────────────── */
.product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(var(--primary-rgb), 0.06);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(var(--primary-rgb), 0.12);
}

/* Image wrapper */
.product-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 260px;
}

.product-img-wrapper .product-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f8f8f8;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img-wrapper .product-img {
    transform: scale(1.08);
}

/* Discount badge */
.discount-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #e74c3c;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    z-index: 3;
}

/* Video badge */
.video-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    z-index: 3;
}

/* Product Video Overlay — shows on hover */
.product-video-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.4s ease;
    background: #000;
}

.product-video-overlay iframe,
.product-video-overlay video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card.has-video:hover .product-video-overlay {
    opacity: 1;
}

.product-card.has-video:hover .product-card-img>img,
.product-card.has-video:hover .product-card-img>div {
    opacity: 0;
    transition: opacity 0.3s;
}

/* Play badge (before hover) */
.video-play-badge {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.85);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.product-card.has-video:hover .video-play-badge {
    opacity: 0;
}

/* Product info */
.product-info {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 0.72rem;
    color: var(--secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.product-info h5 {
    font-size: 0.95rem;
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 2.6em;
}

.product-info h5 a {
    color: inherit;
    text-decoration: none;
}

.product-info h5 a:hover {
    color: var(--primary);
}

.price-current {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

.price-original {
    font-size: 0.85rem;
    color: #999;
    text-decoration: line-through;
}

.add-to-cart-btn {
    margin-top: auto;
}

/* Legacy card-body compat */
.product-card-img {
    position: relative;
    overflow: hidden;
    height: 260px;
}

.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #f8f8f8;
    transition: transform 0.5s ease;
}

.product-card:hover .product-card-img img {
    transform: scale(1.08);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.product-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card-body h5 {
    font-size: 1.05rem;
    margin-bottom: 6px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    max-height: 2.6em;
}

.product-card-body h5 a {
    color: inherit;
    text-decoration: none;
}

.product-card-body h5 a:hover {
    color: var(--primary);
}

.product-price {
    margin-top: auto;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.product-price .current {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

.product-price .original {
    font-size: 0.9rem;
    color: #999;
    text-decoration: line-through;
}

.product-card-actions {
    padding: 0 20px 20px;
}

.product-card-actions .btn {
    width: 100%;
}

/* ── Category Card Home ──────────────────────────────────── */
.category-card-home {
    background: #fff;
    border-radius: 16px;
    padding: 20px 14px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.category-card-home:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.category-card-home .cat-img-wrap {
    width: 100px;
    height: 100px;
    margin: 0 auto 12px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(var(--primary-rgb), 0.15);
}

.category-card-home .cat-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f8f8f8;
}

.category-card-home .cat-icon-wrap {
    width: 80px;
    height: 80px;
    background: rgba(var(--primary-rgb), 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.category-card-home .cat-icon-wrap i {
    font-size: 1.6rem;
    color: var(--primary);
}

.category-card-home h6 {
    color: var(--primary);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    margin-bottom: 4px;
    font-size: .95rem;
}

.category-card-home small {
    color: #999;
    font-size: .78rem;
}

.category-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 220px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    display: block;
    text-decoration: none;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(var(--primary-rgb), 0.15);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f8f8f8;
    transition: transform 0.5s ease;
}

.category-card:hover img {
    transform: scale(1.08);
}

.category-card .category-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.05) 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    color: #fff;
}

.category-card-no-img {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.25);
}

.category-card .category-card-overlay h5 {
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0;
}

.category-card .category-card-overlay small {
    opacity: 0.85;
    font-size: 0.8rem;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn-primary-custom {
    background: var(--button);
    border: none;
    color: #fff;
    padding: 10px 28px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary-custom:hover {
    background: var(--button-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.25);
}

.btn-outline-custom {
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 10px 28px;
    border-radius: 8px;
    font-weight: 600;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline-custom:hover {
    background: var(--primary);
    color: #fff;
}

.btn-secondary-custom {
    background: var(--secondary);
    color: var(--primary-dark);
    border: none;
    padding: 10px 28px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary-custom:hover {
    background: var(--primary);
    color: #fff;
}

.btn-whatsapp {
    background: #25d366;
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
}

.btn-whatsapp:hover {
    background: #128c7e;
    color: #fff;
}

/* ── Testimonials ────────────────────────────────────────── */
.testimonial-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    text-align: center;
    border: 1px solid rgba(var(--primary-rgb), 0.06);
    transition: transform 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-4px);
}

.testimonial-card .stars {
    color: #f5a623;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.testimonial-card .message {
    font-style: italic;
    color: #555;
    margin-bottom: 16px;
    line-height: 1.6;
}

.testimonial-card .author {
    font-weight: 600;
    color: var(--primary);
}

/* ── Single Product Detail ───────────────────────────────── */
.product-gallery {
    border-radius: 16px;
    overflow: hidden;
}

.product-gallery .main-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    background: #faf7fc;
    border-radius: 16px;
    cursor: zoom-in;
}

.product-gallery .thumb-list {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.product-gallery .thumb-list img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border 0.3s;
}

.product-gallery .thumb-list img:hover,
.product-gallery .thumb-list img.active {
    border-color: var(--primary);
}

.product-detail-info h1 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.product-detail-price {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 16px 0;
}

.product-detail-price .current {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Inter', sans-serif;
}

.product-detail-price .original {
    font-size: 1.1rem;
    color: #999;
    text-decoration: line-through;
}

.product-detail-price .discount-tag {
    background: #e74c3c;
    color: #fff;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
}

.qty-selector {
    display: flex;
    align-items: center;
    gap: 0;
    border: 2px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    width: fit-content;
}

.qty-selector button {
    background: none;
    border: none;
    padding: 8px 14px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.qty-selector button:hover {
    background: rgba(var(--primary-rgb), 0.08);
}

.qty-selector input {
    width: 50px;
    text-align: center;
    border: none;
    border-left: 2px solid #eee;
    border-right: 2px solid #eee;
    font-weight: 600;
    outline: none;
}

/* ── Cart Page ───────────────────────────────────────────── */
.cart-table {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.cart-table table {
    margin-bottom: 0;
}

.cart-table th {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    padding: 14px 16px;
    border: none;
}

.cart-table td {
    vertical-align: middle;
    padding: 14px 16px;
    border-color: #f0f0f0;
}

.cart-product-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-summary {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.cart-summary h4 {
    margin-bottom: 20px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
}

.cart-summary .summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.cart-summary .summary-total {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    border-bottom: none;
    margin-top: 8px;
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
}

.cart-empty i {
    font-size: 4rem;
    color: var(--secondary);
}

.cart-empty h3 {
    margin: 16px 0 8px;
}

/* ── Checkout ────────────────────────────────────────────── */
.checkout-form {
    background: #fff;
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.checkout-form .form-label {
    font-weight: 500;
    color: #555;
}

.checkout-form .form-control {
    border-radius: 8px;
    border: 1.5px solid #e0e0e0;
    padding: 10px 14px;
    transition: border 0.3s;
}

.checkout-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.order-method-card {
    border: 2px solid #eee;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.order-method-card:hover,
.order-method-card.selected {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.1);
}

.order-method-card i {
    font-size: 2rem;
    margin-bottom: 8px;
}

/* ── Auth Pages ──────────────────────────────────────────── */
.auth-wrapper {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

.auth-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07);
    width: 100%;
    max-width: 440px;
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 30px;
}

.auth-card .form-control {
    border-radius: 8px;
    padding: 10px 14px;
    border: 1.5px solid #e0e0e0;
}

.auth-card .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

/* ── Account / Orders ────────────────────────────────────── */
.account-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
}

.order-status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-confirmed {
    background: #d1ecf1;
    color: #0c5460;
}

.status-completed {
    background: #d4edda;
    color: #155724;
}

.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

/* ── CMS Pages ───────────────────────────────────────────── */
.page-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    color: #fff;
    font-size: 2.4rem;
}

.page-content {
    padding: 50px 0;
}

.page-content .content-body {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    line-height: 1.8;
}

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
    background: var(--footer-bg);
    color: rgba(255, 255, 255, 0.85);
    padding: 60px 0 0;
    margin-top: 40px;
}

.footer-brand {
    font-family: 'Playfair Display', serif;
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.footer-tagline {
    opacity: 0.75;
    font-size: 0.9rem;
}

.footer-social a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    margin-right: 14px;
    transition: color 0.3s;
}

.footer-social a:hover {
    color: var(--secondary);
}

.footer-heading {
    color: #fff;
    font-weight: 600;
    margin-bottom: 16px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 4px;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.footer-contact i {
    margin-right: 8px;
    color: var(--secondary);
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact a:hover {
    color: #fff;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 30px 0 0;
}

.footer-bottom {
    padding: 18px 0;
    opacity: 0.7;
    font-size: 0.85rem;
}

/* ── WhatsApp Float ──────────────────────────────────────── */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25d366;
    color: #fff;
    font-size: 1.6rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
    z-index: 9999;
    transition: transform 0.3s;
    animation: bounceIn 0.5s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: #fff;
}

/* ── Video Section ───────────────────────────────────────── */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ── Toast Notification ──────────────────────────────────── */
.custom-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #333;
    color: #fff;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 99999;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 360px;
}

.custom-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.custom-toast.success {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.custom-toast.error {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
}

.custom-toast i {
    font-size: 1.1rem;
}

/* ── Animations ──────────────────────────────────────────── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
    }

    60% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* ── Breadcrumb ──────────────────────────────────────────── */
.breadcrumb-custom {
    background: transparent;
    padding: 14px 0;
}

.breadcrumb-custom .breadcrumb-item a {
    color: var(--primary);
}

.breadcrumb-custom .breadcrumb-item.active {
    color: #888;
}

/* ── Pagination ──────────────────────────────────────────── */
.pagination .page-link {
    color: var(--primary);
    border-radius: 8px;
    margin: 0 3px;
    border: 1px solid #eee;
}

.pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ── Category Filter Sidebar ─────────────────────────────── */
.filter-sidebar {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.filter-sidebar h5 {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.filter-sidebar .list-group-item {
    border: none;
    padding: 8px 0;
    font-size: 0.93rem;
    cursor: pointer;
    transition: color 0.3s;
}

.filter-sidebar .list-group-item:hover,
.filter-sidebar .list-group-item.active {
    color: var(--primary);
    font-weight: 600;
    background: transparent;
}

/* ── Contact Form ────────────────────────────────────────── */
.contact-info-card {
    background: var(--primary);
    color: #fff;
    border-radius: 16px;
    padding: 35px;
}

.contact-info-card h4 {
    color: #fff;
    margin-bottom: 20px;
}

.contact-info-card .info-item {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
}

.contact-info-card .info-item i {
    font-size: 1.2rem;
    color: var(--secondary);
    margin-top: 3px;
}

/* ── Loading Spinner ─────────────────────────────────────── */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.75);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
}

.spinner-overlay.active {
    display: flex;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 991px) {
    .hero-slider .carousel-caption h2 {
        font-size: 2rem;
    }

    .hero-no-banner {
        min-height: 280px;
    }

    .hero-no-banner h1 {
        font-size: 2rem;
    }

    .top-bar {
        display: none;
    }

    .main-navbar .container {
        flex-wrap: wrap;
    }

    .main-navbar .nav-link {
        padding: 8px 14px !important;
        font-size: 0.9rem;
    }

    .product-card-img,
    .product-img-wrapper {
        height: 220px;
    }

    .category-card {
        height: 180px;
    }
}

@media (max-width: 767px) {
    .hero-slider .carousel-caption h2 {
        font-size: 1.2rem;
    }

    .hero-slider .carousel-caption {
        padding: 0 10px;
    }

    .section {
        padding: 30px 0;
    }

    .section-title h2 {
        font-size: 1.4rem;
    }

    .section-title p {
        font-size: 0.85rem;
    }

    .section-title {
        margin-bottom: 24px;
    }

    .product-card-img,
    .product-img-wrapper {
        height: 200px;
    }

    .product-card-body {
        padding: 10px 12px;
    }

    .product-card-body h5 {
        font-size: 0.8rem;
        margin-bottom: 4px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.3;
    }

    .product-info h5 {
        font-size: 0.8rem;
        margin-bottom: 4px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .product-category {
        font-size: 0.62rem;
        margin-bottom: 2px;
    }

    .product-price .current,
    .price-current {
        font-size: 0.95rem;
    }

    .product-price .original,
    .price-original {
        font-size: 0.72rem;
    }

    .product-card-actions {
        padding: 0 12px 12px;
    }

    .product-card-actions .btn {
        font-size: 0.75rem;
        padding: 6px 8px;
    }

    .product-badge {
        top: 8px;
        left: 8px;
        padding: 2px 8px;
        font-size: 0.65rem;
    }

    .category-card {
        height: 140px;
        border-radius: 12px;
    }

    .category-card .category-card-overlay h5 {
        font-size: 0.85rem;
    }

    .category-card .category-card-overlay {
        padding: 12px;
    }

    .product-gallery .main-image {
        height: auto;
        max-height: 340px;
    }

    .product-gallery .thumb-list img {
        width: 55px;
        height: 55px;
    }

    .product-detail-info h1 {
        font-size: 1.4rem;
    }

    .product-detail-price .current {
        font-size: 1.4rem;
    }

    .product-detail-price .original {
        font-size: 0.9rem;
    }

    .checkout-form {
        padding: 20px;
    }

    .cart-summary {
        padding: 20px;
    }

    .cart-product-img {
        width: 45px;
        height: 45px;
    }

    .auth-card {
        padding: 24px;
    }

    .site-footer {
        padding: 30px 0 0;
    }

    .page-header {
        padding: 30px 0;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    .main-navbar {
        padding: 8px 0;
    }

    .main-navbar .container {
        justify-content: space-between;
    }

    .main-navbar .navbar-collapse {
        margin-top: 8px;
    }

    .navbar-logo,
    .brand-logo {
        max-height: 32px;
    }

    .brand-text {
        font-size: 1.1rem;
    }

    .main-navbar .nav-link {
        padding: 8px 12px !important;
        font-size: 0.9rem;
    }

    .testimonial-card {
        padding: 20px;
    }

    .testimonial-card .message {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-slider .carousel-item img {
        max-height: 200px;
        min-height: 140px;
    }

    .hero-slider .carousel-caption h2 {
        font-size: 1rem;
    }

    .hero-no-banner {
        min-height: 180px;
    }

    .hero-no-banner h1 {
        font-size: 1.4rem;
    }

    .section {
        padding: 20px 0;
    }

    .section-title h2 {
        font-size: 1.1rem;
    }

    .section-title {
        margin-bottom: 20px;
    }

    .product-card {
        border-radius: 10px;
    }

    .product-card-img,
    .product-img-wrapper {
        height: 130px;
    }

    .product-card-body {
        padding: 8px 10px;
    }

    .product-card-body h5,
    .product-info h5 {
        font-size: 0.72rem;
        -webkit-line-clamp: 2;
    }

    .product-category {
        font-size: 0.58rem;
    }

    .product-price .current,
    .price-current {
        font-size: 0.82rem;
    }

    .product-price .original,
    .price-original {
        font-size: 0.62rem;
    }

    .product-card-actions {
        padding: 0 10px 10px;
    }

    .product-card-actions .btn {
        font-size: 0.68rem;
        padding: 5px 6px;
    }

    .product-badge {
        top: 6px;
        left: 6px;
        padding: 2px 6px;
        font-size: 0.58rem;
    }

    .video-badge {
        width: 22px;
        height: 22px;
        font-size: 0.6rem;
    }

    .category-card {
        height: 110px;
        border-radius: 10px;
    }

    .category-card .category-card-overlay h5 {
        font-size: 0.75rem;
    }

    .category-card .category-card-overlay small {
        font-size: 0.65rem;
    }

    .product-gallery .main-image {
        height: auto;
        max-height: 280px;
    }

    .product-gallery .thumb-list img {
        width: 42px;
        height: 42px;
    }

    .product-detail-info h1 {
        font-size: 1.2rem;
    }

    .product-detail-price .current {
        font-size: 1.2rem;
    }

    .product-detail-price .discount-tag {
        font-size: 0.65rem;
    }

    .qty-selector button {
        padding: 6px 10px;
        font-size: 0.95rem;
    }

    .qty-selector input {
        width: 40px;
    }

    .cart-table th,
    .cart-table td {
        padding: 8px 10px;
        font-size: 0.8rem;
    }

    .cart-product-img {
        width: 36px;
        height: 36px;
    }

    .cart-summary h4 {
        font-size: 1rem;
    }

    .checkout-form {
        padding: 16px;
    }

    .btn-primary-custom,
    .btn-outline-custom,
    .btn-secondary-custom {
        padding: 8px 18px;
        font-size: 0.85rem;
    }

    .btn-whatsapp {
        padding: 10px 18px;
        font-size: 0.85rem;
    }

    .page-header h1 {
        font-size: 1.2rem;
    }

    .trust-badge {
        flex-direction: column;
        text-align: center;
        padding: 10px 6px;
        gap: 4px;
    }

    .trust-badge i {
        font-size: 1.2rem;
    }

    .trust-badge strong {
        font-size: 0.7rem;
    }

    .trust-badge small {
        font-size: 0.6rem;
    }

    .trust-badge div {
        text-align: center;
    }
}

/* -- Announcement Bar -------------------------------------- */
.announcement-bar {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.9);
    padding: 8px 0;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.announcement-bar i {
    margin-right: 4px;
}

/* -- Brand Logo -------------------------------------------- */
.brand-logo {
    max-height: 42px;
    width: auto;
    margin-right: 10px;
    border-radius: 6px;
}

/* -- Category Dropdown ------------------------------------- */
.dropdown-menu-categories {
    min-width: 220px;
    max-height: 60vh;
    overflow-y: auto !important;
    overflow-x: hidden;
    border: none;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    padding: 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(124, 58, 237, 0.3) transparent;
}

.dropdown-menu-categories::-webkit-scrollbar {
    width: 6px;
}

.dropdown-menu-categories::-webkit-scrollbar-track {
    background: transparent;
}

.dropdown-menu-categories::-webkit-scrollbar-thumb {
    background: rgba(var(--primary-rgb), 0.2);
    border-radius: 3px;
}

.dropdown-menu-categories::-webkit-scrollbar-thumb:hover {
    background: rgba(var(--primary-rgb), 0.4);
}

.dropdown-menu-categories .dropdown-item {
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.dropdown-menu-categories .dropdown-item:hover {
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--primary);
}

.dropdown-menu-categories .dropdown-item i {
    font-size: 0.85rem;
    opacity: 0.6;
}

/* -- Trust Badges ------------------------------------------ */
.trust-badges-section {
    background: var(--bg);
    padding: 40px 0;
    border-top: 1px solid rgba(var(--primary-rgb), 0.08);
    margin-top: 40px;
}

.trust-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s, box-shadow 0.3s;
}

.trust-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.1);
}

.trust-badge i {
    font-size: 1.8rem;
    color: var(--primary);
    flex-shrink: 0;
}

.trust-badge div {
    text-align: left;
}

.trust-badge strong {
    display: block;
    font-size: 0.9rem;
    color: #333;
}

.trust-badge small {
    font-size: 0.75rem;
    color: #888;
}

/* -- Out of Stock Badge ------------------------------------ */
.product-badge-oos {
    background: #dc3545 !important;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.product-card.out-of-stock .product-card-img img {
    filter: grayscale(40%) brightness(0.9);
}

.product-card.out-of-stock:hover {
    transform: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

/* -- Coupon Section ---------------------------------------- */
.coupon-section .input-group {
    border-radius: 8px;
    overflow: hidden;
}

.coupon-section .form-control {
    border-radius: 8px 0 0 8px;
    border: 1.5px solid #e0e0e0;
    font-weight: 600;
    letter-spacing: 1px;
}

.coupon-section .btn {
    border-radius: 0 8px 8px 0;
    font-weight: 600;
}

/* -- Responsive Additions ---------------------------------- */
@media (max-width: 767px) {
    .announcement-bar {
        font-size: 0.72rem;
        padding: 6px 0;
    }

    .trust-badge {
        padding: 12px 8px;
        gap: 8px;
    }

    .trust-badge i {
        font-size: 1.4rem;
    }

    .trust-badge strong {
        font-size: 0.8rem;
    }

    .trust-badge small {
        font-size: 0.68rem;
    }

    .brand-logo {
        max-height: 32px;
    }
}

/* -- Coupon Cards (Public Page) ---------------------------- */
.coupon-card {
    display: flex;
    border: 2px dashed var(--primary);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s, box-shadow 0.3s;
}

.coupon-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.1);
}

.coupon-card-left {
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 28px;
    min-width: 160px;
}

.coupon-code-display {
    font-family: 'Inter', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.coupon-card-right {
    padding: 16px 24px;
    flex: 1;
}

.coupon-card-right h5 {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 4px;
}

/* -- FAQ Accordion ----------------------------------------- */
.faq-accordion .accordion-item {
    border: 1px solid rgba(var(--primary-rgb), 0.08);
    border-radius: 12px !important;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.faq-accordion .accordion-button {
    font-weight: 600;
    font-size: 1rem;
    color: #333;
    background: #fff;
    padding: 18px 24px;
}

.faq-accordion .accordion-button:not(.collapsed) {
    background: rgba(var(--primary-rgb), 0.04);
    color: var(--primary);
    box-shadow: none;
}

.faq-accordion .accordion-button:focus {
    box-shadow: none;
}

.faq-accordion .accordion-body {
    padding: 16px 24px 24px;
    color: #555;
    line-height: 1.7;
}

/* -- Responsive: Coupon cards ------------------------------ */
@media (max-width: 576px) {
    .coupon-card {
        flex-direction: column;
    }

    .coupon-card-left {
        min-width: auto;
        padding: 14px;
    }

    .coupon-card-right {
        padding: 14px;
    }
}

/* ── Category Card Home (Homepage) Responsive ── */
@media (max-width: 767px) {
    .category-card-home {
        padding: 10px 6px;
        border-radius: 10px;
    }

    .category-card-home .cat-img-wrap {
        width: 50px;
        height: 50px;
    }

    .category-card-home .cat-icon-wrap {
        width: 42px;
        height: 42px;
    }

    .category-card-home .cat-icon-wrap i {
        font-size: 1rem;
    }

    .category-card-home h6 {
        font-size: 0.68rem;
        margin-bottom: 1px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .category-card-home small {
        font-size: 0.6rem;
    }

    /* Product slider items mobile */
    .cat-slider-item .product-card-body h5 {
        font-size: 0.78rem;
    }

    .cat-slider-item .product-card-actions .btn {
        font-size: 0.72rem;
        padding: 5px 8px;
    }

    /* Slider header */
    .slider-btn {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    .btn-outline-custom.btn-sm {
        font-size: 0.72rem;
        padding: 4px 10px;
    }
}

@media (max-width: 480px) {
    .category-card-home {
        padding: 8px 4px;
        border-radius: 8px;
    }

    .category-card-home .cat-img-wrap {
        width: 42px;
        height: 42px;
    }

    .category-card-home .cat-icon-wrap {
        width: 36px;
        height: 36px;
    }

    .category-card-home .cat-icon-wrap i {
        font-size: 0.85rem;
    }

    .category-card-home h6 {
        font-size: 0.6rem;
    }

    .category-card-home small {
        font-size: 0.55rem;
    }

    .slider-btn {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }

    .btn-outline-custom.btn-sm {
        font-size: 0.65rem;
        padding: 3px 8px;
    }
}

/* ============================================================
   Mobile Header Icons (always visible on mobile)
   ============================================================ */
.mobile-header-icons {
    order: 2;
}

.mobile-header-icons .nav-link {
    color: rgba(255, 255, 255, 0.88) !important;
    padding: 6px 8px !important;
    font-size: 1.1rem;
    position: relative;
    display: inline-flex !important;
    align-items: center;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.mobile-header-icons .nav-link:hover,
.mobile-header-icons .nav-link.active {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.12);
}

.mobile-header-icons .cart-link .cart-badge {
    top: 0;
    right: 0;
}

/* ============================================================
   Mobile Search Bar (below navbar, always visible)
   ============================================================ */
.mobile-search-bar {
    background: var(--header-bg);
    padding: 0 0 10px;
    position: relative;
}

.mobile-search-bar .container {
    position: relative;
}

.mobile-search-wrap {
    background: rgba(255, 255, 255, 0.15) !important;
    border-radius: 25px;
    padding: 8px 14px;
}

.mobile-search-wrap:focus-within {
    background: #fff !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.mobile-search-wrap i {
    color: rgba(255, 255, 255, 0.7);
}

.mobile-search-wrap:focus-within i {
    color: #888;
}

.mobile-search-wrap .nav-search-input {
    color: #fff;
}

.mobile-search-wrap:focus-within .nav-search-input {
    color: #333;
}

.mobile-search-wrap .nav-search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.mobile-search-wrap:focus-within .nav-search-input::placeholder {
    color: #999;
}

.mobile-search-autocomplete {
    left: 12px;
    right: 12px;
}

/* ============================================================
   Mobile Off-Canvas Sidebar
   ============================================================ */
.mobile-sidebar {
    background: var(--header-bg) !important;
    color: #fff;
    max-width: 300px;
    border-right: none !important;
}

.mobile-sidebar .offcanvas-header {
    background: rgba(0, 0, 0, 0.15);
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-sidebar .offcanvas-title {
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.mobile-sidebar .offcanvas-body {
    padding: 16px 0;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-list li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.mobile-nav-list li a:hover,
.mobile-nav-list li a.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-left-color: var(--secondary);
}

.mobile-nav-list li a i {
    font-size: 1.1rem;
    width: 22px;
    text-align: center;
    opacity: 0.8;
}

.mobile-nav-list li a .submenu-arrow {
    margin-left: auto;
    font-size: 0.75rem;
    transition: transform 0.3s;
}

.mobile-nav-list li a .submenu-arrow.rotated {
    transform: rotate(180deg);
}

.mobile-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: rgba(0, 0, 0, 0.1);
}

.mobile-submenu.open {
    max-height: 1000px;
}

.mobile-submenu li a {
    padding: 10px 24px 10px 48px;
    font-size: 0.88rem;
    gap: 8px;
}

.mobile-submenu li a i {
    font-size: 0.85rem;
}

/* Hide the old collapse nav on mobile */
@media (max-width: 991px) {
    #mainNav {
        display: none !important;
    }
}

/* ============================================================
   Product Grid / Slider Fix for Mobile
   ============================================================ */
@media (max-width: 767px) {
    .cat-slider-item {
        min-width: calc(50% - 8px) !important;
        max-width: calc(50% - 8px);
    }

    .cat-slider-track {
        gap: 10px;
    }

    /* Product card consistent sizing in slider */
    .cat-slider-item .product-card {
        height: 100%;
    }

    .cat-slider-item .product-card-img,
    .cat-slider-item .product-img-wrapper {
        height: 150px;
    }

    .cat-slider-item .product-card-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Featured / grid products — proper 2-column */
    .col-6 .product-card {
        height: 100%;
    }

    .col-6 .product-card-img,
    .col-6 .product-img-wrapper {
        height: 150px;
    }

    .col-6 .product-card-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

@media (max-width: 480px) {
    .cat-slider-item {
        min-width: calc(50% - 6px) !important;
        max-width: calc(50% - 6px);
    }

    .cat-slider-track {
        gap: 8px;
    }

    .cat-slider-item .product-card-img,
    .cat-slider-item .product-img-wrapper {
        height: 130px;
    }

    .col-6 .product-card-img,
    .col-6 .product-img-wrapper {
        height: 130px;
    }
}

/* ============================================================
   Product Variation Buttons (Product Detail Page)
   ============================================================ */
.variation-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
}

.variation-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.variation-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    padding: 8px 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: #fff;
    color: #333;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.variation-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.variation-btn.active {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

.variation-sku {
    font-size: 0.82rem;
    color: #888;
    margin-bottom: 8px;
}

/* ============================================================
   Product Description Rich Content
   ============================================================ */
.product-description {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #444;
}

.product-description h1,
.product-description h2,
.product-description h3,
.product-description h4,
.product-description h5,
.product-description h6 {
    color: #1a1a2e;
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 700;
}

.product-description h2 {
    font-size: 1.4rem;
}

.product-description h3 {
    font-size: 1.2rem;
}

.product-description h4 {
    font-size: 1.05rem;
}

.product-description p {
    margin-bottom: 12px;
}

.product-description ul,
.product-description ol {
    margin-bottom: 14px;
    padding-left: 24px;
}

.product-description li {
    margin-bottom: 6px;
}

.product-description strong,
.product-description b {
    font-weight: 700;
    color: #333;
}

.product-description table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 0.9rem;
}

.product-description table th,
.product-description table td {
    border: 1px solid #e0e0e0;
    padding: 10px 14px;
    text-align: left;
}

.product-description table th {
    background: #f8f4fc;
    font-weight: 600;
    color: #333;
}

.product-description table tr:nth-child(even) {
    background: #fafafa;
}

.product-description blockquote {
    border-left: 4px solid var(--primary);
    padding: 12px 20px;
    margin: 16px 0;
    background: #f8f4fc;
    border-radius: 0 8px 8px 0;
    color: #555;
    font-style: italic;
}

.product-description img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 12px 0;
}

.product-description hr {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 20px 0;
}

.product-description a {
    color: var(--primary);
    text-decoration: underline;
}

/* ============================================================
   Mobile Footer Compact Styles
   ============================================================ */
@media (max-width: 767px) {
    .site-footer {
        padding: 28px 0 0;
        margin-top: 20px;
    }

    .site-footer .row.g-4 {
        --bs-gutter-y: 1rem;
    }

    .footer-brand {
        font-size: 1.2rem;
        margin-bottom: 6px;
    }

    .footer-tagline {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }

    .footer-social {
        margin-bottom: 4px;
    }

    .footer-social a {
        font-size: 1rem;
        margin-right: 10px;
    }

    .footer-heading {
        font-size: 0.88rem;
        margin-bottom: 10px;
    }

    .footer-links a {
        font-size: 0.82rem;
    }

    .footer-links li {
        margin-bottom: 5px;
    }

    .footer-contact li {
        font-size: 0.82rem;
        margin-bottom: 6px;
    }

    .footer-divider {
        margin: 16px 0 0;
    }

    .footer-bottom {
        padding: 12px 0;
        font-size: 0.75rem;
    }

    .trust-badges-section {
        padding: 16px 0;
    }

    .trust-badge {
        padding: 10px;
    }

    .trust-badge i {
        font-size: 1.2rem;
    }

    .trust-badge strong {
        font-size: 0.72rem;
    }

    .trust-badge small {
        font-size: 0.62rem;
    }
}

/* ============================================================
   Product Detail Mobile View Fixes
   ============================================================ */
@media (max-width: 767px) {
    .product-gallery {
        margin-bottom: 10px;
    }

    .product-gallery .main-image {
        height: auto;
        max-height: 320px;
        width: 100%;
    }

    .product-gallery .thumb-list {
        gap: 6px;
        margin-top: 8px;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .product-gallery .thumb-list img {
        width: 48px;
        height: 48px;
        flex-shrink: 0;
    }

    .product-detail-info {
        padding-top: 6px;
    }

    .product-detail-info h1 {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }

    .product-detail-price {
        margin-bottom: 8px;
    }

    .product-detail-price .current {
        font-size: 1.3rem;
    }

    .product-detail-price .original {
        font-size: 0.85rem;
    }

    /* Qty + Add to Cart mobile stacking */
    .product-detail-info .d-flex.align-items-center.gap-3.mb-4 {
        flex-wrap: wrap;
        gap: 8px !important;
    }

    .product-detail-info .qty-selector {
        flex-shrink: 0;
    }

    .product-detail-info .btn-add-cart {
        flex: 1;
        min-width: 0;
        font-size: 0.9rem;
        padding: 10px 16px;
    }

    /* WhatsApp full width */
    .btn-whatsapp {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    /* Wishlist full width */
    .btn-wishlist,
    .product-detail-info .btn-outline-danger {
        width: 100%;
        display: flex;
        justify-content: center;
        gap: 6px;
    }

    /* Variation buttons smaller on mobile */
    .variation-btn {
        padding: 6px 14px;
        font-size: 0.8rem;
    }

    .variation-label {
        font-size: 0.82rem;
    }

    /* Product description mobile */
    .product-description {
        font-size: 0.88rem;
        line-height: 1.7;
    }

    .product-description h2 {
        font-size: 1.15rem;
    }

    .product-description h3 {
        font-size: 1.05rem;
    }

    .product-description table {
        font-size: 0.8rem;
    }

    .product-description table th,
    .product-description table td {
        padding: 6px 8px;
    }

    /* Related products section */
    .section-title {
        margin-bottom: 16px;
    }
}

@media (max-width: 480px) {
    .product-gallery .main-image {
        max-height: 260px;
    }

    .product-gallery .thumb-list img {
        width: 40px;
        height: 40px;
    }

    .product-detail-info h1 {
        font-size: 1.05rem;
    }

    .product-detail-price .current {
        font-size: 1.15rem;
    }
}