:root {
    --primary-red: #D32F2F;
    --primary-red-hover: #B71C1C;
    --dark-bg: #1a1a1a;
    --text-dark: #222222;
    --text-muted: #666666;
    --text-light: #999999;
    --border-color: #e0e0e0;
    --bg-light: #f8f8f8;
    --white: #ffffff;
    --star-color: #FFD700;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

.navbar {
    padding: 8px 0;
    z-index: 1050;
}

.nav-logo {
    height: 100px;
    width: auto;
}

.navbar-nav .nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    padding: 8px 14px !important;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-red);
}

.nav-icon-link {
    color: var(--text-dark);
    font-size: 16px;
    position: relative;
}

.nav-icon-link:hover {
    color: var(--primary-red);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--primary-red);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.hero-section {
    position: relative;
}

.hero-slide {
    height: 520px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.hero-slide .container {
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    font-family: 'Dancing Script', cursive;
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 5px;
    color: #ffd700;
}

.hero-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 12px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-title .cursive-text {
    font-family: 'Dancing Script', cursive;
    font-size: 52px;
    font-weight: 700;
}

.hero-title .cursive-christmas {
    font-family: 'Dancing Script', cursive;
    font-size: 52px;
    font-weight: 700;
    color: #ff4444;
}

.hero-desc {
    font-size: 15px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.btn-shop-now {
    background: var(--primary-red);
    color: var(--white);
    padding: 12px 32px;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    transition: var(--transition);
}

.btn-shop-now:hover {
    background: var(--primary-red-hover);
    color: var(--white);
    transform: translateY(-2px);
}

.hero-badges {
    margin-top: 25px;
}

.hero-badge {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 10px 18px;
    border-radius: 8px;
    color: var(--white);
}

.hero-badge strong {
    font-size: 13px;
    display: block;
}

.hero-badge small {
    font-size: 11px;
    opacity: 0.85;
}

.hero-badge-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
}

.hero-indicators {
    bottom: 15px;
}

.hero-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    margin: 0 4px;
}

.hero-indicators button.active {
    background: var(--white);
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.section-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.categories-section {
    background: var(--white);
}

.category-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
}

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

.category-img-wrapper {
    width: 100%;
    height: 140px;
    overflow: hidden;
}

.category-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.category-card:hover .category-img {
    transform: scale(1.05);
}

.category-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
}

.category-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
}

.category-arrow {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-size: 12px;
    transition: var(--transition);
}

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

.products-section {
    background: var(--bg-light);
}

.product-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
}

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

.product-img-wrapper {
    width: 100%;
    height: 150px;
    overflow: hidden;
    background: #f5f5f5;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.product-info {
    padding: 12px;
}

.product-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
    line-height: 1.3;
    min-height: 34px;
}

.product-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.btn-add-cart {
    background: var(--primary-red);
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 5px;
    border: none;
    width: 100%;
    transition: var(--transition);
}

.btn-add-cart:hover {
    background: var(--primary-red-hover);
    color: var(--white);
}

.promo-section {
    background: var(--white);
}

.promo-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 200px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.promo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.promo-content {
    position: relative;
    z-index: 2;
    padding: 30px;
    color: var(--white);
}

.promo-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.promo-title .cursive-text {
    font-family: 'Dancing Script', cursive;
    font-size: 30px;
}

.promo-desc {
    font-size: 14px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.btn-promo {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    padding: 8px 20px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-promo:hover {
    background: var(--white);
    color: var(--text-dark);
}

.promo-christmas .btn-promo {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: var(--white);
}

.promo-christmas .btn-promo:hover {
    background: var(--primary-red-hover);
    border-color: var(--primary-red-hover);
    color: var(--white);
}

.features-section {
    background: var(--white);
    border-color: var(--border-color) !important;
}

.feature-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: left;
}

.feature-icon {
    font-size: 28px;
    color: var(--text-dark);
}

.feature-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0;
}

.feature-desc {
    font-size: 12px;
    color: var(--text-muted);
}

.about-section {
    background: var(--white);
}

.about-img-wrapper {
    border-radius: 12px;
    overflow: hidden;
    height: 300px;
}

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

.about-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.about-text p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 10px;
    line-height: 1.7;
}

.about-slogan {
    font-family: 'Dancing Script', cursive;
    font-size: 22px;
    color: var(--text-dark);
    margin-top: 10px;
}

.about-contact-card {
    background: var(--primary-red);
    border-radius: 12px;
    padding: 30px;
    color: var(--white);
}

.contact-item {
    gap: 12px;
}

.contact-icon-circle {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.contact-item span {
    font-size: 14px;
    line-height: 1.4;
}

.btn-contact-us {
    background: var(--white);
    color: var(--primary-red);
    padding: 10px 24px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    margin-top: 10px;
    display: inline-block;
    transition: var(--transition);
}

.btn-contact-us:hover {
    background: #f0f0f0;
    color: var(--primary-red);
    transform: translateY(-2px);
}

.testimonials-section {
    background: var(--bg-light);
}

.testimonial-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: var(--transition);
    height: 100%;
    position: relative;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-md);
}

.testimonial-avatar-wrapper {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--white);
    box-shadow: var(--shadow-sm);
}

.testimonial-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-text {
    font-size: 14px;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 12px;
    margin-top: 15px;
    line-height: 1.6;
}

.testimonial-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.testimonial-stars {
    color: var(--star-color);
    font-size: 12px;
}

.testimonial-stars i {
    margin: 0 1px;
}

.footer {
    background: var(--dark-bg);
    color: #ccc;
}

.footer-logo-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    background: #fff;
    border-radius: 50%;
}

.footer-logo {
    height: 60px;
    width: auto;
}

.footer-tagline {
    font-size: 12px;
    color: #aaa;
    margin-top: 4px;
}

.footer-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 15px;
}

.footer-links li {
    margin-bottom: 6px;
}

.footer-links a {
    font-size: 13px;
    color: #bbb;
    transition: var(--transition);
}

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

.footer-contact li {
    font-size: 13px;
    color: #bbb;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
}

.footer-contact li i {
    color: var(--primary-red);
    margin-top: 3px;
    min-width: 20px;
}

.social-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 14px;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--primary-red);
    color: var(--white);
}

.footer-slogan {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.slogan-text {
    font-family: 'Dancing Script', cursive;
    font-size: 16px;
    color: #ccc;
    margin-bottom: 0;
}

.footer-lantern-icon {
    height: 40px;
    width: auto;
}

.footer-bottom {
    background: #111;
    font-size: 13px;
    color: #888;
}

@media (max-width: 991.98px) {
    .hero-slide {
        height: 420px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-title .cursive-text,
    .hero-title .cursive-christmas {
        font-size: 40px;
    }

    .hero-badges {
        flex-direction: column;
        align-items: center;
    }

    .nav-icons {
        justify-content: center;
        padding: 10px 0;
    }

    .feature-item {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }

    .about-contact-card {
        margin-top: 20px;
    }
}

@media (max-width: 767.98px) {
    .hero-slide {
        height: 380px;
    }

    .hero-title {
        font-size: 26px;
    }

    .hero-title .cursive-text,
    .hero-title .cursive-christmas {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-desc {
        font-size: 13px;
    }

    .btn-shop-now {
        padding: 10px 24px;
        font-size: 14px;
    }

    .section-title {
        font-size: 22px;
    }

    .category-img-wrapper {
        height: 110px;
    }

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

    .product-img-wrapper {
        height: 120px;
    }

    .product-name {
        font-size: 12px;
        min-height: auto;
    }

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

    .btn-add-cart {
        font-size: 11px;
        padding: 5px 10px;
    }

    .promo-card {
        height: 180px;
    }

    .promo-title .cursive-text {
        font-size: 24px;
    }

    .about-img-wrapper {
        height: 220px;
    }

    .testimonial-card {
        margin-top: 30px;
    }

    .footer .row > div {
        margin-bottom: 20px;
    }
}

@media (max-width: 575.98px) {
    .hero-slide {
        height: 340px;
    }

    .hero-title {
        font-size: 22px;
    }

    .hero-title .cursive-text,
    .hero-title .cursive-christmas {
        font-size: 28px;
    }

    .hero-badge {
        padding: 8px 12px;
    }

    .hero-badge strong {
        font-size: 11px;
    }

    .hero-badge small {
        font-size: 10px;
    }

    .promo-content {
        padding: 20px;
    }
}

/* ============================================================ scroll fx */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, var(--primary-red), var(--star-color));
    z-index: 2000;
    transition: width 0.12s linear;
}

.js .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.3, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}

.js .reveal[data-reveal="left"] { transform: translateX(-45px); }
.js .reveal[data-reveal="right"] { transform: translateX(45px); }
.js .reveal[data-reveal="zoom"] { transform: scale(0.92); }

.js .reveal.is-visible {
    opacity: 1 !important;
    transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
    .js .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* ============================================================ preloader */

.preloader {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 4000;
    align-items: center;
    justify-content: center;
    background: var(--white);
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.js .preloader {
    display: flex;
}

.preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.js body.is-loading {
    overflow: hidden;
}

.preloader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    padding: 30px;
    text-align: center;
}

.preloader-spinner {
    position: relative;
    width: 156px;
    height: 156px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid rgba(211, 47, 47, 0.14);
    border-top-color: var(--primary-red);
    border-right-color: var(--star-color);
    animation: preloaderSpin 0.9s linear infinite;
}

.preloader-logo {
    width: 118px;
    height: 118px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: preloaderPulse 1.6s ease-in-out infinite;
}

.preloader-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.preloader-brand {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--dark-bg);
}

.preloader-bar {
    position: relative;
    width: 170px;
    height: 3px;
    overflow: hidden;
    background: var(--border-color);
    border-radius: 3px;
}

.preloader-bar i {
    position: absolute;
    top: 0;
    left: 0;
    width: 45%;
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--primary-red), var(--star-color));
    animation: preloaderBar 1.2s ease-in-out infinite;
}

@keyframes preloaderSpin {
    to { transform: rotate(360deg); }
}

@keyframes preloaderPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.07); }
}

@keyframes preloaderBar {
    0% { left: -45%; }
    100% { left: 100%; }
}

@media (max-width: 480px) {
    .preloader-spinner {
        width: 128px;
        height: 128px;
    }

    .preloader-logo {
        width: 96px;
        height: 96px;
    }

    .preloader-brand {
        font-size: 13px;
        letter-spacing: 4px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .preloader-ring,
    .preloader-logo,
    .preloader-bar i {
        animation: none;
    }
}

.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--primary-red);
    color: var(--white);
    border: none;
    font-size: 16px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: var(--transition);
    z-index: 1100;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.back-to-top:hover {
    background: var(--primary-red-hover);
    transform: translateY(-3px);
}

.toast-container {
    position: fixed;
    top: 92px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 320px;
}

.toast-item {
    background: var(--white);
    border-left: 4px solid var(--primary-red);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text-dark);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: toastIn 0.35s ease;
}

.toast-item.success { border-left-color: #2E7D32; }
.toast-item.hide { animation: toastOut 0.3s ease forwards; }

@keyframes toastIn {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: none; }
}

@keyframes toastOut {
    to { opacity: 0; transform: translateX(40px); }
}

/* ======================================================== inner banners */

.page-banner {
    position: relative;
    height: 300px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.page-banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}

.page-banner .container {
    position: relative;
    z-index: 2;
}

.page-banner-title {
    font-size: 44px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 6px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.35);
}

.page-banner-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 10px;
}

.page-banner .breadcrumb {
    background: transparent;
    justify-content: center;
    padding: 0;
    margin: 8px 0 0;
    font-size: 13px;
}

.page-banner .breadcrumb-item,
.page-banner .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.85);
}

.page-banner .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.7);
}

.page-banner .breadcrumb-item a {
    color: var(--white);
    text-decoration: none;
}

.page-banner .breadcrumb-item a:hover {
    color: var(--star-color);
}

/* ============================================================ shop page */

.shop-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 18px;
}

.category-chips,
.type-toggle,
.popular-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.toolbar-right {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.chip {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    transition: var(--transition);
}

.chip:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
    transform: translateY(-2px);
}

.chip.active {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: var(--white);
}

.sort-form .form-select {
    min-width: 190px;
    font-size: 13px;
    border-radius: 6px;
}

.results-count {
    font-size: 13px;
    color: var(--text-muted);
}

.popular-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
}

.search-bar-form {
    max-width: 720px;
    margin: 0 auto;
}

/* ======================================================== product cards */

.product-card .product-img-wrapper {
    display: block;
    position: relative;
    aspect-ratio: 1 / 1;
    height: auto;
    overflow: hidden;
    background: #f5f5f5;
}

.product-card .product-img {
    height: 100%;
    object-fit: cover;
}

.sale-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    background: var(--primary-red);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 4px;
    letter-spacing: 0.4px;
}

.sale-badge.badge-featured {
    background: var(--dark-bg);
}

.quick-view {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.62);
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    padding: 9px;
    transform: translateY(100%);
    transition: var(--transition);
}

.product-card:hover .quick-view {
    transform: none;
}

.product-category {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 4px;
}

.product-category:hover {
    color: var(--primary-red);
}

.product-name a {
    color: var(--text-dark);
}

.product-name a:hover {
    color: var(--primary-red);
}

.price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
}

.price-row .product-price {
    margin-bottom: 0;
}

.old-price {
    font-size: 12px;
    color: var(--text-light);
    text-decoration: line-through;
}

.product-actions {
    display: grid;
    gap: 6px;
}

.product-actions .product-form {
    display: block;
}

.stock-note {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    font-weight: 600;
}

.stock-note.low { color: #E65100; }
.stock-note.out { color: var(--primary-red); }

.btn-buy-now {
    background: linear-gradient(135deg, #FF8F00, #F4511E);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 5px;
    border: none;
    width: 100%;
    transition: var(--transition);
}

.btn-buy-now:hover,
.btn-buy-now:focus {
    background: linear-gradient(135deg, #F57C00, #E64A19);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(244, 81, 30, 0.32);
}

.btn-add-cart:hover,
.btn-add-cart:focus {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(211, 47, 47, 0.3);
}

.btn-promo-dark {
    background: var(--dark-bg);
    color: var(--white);
    border: none;
    padding: 9px 22px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
}

.btn-promo-dark:hover {
    background: var(--primary-red);
    color: var(--white);
}

/* ======================================================= empty + pager */

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border: 1px dashed var(--border-color);
    border-radius: 12px;
}

.empty-icon {
    font-size: 52px;
    color: var(--border-color);
    margin-bottom: 14px;
    display: block;
}

.empty-state h4 {
    font-weight: 700;
    margin-bottom: 6px;
}

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

.pagination .page-link {
    color: var(--text-dark);
    font-size: 14px;
    border-radius: 6px !important;
    margin: 0 4px;
    border: 1px solid var(--border-color);
}

.pagination .page-item.active .page-link {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: var(--white);
}

.pagination .page-item.disabled .page-link {
    color: var(--text-light);
    background: var(--bg-light);
}

/* ====================================================== product detail */

.product-gallery {
    position: sticky;
    top: 90px;
}

.main-image-wrapper {
    position: relative;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    background: #f6f6f6;
    aspect-ratio: 1 / 1;
}

.main-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.main-image-wrapper:hover .main-product-image {
    transform: scale(1.04);
}

.thumb-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 12px;
}

.thumb-item {
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    padding: 0;
    background: #f6f6f6;
    cursor: pointer;
    transition: var(--transition);
    aspect-ratio: 1 / 1;
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumb-item:hover {
    border-color: var(--border-color);
}

.thumb-item.active {
    border-color: var(--primary-red);
}

.detail-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    margin: 6px 0 10px;
}

.detail-rating {
    color: var(--star-color);
    font-size: 13px;
    margin-bottom: 12px;
}

.detail-rating .rating-count {
    color: var(--text-muted);
    margin-left: 6px;
}

.detail-price {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.detail-price .current-price {
    font-size: 30px;
    font-weight: 800;
    color: var(--primary-red);
}

.detail-price .old-price {
    font-size: 17px;
}

.save-label {
    background: #E8F5E9;
    color: #2E7D32;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
}

.detail-short {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.stock-line {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 18px;
}

.stock-line.in { color: #2E7D32; }
.stock-line.out { color: var(--primary-red); }

.buy-box {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 18px;
}

.qty-selector {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--white);
    overflow: hidden;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--white);
    color: var(--text-dark);
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
}

.qty-btn:hover {
    background: var(--primary-red);
    color: var(--white);
}

.qty-input {
    width: 52px;
    height: 40px;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-selector.small .qty-btn { width: 32px; height: 32px; font-size: 11px; }
.qty-selector.small .qty-input { width: 44px; height: 32px; font-size: 13px; }

.buy-form {
    flex: 1 1 150px;
}

.detail-btn {
    padding: 11px 18px;
    font-size: 14px;
}

.detail-perks {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
}

.detail-perks li {
    font-size: 13px;
    color: var(--text-muted);
    padding: 6px 0;
    border-bottom: 1px dashed var(--border-color);
}

.detail-perks i {
    color: var(--primary-red);
    width: 22px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    font-size: 13px;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 14px;
}

.detail-meta a {
    color: var(--text-dark);
    font-weight: 600;
}

.detail-meta a:hover { color: var(--primary-red); }

.share-link {
    display: inline-flex;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--bg-light);
    align-items: center;
    justify-content: center;
    margin-left: 6px;
    color: var(--text-dark);
}

.share-link:hover {
    background: var(--primary-red);
    color: var(--white);
}

.detail-tabs .nav-tabs {
    border-bottom: 2px solid var(--border-color);
}

.detail-tabs .nav-link {
    border: none;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 14px;
    padding: 12px 20px;
    position: relative;
}

.detail-tabs .nav-link.active {
    background: transparent;
    color: var(--primary-red);
}

.detail-tabs .nav-link.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background: var(--primary-red);
}

.detail-tabs .tab-content {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 10px 10px;
}

.detail-tabs .tab-pane p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.8;
}

/* ========================================================= cart page */

.cart-panel {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.cart-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.cart-panel-head h5 {
    margin: 0;
    font-weight: 700;
}

.cart-line {
    display: grid;
    grid-template-columns: 84px 1fr auto auto;
    gap: 16px;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.cart-line-img {
    width: 84px;
    height: 84px;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    display: block;
}

.cart-line-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-line-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.cart-line-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
}

.cart-line-name:hover { color: var(--primary-red); }

.cart-line-cat {
    font-size: 12px;
    color: var(--text-light);
}

.cart-line-price {
    font-size: 13px;
    color: var(--text-muted);
}

.cart-line-qty {
    display: flex;
    align-items: center;
    gap: 10px;
}

.remove-btn {
    border: none;
    background: transparent;
    color: var(--text-light);
    font-size: 14px;
    transition: var(--transition);
}

.remove-btn:hover { color: var(--primary-red); }

.cart-line-total {
    font-size: 15px;
    font-weight: 700;
    min-width: 90px;
    text-align: right;
}

.cart-panel-foot {
    padding: 14px 20px;
}

.continue-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

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

.cart-summary {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 22px;
}

.cart-summary h5 {
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-muted);
    padding: 7px 0;
}

.summary-row.total {
    border-top: 2px solid var(--text-dark);
    margin-top: 8px;
    padding-top: 12px;
    font-size: 18px;
    font-weight: 800;
    color: var(--text-dark);
}

.summary-note {
    font-size: 12px;
    color: #E65100;
    background: #FFF3E0;
    border-radius: 6px;
    padding: 7px 10px;
    margin: 6px 0 0;
}

.summary-perks {
    list-style: none;
    padding: 16px 0 0;
    margin: 16px 0 0;
    border-top: 1px dashed var(--border-color);
    font-size: 13px;
    color: var(--text-muted);
}

.summary-perks li {
    padding: 5px 0;
}

.summary-perks i {
    color: var(--primary-red);
    width: 20px;
}

/* ======================================================= checkout page */

.form-panel {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 22px;
    margin-bottom: 16px;
}

.form-panel-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 18px;
}

.form-panel-title span {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-red);
    color: var(--white);
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.payment-options {
    display: grid;
    gap: 10px;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 14px 16px;
    cursor: pointer;
    transition: var(--transition);
    background: var(--white);
}

.payment-option:hover { border-color: #f0b3b3; }

.payment-option.selected,
.payment-option:has(input:checked) {
    border-color: var(--primary-red);
    background: #FFF5F5;
}

.payment-option input {
    accent-color: var(--primary-red);
}

.payment-icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-red);
    font-size: 17px;
}

.payment-text strong {
    display: block;
    font-size: 14px;
}

.payment-text small {
    color: var(--text-muted);
    font-size: 12px;
}

.sticky-summary {
    position: sticky;
    top: 90px;
}

.summary-items {
    max-height: 320px;
    overflow-y: auto;
    margin-bottom: 12px;
    padding-right: 4px;
}

.summary-item {
    display: grid;
    grid-template-columns: 52px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px dashed var(--border-color);
}

.summary-item-img {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 6px;
    overflow: hidden;
    background: #f5f5f5;
}

.summary-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.summary-qty {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--primary-red);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 0 0 0 6px;
}

.summary-item-name {
    display: block;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}

.summary-item-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.summary-item-total {
    font-size: 13px;
    font-weight: 700;
}

.checkout-secure {
    font-size: 12px;
    color: var(--text-muted);
}

.checkout-secure i { color: #2E7D32; }

/* ===================================================== success page */

.success-card {
    max-width: 760px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.success-check {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: #E8F5E9;
    color: #2E7D32;
    font-size: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    animation: popIn 0.5s cubic-bezier(0.2, 1.4, 0.4, 1);
}

@keyframes popIn {
    from { transform: scale(0.4); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.success-card h2 {
    font-weight: 800;
    margin-bottom: 8px;
}

.success-lead {
    color: var(--text-muted);
    font-size: 15px;
}

.order-number-box {
    background: var(--bg-light);
    border: 1px dashed var(--border-color);
    border-radius: 10px;
    padding: 14px;
    margin: 20px 0;
}

.order-number-box span {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.order-number-box strong {
    font-size: 22px;
    color: var(--primary-red);
    letter-spacing: 1px;
}

.order-recap,
.order-items-list {
    max-width: 460px;
    margin: 0 auto;
    text-align: left;
}

.order-items-list {
    border-top: 1px dashed var(--border-color);
    margin-top: 12px;
    padding-top: 8px;
}

.order-item-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-muted);
    padding: 5px 0;
}

.payment-note {
    max-width: 460px;
    margin: 16px auto 0;
    background: #E3F2FD;
    color: #0D47A1;
    font-size: 13px;
    border-radius: 8px;
    padding: 12px 14px;
}

.success-actions {
    margin-top: 24px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==================================================== about / contact */

.eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary-red);
    margin-bottom: 8px;
}

.stat-card,
.stat-box {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px 14px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-box { text-align: center; }

.stat-number {
    display: block;
    font-size: 34px;
    font-weight: 800;
    color: var(--primary-red);
    line-height: 1.1;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
}

.value-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 28px 24px;
    height: 100%;
    text-align: center;
    transition: var(--transition);
}

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

.value-icon {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: #FFF5F5;
    color: var(--primary-red);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}

.value-card h5 {
    font-weight: 700;
    margin-bottom: 8px;
}

.value-card p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

.story-block {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    height: 100%;
}

.story-block h4 {
    font-weight: 700;
    margin-bottom: 10px;
}

.story-block p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 16px;
}

.collection-intro .section-lead {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 8px;
}

.collection-intro .section-lead-sm {
    font-size: 14px;
    color: var(--text-light);
}

.collection-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.contact-card-list {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.contact-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 16px;
    transition: var(--transition);
}

.contact-card:hover {
    border-color: var(--primary-red);
    transform: translateX(4px);
}

.contact-card .contact-icon-circle {
    background: #FFF5F5;
    color: var(--primary-red);
}

.contact-card strong {
    display: block;
    font-size: 14px;
}

.contact-card span {
    display: block;
    font-size: 14px;
    color: var(--text-dark);
}

.contact-card small {
    font-size: 12px;
    color: var(--text-muted);
}

.contact-intro {
    font-size: 14px;
    color: var(--text-muted);
}

.contact-form-panel {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 28px;
    box-shadow: var(--shadow-sm);
}

.contact-form-panel h4 {
    font-weight: 700;
    margin-bottom: 18px;
}

.faq-block .accordion-button {
    font-size: 14px;
    font-weight: 600;
}

.faq-block .accordion-body {
    font-size: 14px;
    color: var(--text-muted);
}

/* ============================================================ responsive */

.navbar {
    transition: all 0.3s ease;
}

.navbar.nav-scrolled {
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1) !important;
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(8px);
}

.product-card.just-added,
.buy-box.just-added {
    box-shadow: 0 0 0 2px var(--primary-red);
}

.main-product-image {
    transition: opacity 0.16s ease, transform 0.4s ease;
}

@media (max-width: 991.98px) {
    .page-banner { height: 230px; }
    .page-banner-title { font-size: 32px; }
    .product-gallery { position: static; }
    .sticky-summary { position: static; }
    .shop-toolbar { flex-direction: column; align-items: stretch; }
    .toolbar-right { justify-content: space-between; }
}

@media (max-width: 767.98px) {
    .page-banner { height: 200px; }
    .page-banner-title { font-size: 26px; }
    .page-banner-subtitle { font-size: 14px; }

    .cart-line {
        grid-template-columns: 66px 1fr;
        gap: 10px;
    }

    .cart-line-qty { grid-column: 2; }
    .cart-line-total { grid-column: 2; text-align: left; min-width: 0; }

    .detail-title { font-size: 24px; }
    .detail-price .current-price { font-size: 24px; }
    .buy-box { flex-direction: column; align-items: stretch; }
    .qty-selector { justify-content: center; }
    .stat-number { font-size: 26px; }
    .success-card { padding: 28px 18px; }
    .collection-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .stat-box { padding: 16px 8px; }
}

@media (max-width: 575.98px) {
    .thumb-row { grid-template-columns: repeat(4, 1fr); gap: 6px; }
    .toast-container { right: 10px; left: 10px; max-width: none; }
    .buy-box { padding: 12px; }
}
