html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.shop-header {
    width: 1200px;
    margin: 0 auto;
    height: 135px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.shop-logo {
    color: #073fa3;
    font-size: 28px;
    font-weight: 700;
    font-style: italic;
}

.shop-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #0072c6;
    font-size: 13px;
    line-height: 1.15;
}

    .shop-feature span {
        width: 30px;
        height: 30px;
        border: 2px solid #0072c6;
        display: grid;
        place-items: center;
    }

.shop-hotline {
    color: #006dcc;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
}

.shop-nav {
    width: 1200px;
    margin: 0 auto;
    height: 45px;
    background: #117cc1;
    display: flex;
    align-items: center;
    gap: 38px;
    padding: 0 6px;
}

.shop-category-button {
    width: 240px;
    height: 45px;
    background: #f53735;
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    padding-left: 35px;
    border-radius: 6px 6px 0 0;
}

.shop-search {
    flex: 1;
    display: flex;
}

    .shop-search input {
        width: 100%;
        height: 30px;
        border: 1px solid #ccc;
        padding: 0 12px;
        border-radius: 4px;
    }

    .shop-search button {
        width: 35px;
        margin-left: 10px;
        border: 0;
        background: #f53735;
        color: #fff;
        border-radius: 4px;
    }

.shop-cart {
    background: #f53735;
    color: #fff;
    padding: 8px 15px;
    font-size: 14px;
    border-radius: 3px;
}

.shop-hero {
    width: 1200px;
    margin: 10px auto 35px;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 10px;
}

.shop-sidebar {
    background: #f7ba18;
}

    .shop-sidebar a {
        display: block;
        padding: 11px;
        border-bottom: 1px solid #fff3a0;
        color: #111;
        font-weight: 700;
        font-size: 14px;
        text-decoration: none;
    }
    .shop-sidebar a {
        position: relative;
        transition: background-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
    }

        .shop-sidebar a:hover {
            background-color: #f53735;
            color: #fff;
            padding-left: 22px;
        }

            .shop-sidebar a:hover::before {
                content: "›";
                position: absolute;
                left: 9px;
                top: 50%;
                transform: translateY(-50%);
                font-size: 18px;
                font-weight: bold;
            }

.shop-banners {
    display: grid;
    grid-template-columns: 1fr 342px;
    gap: 10px;
}

.main-promo {
    height: 300px;
    background: linear-gradient(135deg, #7d1000, #f2a900, #8b0000);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.promo-title {
    font-size: 46px;
    line-height: 1;
    font-weight: 900;
    text-align: center;
    text-shadow: 3px 3px 0 #9b1d00;
}

.promo-steps {
    margin-top: 30px;
    display: flex;
    gap: 18px;
    font-weight: 700;
}

    .promo-steps span {
        background: #fff;
        color: #c62118;
        padding: 10px 14px;
        border-radius: 4px;
    }

.promo-side {
    display: grid;
    gap: 10px;
}

.video-box,
.small-ad {
    height: 145px;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 800;
}

.video-box {
    background: #333;
    font-size: 54px;
}

.small-ad {
    background: #e44125;
    font-size: 24px;
}

.shop-section {
    width: 1200px;
    margin: 0 auto 35px;
}

.shop-section-title {
    height: 36px;
    background: #117cc1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 3px 8px #ccc;
}

    .shop-section-title h2 {
        background: #f53735;
        color: #fff;
        height: 36px;
        line-height: 36px;
        padding: 0 16px;
        margin: 0;
        font-size: 17px;
        border-radius: 6px 6px 0 0;
    }

.shop-tabs span {
    padding: 4px 7px;
    border-radius: 3px;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.shop-tabs span:hover {
        background-color: #f53735;
}

.shop-subtitle {
    margin: 18px 0 10px;
    font-size: 14px;
}

.shop-product-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.shop-product-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.shop-product-card:hover {
    transform: translateY(-4px);
}

.shop-product-card:hover h3 {
    color: #f53735;
}
    .shop-product-card img {
        width: 100%;
        height: 180px;
        object-fit: cover;
        background: #f5f5f5;
    }

    .shop-product-card h3 {
        font-size: 14px;
        line-height: 1.45;
        min-height: 42px;
        margin: 8px 0;
        font-weight: 600;
    }

.shop-old-price {
    color: #333;
    text-decoration: line-through;
    font-size: 14px;
}

.shop-price {
    color: #b51f1f;
    font-size: 18px;
    font-weight: 800;
}

.shop-discount {
    position: absolute;
    right: 0;
    bottom: 24px;
    background: #f53735;
    color: #fff;
    padding: 5px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
}

.main-banner {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.promo-side img {
    width: 100%;
    height: 145px;
    object-fit: cover;
}

.shop-logo img {
    width: 145px;
    height: auto;
    display: block;
}

.main-banner {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.promo-side img {
    width: 100%;
    height: 145px;
    object-fit: cover;
}

.main-banner-slider {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.banner-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 300px;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease;
}

    .banner-slide.active {
        opacity: 1;
    }

.shop-variants {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    margin-bottom: 8px;
}

.shop-variant-item {
    display: inline-block;
    border: 1px solid #ddd;
    padding: 4px 8px;
    font-size: 12px;
    background: #fff;
    color: #333;
}

.shop-product-card h3 a {
    color: inherit;
    text-decoration: none;
}

.product-detail {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 32px;
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 16px;
}

.product-detail-info h1 {
    font-size: 28px;
    margin-bottom: 16px;
}

.product-detail-old-price {
    color: #888;
    text-decoration: line-through;
    margin-bottom: 6px;
}

.product-detail-price {
    color: #d71920;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 20px;
}

.product-detail-image img {
    width: 100%;
    max-height: 380px;
    object-fit: contain;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fff;
}

.product-image-carousel {
    display: grid;
    grid-template-columns: 36px 1fr 36px;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
}

.product-thumbnail-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

    .product-thumbnail-list::-webkit-scrollbar {
        display: none;
    }

.product-thumbnail {
    flex: 0 0 76px;
    width: 76px;
    height: 76px;
    padding: 4px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
}

.product-thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: contain;
}

    .product-thumbnail.active {
        border-color: #d71920;
    }

.image-scroll-button {
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}

.product-detail-info h1 {
    font-size: 28px;
    margin-bottom: 16px;
}

.product-detail-old-price {
    color: #888;
    text-decoration: line-through;
    margin-bottom: 6px;
}

.product-detail-price {
    color: #d71920;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 20px;
}

.product-detail-description {
    margin: 20px 0;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

    .product-detail-description h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .product-detail-description p {
        line-height: 1.7;
        color: #333;
        white-space: pre-line;
    }

.product-detail-variants {
    margin-bottom: 24px;
}

.product-variant-button {
    margin: 0 8px 8px 0;
    padding: 8px 14px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
}

    .product-variant-button.active {
        border-color: #d71920;
        color: #d71920;
        font-weight: 700;
    }

.add-to-cart-button {
    padding: 12px 22px;
    border: none;
    background: #d71920;
    color: white;
    font-weight: 700;
    cursor: pointer;
}

.back-to-shop {
    display: inline-block;
    margin-left: 16px;
    color: #333;
}

@media (max-width: 768px) {
    .product-detail {
        display: block;
    }

    .product-detail-image > img {
        max-height: 300px;
    }
}

.add-to-cart-button {
    padding: 12px 22px;
    border: none;
    background: #d71920;
    color: white;
    font-weight: 700;
    cursor: pointer;
}

.back-to-shop {
    display: inline-block;
    margin-left: 16px;
    color: #333;
}

.product-detail-description {
    margin: 20px 0;
    line-height: 1.7;
    color: #333;
    white-space: pre-line;
}

    .product-detail-description h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .product-detail-description p {
        line-height: 1.7;
        color: #333;
        white-space: pre-line;
    }

.product-detail-variants-under-image {
    margin-top: 18px;
    margin-bottom: 0;
}

    .product-detail-variants-under-image h3 {
        font-size: 17px;
        margin-bottom: 10px;
    }

.shop-subcategories {
    padding-left: 16px;
}

    .shop-subcategories a {
        font-size: 13px;
        color: #555;
    }

.shop-sidebar {
    width: 260px;
}

    .shop-sidebar > a {
        display: block;
        padding: 10px 15px;
        text-decoration: none;
    }

.shop-subcategories {
    display: none;
    padding-left: 20px;
}

    .shop-subcategories a {
        display: block;
        padding: 8px 10px;
    }

.category-item {
    position: relative;
}

.shop-subcategories {
    display: none;
}

.category-item:hover .shop-subcategories {
    display: block;
}
.product-cart-form {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.product-cart-form input[type="number"] {
    width: 86px;
    padding: 10px;
    border: 1px solid #ddd;
}

.cart-page,
.checkout-page,
.order-success {
    max-width: 1100px;
    margin: 36px auto;
}

.cart-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.cart-empty,
.checkout-form,
.checkout-summary,
.order-success-box {
    border: 1px solid #eee;
    padding: 22px;
    background: #fff;
}

.cart-product {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cart-product img,
.checkout-item img {
    width: 74px;
    height: 74px;
    object-fit: contain;
    border: 1px solid #eee;
    background: #fff;
}

.cart-product-name,
.checkout-item-name {
    font-weight: 700;
}

.cart-product-variant,
.checkout-item-meta {
    color: #666;
    font-size: 13px;
    margin-top: 4px;
}

.cart-quantity-form {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.cart-quantity-form input {
    width: 74px;
    padding: 6px;
    border: 1px solid #ddd;
}

.cart-quantity-form button {
    border: 1px solid #ddd;
    background: #fff;
    padding: 6px 10px;
}

.cart-summary {
    margin-top: 22px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 24px;
}

.cart-summary div,
.checkout-total,
.order-success-box div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-summary span,
.checkout-total span,
.order-success-box span {
    color: #666;
    font-size: 13px;
}

.cart-summary strong,
.checkout-total strong {
    color: #d71920;
    font-size: 22px;
}

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 28px;
    align-items: start;
}

.checkout-form h2,
.checkout-summary h2,
.order-success h2 {
    font-size: 20px;
    margin-bottom: 18px;
}

.checkout-form label {
    display: block;
    margin: 14px 0 6px;
    font-weight: 600;
}

.checkout-payment {
    margin-top: 18px;
    padding: 12px;
    border: 1px solid #d71920;
    color: #d71920;
    font-weight: 700;
}

.checkout-item {
    display: grid;
    grid-template-columns: 62px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.checkout-item img {
    width: 62px;
    height: 62px;
}

.checkout-total {
    margin: 18px 0;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.order-success-box {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin: 24px 0;
}

.success-item {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

@media (max-width: 768px) {
    .cart-header-row,
    .cart-summary,
    .success-item {
        align-items: stretch;
        flex-direction: column;
    }

    .checkout-layout,
    .order-success-box {
        grid-template-columns: 1fr;
    }
}

.checkout-address-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

@media (max-width: 768px) {
    .checkout-address-grid {
        grid-template-columns: 1fr;
    }
}

.admin-orders-page,
.admin-order-detail {
    max-width: 1180px;
    margin: 32px auto;
}

.admin-orders-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
}

.admin-orders-header h1 {
    margin: 0 0 4px;
    font-size: 28px;
}

.admin-orders-header p {
    margin: 0;
    color: #666;
}

.admin-orders-filter {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 18px;
}

.admin-orders-filter select {
    max-width: 260px;
}

.order-status {
    display: inline-block;
    padding: 4px 8px;
    border: 1px solid #ddd;
    background: #fff;
    font-weight: 600;
}

.admin-order-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.admin-order-panel {
    border: 1px solid #eee;
    background: #fff;
    padding: 20px;
    margin-bottom: 18px;
}

.admin-order-panel h2 {
    font-size: 20px;
    margin-bottom: 16px;
}

.admin-order-panel dl {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 8px 14px;
    margin: 0;
}

.admin-order-panel dt {
    color: #666;
    font-weight: 600;
}

.admin-order-panel dd {
    margin: 0;
}

.admin-order-actions,
.spx-tracking-form {
    display: flex;
    align-items: end;
    gap: 12px;
    flex-wrap: wrap;
}

.spx-tracking-form {
    margin-top: 18px;
}

.spx-tracking-form input {
    min-width: 220px;
}

.order-event-item {
    border: 1px solid #eee;
    padding: 12px;
    margin-bottom: 10px;
}

.order-event-item summary {
    display: flex;
    gap: 14px;
    align-items: center;
    cursor: pointer;
}

.order-event-item pre {
    margin: 12px 0 0;
    padding: 12px;
    background: #f8f9fa;
    white-space: pre-wrap;
}

@media (max-width: 768px) {
    .admin-orders-header,
    .admin-order-actions,
    .spx-tracking-form {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-order-grid {
        grid-template-columns: 1fr;
    }
}

/* Moonmax storefront refresh */
:root {
    --moonmax-blue: #0878c9;
    --moonmax-blue-dark: #075a9a;
    --moonmax-red: #e73135;
    --moonmax-yellow: #ffc629;
    --moonmax-ink: #18202a;
    --moonmax-muted: #687586;
    --moonmax-line: #e6ebf2;
    --moonmax-soft: #f5f8fb;
}

body {
    margin: 0;
    color: var(--moonmax-ink);
    background: #f4f7fa;
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: inherit;
}

.site-wrap {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff;
    box-shadow: 0 8px 28px rgba(8, 41, 79, 0.08);
}

.site-topbar {
    background: var(--moonmax-blue-dark);
    color: #fff;
    font-size: 13px;
}

.site-topbar .site-wrap {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.site-nav {
    padding: 0;
}

.site-nav-inner {
    min-height: 74px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-brand img {
    width: 150px;
    height: auto;
    display: block;
}

.site-menu {
    justify-content: space-between;
    gap: 20px;
}

.site-menu-links,
.site-account-links {
    align-items: center;
    gap: 6px;
}

.site-menu .nav-link {
    color: var(--moonmax-ink);
    font-weight: 700;
    padding: 10px 12px;
}

.site-menu .nav-link:hover {
    color: var(--moonmax-blue);
}

.site-register-link {
    border: 1px solid var(--moonmax-blue);
    border-radius: 8px;
    color: var(--moonmax-blue) !important;
}

.site-content {
    padding: 32px 0 48px;
}

.site-footer {
    background: #102438;
    color: #dfeaf5;
    padding: 28px 0;
    margin-top: 48px;
}

.site-footer .site-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.shop-main {
    padding-bottom: 48px;
}

.shop-hero-modern {
    background:
        linear-gradient(135deg, rgba(8, 120, 201, 0.12), rgba(255, 198, 41, 0.18)),
        #f4f8fc;
    padding: 22px 0 28px;
}

.shop-hero-grid {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
}

.shop-category-panel {
    background: #fff;
    border: 1px solid var(--moonmax-line);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(27, 55, 87, 0.08);
}

.shop-category-heading {
    background: var(--moonmax-red);
    color: #fff;
    font-weight: 800;
    text-transform: uppercase;
    padding: 14px 16px;
    font-size: 14px;
}

.category-item {
    position: relative;
}

.shop-category-panel a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 16px;
    color: var(--moonmax-ink);
    text-decoration: none;
    font-weight: 700;
    border-bottom: 1px solid var(--moonmax-line);
    transition: color 0.18s ease, background-color 0.18s ease, padding-left 0.18s ease;
}

.shop-category-panel a:hover {
    color: var(--moonmax-blue);
    background: #f7fbff;
    padding-left: 20px;
}

.shop-subcategories {
    display: none;
    padding: 4px 0;
    background: #fbfdff;
}

.category-item:hover .shop-subcategories {
    display: block;
}

.shop-subcategories a {
    padding: 9px 18px 9px 28px;
    color: var(--moonmax-muted);
    font-size: 13px;
    font-weight: 600;
}

.shop-hero-content {
    min-width: 0;
}

.shop-search-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    margin-bottom: 14px;
}

.shop-search-bar form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 112px;
    gap: 8px;
    background: #fff;
    border: 2px solid var(--moonmax-blue);
    border-radius: 8px;
    padding: 5px;
}

.shop-search-bar input {
    border: 0;
    outline: 0;
    padding: 10px 12px;
    min-width: 0;
}

.shop-search-bar button,
.shop-cart-link,
.shop-card-actions button,
.shop-primary-action {
    border: 0;
    border-radius: 6px;
    background: var(--moonmax-red);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

.shop-search-bar button {
    min-height: 42px;
}

.shop-cart-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 112px;
    padding: 0 16px;
}

.shop-banner-stage {
    position: relative;
    min-height: 370px;
    overflow: hidden;
    border-radius: 8px;
    background: #0d385f;
    box-shadow: 0 16px 40px rgba(18, 54, 89, 0.16);
}

.main-banner-slider {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.banner-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.banner-slide.active {
    opacity: 1;
}

.shop-banner-stage::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(9, 35, 56, 0.86), rgba(9, 35, 56, 0.45), rgba(9, 35, 56, 0.05));
}

.shop-hero-copy {
    position: relative;
    z-index: 2;
    max-width: 520px;
    padding: 44px;
    color: #fff;
}

.shop-hero-copy span,
.shop-section-heading span {
    color: var(--moonmax-yellow);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 13px;
}

.shop-hero-copy h1 {
    margin: 12px 0;
    font-size: 42px;
    line-height: 1.08;
    font-weight: 900;
}

.shop-hero-copy p {
    color: #e5eef7;
    font-size: 16px;
    line-height: 1.65;
    margin: 0 0 24px;
}

.shop-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.shop-primary-action,
.shop-secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
}

.shop-secondary-action {
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 6px;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

.shop-trust-band {
    background: #fff;
    border-top: 1px solid var(--moonmax-line);
    border-bottom: 1px solid var(--moonmax-line);
}

.shop-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
}

.shop-trust-grid div {
    padding: 18px 16px;
}

.shop-trust-grid strong,
.shop-trust-grid span {
    display: block;
}

.shop-trust-grid strong {
    color: var(--moonmax-blue-dark);
    font-size: 15px;
}

.shop-trust-grid span {
    color: var(--moonmax-muted);
    margin-top: 4px;
    font-size: 13px;
}

.shop-featured-section,
.shop-section,
.shop-search-result {
    margin-top: 34px;
}

.shop-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.shop-section-heading h2 {
    margin: 5px 0 0;
    font-size: 26px;
    font-weight: 900;
}

.shop-section-heading a {
    color: var(--moonmax-blue);
    font-weight: 800;
    text-decoration: none;
}

.shop-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.category-tab {
    min-height: 34px;
    border: 1px solid var(--moonmax-line);
    background: #fff;
    border-radius: 999px;
    padding: 0 13px;
    color: var(--moonmax-muted);
    font-weight: 700;
}

.category-tab.active,
.category-tab:hover {
    border-color: var(--moonmax-blue);
    color: #fff;
    background: var(--moonmax-blue);
}

.shop-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.shop-product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
    border: 1px solid var(--moonmax-line);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(20, 52, 83, 0.07);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.shop-product-card:hover {
    transform: translateY(-3px);
    border-color: rgba(8, 120, 201, 0.35);
    box-shadow: 0 16px 36px rgba(20, 52, 83, 0.12);
}

.shop-product-image {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    background: #f8fafc;
    overflow: hidden;
}

.shop-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 14px;
    transition: transform 0.2s ease;
}

.shop-product-card:hover .shop-product-image img {
    transform: scale(1.04);
}

.shop-discount {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--moonmax-red);
    color: #fff;
    border-radius: 4px;
    padding: 5px 8px;
    font-size: 12px;
    font-weight: 900;
}

.shop-product-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 14px;
}

.shop-product-meta {
    color: var(--moonmax-blue);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    min-height: 18px;
}

.shop-product-card h3 {
    margin: 6px 0 10px;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 800;
    min-height: 64px;
}

.shop-product-card h3 a {
    color: var(--moonmax-ink);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shop-product-card h3 a:hover {
    color: var(--moonmax-blue);
}

.shop-price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.shop-price {
    color: var(--moonmax-red);
    font-size: 19px;
    font-weight: 900;
}

.shop-old-price {
    color: #8a96a3;
    text-decoration: line-through;
    font-size: 13px;
}

.shop-variants {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 12px 0;
    min-height: 28px;
}

.shop-variant-item {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-height: 26px;
    border: 1px solid var(--moonmax-line);
    border-radius: 999px;
    padding: 0 9px;
    color: var(--moonmax-muted);
    background: #f8fafc;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shop-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: auto;
}

.shop-card-actions form {
    margin: 0;
}

.shop-detail-link,
.shop-card-actions button {
    width: 100%;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-weight: 800;
    text-decoration: none;
}

.shop-detail-link {
    border: 1px solid var(--moonmax-line);
    color: var(--moonmax-blue);
    background: #fff;
}

.shop-search-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #fff;
    border: 1px solid var(--moonmax-line);
    border-radius: 8px;
    padding: 18px;
}

.shop-search-result h2 {
    margin: 0;
    font-size: 20px;
}

.shop-empty-text {
    display: block;
    padding: 16px;
    color: var(--moonmax-muted);
}

@media (max-width: 992px) {
    .site-topbar .site-wrap {
        flex-wrap: wrap;
        padding: 8px 0;
    }

    .site-menu {
        padding: 12px 0 18px;
    }

    .site-menu-links,
    .site-account-links {
        align-items: stretch;
    }

    .shop-hero-grid {
        grid-template-columns: 1fr;
    }

    .shop-category-panel {
        order: 2;
    }

    .shop-product-grid,
    .shop-trust-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .shop-banner-stage {
        min-height: 330px;
    }
}

@media (max-width: 640px) {
    .site-wrap {
        width: min(100% - 24px, 1180px);
    }

    .site-topbar span {
        display: none;
    }

    .site-footer .site-wrap,
    .shop-section-heading,
    .shop-search-result {
        align-items: stretch;
        flex-direction: column;
    }

    .shop-search-bar {
        grid-template-columns: 1fr;
    }

    .shop-search-bar form {
        grid-template-columns: 1fr;
    }

    .shop-cart-link {
        min-height: 42px;
    }

    .shop-banner-stage {
        min-height: 420px;
    }

    .shop-banner-stage::after {
        background: linear-gradient(180deg, rgba(9, 35, 56, 0.9), rgba(9, 35, 56, 0.52));
    }

    .shop-hero-copy {
        padding: 28px;
    }

    .shop-hero-copy h1 {
        font-size: 31px;
    }

    .shop-trust-grid,
    .shop-product-grid {
        grid-template-columns: 1fr;
    }

    .shop-product-card h3 {
        min-height: auto;
    }
}

/* Keep product and banner images unobstructed */
.shop-banner-stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    min-height: 360px;
    background: #fff;
}

.shop-banner-stage::after {
    display: none;
}

.shop-banner-stage .main-banner-slider {
    position: relative;
    inset: auto;
    height: 100%;
    min-height: 360px;
}

.shop-banner-stage .banner-slide {
    object-fit: contain;
    background: #eef5fb;
}

.shop-hero-copy {
    max-width: none;
    padding: 34px 30px;
    color: #fff;
    background: linear-gradient(180deg, #075a9a, #0c3f69);
}

.shop-hero-copy h1 {
    font-size: 31px;
}

.shop-hero-copy p {
    font-size: 15px;
}

.shop-product-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 24px;
}

.shop-product-topline .shop-product-meta {
    min-width: 0;
}

.shop-product-topline .shop-discount,
.shop-product-body .shop-discount {
    position: static;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    border-radius: 999px;
    padding: 0 8px;
    background: #e73135;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.shop-product-image img {
    padding: 10px;
}

@media (max-width: 992px) {
    .shop-banner-stage {
        grid-template-columns: 1fr;
    }

    .shop-banner-stage .main-banner-slider {
        min-height: 300px;
    }
}

@media (max-width: 640px) {
    .shop-banner-stage {
        min-height: auto;
    }

    .shop-banner-stage .main-banner-slider {
        min-height: 240px;
    }

    .shop-hero-copy {
        padding: 24px;
    }

    .shop-hero-copy h1 {
        font-size: 26px;
    }
}
/* Store footer information */
.footer-service-band {
    margin-top: 52px;
    background: #ffffff;
    border-top: 1px solid var(--moonmax-line);
    border-bottom: 1px solid var(--moonmax-line);
}

.footer-service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
}

.footer-service-grid div {
    padding: 20px 18px;
}

.footer-service-grid strong,
.footer-service-grid span {
    display: block;
}

.footer-service-grid strong {
    color: var(--moonmax-blue-dark);
    font-size: 16px;
}

.footer-service-grid span {
    margin-top: 5px;
    color: var(--moonmax-muted);
    font-size: 13px;
    line-height: 1.55;
}

.site-footer {
    padding: 0;
}

.site-footer .site-wrap {
    display: block;
}

.footer-main-grid {
    display: grid !important;
    grid-template-columns: 1.45fr 1fr 1fr 1.25fr;
    gap: 34px;
    padding: 42px 0 30px;
}

.footer-brand-block img {
    width: 142px;
    height: auto;
    display: block;
    margin-bottom: 16px;
}

.footer-brand-block p {
    color: #dce8f4;
    line-height: 1.7;
    margin: 0 0 18px;
}

.footer-contact-list {
    display: grid;
    gap: 8px;
    color: #b9c9d9;
    font-size: 14px;
}

.footer-column h2 {
    color: #ffffff;
    font-size: 17px;
    font-weight: 900;
    margin: 0 0 16px;
}

.footer-column a {
    display: block;
    color: #c8d7e6;
    text-decoration: none;
    margin-bottom: 11px;
    line-height: 1.5;
}

.footer-column a:hover {
    color: #ffffff;
}

.footer-news-list a {
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-news-list strong,
.footer-news-list span {
    display: block;
}

.footer-news-list strong {
    color: #ffffff;
    font-size: 14px;
}

.footer-news-list span {
    margin-top: 4px;
    color: #b9c9d9;
    font-size: 13px;
}

.footer-bottom {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 0 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #aebfd0;
    font-size: 13px;
}

@media (max-width: 992px) {
    .footer-main-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-service-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .footer-main-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}
/* Stronger visual separation between product groups */
.shop-featured-section,
.shop-section {
    position: relative;
    margin-top: 54px;
    padding: 26px;
    border: 1px solid rgba(8, 120, 201, 0.14);
    border-radius: 10px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.96)),
        #ffffff;
    box-shadow: 0 16px 38px rgba(20, 52, 83, 0.08);
}

.shop-section + .shop-section {
    margin-top: 62px;
}

.shop-featured-section::before,
.shop-section::before {
    content: "";
    position: absolute;
    left: 26px;
    right: 26px;
    top: -18px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(8, 120, 201, 0.42), rgba(231, 49, 53, 0.35), transparent);
}

.shop-section:nth-of-type(odd) {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 249, 234, 0.74)),
        #ffffff;
    border-color: rgba(255, 198, 41, 0.38);
}

.shop-section:nth-of-type(even) {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(236, 247, 255, 0.82)),
        #ffffff;
}

.shop-section-heading {
    align-items: center;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(8, 120, 201, 0.12);
}

.shop-section-heading > div:first-child {
    position: relative;
    padding-left: 14px;
}

.shop-section-heading > div:first-child::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 4px;
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--moonmax-red), var(--moonmax-blue));
}

.shop-section-heading span {
    color: var(--moonmax-blue-dark);
}

.shop-section-heading h2 {
    font-size: 28px;
}

.shop-tabs {
    max-width: 58%;
}

.shop-product-grid {
    padding-top: 2px;
}

@media (max-width: 992px) {
    .shop-featured-section,
    .shop-section {
        padding: 20px;
        margin-top: 42px;
    }

    .shop-tabs {
        max-width: none;
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .shop-featured-section,
    .shop-section {
        width: min(100% - 20px, 1180px);
        padding: 16px;
        border-radius: 8px;
    }

    .shop-featured-section::before,
    .shop-section::before {
        left: 16px;
        right: 16px;
    }

    .shop-section-heading {
        gap: 14px;
        padding-bottom: 14px;
    }
}
/* Customer privacy policy page */
.policy-page {
    max-width: 980px;
    margin: 0 auto;
}

.policy-hero {
    padding: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, #075a9a, #0878c9);
    color: #fff;
    box-shadow: 0 16px 38px rgba(20, 52, 83, 0.14);
}

.policy-hero span {
    display: inline-block;
    margin-bottom: 10px;
    color: #ffc629;
    font-weight: 900;
    text-transform: uppercase;
}

.policy-hero h1 {
    margin: 0 0 12px;
    font-size: 34px;
    font-weight: 900;
}

.policy-hero p {
    max-width: 760px;
    margin: 0;
    color: #e9f4ff;
    line-height: 1.7;
}

.policy-content {
    display: grid;
    gap: 18px;
    margin-top: 24px;
}

.policy-section {
    padding: 24px;
    border: 1px solid var(--moonmax-line);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(20, 52, 83, 0.06);
}

.policy-section h2 {
    margin: 0 0 12px;
    color: var(--moonmax-blue-dark);
    font-size: 21px;
    font-weight: 900;
}

.policy-section p {
    margin: 0 0 12px;
    color: #3c4652;
    line-height: 1.75;
}

.policy-section ul {
    margin: 0;
    padding-left: 20px;
    color: #3c4652;
    line-height: 1.8;
}

.policy-contact-box {
    display: grid;
    gap: 6px;
    margin-top: 14px;
    padding: 16px;
    border-radius: 8px;
    background: #f4f9fe;
    color: #243242;
}

.policy-contact-box strong {
    color: var(--moonmax-blue-dark);
}

.policy-note {
    padding: 18px 22px;
    border-left: 4px solid var(--moonmax-red);
    border-radius: 8px;
    background: #fff8e6;
    color: #4b3a16;
    line-height: 1.7;
}

@media (max-width: 640px) {
    .policy-hero,
    .policy-section {
        padding: 20px;
    }

    .policy-hero h1 {
        font-size: 27px;
    }
}
/* Align footer column headings */
.footer-main-grid {
    align-items: start;
}

.footer-brand-title,
.footer-column h2 {
    min-height: 24px;
    display: flex;
    align-items: center;
}

.footer-brand-title {
    color: #ffffff;
    font-size: 17px;
    font-weight: 900;
    margin: 0 0 16px;
}

.footer-brand-block p {
    margin-top: 0;
}

@media (max-width: 640px) {
    .footer-brand-title,
    .footer-column h2 {
        min-height: auto;
    }
}
/* Align footer column headings */
.footer-main-grid {
    align-items: start;
}

.footer-brand-title,
.footer-column h2 {
    min-height: 24px;
    display: flex;
    align-items: center;
}

.footer-brand-title {
    color: #ffffff;
    font-size: 17px;
    font-weight: 900;
    margin: 0 0 16px;
}

.footer-brand-block p {
    margin-top: 0;
}

@media (max-width: 640px) {
    .footer-brand-title,
    .footer-column h2 {
        min-height: auto;
    }
}

/* Force footer headings to the same top line */
.site-footer .footer-main-grid {
    align-items: start !important;
}

.site-footer .footer-main-grid > .footer-brand-block,
.site-footer .footer-main-grid > .footer-column {
    align-self: start !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    display: flex;
    flex-direction: column;
}

.site-footer .footer-brand-title,
.site-footer .footer-column > h2 {
    display: block !important;
    height: 24px;
    min-height: 24px;
    line-height: 24px;
    margin: 0 0 16px !important;
    padding: 0 !important;
    transform: none !important;
}

.site-footer .footer-column:nth-child(3) {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.footer-owner-info span,
.footer-owner-info a {
    overflow-wrap: anywhere;
    word-break: normal;
}

.footer-owner-info a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 640px) {
    .footer-owner-info {
        gap: 10px;
    }

    .footer-owner-info span {
        line-height: 1.55;
    }
}

.blog-header,
.admin-page-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin: 28px 0 24px;
}

.blog-header h1,
.admin-page-heading h1,
.blog-detail h1 {
    margin: 0;
    color: #111827;
    font-weight: 800;
}

.blog-header p,
.admin-page-heading p,
.blog-detail-header p {
    max-width: 720px;
    margin: 8px 0 0;
    color: #526070;
}

.section-eyebrow {
    margin: 0 0 6px !important;
    color: #0f766e !important;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.blog-search {
    display: flex;
    gap: 8px;
    min-width: min(420px, 100%);
}

.blog-category-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.blog-category-row a,
.blog-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 12px;
    border: 1px solid #d5dde5;
    border-radius: 999px;
    color: #374151;
    text-decoration: none;
    background: #ffffff;
}

.blog-category-row a.active,
.blog-category-row a:hover {
    border-color: #0f766e;
    color: #0f766e;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 42px;
}

.blog-card {
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
}

.blog-card-image {
    display: block;
    aspect-ratio: 16 / 10;
    background: #eef2f7;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-body {
    padding: 18px;
}

.blog-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
    color: #64748b;
    font-size: 13px;
}

.blog-card h2 {
    margin: 0;
    font-size: 20px;
    line-height: 1.35;
}

.blog-card h2 a {
    color: #111827;
    text-decoration: none;
}

.blog-card h2 a:hover,
.blog-back-link:hover {
    color: #0f766e;
}

.blog-card p {
    margin: 10px 0 0;
    color: #526070;
}

.blog-detail {
    max-width: 860px;
    margin: 28px auto 48px;
}

.blog-back-link {
    display: inline-flex;
    margin-bottom: 14px;
    color: #64748b;
    font-weight: 700;
    text-decoration: none;
}

.blog-detail-header {
    margin-bottom: 24px;
}

.blog-detail-cover {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 28px;
}

.blog-content {
    color: #1f2937;
    font-size: 18px;
    line-height: 1.8;
}

.blog-content h2,
.blog-content h3 {
    margin-top: 30px;
    color: #111827;
    font-weight: 800;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.empty-state {
    padding: 36px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}

.blog-admin-form {
    margin-bottom: 48px;
}

.blog-content-editor {
    font-family: Consolas, "Courier New", monospace;
    min-height: 420px;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

@media (max-width: 900px) {
    .blog-header,
    .admin-page-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-search {
        flex-direction: column;
    }
}
.blog-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    color: #6b7280;
    font-size: 0.95rem;
}

.blog-breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.blog-breadcrumb a:hover {
    color: #111827;
}

.related-blog-posts {
    margin-top: 48px;
}

.related-blog-posts > h2 {
    margin-bottom: 20px;
}
