/* Global */
:root {
    --primary-color: #d4af37;
    --primary-dark: #a87d18;
    --secondary-color: #171717;
    --text-color: #232323;
    --muted-color: #6f7378;
    --line-color: #e9e3d7;
    --soft-bg: #f6f7f9;
    --warm-bg: #fbf7ed;
    --white: #ffffff;
    --danger-color: #b73420;
    --success-color: #1f7a4d;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    color: var(--text-color);
    background: linear-gradient(180deg, #fffdf8 0%, #ffffff 180px, #ffffff 100%);
    line-height: 1.6;
}

a {
    color: inherit;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

img {
    max-width: 100%;
}

.bi {
    line-height: 1;
}

.bi-lg {
    font-size: 1.35rem;
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 1020;
    background: rgba(23, 23, 23, 0.97);
    border-bottom: 1px solid rgba(212, 175, 55, 0.26);
    backdrop-filter: blur(12px);
}

header .container {
    max-width: 1440px;
}

.navbar {
    min-height: 68px;
}

.navbar-brand {
    color: var(--primary-color) !important;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.nav-link {
    color: rgba(255, 255, 255, 0.86) !important;
    font-size: 12px;
    font-weight: 700;
    margin: 0 3px;
    padding: 0.55rem 0.38rem !important;
    text-transform: uppercase;
    letter-spacing: 0;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.nav-item.active .nav-link,
.nav-link:hover {
    color: var(--primary-color) !important;
}

.search-bar {
    min-width: 170px;
    max-width: 220px;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 7px 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-bar:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.18rem rgba(212, 175, 55, 0.2);
    outline: none;
}

.nav-icons-group {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

.nav-icons-group .text-warning {
    color: var(--primary-color) !important;
    font-size: 13px;
    white-space: nowrap;
}

.nav-stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-color) !important;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 8px;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.nav-stat:hover,
.nav-stat.active {
    border-color: rgba(212, 175, 55, 0.45);
    background: rgba(212, 175, 55, 0.12);
    color: #ffe8a1 !important;
}

.dropdown-menu {
    border: 1px solid var(--line-color);
    border-radius: 8px;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.12);
}

/* Hero and banners */
.banner-section {
    width: 100%;
    background: var(--secondary-color);
}

.main-banner img {
    display: block;
    width: 100%;
    aspect-ratio: 15 / 4;
    object-fit: cover;
}

.features-banner img {
    display: block;
    width: 100%;
    min-height: 70px;
    object-fit: cover;
}

.bg-black,
.service-ribbon {
    background-color: #0c0c0c;
}

.service-ribbon {
    border-top: 1px solid rgba(212, 175, 55, 0.18);
    border-bottom: 1px solid rgba(212, 175, 55, 0.18);
}

.service-ribbon .col-md-3 {
    padding: 8px 10px;
}

.section-title,
section h2 {
    color: var(--secondary-color);
    font-weight: 800;
    letter-spacing: 0;
}

.section-kicker {
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.page-hero {
    background: linear-gradient(120deg, #141414 0%, #1f2830 52%, #0f1217 100%);
    color: var(--white);
    padding: 48px 0 42px;
}

.page-hero h1,
.contact-hero h1,
.sitemap-hero h1 {
    color: var(--primary-color);
    font-weight: 800;
    letter-spacing: 0;
}

.page-hero p,
.contact-hero p,
.sitemap-hero p {
    color: rgba(255, 255, 255, 0.72) !important;
}

.page-hero .section-kicker,
.contact-hero .section-kicker,
.sitemap-hero .section-kicker {
    color: var(--primary-color);
}

.breadcrumb {
    font-size: 14px;
}

.breadcrumb a {
    color: var(--primary-dark);
    font-weight: 700;
}

/* Product cards */
.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 14px;
    overflow: hidden;
    text-align: left;
    background: var(--white);
    border: 1px solid var(--line-color);
    border-radius: 8px;
    box-shadow: 0 10px 26px rgba(23, 23, 23, 0.06);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.product-card:hover {
    border-color: rgba(212, 175, 55, 0.78);
    box-shadow: 0 20px 38px rgba(23, 23, 23, 0.12);
    transform: translateY(-4px);
}

.product-card::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    content: "";
    opacity: 0;
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.9), rgba(17, 138, 178, 0.8));
    transition: opacity 0.2s ease;
}

.product-card:hover::before {
    opacity: 1;
}

.product-media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    margin-bottom: 12px;
    padding: 16px;
    background: var(--warm-bg);
    border-radius: 8px;
}

.product-media img,
.product-card > img {
    width: 100%;
    height: 100%;
    max-height: 230px;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.product-card:hover .product-media img,
.product-card:hover > img {
    transform: scale(1.04);
}

.product-card > img {
    min-height: 210px;
    padding: 16px;
    margin-bottom: 12px;
    background: var(--warm-bg);
    border-radius: 8px;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    min-height: 18px;
    margin-bottom: 6px;
    color: var(--muted-color);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.product-card h5 {
    min-height: 42px;
    margin: 0 0 8px;
    overflow: hidden;
    color: var(--secondary-color);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
}

.product-card h5 a {
    color: inherit;
}

.product-card .price {
    margin-bottom: 12px;
    color: var(--danger-color);
    font-size: 18px;
    font-weight: 800;
}

.product-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.product-actions .btn {
    flex: 1 1 0;
    min-height: 38px;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.btn-buy,
.btn-warning {
    color: var(--secondary-color);
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 800;
}

.btn-buy:hover,
.btn-warning:hover {
    color: var(--white);
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-dark {
    border-color: #2d2d2d;
    color: #2d2d2d;
    font-weight: 800;
}

.btn-outline-dark:hover {
    background: #2d2d2d;
    color: var(--white);
}

.wishlist-icon {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #b8b8b8;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--line-color);
    border-radius: 50%;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.wishlist-icon:hover,
.wishlist-icon.active {
    color: var(--danger-color);
    border-color: rgba(183, 52, 32, 0.32);
    transform: translateY(-1px);
}

.empty-state {
    padding: 42px 24px;
    text-align: center;
    background: var(--soft-bg);
    border: 1px dashed #d7dbe0;
    border-radius: 8px;
}

.empty-state h5 {
    font-weight: 800;
}

.empty-state p {
    margin-bottom: 0;
    color: var(--muted-color);
}

/* Catalog */
.catalog-layout {
    align-items: flex-start;
}

.catalog-sidebar {
    position: sticky;
    top: 92px;
}

.catalog-panel,
.content-panel,
.contact-form-wrap,
.contact-info-card,
.sitemap-card,
.form-container {
    background: var(--white);
    border: 1px solid var(--line-color);
    border-radius: 8px;
    box-shadow: 0 14px 30px rgba(23, 23, 23, 0.06);
}

.catalog-panel {
    padding: 16px;
}

.category-filter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 8px;
    padding: 10px 12px;
    color: var(--text-color);
    background: var(--soft-bg);
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 800;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.category-filter:hover,
.category-filter.active {
    color: var(--secondary-color);
    background: var(--warm-bg);
    border-color: var(--primary-color);
}

.catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.catalog-toolbar p {
    margin-bottom: 0;
    color: var(--muted-color);
}

/* Brand slider */
.brand-grid {
    display: flex;
    gap: 14px;
    padding: 10px 2px 18px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.brand-item {
    flex: 0 0 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 72px;
    padding: 16px;
    background: var(--white);
    border: 1px solid var(--line-color);
    border-radius: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.brand-item img {
    max-height: 40px;
    filter: grayscale(100%);
    opacity: 0.64;
    transition: filter 0.2s ease, opacity 0.2s ease;
}

.brand-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 24px rgba(23, 23, 23, 0.08);
    transform: translateY(-2px);
}

.brand-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Content sections */
.commitment-box {
    margin: 52px 0;
    padding: 34px;
    background: var(--warm-bg);
    border: 1px solid var(--line-color);
    border-radius: 8px;
}

.commitment-title {
    color: var(--secondary-color);
    font-size: 24px;
    font-weight: 800;
}

.review-card {
    height: 100%;
    padding: 24px;
    background: var(--white);
    border: 1px solid var(--line-color);
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    box-shadow: 0 12px 26px rgba(23, 23, 23, 0.06);
}

.review-text {
    color: #515151;
    font-style: italic;
}

.review-author {
    margin-bottom: 0;
    color: var(--secondary-color);
    font-weight: 800;
}

.stars {
    color: #f0a90e;
    margin-bottom: 10px;
}

.team-card {
    height: 100%;
    border: 1px solid var(--line-color) !important;
    border-radius: 8px;
}

/* Forms and contact */
.form-container {
    max-width: 540px;
    margin: 56px auto;
    padding: 32px;
}

.form-title {
    margin-bottom: 24px;
    color: var(--secondary-color);
    font-weight: 800;
    text-align: center;
}

.form-control {
    min-height: 42px;
    border-color: #dfe3e8;
    border-radius: 6px;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.18rem rgba(212, 175, 55, 0.2);
}

.contact-hero,
.sitemap-hero {
    background: linear-gradient(120deg, #141414 0%, #1f2830 52%, #0f1217 100%);
    padding: 48px 0 42px;
    text-align: center;
}

.contact-info-card {
    height: 100%;
    padding: 26px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-info-card:hover {
    box-shadow: 0 18px 34px rgba(23, 23, 23, 0.1);
    transform: translateY(-3px);
}

.contact-info-card .icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin: 0 auto 15px;
    color: var(--secondary-color);
    background: var(--primary-color);
    border-radius: 8px;
}

.contact-info-card .icon-box i {
    font-size: 22px;
}

.contact-info-card h5 {
    color: var(--secondary-color);
    font-weight: 800;
}

.contact-form-wrap {
    padding: 32px;
}

.contact-form-wrap h3,
.related-section h3 {
    display: inline-block;
    margin-bottom: 24px;
    padding-bottom: 8px;
    color: var(--secondary-color);
    border-bottom: 2px solid var(--primary-color);
    font-weight: 800;
}

.btn-send,
.btn-cart {
    color: var(--secondary-color);
    background: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 6px;
    font-weight: 800;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn-send {
    padding: 12px 28px;
}

.btn-cart {
    padding: 12px 24px;
}

.btn-send:hover,
.btn-cart:hover {
    color: var(--white);
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-wish {
    padding: 12px 20px;
    color: var(--primary-dark);
    background: transparent;
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    font-weight: 800;
}

.btn-wish:hover,
.btn-wish.active {
    color: var(--secondary-color);
    background: var(--primary-color);
}

.map-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    color: var(--primary-color);
    background: var(--secondary-color);
    border-radius: 8px;
}

.map-placeholder i {
    margin-bottom: 12px;
    font-size: 46px;
}

.success-msg {
    display: none;
    margin-top: 16px;
    padding: 14px 18px;
    color: #155724;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
}

/* Ecommerce flow */
.cart-panel,
.checkout-panel,
.order-card {
    background: var(--white);
    border: 1px solid var(--line-color);
    border-radius: 8px;
    box-shadow: 0 14px 30px rgba(23, 23, 23, 0.06);
}

.summary-card {
    position: sticky;
    top: 94px;
    background: var(--white);
    border: 1px solid var(--line-color);
    border-radius: 8px;
    box-shadow: 0 14px 30px rgba(23, 23, 23, 0.06);
}

.summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.summary-row.total {
    margin-bottom: 0;
    font-size: 20px;
}

.cart-table thead th {
    color: var(--muted-color);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    border-top: none;
}

.cart-table td {
    vertical-align: middle;
}

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

.cart-product img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    background: var(--warm-bg);
    border: 1px solid var(--line-color);
    border-radius: 8px;
    padding: 6px;
}

.qty-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid #d8dce2;
    border-radius: 8px;
    overflow: hidden;
}

.qty-btn {
    width: 34px;
    height: 34px;
    border: none;
    background: #f4f7fa;
    color: #2b3239;
    cursor: pointer;
}

.qty-input {
    width: 52px;
    height: 34px;
    border: none;
    text-align: center;
    font-weight: 700;
}

.checkout-items {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 4px;
}

.checkout-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f2f5;
}

.checkout-item img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    background: var(--warm-bg);
    border: 1px solid var(--line-color);
    border-radius: 8px;
    padding: 4px;
}

.checkout-item h6 {
    margin: 0;
    font-size: 14px;
}

.checkout-item p {
    margin: 0;
    font-size: 12px;
    color: var(--muted-color);
}

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

.payment-item {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #dbe0e6;
    border-radius: 8px;
    cursor: pointer;
}

.payment-item input {
    margin-right: 10px;
}

.payment-item.active {
    border-color: var(--primary-color);
    background: var(--warm-bg);
}

.order-card {
    overflow: hidden;
}

.order-head,
.order-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 18px;
}

.order-head {
    background: #f9fafc;
    border-bottom: 1px solid #edf0f3;
}

.order-status {
    color: #0a6b42;
    background: #e8f7ef;
    border: 1px solid #b8e7cc;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 700;
}

.order-body {
    padding: 16px 18px;
}

.order-lines {
    margin: 0;
    padding: 0;
    list-style: none;
}

.order-lines li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 5px 0;
}

.order-foot {
    border-top: 1px solid #edf0f3;
    background: #fffdf7;
    font-size: 14px;
}

/* Product detail */
.detail-img-wrap {
    background: var(--warm-bg) !important;
    border: 1px solid var(--line-color);
}

.badge-status {
    background: var(--success-color) !important;
    color: var(--white) !important;
}

.product-price-big {
    color: var(--danger-color) !important;
    font-size: 2rem;
    font-weight: 800;
}

.spec-table {
    background: var(--white);
    border: 1px solid var(--line-color);
    border-radius: 8px;
    overflow: hidden;
}

.cart-toast {
    border-radius: 8px !important;
}

/* Sitemap */
.sitemap-section {
    margin-bottom: 40px;
}

.sitemap-card {
    height: 100%;
    padding: 24px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.sitemap-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 18px 34px rgba(23, 23, 23, 0.1);
    transform: translateY(-3px);
}

.sitemap-card h4 {
    margin-bottom: 14px;
    padding-bottom: 10px;
    color: var(--secondary-color);
    border-bottom: 1px solid var(--line-color);
    font-weight: 800;
}

.sitemap-card ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.sitemap-card li {
    padding: 6px 0;
}

.sitemap-card a {
    color: var(--text-color);
}

.sitemap-card a:hover {
    color: var(--primary-dark);
}

.sitemap-tree {
    padding-left: 16px !important;
    border-left: 3px solid var(--primary-color);
}

.sitemap-tree li {
    position: relative;
}

.sitemap-tree li::before {
    position: absolute;
    top: 17px;
    left: -18px;
    width: 10px;
    height: 2px;
    background: var(--primary-color);
    content: "";
}

/* Footer */
footer {
    margin-top: 56px;
    padding: 44px 0 22px;
    color: #b8b8b8;
    background: var(--secondary-color);
}

footer h5 {
    font-weight: 800;
}

footer a {
    color: #b8b8b8 !important;
}

footer a:hover {
    color: var(--primary-color) !important;
}

footer strong {
    color: var(--primary-color);
}

/* Utilities */
.gap-2 { gap: 0.5rem; }
.cursor-pointer { cursor: pointer; }

@media (max-width: 1199px) {
    .nav-link {
        font-size: 12px;
        margin: 0 2px;
    }

    .search-bar {
        min-width: 160px;
    }
}

@media (max-width: 1199px) {
    header {
        position: relative;
    }

    .navbar-collapse {
        padding: 18px;
        margin-top: 12px;
        text-align: left;
        background: var(--secondary-color);
        border: 1px solid rgba(212, 175, 55, 0.22);
        border-radius: 8px;
    }

    .navbar-nav {
        margin-bottom: 15px;
    }

    .nav-link {
        padding: 10px 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        font-size: 14px;
    }

    #searchForm {
        width: 100%;
        margin-right: 0 !important;
        margin-bottom: 15px;
    }

    .search-bar {
        width: 100%;
        min-width: 100%;
    }

    .nav-icons-group {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 8px;
    }

    .dropdown {
        width: 100%;
        margin-top: 10px;
    }

    .dropdown-toggle {
        width: 100%;
    }

    .catalog-sidebar {
        position: static;
        margin-bottom: 20px;
    }

    .catalog-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .summary-card {
        position: static;
    }
}

@media (max-width: 768px) {
    .navbar-brand {
        font-size: 20px;
    }

    .main-banner img {
        aspect-ratio: 4 / 3;
    }

    .features-banner img {
        min-height: 82px;
    }

    .product-actions {
        flex-direction: column;
    }

    .commitment-box,
    .contact-form-wrap,
    .form-container {
        padding: 24px;
    }
}
