@font-face {
    font-family: "IRANSans";
    src: url("../fonts/IRANSansWeb.woff2") format("woff2"),
         url("../fonts/IRANSansWeb.woff") format("woff"),
         url("../fonts/IRANSansWeb.ttf") format("truetype");
}

:root {
    --primary-dark: #000c19;
    --secondary-dark: #000c1a;
    --nav-dark: #121b25;
    --card-dark: #011223;
    --box-dark: #14233a;
    --accent: #d1a45c;
    --accent-dark: #be8f46;
    --accent-hover: #ffffff;
    --light-text: #ffffff;
    --muted-text: #d8dde3;
    --gray-text: #b9c2cd;
    --border-color: #d0a257;
    --danger: #e74c3c;
    --success: #2ecc71;
    --font-primary: "IRANSans", Tahoma, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--primary-dark);
    color: var(--light-text);
    font-family: var(--font-primary);
    line-height: 1.8;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

button,
input,
textarea,
select {
    font-family: inherit;
}

ul {
    list-style: none;
}

/* Header */

.main-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--secondary-dark);
    border-bottom: 2px solid var(--accent);
}

.header-container,
.nav-container,
.hero-container,
.features-container,
.footer-container {
    max-width: 1200px;
    margin: auto;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 5px 5px;
}

.logo-area {
    width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-area img {
    max-height: 90px;
    object-fit: contain;
}

.search-bar {
    flex: 1;
    max-width: 460px;
}

.search-bar form {
    display: flex;
    overflow: hidden;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--primary-dark);
}

.search-bar input {
    flex: 1;
    padding: 5px 5px;
    color: #ffffff;
    background: transparent;
    border: 0;
    outline: none;
}

.search-bar input::placeholder {
    color: #aeb7c2;
}

.search-btn {
    padding: 8px 16px;
    background: var(--accent);
    border: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: var(--accent-dark);
}

.header-user-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-icon-wrapper,
.cart-icon-wrapper,
.dropdown {
    position: relative;
}

.user-icon-wrapper > a,
.cart-icon-wrapper > a {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #c0924b;
    color: #08111f;
    border-radius: 20px;
    padding: 5px 5px;
    font-size: 0.88rem;
    font-weight: bold;
    white-space: nowrap;
}

.cart-icon-container {
    position: relative;
    display: flex;
}

.cart-count {
    position: absolute;
    top: -13px;
    right: -13px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    color: #ffffff;
    background: #e63946;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: bold;
    text-align: center;
    line-height: 20px;
}

/* Dropdown */

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 200;
    display: none;
    min-width: 220px;
    padding: 8px 0;
    background: #132235;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 5px 15px #0008;
}

.dropdown:hover > .dropdown-menu,
.dropdown.open > .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 16px;
    color: #ffffff;
    font-size: 0.92rem;
}

.dropdown-menu li a:hover {
    color: #101b2d;
    background: var(--accent);
}

/* Navigation */

.main-navigation {
    background: var(--nav-dark);
    border-top: 1px solid var(--border-color);
}

.nav-container {
    padding: 0 10px;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

.nav-links > li {
    position: relative;
}

.nav-links a {
    display: block;
    padding: 12px 0;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

.arrow-down {
    margin-right: 5px;
    font-size: 0.65rem;
}

/* Hero */

.hero-section {
    padding: 60px 20px;
    background: radial-gradient(circle, #1f2f45 0%, var(--primary-dark) 70%);
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content,
.hero-image-area {
    flex: 1;
}

.hero-content h1 {
    margin-bottom: 15px;
    color: var(--accent);
    font-size: 2.3rem;
    line-height: 1.7;
}

.hero-content h2 {
    margin-bottom: 8px;
    color: #ffffff;
    font-size: 1.6rem;
}

.hero-content h3 {
    margin-bottom: 15px;
    color: var(--muted-text);
    font-size: 1.05rem;
}

.hero-content p {
    max-width: 600px;
    margin-bottom: 28px;
    color: var(--muted-text);
    font-size: 1rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.btn-primary,
.btn-secondary,
.btn-outline {
    display: inline-block;
    padding: 11px 24px;
    border-radius: 8px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-primary {
    color: var(--primary-dark);
    background: var(--accent);
    border: 1px solid var(--accent);
}

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.btn-secondary,
.btn-outline {
    color: var(--accent);
    border: 1px solid var(--accent);
}

.btn-secondary:hover,
.btn-outline:hover {
    color: var(--primary-dark);
    background: var(--accent);
}

.hero-image-area {
    display: flex;
    justify-content: center;
}

.hero-img {
    max-height: 380px;
    object-fit: contain;
}

/* پاک‌سازی کامل استایل‌های قبلی این بخش */
.features-section {
    padding: 20px 10px;
    background: #000c19; /* رنگی که قبلاً گفتی دوست داری */
    width: 100%;
}

.features-container {
    display: flex !important; /* اعمال اجباری فلکس */
    flex-direction: row !important; /* اجبار به چیدمان افقی */
    justify-content: space-between; /* فاصله بین کارت‌ها */
    align-items: flex-start; /* هم‌ترازی از بالا */
    flex-wrap: nowrap !important; /* ممنوعیت شکستن به خط بعدی */
    max-width: 1100px;
    margin: 0 auto;
}

.feature-card {
    width: 30% !important; /* تعیین عرض دقیق برای هر کارت */
    padding: 15px;
    border: 2px solid #d1a45c; /* استفاده از رنگ طلایی مورد علاقت */
    border-radius: 10px;
    text-align: center;
    background: #07182a;
    box-sizing: border-box; /* برای اینکه پدینگ باعث بزرگ شدن کارت نشود */
}

/* بزرگ‌تر کردن آیکون و کنترل آن */
.feature-icon {
    width: 80px !important; /* فعلاً 80 بگذار، اگر بزرگتر خواستی بکن 100 */
    height: auto !important;
    display: block;
    margin: 0 auto 15px auto; /* وسط‌چین کردن آیکون */
}

.feature-card h3 {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.85rem;
    color: #ccc;
}


/* Sections */

.products-section,
.categories-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.section-title-wrapper {
    margin-bottom: 35px;
    text-align: center;
}

.section-title {
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.title-line {
    width: 80px;
    height: 3px;
    margin: auto;
    background: var(--accent);
}

.view-all-products-btn {
    width: max-content;
    margin: 25px auto 0;
}

/* Products */

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

.product-card,
.category-card {
    background: var(--card-dark);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: 0.3s;
}

.product-card {
    overflow: hidden;
}

.product-card:hover,
.category-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px #0007;
}

.product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 210px;
    padding: 20px;
    background: #102030;
}

.product-image img {
    max-height: 100%;
    object-fit: contain;
}

.product-info {
    padding: 20px;
}

.product-category {
    color: var(--accent);
    font-size: 0.82rem;
}

.product-title {
    height: 54px;
    margin: 8px 0;
    overflow: hidden;
    font-size: 1rem;
    line-height: 1.7;
}

.product-title a:hover {
    color: var(--accent);
}

.product-description {
    min-height: 50px;
    margin: 10px 0;
    color: var(--gray-text);
    font-size: 0.88rem;
}

.product-price {
    margin-bottom: 15px;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: bold;
}

.btn-add-to-cart,
.btn-submit {
    width: 100%;
    padding: 11px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}

.btn-add-to-cart {
    color: var(--accent);
    background: transparent;
    border: 1px solid var(--accent);
    transition: 0.3s;
}

.btn-add-to-cart:hover {
    color: var(--primary-dark);
    background: var(--accent);
}

.btn-add-to-cart:disabled {
    color: #aab2bb;
    border-color: #687583;
    background: transparent;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Categories */

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

.category-card {
    padding: 30px;
    text-align: center;
}

.category-card img {
    width: 110px;
    height: 110px;
    margin-bottom: 20px;
    object-fit: contain;
}

.category-card h3 {
    font-size: 1.05rem;
}

/* Footer */

.main-footer {
    padding: 55px 20px 20px;
    background: var(--secondary-dark);
    border-top: 3px solid var(--accent);
}

.footer-container {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 35px;
}

.footer-logo {
    margin-bottom: 15px;
}

.footer-col h3 {
    margin-bottom: 18px;
    color: var(--accent);
    font-size: 1.15rem;
}

.footer-col li {
    margin-bottom: 9px;
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-col p {
    margin-bottom: 10px;
    color: var(--muted-text);
    font-size: 0.95rem;
}

.footer-bottom {
    padding-top: 18px;
    color: var(--muted-text);
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.9rem;
}

/* Messages */

.empty-products-message {
    grid-column: 1 / -1;
    padding: 30px;
    color: var(--muted-text);
    border: 1px dashed var(--border-color);
    border-radius: 8px;
    text-align: center;
}

/* Auth Pages */

.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 75vh;
    padding: 45px 20px;
}

.auth-box {
    background: var(--box-dark);
    border: 1px solid var(--border-color);
    padding: 35px;
    border-radius: 16px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.auth-box h1 {
    color: #ffffff;
    font-size: 1.6rem;
    margin-bottom: 25px;
    text-align: center;
}

.auth-box form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.auth-box label {
    color: var(--muted-text);
    font-size: 0.92rem;
}

.auth-box input,
.auth-box textarea,
.auth-box select {
    width: 100%;
    background: #101b2d;
    border: 1px solid var(--border-color);
    color: #ffffff;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
}

.auth-box input:focus,
.auth-box textarea:focus,
.auth-box select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 5px rgba(212, 175, 55, 0.3);
}

.auth-box button[type="submit"],
.btn-submit {
    background: var(--accent);
    color: #101b2d;
    border: none;
    transition: 0.3s;
}

.auth-box button[type="submit"]:hover,
.btn-submit:hover {
    background: #ffffff;
}

.auth-box p {
    color: var(--gray-text);
    margin-top: 18px;
    font-size: 0.9rem;
    text-align: center;
}

.auth-box p a {
    color: var(--accent);
    font-weight: bold;
}

.auth-box p a:hover {
    text-decoration: underline;
}

/* Alerts */

.alert {
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 0.9rem;
    line-height: 1.8;
}

.alert-danger {
    background: rgba(231, 76, 60, 0.15);
    border: 1px solid var(--danger);
    color: #ff8e8e;
}

.alert-success {
    background: rgba(46, 204, 113, 0.15);
    border: 1px solid var(--success);
    color: #6ee7a1;
}

/* Responsive */

@media (max-width: 992px) {
    .header-container {
        flex-wrap: wrap;
        justify-content: center;
    }

    .search-bar {
        order: 3;
        width: 100%;
        max-width: none;
    }

    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .features-container {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    .nav-links {
        justify-content: center;
        gap: 16px;
    }
}

@media (max-width: 600px) {
    .hero-content h1 {
        font-size: 1.6rem;
    }

    .hero-content h2 {
        font-size: 1.3rem;
    }

    .header-user-actions {
        width: 100%;
        justify-content: center;
    }

    .user-icon-wrapper > a,
    .cart-icon-wrapper > a {
        font-size: 0.8rem;
        padding: 6px 10px;
    }

    .nav-links {
        gap: 10px;
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 1.45rem;
    }
}
/* ================================
   Compact User Profile Panel
   پنل کاربری جمع‌وجور
   ================================ */

.profile-page {
    min-height: 72vh;
    padding: 28px 14px 50px;
    background: #101b2d;
}

.profile-container {
    max-width: 1050px;
    margin: 0 auto;
}

/* Header */

.profile-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.profile-page-header h1 {
    color: var(--accent);
    font-size: 1.45rem;
    line-height: 1.6;
}

.profile-page-header a,
.profile-page-header .btn-text {
    font-size: 0.86rem;
}

/* Layout */

.profile-layout {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 18px;
    align-items: start;
}

/* Sidebar */

.profile-sidebar {
    padding: 16px;
    background: var(--box-dark);
    border: 1px solid var(--border-color);
    border-radius: 11px;
}

.profile-user-summary {
    padding-bottom: 15px;
    border-bottom: 1px solid #506070;
    text-align: center;
}

.profile-avatar {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 9px;
    color: #101b2d;
    background: var(--accent);
    border-radius: 50%;
    font-size: 1.45rem;
    font-weight: bold;
}

.profile-user-summary h2 {
    margin-bottom: 4px;
    color: #ffffff;
    font-size: 0.95rem;
    line-height: 1.6;
}

.profile-user-summary p {
    color: var(--gray-text);
    direction: ltr;
    font-size: 0.8rem;
}

/* Menu */

.profile-menu {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 15px;
}

.profile-menu a {
    display: block;
    padding: 8px 10px;
    color: var(--muted-text);
    background: #101b2d;
    border-radius: 7px;
    font-size: 0.84rem;
    transition: 0.25s;
}

.profile-menu a:hover,
.profile-menu a.active {
    color: #101b2d;
    background: var(--accent);
}

/* Main Content */

.profile-main {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.profile-box {
    padding: 18px;
    background: var(--box-dark);
    border: 1px solid var(--border-color);
    border-radius: 11px;
}

.profile-box h2 {
    margin-bottom: 14px;
    color: var(--accent);
    font-size: 1.08rem;
}

/* Info Grid */

.profile-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 11px;
}

.profile-info-grid > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 11px;
    background: #101b2d;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.profile-info-grid strong {
    color: var(--gray-text);
    font-size: 0.78rem;
    font-weight: normal;
}

.profile-info-grid span {
    color: #ffffff;
    font-size: 0.88rem;
    line-height: 1.7;
}

.profile-info-grid .full-width {
    grid-column: 1 / -1;
}

/* Orders Table */

.orders-table-wrapper {
    overflow-x: auto;
    border-radius: 9px;
}

.orders-table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
}

.orders-table th,
.orders-table td {
    padding: 9px 10px;
    border: 1px solid #435467;
    text-align: center;
    white-space: nowrap;
    font-size: 0.82rem;
}

.orders-table th {
    color: #101b2d;
    background: var(--accent);
    font-weight: bold;
}

.orders-table td {
    color: var(--muted-text);
    background: #101b2d;
}

.orders-table td strong {
    color: #ffffff;
}

.orders-table a {
    color: var(--accent);
    font-weight: bold;
    font-size: 0.8rem;
}

.orders-table a:hover {
    color: #ffffff;
}

/* Status Badges */

.status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 14px;
    font-size: 0.72rem;
    line-height: 1.5;
}

.status-paid {
    color: #b5ffd0;
    background: #176b3c;
}

.status-failed {
    color: #ffd0d0;
    background: #8c2929;
}

.status-pending {
    color: #ffe8ae;
    background: #80601b;
}

.status-processing {
    color: #bde7ff;
    background: #235c7a;
}

.status-completed {
    color: #b5ffd0;
    background: #176b3c;
}

.status-cancelled {
    color: #ffd0d0;
    background: #8c2929;
}

/* Empty Orders */

.empty-orders {
    padding: 22px 16px;
    color: var(--muted-text);
    background: #101b2d;
    border: 1px dashed var(--border-color);
    border-radius: 9px;
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.9;
}

.empty-orders a {
    display: inline-block;
    margin-top: 8px;
    color: var(--accent);
    font-weight: bold;
}

.empty-orders a:hover {
    color: #ffffff;
}

/* Buttons and Text Links */

.btn-text {
    color: #ff8e8e;
    font-weight: bold;
    font-size: 0.86rem;
    transition: 0.25s;
}

.btn-text:hover {
    color: #ffbaba;
}

.profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 14px;
}

.profile-actions a,
.profile-actions button {
    padding: 8px 11px;
    border-radius: 7px;
    font-size: 0.84rem;
    font-weight: bold;
    text-align: center;
}

.btn-profile-primary {
    color: #101b2d;
    background: var(--accent);
}

.btn-profile-primary:hover {
    background: #ffffff;
}

.btn-profile-outline {
    color: var(--accent);
    border: 1px solid var(--accent);
}

.btn-profile-outline:hover {
    color: #101b2d;
    background: var(--accent);
}

/* Forms inside profile */

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.profile-box .form-group {
    margin-bottom: 11px;
}

.profile-box label {
    color: var(--gray-text);
    font-size: 0.82rem;
}

.profile-box input,
.profile-box textarea,
.profile-box select {
    width: 100%;
    padding: 9px 10px;
    color: #ffffff;
    background: #101b2d;
    border: 1px solid var(--border-color);
    border-radius: 7px;
    font-family: inherit;
    font-size: 0.86rem;
    outline: none;
}

.profile-box input:focus,
.profile-box textarea:focus,
.profile-box select:focus {
    border-color: var(--accent);
}

.profile-box textarea {
    resize: vertical;
    line-height: 1.7;
}

.profile-box button {
    padding: 9px 12px;
    color: #101b2d;
    background: var(--accent);
    border: none;
    border-radius: 7px;
    font-size: 0.86rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.25s;
}

.profile-box button:hover {
    background: #ffffff;
}

/* Alerts */

.profile-alert,
.profile-message {
    margin-bottom: 14px;
    padding: 10px 13px;
    color: #101b2d;
    background: var(--accent);
    border-radius: 8px;
    font-size: 0.86rem;
    font-weight: bold;
}

.profile-error {
    margin-bottom: 14px;
    padding: 10px 13px;
    color: #ffffff;
    background: #d9534f;
    border-radius: 8px;
    font-size: 0.86rem;
}

/* Optional Stats */

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 11px;
    margin-bottom: 16px;
}

.profile-stat-card {
    padding: 12px;
    text-align: center;
    background: #101b2d;
    border: 1px solid var(--border-color);
    border-radius: 9px;
}

.profile-stat-card strong {
    display: block;
    margin-bottom: 4px;
    color: var(--accent);
    font-size: 1.15rem;
}

.profile-stat-card span {
    color: var(--muted-text);
    font-size: 0.8rem;
}

/* Responsive */

@media (max-width: 850px) {
    .profile-layout {
        grid-template-columns: 1fr;
    }

    .profile-sidebar {
        width: 100%;
    }

    .profile-menu {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .profile-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .profile-page {
        padding: 22px 10px 40px;
    }

    .profile-page-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        margin-bottom: 14px;
    }

    .profile-page-header h1 {
        font-size: 1.28rem;
    }

    .profile-sidebar,
    .profile-box {
        padding: 14px;
    }

    .profile-avatar {
        width: 52px;
        height: 52px;
        font-size: 1.25rem;
    }

    .profile-info-grid {
        grid-template-columns: 1fr;
    }

    .profile-info-grid .full-width {
        grid-column: auto;
    }

    .profile-menu {
        grid-template-columns: 1fr;
    }

    .profile-stats {
        grid-template-columns: 1fr;
    }

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

    .profile-actions a,
    .profile-actions button {
        width: 100%;
    }

    .orders-table {
        min-width: 560px;
    }

    .orders-table th,
    .orders-table td {
        padding: 8px;
        font-size: 0.78rem;
    }
}

@media (max-width: 420px) {
    .profile-page-header h1 {
        font-size: 1.18rem;
    }

    .profile-user-summary h2 {
        font-size: 0.9rem;
    }

    .profile-user-summary p {
        font-size: 0.76rem;
    }

    .profile-box h2 {
        font-size: 1rem;
    }

    .profile-info-grid span {
        font-size: 0.84rem;
    }
}

/* Catalog Page */

.catalog-page {
    min-height: 75vh;
    padding: 50px 20px 80px;
    background: #101b2d;
}

.catalog-container {
    max-width: 1200px;
    margin: 0 auto;
}

.catalog-header {
    margin-bottom: 35px;
    text-align: center;
}

.catalog-header h1 {
    margin-bottom: 10px;
    color: var(--accent);
    font-size: 2rem;
}

.catalog-header p {
    color: var(--muted-text);
}

.catalog-content {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 28px;
    align-items: start;
}

.catalog-sidebar {
    padding: 22px;
    background: var(--box-dark);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    position: sticky;
    top: 150px;
}

.catalog-sidebar h2 {
    margin-bottom: 18px;
    color: var(--accent);
    font-size: 1.15rem;
}

.category-filter {
    display: block;
    margin-bottom: 10px;
    padding: 11px 12px;
    color: var(--muted-text);
    border-radius: 7px;
    transition: 0.25s;
}

.category-filter:hover,
.category-filter.active-category {
    color: #101b2d;
    background: var(--accent);
}

.catalog-result-count {
    margin-bottom: 20px;
    color: var(--muted-text);
}

.search-result-text {
    color: var(--muted-text);
}

.search-result-text strong {
    color: var(--accent);
}

.product-meta {
    min-height: 28px;
    margin: 8px 0;
    color: #9fb0c3;
    font-size: 0.82rem;
}

/* Product Detail */

.product-detail-page {
    min-height: 75vh;
    padding: 45px 20px 80px;
    background: #101b2d;
}

.product-detail-container {
    max-width: 1150px;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 25px;
    color: var(--gray-text);
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--accent);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.product-detail-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    padding: 35px;
    background: var(--box-dark);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    align-items: start;
}

.product-detail-image-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 360px;
    padding: 25px;
    background: #101b2d;
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.product-detail-image-section img {
    max-width: 100%;
    max-height: 330px;
    object-fit: contain;
}

.product-detail-info-section {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.detail-category {
    color: var(--accent);
    font-size: 0.95rem;
}

.detail-title {
    color: #ffffff;
    font-size: 1.7rem;
    line-height: 1.7;
}

.detail-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.detail-meta div {
    padding: 12px;
    background: #101b2d;
    border-radius: 8px;
}

.detail-meta strong {
    color: var(--gray-text);
    margin-left: 5px;
}

.detail-price-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 16px 18px;
    background: #101b2d;
    border: 1px solid var(--border-color);
    border-radius: 10px;
}

.price-label {
    color: var(--gray-text);
}

.price-value {
    color: var(--accent);
    font-size: 1.35rem;
    font-weight: bold;
}

.detail-status {
    color: var(--muted-text);
}

.detail-status small {
    margin-right: 10px;
    color: #9fb0c3;
}

.status-in-stock {
    color: #6ee7a1;
    font-weight: bold;
}

.status-out-of-stock {
    color: #ff8e8e;
    font-weight: bold;
}

.detail-short-description {
    padding: 14px;
    color: var(--muted-text);
    background: #101b2d;
    border-radius: 8px;
    line-height: 1.9;
}

.detail-cart-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.quantity-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.quantity-field label {
    color: var(--gray-text);
}

.quantity-field input {
    width: 120px;
    padding: 10px;
    color: #ffffff;
    background: #101b2d;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.btn-add-to-cart-detail {
    width: 100%;
    padding: 14px;
    color: #101b2d;
    background: var(--accent);
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
}

.btn-add-to-cart-detail:hover {
    background: #ffffff;
}

.btn-add-to-cart-detail:disabled {
    color: #aab2bb;
    background: #34495e;
    cursor: not-allowed;
}

.detail-description {
    margin-top: 30px;
    padding: 28px;
    background: var(--box-dark);
    border: 1px solid var(--border-color);
    border-radius: 14px;
}

.detail-description h2 {
    margin-bottom: 15px;
    color: var(--accent);
    font-size: 1.3rem;
}

.detail-description p {
    color: var(--muted-text);
    line-height: 2;
}

.related-products-section {
    margin-top: 45px;
}

.related-view-btn {
    display: block;
    text-align: center;
}

/* Not Found */

.not-found-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
    background: #101b2d;
}

.not-found-box {
    max-width: 500px;
    padding: 35px;
    text-align: center;
    background: var(--box-dark);
    border: 1px solid var(--border-color);
    border-radius: 14px;
}

.not-found-box h1 {
    margin-bottom: 12px;
    color: var(--accent);
}

.not-found-box p {
    margin-bottom: 20px;
    color: var(--muted-text);
}

/* Responsive Catalog and Detail */

@media (max-width: 900px) {
    .catalog-content {
        grid-template-columns: 1fr;
    }

    .catalog-sidebar {
        position: static;
    }

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

    .product-detail-image-section {
        min-height: 260px;
    }
}

@media (max-width: 600px) {
    .catalog-header h1 {
        font-size: 1.55rem;
    }

    .product-detail-wrapper {
        padding: 20px;
    }

    .detail-title {
        font-size: 1.35rem;
    }

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

    .detail-price-box {
        flex-direction: column;
        align-items: flex-start;
    }
}
/* Cart Count */

.cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    margin-right: 5px;
    padding: 0 6px;
    color: #101b2d;
    background: var(--accent);
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: bold;
}

/* Cart Page */

.cart-page {
    min-height: 75vh;
    padding: 50px 20px 80px;
    background: #101b2d;
}

.cart-container {
    max-width: 1200px;
    margin: 0 auto;
}

.cart-header {
    margin-bottom: 30px;
    text-align: center;
}

.cart-header h1 {
    margin-bottom: 10px;
    color: var(--accent);
    font-size: 2rem;
}

.cart-header p {
    color: var(--muted-text);
}

.cart-alert {
    margin-bottom: 25px;
    padding: 14px 18px;
    color: #101b2d;
    background: var(--accent);
    border-radius: 10px;
    font-weight: bold;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 330px;
    gap: 28px;
    align-items: start;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.cart-item {
    display: grid;
    grid-template-columns: 140px 1fr 210px;
    gap: 20px;
    padding: 20px;
    background: var(--box-dark);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    align-items: center;
}

.cart-item-image {
    width: 140px;
    height: 120px;
    padding: 10px;
    background: #101b2d;
    border: 1px solid var(--border-color);
    border-radius: 10px;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cart-item-info h2 {
    margin-bottom: 12px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.cart-item-info h2 a {
    color: #ffffff;
}

.cart-item-info h2 a:hover {
    color: var(--accent);
}

.cart-item-price,
.cart-item-stock {
    margin-bottom: 8px;
    color: var(--muted-text);
    font-size: 0.9rem;
}

.cart-item-price strong {
    color: var(--accent);
}

.cart-update-form {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.cart-update-form label {
    color: var(--gray-text);
}

.cart-update-form input {
    width: 80px;
    margin-right: 6px;
    padding: 8px;
    color: #ffffff;
    background: #101b2d;
    border: 1px solid var(--border-color);
    border-radius: 7px;
}

.btn-cart-update {
    padding: 8px 12px;
    color: #101b2d;
    background: var(--accent);
    border: none;
    border-radius: 7px;
    cursor: pointer;
    font-weight: bold;
}

.btn-cart-update:hover {
    background: #ffffff;
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
}

.cart-item-total {
    padding: 12px;
    background: #101b2d;
    border-radius: 8px;
    text-align: center;
}

.cart-item-total span {
    display: block;
    margin-bottom: 8px;
    color: var(--gray-text);
    font-size: 0.85rem;
}

.cart-item-total strong {
    color: var(--accent);
    font-size: 1rem;
}

.btn-cart-remove {
    width: 100%;
    padding: 10px;
    color: #ffffff;
    background: #d9534f;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}

.btn-cart-remove:hover {
    background: #c9302c;
}

.cart-summary {
    position: sticky;
    top: 145px;
    padding: 24px;
    background: var(--box-dark);
    border: 1px solid var(--border-color);
    border-radius: 14px;
}

.cart-summary h2 {
    margin-bottom: 20px;
    color: var(--accent);
    font-size: 1.25rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 14px 0;
    color: var(--muted-text);
    border-bottom: 1px solid var(--border-color);
}

.summary-row strong {
    color: #ffffff;
}

.summary-note {
    margin: 18px 0;
    padding: 12px;
    color: #9fb0c3;
    background: #101b2d;
    border-radius: 8px;
    font-size: 0.88rem;
    line-height: 1.9;
}

.btn-checkout,
.btn-continue-shopping,
.btn-clear-cart {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 12px;
    text-align: center;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

.btn-checkout {
    color: #101b2d;
    background: var(--accent);
}

.btn-checkout:hover {
    background: #ffffff;
}

.btn-continue-shopping {
    color: var(--accent);
    background: transparent;
    border: 1px solid var(--accent);
}

.btn-continue-shopping:hover {
    color: #101b2d;
    background: var(--accent);
}

.clear-cart-form {
    margin-top: 0;
}

.btn-clear-cart {
    color: #ffffff;
    background: #d9534f;
    border: none;
}

.btn-clear-cart:hover {
    background: #c9302c;
}

.empty-cart-box {
    max-width: 520px;
    margin: 0 auto;
    padding: 35px;
    text-align: center;
    background: var(--box-dark);
    border: 1px solid var(--border-color);
    border-radius: 14px;
}

.empty-cart-box h2 {
    margin-bottom: 12px;
    color: var(--accent);
}

.empty-cart-box p {
    margin-bottom: 22px;
    color: var(--muted-text);
}

/* Responsive Cart */

@media (max-width: 950px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: static;
    }
}

@media (max-width: 750px) {
    .cart-item {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .cart-item-image {
        width: 100%;
        max-width: 230px;
        height: 170px;
        margin: 0 auto;
    }

    .cart-update-form {
        justify-content: center;
    }
}

@media (max-width: 500px) {
    .cart-header h1 {
        font-size: 1.55rem;
    }

    .cart-item {
        padding: 16px;
    }

    .cart-update-form {
        flex-direction: column;
    }

    .cart-update-form input {
        margin-right: 0;
    }
}
/* Compact Cart Page */

.cart-page {
    padding: 30px 16px 50px;
}

.cart-header {
    margin-bottom: 20px;
}

.cart-header h1 {
    margin-bottom: 6px;
    font-size: 1.6rem;
}

.cart-header p {
    font-size: 0.9rem;
}

.cart-alert {
    margin-bottom: 18px;
    padding: 10px 14px;
    font-size: 0.9rem;
}

.cart-layout {
    grid-template-columns: 1fr 285px;
    gap: 20px;
}

.cart-items {
    gap: 12px;
}

.cart-item {
    grid-template-columns: 95px 1fr 165px;
    gap: 14px;
    padding: 13px;
    border-radius: 11px;
}

.cart-item-image {
    width: 95px;
    height: 85px;
    padding: 7px;
    border-radius: 8px;
}

.cart-item-info h2 {
    margin-bottom: 6px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.cart-item-price,
.cart-item-stock {
    margin-bottom: 4px;
    font-size: 0.82rem;
}

.cart-update-form {
    gap: 7px;
    margin-top: 7px;
}

.cart-update-form label {
    font-size: 0.82rem;
}

.cart-update-form input {
    width: 65px;
    padding: 6px;
    font-size: 0.85rem;
}

.btn-cart-update {
    padding: 6px 10px;
    font-size: 0.82rem;
}

.cart-item-actions {
    gap: 10px;
}

.cart-item-total {
    padding: 9px;
    border-radius: 7px;
}

.cart-item-total span {
    margin-bottom: 5px;
    font-size: 0.78rem;
}

.cart-item-total strong {
    font-size: 0.88rem;
}

.btn-cart-remove {
    padding: 8px;
    font-size: 0.82rem;
    border-radius: 7px;
}

.cart-summary {
    top: 125px;
    padding: 18px;
    border-radius: 11px;
}

.cart-summary h2 {
    margin-bottom: 12px;
    font-size: 1.05rem;
}

.summary-row {
    padding: 10px 0;
    font-size: 0.88rem;
}

.summary-note {
    margin: 12px 0;
    padding: 9px;
    font-size: 0.8rem;
    line-height: 1.7;
}

.btn-checkout,
.btn-continue-shopping,
.btn-clear-cart {
    margin-top: 9px;
    padding: 9px;
    font-size: 0.85rem;
    border-radius: 7px;
}

.empty-cart-box {
    max-width: 450px;
    padding: 25px;
    border-radius: 12px;
}

.empty-cart-box h2 {
    margin-bottom: 8px;
    font-size: 1.25rem;
}

.empty-cart-box p {
    margin-bottom: 16px;
    font-size: 0.9rem;
}
@media (max-width: 750px) {
    .cart-page {
        padding: 24px 12px 45px;
    }

    .cart-item {
        gap: 10px;
        padding: 12px;
    }

    .cart-item-image {
        max-width: 160px;
        height: 120px;
    }

    .cart-item-info h2 {
        font-size: 0.92rem;
    }

    .cart-update-form {
        margin-top: 6px;
    }

    .cart-summary {
        padding: 15px;
    }
}
/* ================================
   Compact Checkout & Order Success
   ================================ */

/* Checkout Page */

.checkout-page {
    min-height: 75vh;
    padding: 25px 14px 50px;
    background: #101b2d;
}

.checkout-container {
    max-width: 1100px;
    margin: 0 auto;
}

.checkout-header {
    margin-bottom: 18px;
    text-align: center;
}

.checkout-header h1 {
    margin-bottom: 5px;
    color: var(--accent);
    font-size: 1.5rem;
}

.checkout-header p {
    color: var(--muted-text);
    font-size: 0.86rem;
}

/* Errors */

.checkout-errors {
    margin-bottom: 16px;
    padding: 11px 14px;
    color: #ffffff;
    background: #d9534f;
    border-radius: 8px;
    font-size: 0.88rem;
}

.checkout-errors ul {
    margin: 0;
    padding-right: 20px;
}

.checkout-errors li {
    margin-bottom: 5px;
}

/* Layout */

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 18px;
    align-items: start;
}

/* Form Section */

.checkout-form-section,
.checkout-summary {
    background: var(--box-dark);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.checkout-form-section {
    padding: 18px;
}

.checkout-form-section h2,
.checkout-summary h2 {
    margin-bottom: 14px;
    color: var(--accent);
    font-size: 1.05rem;
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkout-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.checkout-form label {
    color: var(--gray-text);
    font-size: 0.84rem;
}

.checkout-form input,
.checkout-form textarea {
    width: 100%;
    padding: 9px 10px;
    color: #ffffff;
    background: #101b2d;
    border: 1px solid var(--border-color);
    border-radius: 7px;
    font-family: inherit;
    font-size: 0.88rem;
    outline: none;
}

.checkout-form input:focus,
.checkout-form textarea:focus {
    border-color: var(--accent);
}

.checkout-form textarea {
    resize: vertical;
    line-height: 1.7;
}

.btn-submit-order {
    width: 100%;
    margin-top: 4px;
    padding: 10px;
    color: #101b2d;
    background: var(--accent);
    border: none;
    border-radius: 7px;
    font-weight: bold;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.25s;
}

.btn-submit-order:hover {
    background: #ffffff;
}

/* Summary Section */

.checkout-summary {
    position: sticky;
    top: 120px;
    padding: 15px;
}

.checkout-items {
    display: flex;
    flex-direction: column;
    gap: 9px;
    max-height: 360px;
    overflow-y: auto;
    padding-left: 4px;
}

/* Scrollbar */

.checkout-items::-webkit-scrollbar {
    width: 5px;
}

.checkout-items::-webkit-scrollbar-track {
    background: #101b2d;
    border-radius: 10px;
}

.checkout-items::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}

.checkout-items::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Checkout Item */

.checkout-item {
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 8px;
    padding: 8px;
    background: #101b2d;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.checkout-item-image {
    width: 50px;
    height: 50px;
    padding: 4px;
    background: var(--box-dark);
    border-radius: 7px;
}

.checkout-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.checkout-item-info h3 {
    margin-bottom: 3px;
    font-size: 0.8rem;
    line-height: 1.45;
}

.checkout-item-info h3 a {
    color: #ffffff;
}

.checkout-item-info h3 a:hover {
    color: var(--accent);
}

.checkout-item-info p {
    margin-bottom: 2px;
    color: var(--muted-text);
    font-size: 0.73rem;
}

.checkout-item-total {
    grid-column: 1 / -1;
    padding-top: 6px;
    color: var(--accent);
    border-top: 1px solid var(--border-color);
    font-weight: bold;
    font-size: 0.8rem;
    text-align: left;
}

/* Total Box */

.checkout-total-box {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
    padding: 11px;
    background: #101b2d;
    border-radius: 8px;
    font-size: 0.88rem;
}

.checkout-total-box span {
    color: var(--gray-text);
}

.checkout-total-box strong {
    color: var(--accent);
    font-size: 0.98rem;
}

/* Note */

.checkout-note {
    margin-top: 11px;
    padding: 9px;
    color: #9fb0c3;
    background: #101b2d;
    border-radius: 8px;
    font-size: 0.78rem;
    line-height: 1.7;
}

/* Back Button */

.btn-back-to-cart {
    display: block;
    margin-top: 10px;
    padding: 9px;
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 7px;
    text-align: center;
    font-weight: bold;
    font-size: 0.86rem;
    transition: 0.25s;
}

.btn-back-to-cart:hover {
    color: #101b2d;
    background: var(--accent);
}

/* ================================
   Order Success Page
   ================================ */

.order-success-page {
    min-height: 75vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 35px 14px 55px;
    background: #101b2d;
}

.order-success-box {
    width: 100%;
    max-width: 620px;
    padding: 24px;
    text-align: center;
    background: var(--box-dark);
    border: 1px solid var(--border-color);
    border-radius: 14px;
}

.success-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #101b2d;
    background: var(--accent);
    border-radius: 50%;
    font-size: 1.7rem;
    font-weight: bold;
}

.order-success-box h1 {
    margin-bottom: 8px;
    color: var(--accent);
    font-size: 1.35rem;
}

.order-success-box p {
    margin-bottom: 18px;
    color: var(--muted-text);
    font-size: 0.9rem;
}

/* Success Info */

.order-success-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.order-success-info div {
    padding: 11px;
    background: #101b2d;
    border-radius: 8px;
}

.order-success-info span {
    display: block;
    margin-bottom: 5px;
    color: var(--gray-text);
    font-size: 0.78rem;
}

.order-success-info strong {
    color: #ffffff;
    font-size: 0.86rem;
}

/* Success Items */

.success-order-items {
    margin-top: 18px;
    text-align: right;
}

.success-order-items h2 {
    margin-bottom: 12px;
    color: var(--accent);
    font-size: 1rem;
}

.success-order-item {
    display: grid;
    grid-template-columns: 1fr 60px 120px;
    gap: 8px;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid var(--border-color);
}

.success-order-item span {
    color: #ffffff;
    font-size: 0.85rem;
}

.success-order-item small {
    color: var(--muted-text);
    font-size: 0.8rem;
}

.success-order-item strong {
    color: var(--accent);
    font-size: 0.84rem;
    text-align: left;
}

/* Success Actions */

.success-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-success-shopping,
.btn-success-profile {
    flex: 1;
    padding: 10px;
    border-radius: 7px;
    text-align: center;
    font-weight: bold;
    font-size: 0.86rem;
    transition: 0.25s;
}

.btn-success-shopping {
    color: #101b2d;
    background: var(--accent);
}

.btn-success-shopping:hover {
    background: #ffffff;
}

.btn-success-profile {
    color: var(--accent);
    border: 1px solid var(--accent);
}

.btn-success-profile:hover {
    color: #101b2d;
    background: var(--accent);
}

/* ================================
   Responsive
   ================================ */

@media (max-width: 900px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .checkout-summary {
        position: static;
    }

    .checkout-items {
        max-height: none;
    }
}

@media (max-width: 600px) {
    .checkout-page {
        padding: 20px 10px 40px;
    }

    .checkout-header h1 {
        font-size: 1.35rem;
    }

    .checkout-form-section,
    .checkout-summary,
    .order-success-box {
        padding: 14px;
    }

    .checkout-item {
        grid-template-columns: 45px 1fr;
    }

    .checkout-item-image {
        width: 45px;
        height: 45px;
    }

    .checkout-total-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .order-success-info {
        grid-template-columns: 1fr;
    }

    .success-order-item {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .success-order-item strong {
        text-align: center;
    }

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

@media (max-width: 420px) {
    .checkout-item {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .checkout-item-image {
        margin: 0 auto;
    }

    .checkout-item-total {
        text-align: center;
    }
}
/* ================================
   Order Detail Page
   جزئیات سفارش
   ================================ */

.order-detail-page {
    min-height: 75vh;
    padding: 28px 14px 55px;
    background: #101b2d;
}

.order-detail-container {
    max-width: 1080px;
    margin: 0 auto;
}

.order-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.order-detail-header h1 {
    margin-bottom: 4px;
    color: var(--accent);
    font-size: 1.45rem;
}

.order-detail-header p {
    color: var(--muted-text);
    font-size: 0.88rem;
}

.order-detail-header strong {
    color: #ffffff;
}

.btn-back-profile {
    display: inline-block;
    padding: 8px 12px;
    color: #101b2d;
    background: var(--accent);
    border-radius: 7px;
    font-size: 0.84rem;
    font-weight: bold;
    transition: 0.25s;
}

.btn-back-profile:hover {
    background: #ffffff;
}

.order-detail-layout {
    display: grid;
    grid-template-columns: 1fr 310px;
    gap: 18px;
    align-items: start;
}

.order-detail-main {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.order-detail-box {
    padding: 18px;
    background: var(--box-dark);
    border: 1px solid var(--border-color);
    border-radius: 11px;
}

.order-detail-box h1,
.order-detail-box h2 {
    margin-bottom: 14px;
    color: var(--accent);
    font-size: 1.08rem;
}

.order-detail-box p {
    color: var(--muted-text);
    line-height: 1.9;
}

.order-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 11px;
}

.order-info-grid > div,
.delivery-info > div {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px 11px;
    background: #101b2d;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.order-info-grid strong,
.delivery-info strong {
    color: var(--gray-text);
    font-size: 0.78rem;
    font-weight: normal;
}

.order-info-grid span,
.delivery-info span {
    color: #ffffff;
    font-size: 0.88rem;
    line-height: 1.8;
}

.order-detail-side {
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.delivery-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.order-total-card {
    padding: 16px;
    background: var(--box-dark);
    border: 1px solid var(--border-color);
    border-radius: 11px;
    text-align: center;
}

.order-total-card span {
    display: block;
    margin-bottom: 8px;
    color: var(--gray-text);
    font-size: 0.84rem;
}

.order-total-card strong {
    color: var(--accent);
    font-size: 1.1rem;
}

.order-items-table-wrapper {
    overflow-x: auto;
    border-radius: 9px;
}

.order-items-table {
    width: 100%;
    min-width: 580px;
    border-collapse: collapse;
}

.order-items-table th,
.order-items-table td {
    padding: 9px 10px;
    border: 1px solid #435467;
    text-align: center;
    white-space: nowrap;
    font-size: 0.82rem;
}

.order-items-table th {
    color: #101b2d;
    background: var(--accent);
    font-weight: bold;
}

.order-items-table td {
    color: var(--muted-text);
    background: #101b2d;
}

.order-items-table td:first-child {
    text-align: right;
}

.order-items-table strong {
    color: var(--accent);
}

.empty-order-items {
    padding: 18px;
    color: var(--muted-text);
    background: #101b2d;
    border: 1px dashed var(--border-color);
    border-radius: 9px;
    text-align: center;
}

/* Responsive Order Detail */

@media (max-width: 850px) {
    .order-detail-layout {
        grid-template-columns: 1fr;
    }

    .order-detail-side {
        position: static;
    }
}

@media (max-width: 600px) {
    .order-detail-page {
        padding: 22px 10px 42px;
    }

    .order-detail-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .order-detail-header h1 {
        font-size: 1.28rem;
    }

    .order-detail-box {
        padding: 14px;
    }

    .order-info-grid {
        grid-template-columns: 1fr;
    }

    .order-items-table {
        min-width: 520px;
    }

    .order-items-table th,
    .order-items-table td {
        padding: 8px;
        font-size: 0.78rem;
    }
}
/* ================================
   Admin Orders - Stage 14
   مدیریت سفارش‌ها
   ================================ */

.admin-orders-page,
.admin-order-detail-page {
    min-height: 100vh;
    padding: 28px 14px 55px;
    background: #101b2d;
    color: #ffffff;
}

.admin-container {
    max-width: 1120px;
    margin: 0 auto;
}

.admin-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.admin-page-header h1 {
    margin-bottom: 6px;
    color: var(--accent);
    font-size: 1.45rem;
}

.admin-page-header p {
    color: var(--muted-text);
    font-size: 0.88rem;
}

.admin-page-header strong {
    color: #ffffff;
}

.admin-header-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-btn-primary,
.admin-btn-secondary,
.admin-btn-danger {
    display: inline-block;
    padding: 9px 13px;
    border: none;
    border-radius: 7px;
    font-family: inherit;
    font-size: 0.84rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.25s;
    text-align: center;
}

.admin-btn-primary {
    color: #101b2d;
    background: var(--accent);
}

.admin-btn-primary:hover {
    background: #ffffff;
}

.admin-btn-secondary {
    color: #ffffff;
    background: #31445c;
}

.admin-btn-secondary:hover {
    background: #405772;
}

.admin-btn-danger {
    color: #ffffff;
    background: #b42318;
}

.admin-btn-danger:hover {
    background: #d92d20;
}

.admin-filter-box,
.admin-table-box,
.admin-box {
    padding: 18px;
    background: var(--box-dark);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.admin-filter-box {
    margin-bottom: 18px;
}

.admin-filter-form {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr auto;
    gap: 12px;
    align-items: end;
}

.admin-filter-form .form-group,
.admin-status-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-filter-form label,
.admin-status-form label {
    color: var(--gray-text);
    font-size: 0.8rem;
}

.admin-filter-form input,
.admin-filter-form select,
.admin-status-form select {
    width: 100%;
    padding: 10px 11px;
    color: #ffffff;
    background: #101b2d;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.86rem;
    outline: none;
}

.admin-filter-form input:focus,
.admin-filter-form select:focus,
.admin-status-form select:focus {
    border-color: var(--accent);
}

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

.admin-table-title {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.admin-table-title h2,
.admin-box h2 {
    color: var(--accent);
    font-size: 1.08rem;
}

.admin-table-title span {
    color: var(--muted-text);
    font-size: 0.84rem;
}

.admin-table-wrapper {
    overflow-x: auto;
    border-radius: 9px;
}

.admin-orders-table {
    width: 100%;
    min-width: 850px;
    border-collapse: collapse;
}

.admin-orders-table th,
.admin-orders-table td {
    padding: 9px 10px;
    border: 1px solid #435467;
    text-align: center;
    white-space: nowrap;
    font-size: 0.82rem;
}

.admin-orders-table th {
    color: #101b2d;
    background: var(--accent);
    font-weight: bold;
}

.admin-orders-table td {
    color: var(--muted-text);
    background: #101b2d;
}

.admin-orders-table td strong {
    color: #ffffff;
}

.admin-link {
    color: var(--accent);
    font-weight: bold;
}

.admin-link:hover {
    color: #ffffff;
}

.admin-empty-box {
    padding: 22px;
    color: var(--muted-text);
    background: #101b2d;
    border: 1px dashed var(--border-color);
    border-radius: 9px;
    text-align: center;
    line-height: 2;
}

.admin-alert {
    padding: 12px 14px;
    margin-bottom: 16px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.admin-alert-success {
    color: #0f5132;
    background: #d1e7dd;
}

.admin-alert-error {
    color: #842029;
    background: #f8d7da;
}

/* Admin Order Detail */

.admin-order-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 18px;
    align-items: start;
}

.admin-order-main {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.admin-order-side {
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.admin-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 11px;
}

.admin-info-grid > div,
.admin-side-info > div {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px 11px;
    background: #101b2d;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.admin-info-grid strong,
.admin-side-info strong {
    color: var(--gray-text);
    font-size: 0.78rem;
    font-weight: normal;
}

.admin-info-grid span,
.admin-side-info span {
    color: #ffffff;
    font-size: 0.88rem;
    line-height: 1.8;
}

.admin-side-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-status-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-full-btn {
    width: 100%;
}

.admin-total-card {
    padding: 16px;
    background: var(--box-dark);
    border: 1px solid var(--border-color);
    border-radius: 11px;
    text-align: center;
}

.admin-total-card span {
    display: block;
    margin-bottom: 8px;
    color: var(--gray-text);
    font-size: 0.84rem;
}

.admin-total-card strong {
    color: var(--accent);
    font-size: 1.1rem;
}

/* اگر این کلاس‌ها قبلاً در CSS نبودند */

.status-badge {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: bold;
}

.status-pending {
    color: #8a5a00;
    background: #fff3cd;
}

.status-processing {
    color: #084298;
    background: #cfe2ff;
}

.status-completed {
    color: #0f5132;
    background: #d1e7dd;
}

.status-cancelled {
    color: #842029;
    background: #f8d7da;
}

.status-paid {
    color: #0f5132;
    background: #d1e7dd;
}

.status-failed {
    color: #842029;
    background: #f8d7da;
}

/* Responsive Admin Orders */

@media (max-width: 900px) {
    .admin-filter-form {
        grid-template-columns: 1fr 1fr;
    }

    .admin-filter-form .form-actions {
        grid-column: 1 / -1;
    }

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

    .admin-order-side {
        position: static;
    }
}

@media (max-width: 650px) {
    .admin-orders-page,
    .admin-order-detail-page {
        padding: 22px 10px 42px;
    }

    .admin-page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-page-header h1 {
        font-size: 1.28rem;
    }

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

    .admin-filter-form .form-actions {
        flex-direction: column;
        align-items: stretch;
    }

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

    .admin-filter-box,
    .admin-table-box,
    .admin-box {
        padding: 14px;
    }

    .admin-orders-table {
        min-width: 780px;
    }

    .admin-orders-table th,
    .admin-orders-table td {
        padding: 8px;
        font-size: 0.78rem;
    }
}
/* ================================
   ZarinPal Payment
   پرداخت زرین‌پال
   ================================ */

.checkout-page,
.success-page {
    min-height: 75vh;
    padding: 28px 14px 55px;
    background: #101b2d;
}

.checkout-container {
    max-width: 820px;
    margin: 0 auto;
    padding: 18px;
    background: var(--box-dark);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.checkout-container h1 {
    margin-bottom: 18px;
    color: var(--accent);
    font-size: 1.4rem;
}

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

.checkout-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.checkout-form .form-group:nth-child(3),
.checkout-form .form-group:nth-child(4),
.checkout-form .form-group:nth-child(5),
.checkout-form .btn-primary {
    grid-column: 1 / -1;
}

.checkout-form label {
    color: var(--gray-text);
    font-size: 0.82rem;
}

.checkout-form input,
.checkout-form textarea,
.checkout-form select {
    width: 100%;
    padding: 10px 11px;
    color: #ffffff;
    background: #101b2d;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
}

.checkout-form textarea {
    min-height: 100px;
    resize: vertical;
}

.btn-primary {
    padding: 11px 14px;
    color: #101b2d;
    background: var(--accent);
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-weight: bold;
    cursor: pointer;
}

.btn-primary:hover {
    background: #ffffff;
}

.success-box {
    max-width: 520px;
    margin: 0 auto;
    padding: 24px;
    background: var(--box-dark);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-align: center;
}

.success-box h1 {
    margin-bottom: 12px;
    color: var(--accent);
    font-size: 1.35rem;
}

.success-box p {
    margin-bottom: 16px;
    color: var(--muted-text);
    line-height: 1.9;
}

.success-box a {
    display: inline-block;
    padding: 9px 14px;
    color: #101b2d;
    background: var(--accent);
    border-radius: 8px;
    font-weight: bold;
}

.success-box a:hover {
    background: #ffffff;
}

@media (max-width: 700px) {
    .checkout-form {
        grid-template-columns: 1fr;
    }
}
.payment-test-page,
.payment-result-page {
    min-height: 100vh;
    padding: 40px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f7fb;
}

.payment-test-card,
.payment-result-card {
    width: 100%;
    max-width: 520px;
    padding: 26px;
    border-radius: 20px;
    background: #fff;
    text-align: center;
    box-shadow: 0 12px 35px rgba(15, 23, 42, .08);
}

.payment-test-icon,
.payment-result-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #2563eb;
    font-size: 36px;
    font-weight: 800;
}

.payment-result-card.success .payment-result-icon {
    background: #16a34a;
}

.payment-result-card.failed .payment-result-icon {
    background: #dc2626;
}

.payment-test-card h1,
.payment-result-card h1 {
    margin: 0 0 12px;
    color: #111827;
    font-size: 23px;
}

.payment-test-card p,
.payment-result-card p {
    margin: 0 0 22px;
    color: #6b7280;
    line-height: 1.9;
}

.payment-info,
.payment-details {
    margin: 20px 0;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    text-align: right;
}

.payment-info div,
.payment-details div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 15px;
    border-bottom: 1px solid #e5e7eb;
}

.payment-info div:last-child,
.payment-details div:last-child {
    border-bottom: 0;
}

.payment-info span,
.payment-details span {
    color: #6b7280;
}

.payment-info strong,
.payment-details strong {
    color: #111827;
}

.payment-test-actions,
.payment-actions {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 12px;
    border: 0;
    text-decoration: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.payment-test-actions .btn,
.payment-actions .btn {
    flex: 1;
}

.btn-success {
    background: #16a34a;
    color: #fff;
}

.btn-danger {
    background: #dc2626;
    color: #fff;
}

.btn-primary {
    background: #2563eb;
    color: #fff;
}

.btn-light {
    background: #f3f4f6;
    color: #111827;
}

.back-link {
    display: inline-block;
    margin-top: 18px;
    color: #2563eb;
    text-decoration: none;
    font-size: 14px;
}

.back-link:hover {
    text-decoration: underline;
}

@media (max-width: 520px) {
    .payment-test-card,
    .payment-result-card {
        padding: 22px 16px;
    }

    .payment-test-actions,
    .payment-actions {
        flex-direction: column;
    }

    .payment-info div,
    .payment-details div {
        flex-direction: column;
        gap: 4px;
    }
}
/* ==============================
   Payment Result Pages
   order-success.php / payment-failed.php
============================== */

.payment-result-page {
    min-height: calc(100vh - 80px);
    padding: 36px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000c19;
}

.payment-result-card {
    width: 100%;
    max-width: 520px;
    padding: 26px;
    border-radius: 18px;
    background: #000c19;
    text-align: center;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    border: 1px solid #eef0f4;
}

.payment-result-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 38px;
    font-weight: 800;
    line-height: 1;
}

.payment-result-card.success .payment-result-icon {
    background: #fca311;
}

.payment-result-card.failed .payment-result-icon {
    background: #dc2626;
}

.payment-result-card h1 {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 23px;
    font-weight: 800;
}

.payment-result-card p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.9;
}

.payment-details {
    margin: 22px 0 0;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    text-align: right;
    background: #fca311;
}

.payment-details-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid #e5e7eb;
}

.payment-details-row:last-child {
    border-bottom: 0;
}

.payment-details-row span {
    color: #6b7280;
    font-size: 14px;
}

.payment-details-row strong {
    color: #111827;
    font-size: 14px;
    font-weight: 800;
    word-break: break-word;
}

.payment-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 82px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.payment-status-badge.success {
    background: #fca311;
    color: #166534;
}

.payment-status-badge.failed {
    background: #fca311;
    color: #991b1b;
}

.payment-result-help {
    margin-top: 18px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.8;
    text-align: right;
}

.payment-result-card.success .payment-result-help {
    background: #fca311;
    color: #166534;
}

.payment-result-card.failed .payment-result-help {
    background: #fca311;
    color: #991b1b;
}

.payment-result-actions {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}

.payment-result-btn {
    flex: 1;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 12px;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s ease;
}

.payment-result-btn-primary {
    background: #2563eb;
    color: #ffffff;
}

.payment-result-btn-primary:hover {
    background: #1d4ed8;
    color: #ffffff;
}

.payment-result-btn-light {
    background: #f3f4f6;
    color: #111827;
}

.payment-result-btn-light:hover {
    background: #e5e7eb;
    color: #111827;
}

@media (max-width: 520px) {
    .payment-result-page {
        padding: 24px 10px;
        align-items: flex-start;
    }

    .payment-result-card {
        padding: 22px 16px;
        border-radius: 16px;
    }

    .payment-result-card h1 {
        font-size: 21px;
    }

    .payment-details-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .payment-result-actions {
        flex-direction: column;
    }

    .payment-result-btn {
        width: 100%;
    }
}
/* ==============================
   Admin Products Page
============================== */

.admin-page {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 14px;
    background: #f5f7fb;
    min-height: 100vh;
}

.admin-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.admin-page-header h1 {
    margin: 0 0 6px;
    color: #111827;
    font-size: 24px;
    font-weight: 800;
}

.admin-page-header p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.8;
}

.admin-filter-card,
.admin-table-card {
    background: #ffffff;
    border: 1px solid #eef0f4;
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.admin-filter-card {
    padding: 18px;
    margin-bottom: 18px;
}

.admin-filter-form {
    display: grid;
    grid-template-columns: 1.5fr 1fr auto;
    align-items: end;
    gap: 12px;
}

.admin-form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.admin-form-group label {
    color: #374151;
    font-size: 13px;
    font-weight: 700;
}

.admin-form-group input,
.admin-form-group select {
    width: 100%;
    height: 42px;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    background: #ffffff;
    color: #111827;
    font-family: inherit;
    font-size: 14px;
    outline: none;
}

.admin-form-group input:focus,
.admin-form-group select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.admin-filter-actions {
    display: flex;
    gap: 8px;
}

.admin-btn {
    min-height: 42px;
    padding: 9px 14px;
    border-radius: 12px;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    transition: 0.2s ease;
}

.admin-btn-primary {
    background: #2563eb;
    color: #ffffff;
}

.admin-btn-primary:hover {
    background: #1d4ed8;
    color: #ffffff;
}

.admin-btn-light {
    background: #f3f4f6;
    color: #111827;
}

.admin-btn-light:hover {
    background: #e5e7eb;
}

.admin-table-card {
    padding: 0;
    overflow: hidden;
}

.admin-table-responsive {
    width: 100%;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.admin-table th {
    background: #f9fafb;
    color: #374151;
    font-size: 13px;
    font-weight: 800;
    text-align: right;
    padding: 14px 12px;
    border-bottom: 1px solid #e5e7eb;
}

.admin-table td {
    padding: 13px 12px;
    border-bottom: 1px solid #eef0f4;
    color: #111827;
    font-size: 14px;
    vertical-align: middle;
}

.admin-table tr:last-child td {
    border-bottom: 0;
}

.admin-table td strong {
    display: block;
    margin-bottom: 4px;
    color: #111827;
    font-size: 14px;
    font-weight: 800;
}

.admin-table td small {
    display: block;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.7;
}

.admin-product-thumb {
    width: 58px;
    height: 58px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid #e5e7eb;
    background: #f3f4f6;
}

.admin-product-no-image {
    width: 58px;
    height: 58px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 11px;
    border: 1px solid #e5e7eb;
}

.admin-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.admin-badge-success {
    background: #dcfce7;
    color: #166534;
}

.admin-badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.admin-badge-muted {
    background: #f3f4f6;
    color: #4b5563;
}

.admin-action-buttons {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.admin-action-btn {
    min-height: 32px;
    padding: 6px 10px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    transition: 0.2s ease;
}

.admin-action-btn.edit {
    background: #eff6ff;
    color: #1d4ed8;
}

.admin-action-btn.edit:hover {
    background: #dbeafe;
}

.admin-action-btn.view {
    background: #ecfdf5;
    color: #166534;
}

.admin-action-btn.view:hover {
    background: #dcfce7;
}

.admin-action-btn.delete {
    background: #fef2f2;
    color: #991b1b;
}

.admin-action-btn.delete:hover {
    background: #fee2e2;
}

.admin-empty {
    padding: 34px 16px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}

@media (max-width: 768px) {
    .admin-page {
        padding: 18px 10px;
    }

    .admin-page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-page-header .admin-btn {
        width: 100%;
    }

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

    .admin-filter-actions {
        flex-direction: column;
    }

    .admin-filter-actions .admin-btn {
        width: 100%;
    }
}
/* ==============================
   Admin Panel
============================== */

.admin-login-page {
    min-height: 100vh;
    padding: 30px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000c19;
}

.admin-login-card {
    width: 100%;
    max-width: 420px;
    padding: 26px;
    background: #000c19;
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
    border: 1px solid #fca311;
    text-align: center;
}

.admin-login-card h1 {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 23px;
    font-weight: 800;
}

.admin-login-card p {
    margin: 0 0 22px;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.8;
}

.admin-login-form {
    text-align: right;
}

.admin-alert {
    margin-bottom: 16px;
    padding: 11px 13px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.8;
    text-align: right;
}

.admin-alert-danger {
    background: #000c19;
    color: #ffffff;
}

.admin-back-link {
    display: inline-block;
    margin-top: 18px;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
}

.admin-back-link:hover {
    text-decoration: underline;
}

.admin-layout {
    min-height: 100vh;
    display: flex;
    background: #000c19;
}

.admin-sidebar {
    width: 245px;
    padding: 18px 14px;
    background: #000c19;
    color: #fff;
    flex-shrink: 0;
}

.admin-sidebar-logo {
    padding: 14px 12px 22px;
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: 900;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.admin-sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-sidebar-menu a {
    padding: 11px 12px;
    border-radius: 12px;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: 0.2s ease;
}

.admin-sidebar-menu a:hover,
.admin-sidebar-menu a.active {
    background: #2563eb;
    color: #fff;
}

.admin-sidebar-menu a.logout {
    margin-top: 12px;
    background: rgba(220, 38, 38, 0.15);
    color: #fecaca;
}

.admin-sidebar-menu a.logout:hover {
    background: #dc2626;
    color: #fff;
}

.admin-main {
    flex: 1;
    padding: 24px;
    overflow-x: hidden;
}

.admin-topbar {
    margin-bottom: 18px;
    padding: 18px;
    background: #fff;
    border-radius: 18px;
    border: 1px solid #eef0f4;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.admin-topbar h1 {
    margin: 0 0 6px;
    color: #111827;
    font-size: 24px;
    font-weight: 900;
}

.admin-topbar p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.8;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}

.admin-stat-card,
.admin-dashboard-card,
.admin-filter-card,
.admin-table-card {
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.admin-stat-card {
    padding: 18px;
}

.admin-stat-card span {
    display: block;
    margin-bottom: 10px;
    color: #6b7280;
    font-size: 14px;
}

.admin-stat-card strong {
    display: block;
    color: #111827;
    font-size: 28px;
    font-weight: 900;
}

.admin-dashboard-card {
    padding: 20px;
}

.admin-dashboard-card h2 {
    margin: 0 0 16px;
    color: #111827;
    font-size: 18px;
    font-weight: 900;
}

.admin-quick-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-filter-card {
    padding: 18px;
    margin-bottom: 18px;
}

.admin-filter-form {
    display: grid;
    grid-template-columns: 1.5fr 1fr auto;
    align-items: end;
    gap: 12px;
}

.admin-form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.admin-form-group label {
    color: #374151;
    font-size: 13px;
    font-weight: 800;
}

.admin-form-group input,
.admin-form-group select,
.admin-form-group textarea {
    width: 100%;
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    background: #fff;
    color: #111827;
    font-family: inherit;
    font-size: 14px;
    outline: none;
}

.admin-form-group textarea {
    min-height: 110px;
    resize: vertical;
}

.admin-form-group input:focus,
.admin-form-group select:focus,
.admin-form-group textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.admin-filter-actions {
    display: flex;
    gap: 8px;
}

.admin-btn {
    min-height: 42px;
    padding: 9px 14px;
    border-radius: 12px;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    transition: 0.2s ease;
}

.admin-btn-primary {
    background: #2563eb;
    color: #fff;
}

.admin-btn-primary:hover {
    background: #1d4ed8;
    color: #fff;
}

.admin-btn-light {
    background: #f3f4f6;
    color: #111827;
}

.admin-btn-light:hover {
    background: #e5e7eb;
}

.admin-btn-success {
    background: #16a34a;
    color: #fff;
}

.admin-btn-success:hover {
    background: #15803d;
    color: #fff;
}

.admin-login-btn {
    width: 100%;
    margin-top: 12px;
}

.admin-table-card {
    padding: 0;
    overflow: hidden;
}

.admin-table-responsive {
    width: 100%;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 850px;
}

.admin-table th {
    background: #f9fafb;
    color: #374151;
    font-size: 13px;
    font-weight: 900;
    text-align: right;
    padding: 14px 12px;
    border-bottom: 1px solid #e5e7eb;
}

.admin-table td {
    padding: 13px 12px;
    border-bottom: 1px solid #eef0f4;
    color: #111827;
    font-size: 14px;
    vertical-align: middle;
}

.admin-table tr:last-child td {
    border-bottom: 0;
}

.admin-table td strong {
    display: block;
    margin-bottom: 4px;
    color: #111827;
    font-size: 14px;
    font-weight: 900;
}

.admin-table td small {
    display: block;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.7;
}

.admin-product-thumb,
.admin-product-no-image {
    width: 58px;
    height: 58px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.admin-product-thumb {
    object-fit: cover;
    background: #f3f4f6;
}

.admin-product-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 11px;
}

.admin-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.admin-badge-success {
    background: #dcfce7;
    color: #166534;
}

.admin-badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.admin-badge-muted {
    background: #f3f4f6;
    color: #4b5563;
}

.admin-action-buttons {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.admin-action-btn {
    min-height: 32px;
    padding: 6px 10px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 12px;
    font-weight: 900;
    transition: 0.2s ease;
}

.admin-action-btn.edit {
    background: #eff6ff;
    color: #1d4ed8;
}

.admin-action-btn.edit:hover {
    background: #dbeafe;
}

.admin-action-btn.delete {
    background: #fef2f2;
    color: #991b1b;
}

.admin-action-btn.delete:hover {
    background: #fee2e2;
}

.admin-empty {
    padding: 34px 16px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}

@media (max-width: 900px) {
    .admin-layout {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
    }

    .admin-sidebar-menu {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .admin-sidebar-menu a {
        white-space: nowrap;
    }

    .admin-main {
        padding: 14px;
    }

    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .admin-topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-topbar .admin-btn {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }

    .admin-filter-actions {
        flex-direction: column;
    }

    .admin-filter-actions .admin-btn {
        width: 100%;
    }

    .admin-quick-actions {
        flex-direction: column;
    }

    .admin-quick-actions .admin-btn {
        width: 100%;
    }
}
/* ==============================
   Admin Product Form
============================== */

.admin-form-card {
    padding: 20px;
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.admin-product-form {
    width: 100%;
}

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

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

.admin-help-text {
    color: #6b7280;
    font-size: 12px;
    line-height: 1.8;
}

.admin-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    cursor: pointer;
    color: #374151;
    font-size: 14px;
    font-weight: 800;
}

.admin-checkbox-label input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.admin-form-actions {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #eef0f4;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-current-product-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    background: #f3f4f6;
}

.admin-alert ul {
    margin: 0;
    padding-right: 18px;
}

.admin-alert li {
    margin-bottom: 4px;
}

.admin-alert li:last-child {
    margin-bottom: 0;
}

@media (max-width: 720px) {
    .admin-form-grid {
        grid-template-columns: 1fr;
    }

    .admin-form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-form-actions .admin-btn {
        width: 100%;
    }
}
.profile-page {
    min-height: 100vh;
    background: #07111f;
    padding: 24px 0;
    color: #e8eef7;
}

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

.profile-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding: 20px;
    background: #0d1b2e;
    border: 1px solid #1c3352;
    border-radius: 16px;
}

.profile-page-header h1 {
    margin: 0;
    font-size: 1.6rem;
    color: #f4d77a;
}

.profile-page-header p {
    margin: 8px 0 0;
    color: #9fb1c9;
    font-size: 0.95rem;
}

.profile-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
}

.profile-sidebar,
.profile-box {
    background: #0d1b2e;
    border: 1px solid #1c3352;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.profile-sidebar {
    padding: 20px;
    height: fit-content;
}

.profile-user-summary {
    text-align: center;
    padding-bottom: 18px;
    border-bottom: 1px solid #1c3352;
    margin-bottom: 18px;
}

.profile-avatar {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f4d77a, #b98c14);
    color: #07111f;
    font-weight: 800;
    font-size: 1.8rem;
}

.profile-user-summary h2 {
    margin: 0 0 6px;
    font-size: 1.1rem;
    color: #f1f5fb;
}

.profile-user-summary p {
    margin: 0;
    color: #9fb1c9;
    font-size: 0.92rem;
}

.profile-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.profile-menu a {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    color: #d8e2f0;
    text-decoration: none;
    background: #10223a;
    border: 1px solid transparent;
    transition: 0.25s ease;
}

.profile-menu a:hover,
.profile-menu a.active {
    background: #172d49;
    border-color: #f4d77a55;
    color: #f4d77a;
}

.profile-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-box {
    padding: 20px;
}

.box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.box-header h2 {
    margin: 0;
    font-size: 1.15rem;
    color: #f1f5fb;
}

.btn-edit-link,
.btn-text-link,
.btn-detail,
.btn-logout,
.btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    text-decoration: none;
    transition: 0.25s ease;
}

.btn-edit-link,
.btn-gold {
    padding: 10px 16px;
    background: linear-gradient(135deg, #f4d77a, #b98c14);
    color: #07111f;
    font-weight: 700;
}

.btn-edit-link:hover,
.btn-gold:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

.btn-text-link {
    color: #f4d77a;
    padding: 8px 0;
}

.btn-logout {
    padding: 10px 16px;
    background: #16263d;
    color: #f1f5fb;
    border: 1px solid #28486f;
}

.btn-logout:hover {
    background: #1c3352;
    color: #f4d77a;
}

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

.info-item {
    padding: 14px;
    border-radius: 14px;
    background: #10223a;
    border: 1px solid #1c3352;
}

.info-item strong {
    display: block;
    margin-bottom: 8px;
    color: #f4d77a;
    font-size: 0.9rem;
}

.info-item span {
    color: #d8e2f0;
    line-height: 1.8;
}

.full-width {
    grid-column: 1 / -1;
}

.orders-table-wrapper {
    overflow-x: auto;
    border-radius: 14px;
    border: 1px solid #1c3352;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
    background: #10223a;
}

.orders-table thead {
    background: #16263d;
}

.orders-table th,
.orders-table td {
    padding: 14px 12px;
    text-align: right;
    border-bottom: 1px solid #1c3352;
    color: #d8e2f0;
    vertical-align: middle;
}

.orders-table th {
    color: #f4d77a;
    font-size: 0.92rem;
}

.orders-table tbody tr:hover {
    background: #142941;
}

.status-badge {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid transparent;
}

.status-pending {
    background: #3a2f12;
    color: #ffd86b;
    border-color: #7a5a18;
}

.status-processing {
    background: #12324a;
    color: #7ec8ff;
    border-color: #2a5f86;
}

.status-completed {
    background: #123824;
    color: #7be0a0;
    border-color: #2a6f47;
}

.status-cancelled,
.status-failed {
    background: #3a1720;
    color: #ff8f9d;
    border-color: #7a3141;
}

.btn-detail {
    padding: 8px 12px;
    background: #16263d;
    color: #f4d77a;
    border: 1px solid #28486f;
}

.btn-detail:hover {
    background: #1c3352;
}

.empty-orders {
    text-align: center;
    padding: 36px 20px;
    background: #10223a;
    border-radius: 14px;
    border: 1px dashed #28486f;
}

.empty-orders-icon {
    font-size: 2.4rem;
    margin-bottom: 10px;
}

.empty-orders h3 {
    margin: 0 0 8px;
    color: #f1f5fb;
}

.empty-orders p {
    margin: 0 0 18px;
    color: #9fb1c9;
}

/* Responsive */
@media (max-width: 992px) {
    .profile-layout {
        grid-template-columns: 1fr;
    }

    .profile-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .profile-page-header,
    .box-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-box,
    .profile-sidebar,
    .profile-page-header {
        padding: 16px;
    }
}
/* تنظیمات فرم ویرایش در تم تیره */
.edit-profile-form {
    display: flex;
    flex-direction: column;
}

.form-section-title {
    font-size: 1rem;
    color: #f4d77a;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #1c3352;
    font-weight: bold;
}

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

.form-group label {
    font-size: 0.85rem;
    color: #9fb1c9;
}

.form-group input, 
.form-group textarea {
    background: #07111f; /* رنگ بسیار تیره برای داخل اینپوت */
    border: 1px solid #1c3352;
    padding: 12px;
    border-radius: 10px;
    color: #e8eef7;
    font-family: inherit;
    transition: 0.3s;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: #f4d77a;
    box-shadow: 0 0 0 3px rgba(244, 215, 122, 0.1);
}

.disabled-input {
    background: #10223a !important;
    color: #5d7596 !important;
    cursor: not-allowed;
}

.form-actions {
    margin-top: 30px;
    display: flex;
    gap: 12px;
}

.btn-cancel {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid #1c3352;
    color: #9fb1c9;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
}

.btn-cancel:hover {
    background: #1c3352;
    color: #f1f5fb;
}

/* Alert Boxes برای تم تیره */
.alert {
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.alert-success {
    background: #123824;
    color: #7be0a0;
    border: 1px solid #2a6f47;
}

.alert-danger {
    background: #3a1720;
    color: #ff8f9d;
    border: 1px solid #7a3141;
}

/* رفع تداخل فیلدهای متنی بلند */
.full-width {
    grid-column: 1 / -1;
}
.product-detail-page {
    background: #000c19;
    padding: 30px 0 60px;
    min-height: 100vh;
}

.dark-panel,
.dark-box,
.dark-card {
    background: #08192b;
    border: 1px solid #1d3550;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.container {
    width: min(1200px, calc(100% - 30px));
    margin: 0 auto;
}

.dark-breadcrumb {
    margin-bottom: 20px;
    padding: 14px 18px;
    background: #071522;
    border: 1px solid #17314c;
    border-radius: 10px;
    color: #9fb1c9;
    font-size: 14px;
}

.dark-breadcrumb a {
    color: #d1a45c;
    text-decoration: none;
}

.dark-breadcrumb a:hover {
    color: #e7bf79;
}

.product-detail-wrapper {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 30px;
    padding: 24px;
    margin-bottom: 24px;
}

.product-detail-image-section {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.product-detail-image {
    width: 100%;
    max-width: 380px;
    border-radius: 12px;
    border: 1px solid #1f3956;
    background: #0c1d2e;
    object-fit: cover;
}

.product-detail-info-section {
    color: #e8eef7;
}

.detail-category {
    display: inline-block;
    margin-bottom: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #0e2236;
    border: 1px solid #284664;
    color: #d1a45c;
    font-size: 13px;
}

.detail-title {
    margin: 0 0 18px;
    color: #f3f6fb;
    font-size: 30px;
    line-height: 1.8;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.meta-item {
    padding: 10px 14px;
    background: #0d1f31;
    border: 1px solid #203a56;
    border-radius: 8px;
    color: #c8d5e6;
    font-size: 14px;
}

.detail-price-box {
    margin-bottom: 18px;
    padding: 18px;
    background: #0d2134;
    border: 1px solid #254361;
    border-radius: 10px;
}

.price-label {
    display: block;
    margin-bottom: 8px;
    color: #9fb1c9;
    font-size: 14px;
}

.price-value {
    color: #d1a45c;
    font-size: 28px;
    font-weight: 700;
}

.detail-status {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
    color: #dce6f2;
}

.status-label {
    color: #9fb1c9;
}

.status-in-stock {
    color: #5fd38d;
    font-weight: 700;
}

.status-out-of-stock {
    color: #ef6b73;
    font-weight: 700;
}

.stock-count {
    color: #9fb1c9;
}

.detail-short-description {
    margin-bottom: 22px;
    padding: 16px;
    background: #0c1d2e;
    border: 1px solid #1f3956;
    border-radius: 10px;
    color: #c8d5e6;
    line-height: 2;
}

.detail-cart-form {
    display: flex;
    align-items: end;
    flex-wrap: wrap;
    gap: 14px;
}

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

.quantity-field label {
    color: #cfd9e6;
    font-size: 14px;
}

.quantity-field input {
    width: 110px;
    height: 44px;
    padding: 0 12px;
    background: #0a1827;
    border: 1px solid #284664;
    border-radius: 8px;
    color: #e8eef7;
    outline: none;
}

.quantity-field input:focus {
    border-color: #d1a45c;
}

.btn-add-to-cart-detail,
.btn-add-to-cart,
.btn-primary,
.related-view-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 44px;
    padding: 10px 18px;
    background: #d1a45c;
    color: #000c19;
    border: 1px solid #d1a45c;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: 0.25s;
}

.btn-add-to-cart-detail:hover,
.btn-add-to-cart:hover,
.btn-primary:hover,
.related-view-btn:hover {
    background: #e0b66f;
    border-color: #e0b66f;
}

.disabled-btn,
button:disabled {
    background: #24384e !important;
    color: #8ca0b8 !important;
    border-color: #324a65 !important;
    cursor: not-allowed;
}

.detail-description {
    padding: 24px;
    margin-bottom: 26px;
}

.detail-description h2 {
    margin-top: 0;
    margin-bottom: 16px;
    color: #d1a45c;
    font-size: 24px;
}

.detail-description p {
    margin: 0;
    color: #d8e2ee;
    line-height: 2.1;
}

.related-products-section {
    margin-top: 30px;
}

.section-title-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.section-title {
    margin: 0;
    color: #d1a45c;
    font-size: 24px;
}

.title-line {
    flex: 1;
    height: 1px;
    background: #284664;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.product-card {
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    background: #0a1827;
}

.product-info {
    padding: 16px;
}

.product-title {
    margin: 0 0 12px;
    font-size: 18px;
    line-height: 1.8;
}

.product-title a {
    color: #eef3f9;
    text-decoration: none;
}

.product-title a:hover {
    color: #d1a45c;
}

.product-description {
    min-height: 52px;
    margin: 0 0 14px;
    color: #9fb1c9;
    line-height: 1.9;
    font-size: 14px;
}

.product-price {
    margin-bottom: 14px;
    color: #d1a45c;
    font-weight: 700;
    font-size: 18px;
}

.not-found-page {
    background: #000c19;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 15px;
}

.not-found-box {
    width: 100%;
    max-width: 520px;
    padding: 35px 25px;
    text-align: center;
}

.not-found-box h1 {
    margin-top: 0;
    color: #d1a45c;
}

.not-found-box p {
    color: #b7c6d8;
    line-height: 2;
    margin-bottom: 20px;
}

@media (max-width: 992px) {
    .product-detail-wrapper {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .detail-cart-form {
        flex-direction: column;
        align-items: stretch;
    }

    .quantity-field input,
    .btn-add-to-cart-detail {
        width: 100%;
    }

    .detail-title {
        font-size: 24px;
    }

    .price-value {
        font-size: 24px;
    }
}
