* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #c9171f;
    --secondary: #111111;
    --soft-bg: #f8f1f1;
    --card-bg: #ffffff;
    --text: #222222;
    --muted: #666666;
    --border: #efd2d2;
    --success: #1f9d55;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    --radius: 12px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background: var(--soft-bg);
    color: var(--text);
    line-height: 1.5;
}

body.mobile-modal-open {
    overflow: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

button,
input,
textarea,
select {
    font: inherit;
}

.container {
    width: min(1200px, calc(100% - 24px));
    margin: 0 auto;
}

/* =========================
   HEADER
========================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.header-red {
    background: #c90f17;
}

.header-red-inner {
    min-height: 66px;
    display: grid;
    grid-template-columns: 170px minmax(280px, 480px) 130px 150px 140px;
    align-items: center;
    gap: 18px;
}

.brand-image-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    text-decoration: none;
}

.brand-image {
    max-height: 46px;
    width: auto;
    display: block;
}

.brand-text-wrap {
    display: inline-flex;
    flex-direction: column;
    line-height: 1;
}

.brand-line1,
.brand-line2 {
    display: block;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.4px;
}

.brand-line1 {
    font-size: 18px;
    line-height: 1;
}

.brand-line2 {
    font-size: 14px;
    line-height: 1;
    opacity: 0.9;
}

.header-search-2 {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    height: 40px;
}

.header-search-2 input {
    flex: 1;
    border: none;
    outline: none;
    height: 40px;
    padding: 0 14px;
    font-size: 14px;
    color: #222;
}

.header-search-2 button {
    width: 58px;
    height: 40px;
    border: none;
    background: #f1f1f1;
    color: #111;
    font-size: 18px;
    cursor: pointer;
    border-left: 1px solid #ddd;
}

.account-btn {
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    padding: 0 14px;
}

.account-icon {
    font-size: 16px;
    line-height: 1;
}

.call-box {
    display: flex;
    flex-direction: column;
    color: #fff;
    line-height: 1.15;
    padding-left: 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.35);
}

.call-top {
    font-size: 12px;
    font-weight: 700;
    opacity: 0.95;
}

.call-number {
    font-size: 18px;
    font-weight: 900;
    margin-top: 2px;
}

.cart-box {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    padding-left: 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.35);
}

.cart-icon {
    font-size: 30px;
    line-height: 1;
}

.cart-info {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.cart-info small {
    font-size: 12px;
    color: #fff;
    opacity: 0.95;
}

.cart-info strong {
    font-size: 17px;
    font-weight: 900;
    color: #fff;
    margin-top: 3px;
}

.header-black {
    background: #000;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.main-menu-2 {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 36px;
    min-height: 42px;
    overflow-x: auto;
    white-space: nowrap;
}

.main-menu-2 li a {
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    letter-spacing: 0.2px;
}

/* =========================
   BUTTONS / UTILITIES
========================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    opacity: 0.92;
}

.btn-light {
    background: #fff;
    color: var(--secondary);
}

.btn-cart {
    width: 100%;
    background: #fff5f5;
    border: 1px solid #f0bcbc;
    color: var(--primary);
    min-height: 42px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border: 1px solid #e1baba;
    border-radius: 10px;
    color: var(--primary);
    background: #fff7f7;
    font-weight: 800;
}

.btn-full {
    width: 100%;
}

.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mb-16 { margin-bottom: 16px; }

/* =========================
   HERO
========================= */
.hero-section {
    padding: 18px 0 8px;
}

.hero-card {
    background: linear-gradient(135deg, #2b334a 0%, #8795b7 100%);
    border-radius: 14px;
    min-height: 320px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    box-shadow: var(--shadow);
}

.hero-content {
    padding: 34px;
    color: #fff;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    margin-bottom: 14px;
}

.hero-title {
    font-size: 42px;
    line-height: 1.1;
    margin-bottom: 12px;
}

.hero-text {
    font-size: 16px;
    max-width: 540px;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 20px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-image-wrap {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 26px;
}

.hero-image-wrap img {
    max-height: 280px;
    object-fit: contain;
    filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.25));
}

/* =========================
   SECTIONS
========================= */
.section {
    padding: 22px 0;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.section-title {
    font-size: 28px;
    font-weight: 800;
}

.section-link {
    font-size: 14px;
    color: var(--primary);
    font-weight: 700;
}

/* =========================
   PRODUCT GRID
========================= */
.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.product-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.1);
}

.product-thumb-wrap {
    position: relative;
    background: #fff;
    aspect-ratio: 1 / 1;
    padding: 10px;
}

.product-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary);
    color: #fff;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.product-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.product-title {
    font-size: 14px;
    font-weight: 700;
    min-height: 40px;
    color: var(--text);
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.price-current {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
}

.price-old {
    font-size: 13px;
    color: #888;
    text-decoration: line-through;
}

.discount-tag {
    font-size: 11px;
    font-weight: 800;
    background: #ffebeb;
    color: var(--primary);
    padding: 4px 7px;
    border-radius: 999px;
}

.free-delivery-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e9fff0;
    color: var(--success);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 700;
    width: fit-content;
}

.product-actions {
    margin-top: auto;
}

.empty-box {
    background: #fff;
    border: 1px dashed #d8b6b6;
    border-radius: 14px;
    padding: 28px;
    text-align: center;
    color: var(--muted);
}

/* =========================
   PRODUCT DETAILS PAGE
========================= */
.product-details-section {
    padding: 22px 0 40px;
}

.breadcrumb-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
    margin-bottom: 18px;
}

.breadcrumb-wrap a {
    color: var(--primary);
    font-weight: 700;
}

.product-page-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.product-left-col,
.product-right-col {
    min-width: 0;
}

.product-right-col {
    position: sticky;
    top: 110px;
    align-self: start;
}

.product-gallery-card,
.product-content-card,
.order-box-sticky {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.product-gallery-card {
    padding: 18px;
}

.product-main-image-wrap {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}

.product-main-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.product-page-discount,
.product-page-free-badge {
    position: absolute;
    top: 14px;
    z-index: 2;
    font-size: 12px;
    font-weight: 800;
    border-radius: 999px;
    padding: 7px 10px;
}

.product-page-discount {
    left: 14px;
    background: var(--primary);
    color: #fff;
}

.product-page-free-badge {
    right: 14px;
    background: #e9fff0;
    color: #0b8f4d;
}

.product-thumb-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-top: 14px;
}

.thumb-item {
    border: 1px solid #e6d3d3;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    padding: 4px;
}

.thumb-item.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(201, 15, 23, 0.12);
}

.thumb-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
}

.product-content-card {
    padding: 22px;
    margin-top: 18px;
}

.product-title-big {
    font-size: 36px;
    line-height: 1.15;
    margin-bottom: 14px;
    color: #1d1d1d;
}

.product-price-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.product-sale-price {
    font-size: 30px;
    color: var(--primary);
    font-weight: 900;
}

.product-regular-price {
    font-size: 16px;
    color: #888;
    text-decoration: line-through;
}

.product-discount-chip {
    background: #ffeaea;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    padding: 6px 10px;
    border-radius: 999px;
}

.product-short-box {
    padding: 16px 18px;
    border-radius: 12px;
    background: #fff7f7;
    border: 1px solid #f4d2d2;
    color: #333;
    margin-bottom: 18px;
}

.product-benefits-box,
.product-description-box {
    margin-top: 20px;
}

.product-benefits-box h3,
.product-description-box h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: #111;
}

.product-benefits-box ul {
    padding-left: 18px;
    color: #333;
    display: grid;
    gap: 10px;
}

.product-description-text {
    color: #3b3b3b;
    line-height: 1.75;
}

.order-box-sticky {
    padding: 20px;
}

.order-box-head h3 {
    font-size: 28px;
    margin-bottom: 6px;
}

.order-box-head p {
    color: #666;
    font-size: 14px;
    margin-bottom: 16px;
}

.order-price-box {
    background: #fff6f6;
    border: 1px solid #f0d0d0;
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.order-price-label {
    color: #666;
    font-size: 14px;
    font-weight: 700;
}

.order-price-value {
    color: var(--primary);
    font-size: 24px;
    font-weight: 900;
}

.order-free-delivery-note {
    background: #e9fff0;
    color: #0b8f4d;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 14px;
}

.form-group {
    margin-bottom: 12px;
}

.order-form-box label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 800;
    color: #222;
}

.form-control {
    width: 100%;
    min-height: 46px;
    border-radius: 10px;
    border: 1px solid #ddd;
    padding: 12px 14px;
    font-size: 14px;
    outline: none;
    background: #fff;
}

textarea.form-control {
    min-height: 96px;
    resize: vertical;
}

.secure-order-note {
    margin-top: 12px;
    font-size: 13px;
    color: #666;
    text-align: center;
}

.mobile-order-bar,
.mobile-order-modal {
    display: none;
}

/* =========================
   FOOTER
========================= */
.site-footer {
    margin-top: 36px;
    background: #070707;
    color: #ddd;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 24px;
    padding: 34px 0;
}

.footer-title {
    color: #fff;
    font-size: 16px;
    margin-bottom: 12px;
    font-weight: 800;
}

.footer-text,
.footer-links a {
    font-size: 14px;
    color: #c8c8c8;
}

.footer-links {
    display: grid;
    gap: 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 0;
    font-size: 13px;
    color: #b7b7b7;
    text-align: center;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1100px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .hero-title {
        font-size: 34px;
    }
}

@media (max-width: 991px) {
    .header-red-inner {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 12px 0;
    }

    .header-search-2 {
        width: 100%;
    }

    .account-btn,
    .call-box,
    .cart-box {
        justify-self: center;
        border-left: none;
        padding-left: 0;
    }

    .main-menu-2 {
        gap: 18px;
        padding-bottom: 2px;
    }

    .hero-card {
        grid-template-columns: 1fr;
    }

    .hero-content {
        padding: 24px;
    }

    .hero-image-wrap {
        padding-top: 0;
    }

    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .product-page-wrap {
        grid-template-columns: 1fr;
    }

    .product-right-col {
        position: static;
        top: auto;
    }
}

@media (max-width: 640px) {
    .brand-line1,
    .brand-line2 {
        font-size: 16px;
    }

    .call-number {
        font-size: 16px;
    }

    .main-menu-2 li a {
        font-size: 12px;
    }

    .hero-card {
        min-height: auto;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-text {
        font-size: 14px;
    }

    .section-title {
        font-size: 24px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-title {
        font-size: 13px;
        min-height: 36px;
    }

    .price-current {
        font-size: 16px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .product-title-big {
        font-size: 28px;
    }

    .product-sale-price {
        font-size: 24px;
    }

    .product-thumb-row {
        grid-template-columns: repeat(4, 1fr);
    }

    .product-right-col {
        display: none;
    }

    .mobile-order-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 10px 12px;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(10px);
        border-top: 1px solid #ead1d1;
        z-index: 120;
    }

    .mobile-order-price {
        display: flex;
        flex-direction: column;
        line-height: 1.1;
    }

    .mobile-order-price small {
        font-size: 12px;
        color: #666;
    }

    .mobile-order-price strong {
        color: var(--primary);
        font-size: 20px;
        font-weight: 900;
    }

    .mobile-order-btn {
        min-width: 140px;
    }

    .mobile-order-modal.show {
        display: block;
    }

    .mobile-order-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        z-index: 130;
    }

    .mobile-order-sheet {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        background: #fff;
        border-radius: 18px 18px 0 0;
        padding: 18px;
        z-index: 131;
        max-height: 85vh;
        overflow-y: auto;
        box-shadow: 0 -12px 30px rgba(0, 0, 0, 0.18);
    }

    .mobile-order-sheet-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 14px;
    }

    .mobile-order-sheet-head h3 {
        font-size: 22px;
        margin: 0;
    }

    .mobile-order-sheet-head button {
        border: none;
        background: #f3f3f3;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        font-size: 18px;
        cursor: pointer;
    }

    body {
        padding-bottom: 82px;
    }
}

/* THANK YOU PAGE */
.thankyou-section {
    padding: 80px 0;
    text-align: center;
}

.thankyou-card {
    max-width: 500px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.thankyou-icon {
    width: 60px;
    height: 60px;
    background: #28a745;
    color: #fff;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 20px;
}

.thankyou-title {
    font-size: 26px;
    margin-bottom: 10px;
}

.thankyou-text {
    color: #666;
    margin-bottom: 25px;
}

.thankyou-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

@media (max-width: 600px) {
    .thankyou-actions {
        flex-direction: column;
    }
}

/* ADMIN PANEL */
.admin-wrap {
    min-height: 100vh;
    background: #f6f7fb;
    padding: 30px 0;
}

.admin-container {
    width: min(1400px, calc(100% - 24px));
    margin: 0 auto;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.admin-header h1 {
    font-size: 30px;
    margin: 0;
}

.admin-back-link {
    color: var(--primary);
    font-weight: 700;
}

.admin-table-wrap {
    background: #fff;
    border-radius: 14px;
    overflow: auto;
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
    border: 1px solid #eee;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1200px;
}

.admin-table th,
.admin-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #eee;
    text-align: left;
    vertical-align: top;
    font-size: 14px;
}

.admin-table thead th {
    background: #111;
    color: #fff;
    font-weight: 800;
    position: sticky;
    top: 0;
}

.admin-items-list {
    display: grid;
    gap: 8px;
}

.admin-item-row {
    display: grid;
    gap: 3px;
    padding: 8px 10px;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 8px;
}

.status-badge {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.status-pending { background: #fff3cd; color: #856404; }
.status-confirmed { background: #d1ecf1; color: #0c5460; }
.status-processing { background: #e2e3ff; color: #383d7a; }
.status-shipped { background: #d4edda; color: #155724; }
.status-delivered { background: #c3f7d1; color: #146c2e; }
.status-cancelled { background: #f8d7da; color: #721c24; }

.status-form {
    display: grid;
    gap: 8px;
}

.admin-select {
    min-height: 40px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px 10px;
    background: #fff;
}

.admin-btn {
    min-height: 40px;
    border: none;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.admin-empty-box {
    background: #fff;
    border: 1px dashed #ddd;
    border-radius: 14px;
    padding: 40px;
    text-align: center;
}

@media (max-width: 768px) {
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

.admin-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-action-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.admin-btn-link {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.admin-btn-small {
    min-height: 36px;
    padding: 0 12px;
    font-size: 13px;
}

.admin-btn-danger {
    background: #b91c1c;
    color: #fff;
}

.admin-form-wrap {
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
    border: 1px solid #eee;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.admin-form-group {
    display: grid;
    gap: 8px;
}

.admin-form-group-full {
    grid-column: 1 / -1;
}

.admin-form-group label {
    font-size: 14px;
    font-weight: 700;
}

.admin-input,
.admin-textarea {
    width: 100%;
    min-height: 44px;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 10px 12px;
    background: #fff;
    font-size: 14px;
}

.admin-textarea {
    min-height: 120px;
    resize: vertical;
}

.admin-check-group {
    grid-column: 1 / -1;
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    align-items: center;
}

.admin-check-group label {
    font-size: 14px;
    font-weight: 700;
}

.admin-form-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-start;
}

@media (max-width: 768px) {
    .admin-header-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-form-grid {
        grid-template-columns: 1fr;
    }

    .admin-form-group-full {
        grid-column: auto;
    }

    .admin-check-group,
    .admin-form-actions {
        grid-column: auto;
    }
}