﻿:root {
    --pink-main: #ffc0cb;
    --pink-soft: #ffe7ef;
    --pink-strong: #ef8ca0;
    --beige: #fff5ef;
    --white: #ffffff;
    --text: #7a4e4e;
    --shadow: 0 10px 30px rgba(212, 140, 154, 0.2);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Nunito', sans-serif;
    color: var(--text);
    background: radial-gradient(circle at top right, #ffe3ec, #fff9f7 55%, #fff4ee);
    line-height: 1.5;
    overflow-x: hidden;
}

h1, h2, h3, h4,
.brand-name,
button, .btn,
.main-nav a {
    font-family: 'Baloo 2', cursive;
}

.site-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 15% 20%, rgba(255, 195, 210, 0.35), transparent 30%),
        radial-gradient(circle at 80% 5%,  rgba(253, 225, 195, 0.35), transparent 33%),
        radial-gradient(circle at 85% 75%, rgba(255, 190, 210, 0.20), transparent 28%);
}

.container {
    width: min(1200px, 92%);
    margin: 0 auto;
}

/* ===================== HEADER / NAV ===================== */
.top-header {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 14px 0;
    background: linear-gradient(to bottom, rgba(255,243,247,0.94), rgba(255,245,239,0.90));
    backdrop-filter: blur(8px);
}

.nav-wrap {
    background: var(--white);
    border-radius: 999px;
    box-shadow: var(--shadow);
    padding: 8px 18px 8px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Brand */
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-logo {
    width: 58px;
    height: 58px;
    object-fit: contain;
    border-radius: 50%;
    border: 2px solid #f9d0df;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-name {
    font-family: 'Dancing Script', cursive;
    font-size: 1.6rem;
    font-weight: 700;
    color: #d4527a;
}

.brand-sub {
    font-family: 'Baloo 2', cursive;
    font-size: 0.85rem;
    color: #b06882;
    letter-spacing: 0.03em;
}

/* Nav links */
.main-nav {
    margin-left: auto;
}

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 0;
    padding: 0;
}

.main-nav a {
    text-decoration: none;
    color: #8d525f;
    font-size: 1.05rem;
    padding: 8px 14px;
    border-radius: 999px;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
    background: var(--pink-soft);
    color: #cf5f7e;
}

/* Cart icon in nav */
.nav-cart-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    text-decoration: none;
    background: #fff4f8;
    border: 1.5px solid #f4c9d7;
    color: #c85f7c;
    transition: all 0.2s ease;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(200,100,130,0.18);
}

.nav-cart-btn:hover,
.nav-cart-btn.active {
    background: var(--pink-soft);
    border-color: #eba9bc;
    transform: translateY(-1px);
}

.nav-cart-btn.cart-bump {
    animation: cartShake 0.65s ease;
}

.cart-icon {
    display: inline-flex;
    width: 22px;
    height: 22px;
}

.cart-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 20px;
    height: 20px;
    border-radius: 999px;
    background: linear-gradient(120deg, #f3b48e, #f09bae);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Baloo 2', cursive;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0 5px;
    border: 2px solid var(--white);
}

.mobile-menu-btn {
    display: none;
    border: 0;
    background: var(--pink-soft);
    color: var(--text);
    border-radius: 12px;
    padding: 8px 12px;
    font-size: 1.2rem;
    cursor: pointer;
}

@keyframes cartShake {
    0%   { transform: translateX(0) rotate(0deg); }
    20%  { transform: translateX(-2px) rotate(-6deg); }
    40%  { transform: translateX(2px) rotate(6deg); }
    60%  { transform: translateX(-2px) rotate(-4deg); }
    80%  { transform: translateX(2px) rotate(3deg); }
    100% { transform: translateX(0) rotate(0deg); }
}

/* ===================== PAGE CONTENT ===================== */
.page-content {
    padding: 0 0 60px;
}

/* ===================== HERO ===================== */
.hero {
    background: linear-gradient(148deg, #fde4f0 0%, #fff8f0 55%, #fde8f8 100%);
    position: relative;
    overflow: hidden;
    /* Full-bleed breakout from .container */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 72px max(24px, calc((100vw - 1200px) / 2 + 4%)) 90px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
    animation: fadeInUp 0.8s ease;
}

/* Scalloped bottom edge */
.hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 40px;
    background: radial-gradient(circle at top right, #fff9f7, #fff4ee);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

/* Decorative floating elements */
.deco {
    position: absolute;
    pointer-events: none;
    user-select: none;
    font-style: normal;
    opacity: 0.6;
    animation: floatDeco 4s ease-in-out infinite;
}

@keyframes floatDeco {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}

.deco-h1  { top: 12%; left: 3%;   color: #e9a0b8; font-size: 1.4rem; animation-delay: 0s; }
.deco-h2  { top: 55%; left: 5%;   color: #f4b8cb; font-size: 1.0rem; animation-delay: 0.6s; }
.deco-h3  { top: 30%; right: 5%;  color: #e0a8c0; font-size: 1.6rem; animation-delay: 1.2s; }
.deco-h4  { bottom: 18%; right: 2%; color: #e8b8cc; font-size: 0.9rem; animation-delay: 1.8s; }
.deco-s1  { top: 8%;  right: 28%; color: #f9c5d8; font-size: 1.5rem; animation-delay: 0.3s; }
.deco-s2  { bottom: 20%; left: 42%; color: #f9d0e0; font-size: 1.2rem; animation-delay: 1.5s; }
.deco-p1  { top: 18%; left: 47%;  color: #f4c0cf; font-size: 1.8rem; animation-delay: 0.9s; }
.deco-p2  { bottom: 12%; right: 32%; color: #f0b8ca; font-size: 1.4rem; animation-delay: 2.1s; }

/* Hero content */
.hero-content {
    position: relative;
    z-index: 1;
}

.hero-label {
    font-family: 'Nunito', sans-serif;
    font-size: 1.2rem;
    color: #a06080;
    margin: 0 0 6px;
    font-style: italic;
}

.hero-title {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(3rem, 5.5vw, 5.2rem);
    color: #d4527a;
    line-height: 1.08;
    font-weight: 700;
    margin: 0 0 14px;
}

.hero-desc {
    font-size: 1.1rem;
    color: #8a5060;
    margin-bottom: 28px;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-figure {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img {
    width: 100%;
    max-width: 420px;
    border-radius: 24px;
    border: 6px solid rgba(255,255,255,0.7);
    box-shadow: 0 20px 60px rgba(210,120,155,0.3);
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

/* ===================== BUTTONS ===================== */
.btn {
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 999px;
    padding: 11px 26px;
    text-decoration: none;
    font-family: 'Baloo 2', cursive;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(193, 103, 130, 0.3);
}

.btn-primary {
    background: linear-gradient(120deg, #f5a08e, #f085a8);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(240, 133, 168, 0.35);
}

.btn-outline {
    background: var(--white);
    color: #cf5f7e;
    border: 1.5px solid #f0a4b7;
}

.btn-outline-hero {
    background: transparent;
    color: #c24d72;
    border: 2px solid #e08097;
    padding: 10px 24px;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ===================== SECTION HEADERS ===================== */
.section-head {
    margin-top: 52px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.section-head h2 {
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    color: #8d4747;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sec-icon {
    font-size: 1.15em;
    color: #e888a3;
}

.sec-plus {
    font-size: 0.9em;
    color: #e888a3;
    margin-left: 4px;
}

/* ===================== CATEGORY TABS ===================== */
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: 20px 0 8px;
}

.cat-tab {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    border-radius: 999px;
    border: 1.5px solid #f0b8ca;
    background: var(--white);
    color: #c06482;
    font-family: 'Baloo 2', cursive;
    font-size: 0.97rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cat-tab:hover,
.cat-tab.active {
    background: #ffe0ec;
    border-color: #d97899;
    color: #a03560;
}

/* ===================== PRODUCT GRID & CAROUSEL ===================== */
.product-carousel {
    position: relative;
    padding: 0 44px;
    margin-top: 16px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--white);
    border: 1.5px solid #f0b8ca;
    color: #c06482;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    box-shadow: 0 4px 14px rgba(200,100,130,0.2);
    transition: all 0.2s ease;
    line-height: 1;
    padding: 0;
}

.carousel-btn:hover {
    background: #ffe0ec;
    border-color: #d47898;
}

.carousel-btn.prev { left: 0; }
.carousel-btn.next { right: 0; }

.product-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    overflow: hidden;
    margin-top: 20px;
}

/* Carousel đã có margin-top riêng trên wrapper, không cần thêm vào grid */
.product-carousel .product-grid {
    margin-top: 0;
}

.blog-grid {
    margin-top: 20px;
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* ===================== PRODUCT CARD ===================== */
.card {
    background: rgba(255,255,255,0.92);
    border: 1px solid #ffe0e9;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 6px 22px rgba(201,123,145,0.15);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-7px);
    box-shadow: 0 14px 28px rgba(182,96,123,0.25);
}

.card-image {
    height: 200px;
    width: 100%;
    object-fit: cover;
    display: block;
}

.card-content {
    padding: 14px 16px 16px;
}

.card-content h3 {
    margin: 0 0 4px;
    font-size: 1.05rem;
    color: #7a3a4a;
}

.price {
    color: #e06080;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 4px 0 6px;
}

.card-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    margin: 0 0 12px;
}

.card-stars {
    color: #f5a0b8;
    letter-spacing: 2px;
}

.card-heart {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 10px;
    border-radius: 999px;
    background: #fff5f8;
    border: 1px solid #fad4e1;
    color: #e07898;
    font-size: 0.85rem;
}

.card-actions {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.card-actions form {
    margin: 0;
}

.card-actions .btn {
    padding: 9px 16px;
    font-size: 0.95rem;
}

.tag {
    display: inline-block;
    margin: 2px 0 8px;
    padding: 3px 10px;
    border-radius: 999px;
    background: #fff2f7;
    border: 1px solid #f7c8d8;
    color: #a6576f;
    font-size: 0.88rem;
    font-weight: 700;
}

/* ===================== BLOG CARD ===================== */
.blog-card {
    background: rgba(255,255,255,0.9);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 18px rgba(200,120,145,0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid #fde4ed;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 26px rgba(182,96,123,0.22);
}

.blog-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.blog-card-body {
    padding: 14px 16px 18px;
}

.blog-card-body h3 {
    margin: 0 0 6px;
    font-size: 1.05rem;
    color: #7a3a4a;
}

.blog-card-body h3 a {
    text-decoration: none;
    color: inherit;
}

.blog-card-body h3 a:hover {
    color: #d4527a;
}

.blog-date {
    font-size: 0.85rem;
    color: #b08090;
    margin: 0;
}

/* ===================== FORMS ===================== */
.form-box,
.table-box,
.info-box {
    margin-top: 24px;
    background: rgba(255,255,255,0.93);
    border-radius: 24px;
    border: 1px solid #ffe2ea;
    box-shadow: var(--shadow);
    padding: 24px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 16px;
}

.filter-bar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 14px;
    align-items: end;
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.payment-option {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 14px 16px;
    border: 1px solid #f3c7d4;
    border-radius: 18px;
    background: #fffdfd;
    cursor: pointer;
}

.payment-option input {
    width: auto;
    margin-top: 3px;
}

.payment-option span {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.payment-option small,
.helper-text {
    color: #9a6070;
    line-height: 1.5;
}

.captcha-box {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.captcha-question {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0 16px;
    border-radius: 16px;
    background: #fff2f7;
    border: 1px dashed #e8a8bb;
    font-weight: 700;
    color: #a6576f;
}

.captcha-box input {
    flex: 1 1 180px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field.full {
    grid-column: 1 / -1;
}

input,
textarea,
select {
    width: 100%;
    border-radius: 16px;
    border: 1px solid #f3c7d4;
    background: #fffdfd;
    padding: 12px 14px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text);
}

textarea {
    resize: vertical;
    min-height: 130px;
}

/* ===================== CONTACT SECTION ===================== */
.contact-section {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-top: 60px;
    padding: 64px max(24px, calc((100vw - 1200px) / 2 + 4%)) 70px;
    background: linear-gradient(145deg, #fde4f0 0%, #fff4ee 60%, #fde8f8 100%);
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 0;
    width: 100%;
    height: 30px;
    background: inherit;
    border-radius: 0 0 50% 50% / 0 0 100% 100%;
}

.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 52px;
    align-items: start;
}

.contact-left h2 {
    margin: 0 0 6px;
    font-size: clamp(1.5rem, 2.8vw, 2.2rem);
    color: #8d4747;
}

.contact-left > p {
    margin: 0 0 24px;
    font-size: 1rem;
    color: #9a6070;
}

.contact-form input {
    margin-bottom: 14px;
}

.contact-form .btn-primary {
    width: 100%;
    margin-top: 6px;
}

.contact-right h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px;
    font-size: 1.5rem;
    color: #8d4747;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 1rem;
    color: #8a5568;
}

.contact-info-item .info-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.social-icons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255,255,255,0.75);
    border: 1.5px solid #f3c9d8;
    color: #c0507a;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 3px 10px rgba(200,100,130,0.12);
}

.social-icon:hover {
    background: #ffe0ec;
    border-color: #d07890;
    transform: translateY(-2px);
}

/* ===================== PRODUCT/BLOG DETAIL ===================== */
.product-detail-wrap {
    display: grid;
    grid-template-columns: minmax(280px, 420px) 1fr;
    gap: 22px;
    align-items: start;
}

.product-detail-image {
    width: 100%;
    border-radius: 20px;
    border: 1px solid #f6dce4;
    box-shadow: 0 10px 24px rgba(201,123,145,0.18);
    object-fit: cover;
}

.blog-detail-wrap {
    display: grid;
    gap: 20px;
}

.blog-detail-image {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    border-radius: 20px;
    border: 1px solid #f6dce4;
    box-shadow: 0 10px 24px rgba(201,123,145,0.18);
}

.blog-content {
    font-size: 1.06rem;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.blog-content img,
.blog-content video,
.blog-content iframe,
.blog-content canvas,
.blog-content svg {
    max-width: 100%;
    height: auto;
}

.blog-content figure {
    margin: 0;
    max-width: 100%;
}

.blog-content table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
}

/* ===================== TABLE / ALERTS ===================== */
table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    border-bottom: 1px solid #f6dce4;
    padding: 12px;
    text-align: left;
    vertical-align: top;
}

.cart-qty-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.cart-qty-input {
    width: 92px;
    min-width: 92px;
    padding: 10px 10px;
}

.cart-qty-form .btn {
    white-space: nowrap;
    padding: 9px 14px;
    font-size: 0.95rem;
}

.cart-remove-form {
    margin: 0;
}

.cart-product-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-product-thumb {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid #f6dce4;
    background: #fff;
    flex-shrink: 0;
}

.cart-product-name {
    line-height: 1.35;
    color: #7a3a4a;
}

th {
    color: #8d4d5a;
    background: #fff5f8;
}

.alert {
    margin-bottom: 18px;
    border-radius: 14px;
    padding: 12px 14px;
    font-weight: 600;
}

.alert-success {
    background: #eaf9ef;
    color: #236540;
}

.alert-error {
    background: #fff0f0;
    color: #8a2e2e;
}

/* ===================== FOOTER ===================== */
.site-footer {
    background: linear-gradient(150deg, #fde4f0 0%, #fff4ee 60%, #fde8f8 100%);
    border-top: 2px solid rgba(255,220,235,0.6);
    padding: 42px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
}

.footer-brand-name {
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    color: #d4527a;
    font-weight: 700;
    margin: 0 0 8px;
    display: block;
}

.site-footer h4 {
    margin: 0 0 12px;
    color: #8d4747;
}

.site-footer p,
.site-footer li {
    font-size: 0.95rem;
    margin-bottom: 6px;
    color: #9a6070;
}

.site-footer a {
    color: #cc607e;
    text-decoration: none;
}

.site-footer a:hover {
    color: #a03456;
}

.copyright {
    margin: 28px 0 0;
    text-align: center;
    color: #b08090;
    font-size: 0.9rem;
    border-top: 1px solid rgba(240,190,210,0.5);
    padding-top: 20px;
}

/* ===================== ADMIN ===================== */
.admin-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 240px 1fr;
    overflow-x: clip;
}

.admin-mobile-bar {
    display: none;
}

.admin-sidebar {
    background: #fff4f7;
    border-right: 1px solid #f5d8e1;
    padding: 24px;
}

.admin-sidebar a {
    display: block;
    margin-bottom: 10px;
    text-decoration: none;
    color: #8d4f5f;
    padding: 10px 12px;
    border-radius: 12px;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
    background: #ffe6ee;
}

.admin-sidebar .admin-sidebar-action {
    margin-top: 16px;
    text-align: center;
    font-weight: 700;
    color: #fff;
    background: #c0524b;
    border: 1px solid #c0524b;
    box-shadow: 0 10px 20px rgba(192, 82, 75, 0.18);
}

.admin-sidebar .admin-sidebar-action:hover,
.admin-sidebar .admin-sidebar-action:focus {
    background: #a5413b;
    border-color: #a5413b;
    color: #fff;
}

.admin-main {
    padding: 30px;
    min-width: 0;
}

.admin-main > * {
    max-width: 100%;
}

.admin-head-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-inline-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* ===================== PAGINATION ===================== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0 8px;
}

.page-info {
    font-size: 0.9rem;
    color: #666;
}

.page-links {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 0.9rem;
    text-decoration: none;
    color: var(--primary, #c0524b);
    border: 1px solid #e0c9c8;
    background: #fff;
    transition: background 0.15s, color 0.15s;
    cursor: pointer;
}

a.page-link:hover {
    background: var(--primary, #c0524b);
    color: #fff;
    border-color: var(--primary, #c0524b);
}

.page-link.active {
    background: var(--primary, #c0524b);
    color: #fff;
    border-color: var(--primary, #c0524b);
    font-weight: 700;
    pointer-events: none;
}

.page-link.disabled {
    color: #bbb;
    border-color: #eee;
    pointer-events: none;
    background: #fafafa;
}

/* ===================== STATUS BADGE ===================== */
.status-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
}

.status-pending    { background: #fff3cd; color: #856404; }
.status-processing { background: #d1ecf1; color: #0c5460; }
.status-done       { background: #d4edda; color: #155724; }
.status-confirmed  { background: #d4edda; color: #155724; }
.status-cancelled  { background: #fde2e2; color: #9b2c2c; }
.payment-unpaid    { background: #fff0f0; color: #8a2e2e; }
.payment-pending   { background: #fff3cd; color: #856404; }
.payment-paid      { background: #d4edda; color: #155724; }
.payment-failed    { background: #f8d7da; color: #721c24; }

body.modal-open {
    overflow: hidden;
}

.order-detail-trigger {
    padding: 8px 14px;
    min-width: 72px;
}

.order-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
}

.order-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(93, 54, 67, 0.42);
    backdrop-filter: blur(3px);
}

.order-modal-dialog {
    position: relative;
    width: min(960px, calc(100vw - 32px));
    max-height: calc(100vh - 40px);
    overflow: auto;
    margin: 20px auto;
    background: #fffafc;
    border: 1px solid #f5d8e1;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(122, 58, 74, 0.22);
    padding: 24px;
}

.order-modal-actions {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin: -6px 0 10px;
    padding-bottom: 8px;
    background: linear-gradient(to bottom, #fffafc 75%, rgba(255, 250, 252, 0));
}

.order-print-btn {
    padding: 10px 16px;
}

.order-print-page-btn {
    padding: 10px 14px;
}

.order-modal-close {
    display: block;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    background: #fff1f5;
    color: #a6576f;
    font-size: 1.5rem;
    cursor: pointer;
}

.order-invoice {
    margin-top: -16px;
}

.order-print-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border: 1px dashed #e7b3c5;
    border-radius: 18px;
    background: #fff4f8;
    margin-bottom: 16px;
}

.invoice-national-header {
    text-align: center;
    margin-bottom: 12px;
}

.invoice-national-title {
    margin: 0;
    font-weight: 700;
    color: #7a3a4a;
    text-transform: uppercase;
}

.invoice-national-subtitle {
    margin: 4px 0 0;
    color: #7a3a4a;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tax-invoice-header {
    align-items: center;
}

.tax-shop-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.invoice-meta-box {
    min-width: 210px;
    padding: 10px 14px;
    border: 1px solid #e7b3c5;
    border-radius: 12px;
    background: #fff;
}

.invoice-meta-box p {
    margin: 0 0 4px;
    color: #7f4c5d;
}

.invoice-title-wrap {
    text-align: center;
    margin-bottom: 14px;
}

.invoice-title-wrap h2 {
    margin: 0;
    letter-spacing: 0.06em;
    color: #7a3a4a;
}

.invoice-title-wrap p {
    margin: 6px 0 0;
    color: #9a6070;
}

.invoice-party-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.order-shop-name {
    margin: 0;
    font-size: 1.9rem;
    color: #bc4a6d;
    font-family: 'Baloo 2', cursive;
}

.order-shop-logo {
    width: 74px;
    height: 74px;
    object-fit: contain;
    border-radius: 16px;
    border: 1px solid #efc5d5;
    background: #fff;
    margin-bottom: 8px;
    display: block;
}

.order-shop-tagline {
    margin: 6px 0 0;
    color: #8f5566;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.order-seller-info p {
    margin: 0 0 5px;
    color: #7f4c5d;
    font-size: 0.94rem;
}

.order-invoice-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.order-invoice-head h2 {
    margin: 0 0 6px;
}

.order-invoice-head p {
    margin: 0;
    color: #9a6070;
}

.order-invoice-total {
    min-width: 180px;
    text-align: right;
    padding: 14px 18px;
    border-radius: 18px;
    background: #fff1f5;
    border: 1px solid #f4d6e1;
}

.order-invoice-total span {
    display: block;
    color: #9a6070;
    margin-bottom: 6px;
}

.order-invoice-total strong {
    font-size: 1.35rem;
    color: #cf5f7e;
}

.order-invoice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.order-invoice-card {
    margin-top: 0;
}

.order-invoice-card h3 {
    margin-top: 0;
    margin-bottom: 12px;
}

.order-invoice-card p {
    margin: 0 0 8px;
}

.order-invoice-items {
    margin-top: 18px;
}

.invoice-summary-box {
    margin-top: 14px;
    margin-left: auto;
    width: min(100%, 470px);
    border: 1px solid #e7b3c5;
    border-radius: 14px;
    background: #fff;
    padding: 12px 14px;
}

.invoice-summary-box p {
    margin: 0 0 7px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: #7a3a4a;
}

.invoice-summary-box p span {
    color: #8f5566;
}

.invoice-summary-box .invoice-grand-total {
    margin-top: 6px;
    padding-top: 8px;
    border-top: 1px dashed #e0b3c2;
}

.order-signature-block {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px dashed #e5bccb;
}

.order-sign-col {
    text-align: center;
}

.order-sign-col p {
    margin: 0 0 6px;
}

.order-sign-note {
    color: #9a6070;
    font-size: 0.9rem;
}

.order-sign-name {
    margin-top: 46px;
    font-weight: 700;
    color: #7a3a4a;
}

@media print {
    body.modal-printing > * {
        display: none !important;
    }

    body.modal-printing .order-modal.print-active {
        display: block !important;
        position: static;
        inset: auto;
    }

    body.modal-printing .order-modal.print-active .order-modal-backdrop,
    body.modal-printing .order-modal.print-active .order-modal-actions {
        display: none !important;
    }

    body.modal-printing .order-modal.print-active .order-modal-dialog {
        width: 100%;
        max-height: none;
        overflow: visible;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        background: #fff;
    }

    body.modal-printing .order-modal.print-active .order-print-header {
        background: #fff;
        border: 1px solid #000;
    }

    body.modal-printing .order-modal.print-active .invoice-national-title,
    body.modal-printing .order-modal.print-active .invoice-national-subtitle,
    body.modal-printing .order-modal.print-active .invoice-title-wrap h2,
    body.modal-printing .order-modal.print-active .invoice-title-wrap p,
    body.modal-printing .order-modal.print-active .invoice-summary-box p,
    body.modal-printing .order-modal.print-active .invoice-summary-box p span {
        color: #000;
    }

    body.modal-printing .order-modal.print-active .invoice-meta-box,
    body.modal-printing .order-modal.print-active .invoice-summary-box,
    body.modal-printing .order-modal.print-active .invoice-party-grid .info-box {
        border: 1px solid #000;
    }

    body.modal-printing .order-modal.print-active .order-invoice-items table,
    body.modal-printing .order-modal.print-active .order-invoice-items th,
    body.modal-printing .order-modal.print-active .order-invoice-items td {
        border: 1px solid #000;
    }

    body.modal-printing .order-modal.print-active .order-invoice-items table {
        border-collapse: collapse;
    }

    body.modal-printing .order-modal.print-active .order-invoice-items th {
        background: #fff;
    }

    body.modal-printing .order-modal.print-active .order-shop-name {
        font-size: 24pt;
        color: #000;
    }

    body.modal-printing .order-modal.print-active .order-shop-logo {
        width: 88px;
        height: 88px;
        border: 1px solid #999;
    }

    body.modal-printing .order-modal.print-active .order-shop-tagline,
    body.modal-printing .order-modal.print-active .order-seller-info p,
    body.modal-printing .order-modal.print-active .order-invoice-head p,
    body.modal-printing .order-modal.print-active .order-sign-note {
        color: #000;
    }

    body.modal-printing .order-modal.print-active .info-box,
    body.modal-printing .order-modal.print-active .table-box {
        box-shadow: none;
        border-color: #ddd;
        background: #fff;
    }

    body.modal-printing .order-modal.print-active .status-badge {
        border: 1px solid #999;
        color: #000;
        background: #fff;
    }
}

/* ===================== ANIMATIONS ===================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 980px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 52px max(24px, 5%) 72px;
        gap: 28px;
    }

    .hero-figure {
        order: -1;
    }

    .hero-img {
        max-width: 280px;
    }

    .hero-title {
        font-size: clamp(2.4rem, 6vw, 3.5rem);
    }

    .main-nav a {
        font-size: 0.95rem;
        padding: 7px 10px;
    }

    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-mobile-bar {
        position: sticky;
        top: 0;
        z-index: 35;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 10px 14px;
        background: rgba(255, 244, 247, 0.98);
        border-bottom: 1px solid #f5d8e1;
        backdrop-filter: blur(8px);
    }

    .admin-menu-btn {
        border: 1px solid #efb9c9;
        background: #fff;
        color: #8d4f5f;
        border-radius: 10px;
        padding: 8px 12px;
        font-family: 'Baloo 2', cursive;
        font-size: 0.95rem;
        cursor: pointer;
        transition: background-color 0.2s ease, border-color 0.2s ease;
    }

    .admin-menu-btn[aria-expanded="true"] {
        background: #ffeaf1;
        border-color: #e8a8bc;
    }

    .admin-sidebar {
        position: fixed;
        top: 58px;
        left: 0;
        right: 0;
        z-index: 34;
        display: block;
        border-right: 0;
        border-bottom: 1px solid #f5d8e1;
        padding: 14px;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transform: translateY(-8px);
        pointer-events: none;
        box-shadow: 0 10px 24px rgba(163, 96, 120, 0.16);
        transition: max-height 0.3s ease, opacity 0.25s ease, transform 0.25s ease;
    }

    .admin-sidebar.open {
        max-height: calc(100vh - 58px);
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .admin-main {
        padding: 18px;
    }

    .admin-inline-form {
        flex-wrap: wrap;
        align-items: stretch;
    }

    .admin-inline-form input,
    .admin-inline-form select,
    .admin-inline-form button {
        width: 100%;
        min-width: 0;
    }

    .admin-main .table-box {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .admin-main table {
        min-width: 680px;
    }

    .contact-wrap {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .product-carousel {
        padding: 0 40px;
    }
}

@media (max-width: 760px) {
    .nav-wrap {
        border-radius: 26px;
        align-items: flex-start;
        flex-wrap: wrap;
        padding: 10px 14px;
    }

    .mobile-menu-btn {
        display: inline-flex;
        margin-left: auto;
    }

    .main-nav {
        margin-left: 0;
        width: 100%;
        order: 4;
    }

    .main-nav ul {
        display: none;
        flex-direction: column;
        align-items: stretch;
        margin-top: 8px;
        gap: 2px;
    }

    .main-nav ul.open {
        display: flex;
    }

    .nav-cart-btn {
        order: 3;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 42px 5% 60px;
    }

    .hero-figure {
        order: -1;
    }

    .hero-img {
        aspect-ratio: 1 / 1;
    }

    .product-detail-wrap {
        grid-template-columns: 1fr;
    }

    .section-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .filter-bar {
        grid-template-columns: 1fr;
    }

    .payment-methods {
        grid-template-columns: 1fr;
    }

    .order-modal-dialog {
        width: min(100vw - 20px, 960px);
        padding: 18px;
    }

    .order-invoice-head,
    .order-invoice-grid,
    .order-print-header,
    .order-signature-block,
    .invoice-party-grid {
        grid-template-columns: 1fr;
        display: grid;
    }

    .order-invoice-head {
        gap: 12px;
    }

    .order-invoice-total {
        text-align: left;
        min-width: 0;
    }

    .admin-main .table-box {
        overflow: visible;
        padding: 14px;
    }

    .admin-main .table-box table,
    .admin-main .table-box thead,
    .admin-main .table-box tbody,
    .admin-main .table-box tr,
    .admin-main .table-box td {
        display: block;
        width: 100%;
    }

    .admin-main .table-box table {
        min-width: 0;
    }

    .admin-main .table-box thead {
        display: none;
    }

    .admin-main .table-box tr {
        border: 1px solid #f6dce4;
        border-radius: 16px;
        padding: 12px;
        margin-bottom: 12px;
        background: rgba(255, 255, 255, 0.92);
        box-shadow: 0 4px 14px rgba(201, 123, 145, 0.12);
    }

    .admin-main .table-box td {
        border: 0;
        padding: 6px 0;
    }

    .admin-main .table-box td::before {
        content: attr(data-label);
        display: block;
        font-weight: 700;
        color: #8d4d5a;
        margin-bottom: 6px;
    }

    .captcha-box {
        flex-direction: column;
        align-items: stretch;
    }

    .table-box {
        overflow-x: auto;
    }

    .cart-table {
        width: 100%;
    }

    .cart-table thead {
        display: none;
    }

    .cart-table,
    .cart-table tbody,
    .cart-table tr,
    .cart-table td {
        display: block;
        width: 100%;
    }

    .cart-table tr {
        border: 1px solid #f6dce4;
        border-radius: 16px;
        padding: 12px;
        margin-bottom: 12px;
        background: rgba(255, 255, 255, 0.92);
        box-shadow: 0 4px 14px rgba(201, 123, 145, 0.12);
    }

    .cart-table td {
        border: 0;
        padding: 6px 0;
    }

    .cart-table td::before {
        content: attr(data-label);
        display: block;
        font-weight: 700;
        color: #8d4d5a;
        margin-bottom: 6px;
    }

    .cart-product-info {
        gap: 12px;
    }

    .cart-product-thumb {
        width: 54px;
        height: 54px;
        border-radius: 14px;
    }

    .cart-qty-form {
        min-width: 0;
        width: 100%;
    }

    .cart-qty-input {
        width: 100%;
        min-width: 70px;
        padding: 10px 8px;
    }

    .cart-qty-form .btn {
        min-width: 102px;
        padding: 10px 12px;
        font-size: 0.92rem;
    }

    .cart-remove-form .btn {
        min-width: 88px;
    }

    .product-carousel {
        padding: 0 44px;
    }

    .carousel-btn {
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
    }

    .category-tabs {
        gap: 8px;
    }

    .cat-tab {
        padding: 6px 14px;
        font-size: 0.9rem;
    }

    .contact-section {
        padding: 48px max(20px, 5%) 54px;
    }

    .brand-logo {
        width: 46px;
        height: 46px;
    }

    .brand-name {
        font-size: 1.35rem;
    }

    .filter-bar .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .nav-wrap {
        gap: 8px;
        padding: 8px 12px;
    }

    .brand-logo {
        width: 40px;
        height: 40px;
    }

    .brand-name {
        font-size: 1.18rem;
    }

    .brand-sub {
        font-size: 0.76rem;
    }

    .section-head {
        margin-top: 32px;
    }

    .form-box,
    .table-box,
    .info-box {
        padding: 16px;
    }

    .hero {
        padding: 36px 5% 50px;
    }

    .hero-title {
        font-size: clamp(1.9rem, 8vw, 2.4rem);
    }

    .card-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .card-actions form {
        width: 100%;
    }
}

/* Touch devices: disable sticky hover states */
@media (hover: none) and (pointer: coarse) {
    .card:hover {
        transform: none;
        box-shadow: 0 6px 22px rgba(201, 123, 145, 0.15);
    }

    .blog-card:hover {
        transform: none;
        box-shadow: 0 5px 18px rgba(200, 120, 145, 0.12);
    }

    .btn:hover {
        transform: none;
        box-shadow: none;
    }

    .nav-cart-btn:hover {
        transform: none;
    }

    .social-icon:hover {
        transform: none;
    }
}
