/* fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

@font-face {
    font-family: 'IRANSans';
    src: url('/assets/fonts/IranSans.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazir';
    src: url('/assets/fonts/Vazir.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazir';
    src: url('/assets/fonts/Vazir-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* === global === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazir', 'IRANSans', 'Inter', sans-serif;
}

body,
input,
textarea,
select {
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
    direction: ltr;
}

.dir-rtl {
    direction: rtl !important;
}

:root {
    --glass: rgba(255, 255, 255, 0.12);
    --glass-bg: rgba(255, 255, 255, 0.12);
    --btn-text: #000;
    --btn-bg: rgba(0, 0, 0, 0.1);
    --text: #0b0b0b;
    --green: #3498db;
    --red: #e74c3c;
    --border: #ddd;
    --scroll: #bbb;
    --accent: rgba(255, 255, 255, 0.12);
    --hero-bg: linear-gradient(135deg, #a8edea, #fed6e3);
}

body.dark {
    --glass: rgba(0, 0, 0, 0.28);
    --text: #f7f7f7;
    --border: rgba(255, 255, 255, 0.18);
    --scroll: #555;
    background: linear-gradient(135deg, #0b1e2d, #1a2b3c)
}

body {
    background: linear-gradient(135deg, #d9f0ff, #fff);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: all .35s
}

::-webkit-scrollbar {
    width: 10px
}

::-webkit-scrollbar-track {
    background: transparent
}

::-webkit-scrollbar-thumb {
    background: var(--scroll);
    border-radius: 10px
}

::-webkit-scrollbar-thumb:hover {
    background: #999
}

body.dark ::-webkit-scrollbar-thumb {
    background: #666
}

body.dark ::-webkit-scrollbar-thumb:hover {
    background: #888
}

/* === header === */
/* mini cart */
.controls {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-right: auto;
    direction: rtl;
}

.btn {
    padding: 10px 20px;
    background: var(--glass);
    color: var(--text);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 600;
    transition: .3s
}

.btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2)
}

.dropdown {
    position: relative
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: auto;
    width: 350px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(24px);
    border-radius: 20px;
    margin-top: 16px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.38);
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1001
}

.logedout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

.dropdown-menu a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
}

#darkModeToggle {
    padding: 1rem;
}

body.dark .dropdown-menu {
    background: rgba(18, 20, 28, 0.98);
    border-color: rgba(255, 255, 255, 0.12)
}

.dropdown-menu.show {
    display: block
}

#miniCart {
    position: absolute;
    top: calc(100% + -10px);
    left: 0;
    width: 350px;
    max-width: 95vw;
    min-width: 200px;
    background: #e6f5ff;
    backdrop-filter: blur(24px);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.32);
    border: 1px solid rgba(255, 255, 255, 0.12);
    z-index: 1001;
    display: none;
    flex-direction: column;
    max-height: 85vh;
    font-size: 0.92rem;
}

#miniCart.show {
    display: flex !important;
}

.mini-cart-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.mini-cart-table th,
.mini-cart-table td {
    padding: 6px 8px;
    text-align: right;
    white-space: nowrap;
    color: #111;
}

.mini-cart-discount-tag {
    display: block;
    margin-top: 2px;
    font-size: 0.72rem;
    color: var(--green);
    white-space: normal;
}

body.dark .mini-cart-table th,
body.dark .mini-cart-table td {
    color: #eaf2f7;
}

body.dark .mini-cart-discount-tag {
    color: #6fd08e;
}

.mini-cart-table thead th {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.mini-cart-row-link {
    cursor: pointer;
}

.mini-cart-row-link:hover td {
    background: rgba(0, 0, 0, 0.04);
}

body.dark .mini-cart-row-link:hover td {
    background: rgba(255, 255, 255, 0.06);
}

.mini-cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
}

.mini-cart-total {
    flex-shrink: 0;
    border-top: 2px solid var(--green);
    background: rgba(52, 152, 219, 0.08);
    padding: 10px 12px;
}

.mini-cart-finance {
    display: grid;
    gap: 6px;
    margin-bottom: 8px;
}

.mini-cart-finance-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.84rem;
}

.mini-cart-finance-row strong {
    font-size: 0.9rem;
}

body.dark #miniCart {
    background: rgba(18, 20, 28, 0.98);
    border-color: rgba(255, 255, 255, 0.12)
}

.mini-cart-header {
    padding: 12px 16px;
    background: var(--green);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.mini-cart-header h3 {
    margin: 0;
    font-size: 1rem;
    line-height: 1;
}

#miniCartCount {
    font-size: 0.82rem;
    opacity: 0.95;
}

.mini-cart-item-new {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    transition: all .18s;
}

.mini-cart-item-new:hover {
    background: rgba(0, 0, 0, 0.04)
}

body.dark .mini-cart-item-new:hover {
    background: rgba(255, 255, 255, 0.06)
}

.mini-cart-item-new img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
}

.mini-cart-info h4 {
    margin: 0 0 4px 0;
    font-size: 0.95rem;
    font-weight: 600;
}

.mini-cart-info p {
    margin: 2px 0;
    font-size: 0.82rem;
    color: var(--green);
}

.quantity-control {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    padding: 4px;
    gap: 6px;
    margin-top: 8px;
}

.quantity-control button {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: var(--green);
    font-size: 14px;
    cursor: pointer;
    border-radius: 8px;
    transition: .18s;
}

.quantity-control button:hover {
    background: var(--green);
    color: white;
}

.quantity-control input {
    width: 44px;
    height: 30px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: bold;
    font-size: 1rem
}

.mini-cart-price strong {
    color: #e74c3c;
    font-size: 0.98rem;
    font-weight: bold;
}

.remove-item-mini {
    width: 28px;
    height: 28px;
    background: var(--red);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    margin-left: auto;
    transition: .14s;
}

.remove-item-mini:hover {
    background: #c0392b;
    transform: scale(1.06);
}

.mini-cart-total>div {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem
}

#miniCartTotal {
    color: var(--text) !important;
    font-size: 0.9rem;
    font-weight: bold
}

.mini-cart-buttons {
    display: flex;
    gap: 10px;
}

.btn-view-cart,
.btn-checkout {
    flex: 1;
    padding: 9px 10px;
    text-align: center;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.94rem;
    text-decoration: none;
    transition: .18s;
}

.btn-view-cart {
    background: rgba(0, 0, 0, 0.07);
    color: var(--text);
}

.btn-checkout {
    background: var(--green);
    color: white;
}

.btn-checkout:hover {
    background: #2980b0;
    transform: translateY(-2px);
}

.check-parrent {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.check-parrent .auth-remember {
    white-space: nowrap;
}

.profileMenu hr {
    color: var(--text);
}

.auth-link {
    background-color: transparent;
    border: none;
    color: var(--text);
    font-weight: bolder;
}

.auth-link:hover {
    cursor: pointer;
    text-decoration: underline solid;
}

.profile-login a {
    display: block;
    margin: .5rem 0;
    padding: 0 1rem;
    border-bottom: 1px solid var(--border);
}

.profile-login a:last-of-type {
    color: var(--red);
    border: none;
}

.profile-login button {
    width: 100%;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-top: 1px solid var(--border);
}

/* === main === */
.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start
}


.product-image img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2)
}

.purchase-box {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 20px;
    padding: 28px;
    border: 2px solid var(--green);
    box-shadow: 0 12px 35px rgba(52, 152, 219, 0.15);
    gap: 32px;
}

body.dark .purchase-box {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(52, 152, 219, 0.4)
}

.discount-list {
    display: flex;
    gap: 5px
}

.discount-item {
    padding: 14px 18px;
    border-radius: 14px;
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all .3s;
    text-align: center;
    font-size: 0.95rem;
    width: 100%;
}

.discount-item:hover {
    background: rgba(52, 152, 219, 0.2);
    transform: translateY(-3px)
}

.discount-item.active {
    background: var(--green);
    color: white;
    border-color: var(--green);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3)
}

.discount-item strong {
    font-size: 1.05rem;
    display: block;
    margin-bottom: 4px
}

.discount-item br {
    display: none;
}

.options-group h4 {
    margin-bottom: 12px;
    font-size: 1.15rem;
    color: var(--green)
}

.color-options,
.model-options {
    display: flex;
    gap: 16px;
    margin: 16px 0;
    min-width: 100%;
}

.radio-wrapper {
    position: relative;
    min-width: 100%;
}

.radio-wrapper input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer
}

.radio-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border: 2px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    cursor: pointer;
    transition: all .3s;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    width: 100%;
}

body.dark .radio-label {
    background: rgba(255, 255, 255, 0.08)
}

.radio-wrapper input:checked+.radio-label {
    border-color: var(--green);
    background: #f0f8ff;
    color: var(--green);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
    transform: translateY(-3px)
}

body.dark .radio-wrapper input:checked+.radio-label {
    background: rgba(52, 152, 219, 0.25)
}

.color-circle {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2)
}

.quantity-box {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 12px 0;
    width: 100%;
    justify-content: center;
}

.qty-btn {
    width: 44px;
    height: 44px;
    background: var(--green);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 22px;
    cursor: pointer;
    transition: .2s
}

.qty-btn:hover {
    background: #2980b0
}

#qtyInput {
    width: 70%;
    height: 44px;
    text-align: center;
    border: 2px solid var(--green);
    border-radius: 14px;
    font-size: 17px;
    font-weight: bold
}

#addToCartBtn {
    grid-column: 1/-1;
    padding: 18px;
    background: var(--green);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: .3s;
    box-shadow: 0 12px 30px rgba(40, 167, 69, 0.3);
    width: 100%;
}

#addToCartBtn:hover {
    background: #2980b0;
    transform: translateY(-4px)
}

.price-info {
    grid-column: 1/-1;
    background: rgba(52, 152, 219, 0.08);
    padding: 24px;
    border-radius: 18px;
    margin: 20px 0;
    text-align: center
}

.price-info div {
    font-size: 1.15rem;
}

#payableRow {
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--green)
}

#addToCartMessage {
    display: none;
    transition: opacity .4s;
    color: var(--green);
    font-weight: 600;
    text-align: center;
    margin-top: 10px
}

.cart-main {
    width: 100%;
    min-height: 50vh;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* === footer === */
.footer-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(14px) saturate(130%);
    color: var(--text);
    padding: 30px 40px;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -6px 18px rgba(10, 10, 10, 0.06);
    width: calc(100% - 48px);
    max-width: 1920px;
    margin: 0 auto;
    direction: ltr;
}

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

.footer-column {
    flex: 1;
    min-width: 250px;
}

.footer-column h3 {
    margin-bottom: 14px;
    font-size: 1.2rem;
}

.footer-address,
.footer-phone {
    font-size: 0.95rem;
    opacity: 0.8;
    margin-top: 8px;
}

#footerPhone {
    text-decoration: none;
    color: var(--text);
    transition: color 0.3s ease;
}

#footerPhone:hover {
    opacity: 0.85;
}

#footerAddressText {
    color: var(--text);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    direction: rtl;
    transition: color 0.3s ease;
}

#footerAddressText:hover {
    opacity: 0.85;
}

.footer-logo {
    width: 150px;
    height: auto;
    margin-bottom: 10px;
}

.footer-brand {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.footer-copy {
    font-size: 0.9rem;
    opacity: 0.7;
    direction: rtl;
}

.center {
    text-align: center;
}

.social-icons {
    margin-top: 12px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.social-icons a {
    color: var(--text);
    font-size: 1.4rem;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-icons a:hover {
    transform: scale(1.3);
    opacity: 0.8;
}

body.dark #footerPhone,
body.dark #footerAddressText {
    color: var(--text);
}

body.dark .footer-glass {
    background: rgba(0, 0, 0, 0.25);
    color: var(--text);
    box-shadow: 0 -4px 12px rgba(255, 255, 255, 0.05);
}

.auth-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(16px);
    align-items: center;
    justify-content: center;
    z-index: 99999
}

.auth-modal.show {
    display: flex
}

.auth-modal-content {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: var(--glass);
    backdrop-filter: blur(28px);
    border-radius: 28px;
    width: 90%;
    max-width: 480px;
    padding: 40px 36px;
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.18)
}

body.dark .auth-modal-content {
    background: rgba(15, 17, 25, 0.97);
    border-color: rgba(52, 152, 219, 0.2)
}

body:not(.dark) .auth-modal-content {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(52, 152, 219, 0.5);
    box-shadow: 0 35px 90px rgba(52, 152, 219, 0.2)
}

.auth-close {
    position: absolute;
    top: -12px;
    left: -12px;
    background: var(--red);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 32px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
    transition: all .25s
}

.auth-close:hover {
    background: #c0392b;
    transform: rotate(90deg) scale(1.15);
    box-shadow: 0 8px 28px rgba(231, 76, 60, 0.5)
}

#closeText {
    position: absolute;
    top: 2px;
}

.auth-tabs {
    display: flex;
    margin-bottom: 24px;
    background: var(--glass);
    border-radius: 12px;
    overflow: hidden;
    padding: 4px
}

body:not(.dark) .auth-tabs {
    background: rgba(52, 152, 219, 0.1)
}

.auth-tab {
    flex: 1;
    padding: 12px 14px;
    background: transparent;
    border: none;
    color: var(--text);
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all .3s
}

.auth-tab:hover {
    background: rgba(52, 152, 219, 0.15);
    color: var(--green)
}

.auth-tab.active {
    background: var(--green);
    color: white;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3)
}

.auth-form {
    display: none
}

.auth-form.active {
    display: block
}

.auth-form input {
    width: 100%;
    padding: 14px 16px;
    margin: 10px 0;
    border: 2px solid transparent;
    border-radius: 12px;
    background: var(--glass);
    color: var(--text);
    font-size: 1rem
}

body:not(.dark) .auth-form input {
    background: rgba(52, 152, 219, 0.08);
    border-color: rgba(52, 152, 219, 0.3)
}

body:not(.dark) .auth-form input:focus {
    border-color: var(--green);
    background: rgba(52, 152, 219, 0.12)
}

.auth-btn {
    width: 100%;
    padding: 14px;
    margin-top: 20px;
    background: var(--green);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .3s;
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3)
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.4)
}

#loginForm .auth-btn {
    background: linear-gradient(135deg, #3498db, #2980b0)
}

#loginForm .auth-btn:hover {
    background: linear-gradient(135deg, #2980b0, #1f5f8f)
}

#registerForm .auth-btn {
    background: linear-gradient(135deg, #27ae60, #229954)
}

#registerForm .auth-btn:hover {
    background: linear-gradient(135deg, #1e8449, #145a32)
}

.auth-message {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    min-height: 20px;
    line-height: 1.4;
    animation: slideDown .3s ease-out
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.auth-message:empty {
    display: none
}

#remember {
    max-width: 20px;
}

.nav-inner {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.company-name {
    margin-right: 12px;
    font-weight: 700;
    font-size: 1.25rem;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    background: rgba(15, 20, 30, 0.98);
    backdrop-filter: blur(20px);
    z-index: 9999;
    transition: right 0.4s ease;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-content {
    padding: 80px 30px 30px;
    height: 100%;
    overflow-y: auto;
}

.close-menu {
    position: absolute;
    top: 20px;
    left: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.mobile-menu ul {
    list-style: none;
    margin-top: 40px;
}

.mobile-menu ul li {
    margin: 20px 0;
}

.mobile-menu ul a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.product-detail-intro {
    padding: 40px 30px 0;
    margin: 30px auto 30px;
    max-width: 1920px;
    direction: rtl;
}

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

.header-section {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 32px;
    align-items: center;
    background: var(--glass);
    backdrop-filter: blur(20px);
    padding: 36px;
    border-radius: 28px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    margin-bottom: 40px;
}

.header-image img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    cursor: pointer;
}

.main-title {
    font-size: 3rem;
    margin-bottom: 30px;
    color: var(--text);
    font-weight: 800;
    line-height: 1.2;
}

.main-description p {
    font-size: 1.2rem;
    line-height: 1.9;
    color: var(--text);
}

.fullwidth-quote {
    display: grid;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.18), rgba(52, 152, 219, 0.08));
    backdrop-filter: blur(12px);
    padding: 50px 60px;
    margin: 30px 0;
    border-radius: 28px;
    text-align: center;
    font-size: 1.7rem;
    font-weight: bold;
    color: var(--green);
    font-style: italic;
    line-height: 1.8;
    border-right: 8px solid var(--green);
    box-shadow: 0 15px 40px rgba(52, 152, 219, 0.15);
}

body.dark .fullwidth-quote {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.28), rgba(52, 152, 219, 0.15));
}

.purchase-block {
    max-width: 300px;
    margin: 70px 1rem 40px;
    background: var(--glass);
    backdrop-filter: blur(20px);
    padding: 24px;
    border-radius: 28px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
}

@media (max-width: 1200px) {
    .details-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .details-grid {
        grid-template-columns: 1fr;
    }
}

.detail-block {
    background: var(--glass);
    backdrop-filter: blur(18px);
    padding: 32px;
    border-radius: 24px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.detail-block.full-span {
    margin-bottom: 30px;
}

.detail-block h2 {
    color: var(--green);
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--green);
}

.txt-vertical {
    text-align: center;
    writing-mode: sideways-lr;
}

.mb-1 {
    margin-bottom: 1rem;
}

.advantages-list {
    list-style: none;
    padding-right: 20px;
}

.advantages-list li {
    position: relative;
    padding-right: 28px;
    margin: 16px 0;
    font-size: 1.1rem;
    line-height: 1.7;
}

.advantages-list li::before {
    content: "✓";
    position: absolute;
    right: 0;
    color: var(--green);
    font-weight: bold;
    font-size: 1.4rem;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

.specs-table th,
.specs-table td {
    padding: 14px 18px;
    text-align: right;
    border-bottom: 1px solid var(--border);
    direction: ltr;
}

.specs-table td {
    width: 60%;
    text-align: left;
}

.specs-table th {
    background: var(--green);
    color: white;
    width: 35%;
}

.specs-table tr:last-child td {
    border-bottom: none;
}

/* product modal */
.thumb {
    width: 200px;
    cursor: pointer;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);

    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

.prev,
.next {
    position: absolute;
    top: 50%;
    font-size: 50px;
    color: white;
    cursor: pointer;
    user-select: none;
    padding: 10px;
    transform: translateY(-50%);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

/* === header === */
nav {
    position: fixed;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 1920px;
    padding: 14px 20px;
    border-radius: 14px;
    background: var(--glass);
    backdrop-filter: blur(12px) saturate(120%);
    box-shadow: 0 6px 18px rgba(10, 10, 10, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 999;
    color: var(--text);
    transition: padding 250ms linear !important;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-link {
    display: flex;
    text-decoration: none;
    color: inherit;
}

.logo img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
}

ul.menu li a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 10px;
    border-radius: 8px;
}

ul.menu li a:hover,
ul.menu li a:focus {
    background: var(--accent);
    transform: translateY(-2px) scale(1.03);
    outline: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 6px;
}

.hamburger span {
    width: 26px;
    height: 3px;
    border-radius: 3px;
    background: var(--text);
    display: block;
    transition: transform .26s cubic-bezier(.2, .9, .3, 1), opacity .18s;
}

.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* mobile menu */
.mobile-menu-wrapper {
    position: fixed;
    top: 80px;
    right: -15px;
    z-index: 10000;
    display: none;
    width: 100%;
    height: auto;
    pointer-events: none;
    transition: all 0.3s ease;
}

.mobile-menu-wrapper.show {
    display: block;
    pointer-events: auto;
}

.mobile-menu-wrapper.show .mobile-menu {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.mobile-menu a {
    display: block;
    padding: 10px;
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
}

.mobile-menu a:hover,
.mobile-menu a:focus {
    background: var(--accent);
    transform: scale(1.03);
}

.profile-menu-wrapper {
    position: relative;
    display: inline-block;
}

.profile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: linear-gradient(135deg, #d9f0ff, #ffffff);
    backdrop-filter: blur(12px) saturate(120%);
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    min-width: 150px;
    margin: 15px 0 0 -15px;
    z-index: 1000;
}

.profile-menu.show {
    display: flex;
}

.profile-menu p {
    padding-bottom: 5px;
}

.profile-menu a,
.profile-menu button {
    display: block;
    width: 100%;
    text-align: center;
    padding: 8px;
    border: none;
    color: var(--text);
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.profile-menu a:hover,
.profile-menu button:hover {
    background: var(--accent);
}

.profile-menu hr {
    border: none;
    height: 1px;
    background: rgba(0, 0, 0, 0.15);
    margin: 6px 0;
}

.profile-actions {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    margin-top: 6px;
}

.profile-actions .btn {
    flex: 1;
    padding: 6px 8px;
    font-size: 0.9rem;
}


body.dark .profile-menu {

    position: absolute;
    top: 100%;
    left: 0;
    background: linear-gradient(135deg, #0b1e2d 0%, #1a2b3c 100%);
    backdrop-filter: blur(12px) saturate(120%);
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    flex-direction: column;
    min-width: 150px;
    z-index: 1000;
}

body.dark .profile-menu hr {

    background: rgba(255, 255, 255, 0.15);
}

#userName {
    display: block;
    font-size: 0.85rem;
    text-align: center;
    margin-top: 2px;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.d-none {
    display: none;
}

#discountRow {
    margin-top: .5rem;
    margin-bottom: .5rem;
}

#specialGridRow dd {
    margin-bottom: 1rem;
}

#cartBtn,
#profileBtn {
    font-size: 1rem;
}

@media(min-width: 1144px) {
    .details-grid .full-span {
        grid-column: 1/-1;
    }

    .details-grid .two-span {
        grid-column: span 2;
    }
}

/* carousel */
.carousel {
    position: relative
}

.carousel.pointer-event {
    touch-action: pan-y
}

.carousel-inner {
    position: relative;
    width: 100%;
    overflow: hidden
}

.carousel-inner::after {
    display: block;
    clear: both;
    content: ""
}

.carousel-item {
    position: relative;
    display: none;
    float: left;
    width: 100%;
    margin-right: -100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transition: transform .6s ease-in-out
}

@media (prefers-reduced-motion:reduce) {
    .carousel-item {
        transition: none
    }
}

.carousel-item-next,
.carousel-item-prev,
.carousel-item.active {
    display: block
}

.active.carousel-item-end,
.carousel-item-next:not(.carousel-item-start) {
    transform: translateX(100%)
}

.active.carousel-item-start,
.carousel-item-prev:not(.carousel-item-end) {
    transform: translateX(-100%)
}

.carousel-fade .carousel-item {
    opacity: 0;
    transition-property: opacity;
    transform: none
}

.carousel-fade .carousel-item-next.carousel-item-start,
.carousel-fade .carousel-item-prev.carousel-item-end,
.carousel-fade .carousel-item.active {
    z-index: 1;
    opacity: 1
}

.carousel-fade .active.carousel-item-end,
.carousel-fade .active.carousel-item-start {
    z-index: 0;
    opacity: 0;
    transition: opacity 0s .6s
}

@media (prefers-reduced-motion:reduce) {

    .carousel-fade .active.carousel-item-end,
    .carousel-fade .active.carousel-item-start {
        transition: none
    }
}

.carousel-control-next,
.carousel-control-prev {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 15%;
    padding: 0;
    color: #fff;
    text-align: center;
    background: 0 0;
    filter: var(--bs-carousel-control-icon-filter);
    border: 0;
    opacity: .5;
    transition: opacity .15s ease
}

@media (prefers-reduced-motion:reduce) {

    .carousel-control-next,
    .carousel-control-prev {
        transition: none
    }
}

.carousel-control-next:focus,
.carousel-control-next:hover,
.carousel-control-prev:focus,
.carousel-control-prev:hover {
    color: #fff;
    text-decoration: none;
    outline: 0;
    opacity: .9
}

.carousel-control-prev {
    left: 0
}

.carousel-control-next {
    right: 0
}

.carousel-control-next-icon,
.carousel-control-prev-icon {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    background-repeat: no-repeat;
    background-position: 50%;
    background-size: 100% 100%
}

.carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0'/%3e%3c/svg%3e")
}

.carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708'/%3e%3c/svg%3e")
}

/* === responsive === */
@media (max-width: 957px) {
    .contact-column {
        order: 1;
    }

    .map-column {
        order: 2;
    }

    .logo-column {
        order: 3;
    }
}

@media (min-width: 993px) {
    .mobile-menu {
        display: none;
    }

    .purchase-block {
        float: left;
    }

    #specialGridRow {
        grid-column: span 2;
    }
}

@media (max-width: 992px) {
    .hamburger {
        display: flex;
    }

    .company-name {
        display: none;
    }

    .menu {
        display: none;
    }

    .nav-inner {
        padding: 0 16px;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 40px
    }

    .fullwidth-quote {
        padding: 40px 30px;
        font-size: 1.5rem;
        margin: 40px 0;
    }

    .purchase-block {
        max-width: none;
        margin-bottom: 1rem;
    }

    .header-section {
        grid-template-columns: 1fr;
        padding: 40px 30px;
        gap: 40px;
    }

    .product-detail-intro {
        padding: 1rem;
        margin-top: 1rem;
    }

    .main-title {
        font-size: 2.6rem;
        text-align: center;
    }

    .header-image {
        order: -1;
    }
}

@media (max-width: 850px) {
    .mobile-menu-wrapper.scrolled {
        transform: translateX(4px) translateY(-13px) scale(0.98);
    }

    .mobile-menu {
        background: linear-gradient(135deg, #d9f0ff, #ffffff);
        backdrop-filter: blur(16px) saturate(120%);
        border-radius: 10px;
        border: 1px solid rgba(255, 255, 255, 0.06);
        box-shadow: 0 10px 30px rgba(2, 6, 23, 0.3);
        min-width: 220px;
        padding: 10px;
        position: absolute;
        top: 10px;
        right: 24px;
        left: auto;
        transform-origin: top center;
        direction: rtl;
        transform: translateY(-10px) scale(0.98);
        opacity: 0;
        transition: transform .32s cubic-bezier(.2, .9, .3, 1), opacity .28s ease;
    }

    body.dark .mobile-menu {
        background: linear-gradient(135deg, #0b1e2d 0%, #1a2b3c 100%);
        backdrop-filter: blur(16px) saturate(120%);
        border-radius: 10px;
        border: 1px solid rgba(255, 255, 255, 0.06);
        box-shadow: 0 10px 30px rgba(2, 6, 23, 0.3);
        min-width: 220px;
        padding: 10px;
        position: absolute;
        top: 10px;
        right: 24px;
        left: auto;
        transform-origin: top center;
        transform: translateY(-10px) scale(0.98);
        opacity: 0;
        transition: transform .32s cubic-bezier(.2, .9, .3, 1), opacity .28s ease;
    }
}

@media (max-width: 768px) {

    nav,
    .footer-glass {
        width: 100%;
    }

    ul.menu {
        display: none;
    }

    .hamburger {
        display: flex;
        order: 5;
    }

    #brandText {
        display: none;
    }

    .control {
        order: 0;
    }

    .profile-menu {
        position: absolute;
        top: 100%;
        left: -52px;
        right: auto;
        background: linear-gradient(135deg, #d9f0ff, #ffffff);
        backdrop-filter: blur(12px) saturate(120%);
        border-radius: 10px;
        padding: 10px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.9);
        display: none;
        flex-direction: column;
        min-width: 150px;
        margin: 15px 0 0 -15px;
        z-index: 1000;
    }

    .profile-menu.not-logged-in {
        left: auto !important;
        right: -55px !important;
    }

    body.dark .profile-menu {
        position: absolute;
        top: 100%;
        left: -52px;
        right: auto;
        background: linear-gradient(135deg, #0b1e2d 0%, #1a2b3c 100%);
        backdrop-filter: blur(12px) saturate(120%);
        border-radius: 10px;
        padding: 10px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        flex-direction: column;
        min-width: 150px;
        margin: 15px 0 0 -15px;
        z-index: 1000;
    }

    .purchase-box {
        grid-template-columns: 1fr
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-column {
        min-width: 100%;
        margin-bottom: 30px;
    }

    .footer-map iframe {
        height: 200px;
    }

    .logo-column {
        order: 1;
    }

    .contact-column {
        order: 2;
    }

    .map-column {
        order: 3;
    }

    ul.menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .footer-column {
        min-width: 100%;
        margin-bottom: 30px;
    }

    .fullwidth-quote {
        padding: 30px 20px;
        font-size: 1.4rem;
    }

    nav,
    .hero,
    .products-section,
    .footer-glass {
        width: 100%;
    }

    .header-section {
        padding: 30px 20px;
    }

    .main-title {
        font-size: 2.2rem;
    }

    nav {
        flex-direction: row-reverse;
    }

    a,
    button {
        -webkit-tap-highlight-color: transparent;
    }
}

/* === global === */
html {
    scroll-behavior: smooth;
}

body,
nav,
.footer-glass,
.hero-image img,
ul.menu li a,
.btn {
    transition: background .32s ease, color .32s ease, box-shadow .32s ease,
        transform .18s ease, border-color .32s ease;
}

body {
    background: linear-gradient(135deg, #d9f0ff, #ffffff);
    color: #111;
    background-repeat: repeat;
    background-size: cover;
}

p {
    direction: rtl;
}

#darkModeToggle {
    order: 2;
}

#darkModeToggle,
#logoImg,
#cart,
#brand {
    transition: none;
}

.disabled {
    color: grey !important;
}

.disabled:hover {
    cursor: not-allowed;
}

/* === root === */
:root {
    --glass-bg: rgba(255, 255, 255, 0.12);
    --text: #0b0b0b;
    --accent: rgba(255, 255, 255, 0.12);
    --btn-bg: rgba(0, 0, 0, 0.1);
    --btn-text: #000;
    --hero-bg: linear-gradient(135deg, #a8edea, #fed6e3);
}

body.dark {
    --glass-bg: rgba(0, 0, 0, 0.25);
    --text: #f7f7f7;
    --accent: rgba(255, 255, 255, 0.1);
    --btn-bg: rgba(255, 255, 255, 0.15);
    --btn-text: #fff;
    --green: #3498db;
    --hero-bg: linear-gradient(135deg, #222, #111);
    background: linear-gradient(135deg, #0b1e2d 0%, #1a2b3c 100%);
    color: var(--text);
}

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #eef9ff;
}

::-webkit-scrollbar-thumb {
    background-color: #d8d8d8;
    border-radius: 6px;
    border: 3px solid #defffd;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #b9b9b9;
    border-radius: 6px;
    border: 3px solid #defffd;
}

body.dark::-webkit-scrollbar {
    width: 12px;
}

body.dark::-webkit-scrollbar-track {
    background: linear-gradient(135deg, #0b1e2d 0%, #1a2b3c 100%);
}

body.dark::-webkit-scrollbar-thumb {
    background-color: #555;
    border-radius: 6px;
    border: 3px solid #1e1e1e;
}

/* === header === */
/* navigation bar */
nav {
    position: fixed;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 1920px;
    padding: 14px 20px;
    border-radius: 14px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px) saturate(120%);
    box-shadow: 0 6px 18px rgba(10, 10, 10, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 999;
    color: var(--text);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: auto;
    width: 350px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(24px);
    border-radius: 20px;
    margin-top: 16px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.38);
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1001;
}

.dropdown-menu.show {
    display: block;
}

.logedout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

.dropdown-menu a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
}

.dropdown-menu hr {
    border: 0;
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    margin: 10px 0;
}

body.dark .dropdown-menu {
    background: rgba(18, 20, 28, 0.98);
    border-color: rgba(255, 255, 255, 0.12);
}

.logo img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
}

ul.menu {
    list-style: none;
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: center;
    flex: 1;
}

ul.menu li a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 10px;
    border-radius: 8px;
}

ul.menu li a:hover,
ul.menu li a:focus {
    background: var(--accent);
    transform: translateY(-2px) scale(1.03);
    outline: none;
}

.btn {
    cursor: pointer;
    padding: 8px 10px;
    border-radius: 9px;
    border: none;
    background: var(--btn-bg);
    color: var(--btn-text);
    font-weight: 600;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 6px;
}

.hamburger span {
    width: 26px;
    height: 3px;
    border-radius: 3px;
    background: var(--text);
    display: block;
    transition: transform .26s cubic-bezier(.2, .9, .3, 1), opacity .18s;
}

.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

nav {
    flex-direction: row-reverse;
}

.logo {
    order: 1;
}

.menu {
    order: 2;
}

.controls {
    order: 3;
}

.logo img {
    order: 5;
}

ul.menu {
    direction: rtl;
}

#userName {
    display: block;
    font-size: 0.85rem;
    text-align: center;
    margin-top: 2px;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* mobile menu */
.mobile-menu-wrapper {
    position: fixed;
    top: 80px;
    right: -15px;
    z-index: 10000;
    display: none;
    width: 100%;
    height: auto;
    pointer-events: none;
    transition: all 0.3s ease;
}

.mobile-menu-wrapper.show {
    display: block;
    pointer-events: auto;
}

.mobile-menu-wrapper.show .mobile-menu {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.mobile-menu a {
    display: block;
    padding: 10px;
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
}

.mobile-menu a:hover,
.mobile-menu a:focus {
    background: var(--accent);
    transform: scale(1.03);
}

/* profile menu */
.profile-menu-wrapper {
    position: relative;
    display: inline-block;
}

.profile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: linear-gradient(135deg, #d9f0ff, #ffffff);
    backdrop-filter: blur(12px) saturate(120%);
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    min-width: 150px;
    margin: 15px 0 0 -15px;
    z-index: 1000;
}

.profile-menu.show {
    display: flex;
}

.profile-menu p {
    padding-bottom: 5px;
}

.profile-menu a,
.profile-menu button {
    display: block;
    width: 100%;
    text-align: center;
    padding: 8px;
    border: none;
    color: var(--text);
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.profile-menu a:hover,
.profile-menu button:hover {
    background: var(--accent);
}

.profile-menu hr {
    border: none;
    height: 1px;
    background: rgba(0, 0, 0, 0.15);
    margin: 6px 0;
}

.profile-actions {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    margin-top: 6px;
}

.profile-actions .btn {
    flex: 1;
    padding: 6px 8px;
    font-size: 0.9rem;
}


body.dark .profile-menu {

    position: absolute;
    top: 100%;
    left: 0;
    background: linear-gradient(135deg, #0b1e2d 0%, #1a2b3c 100%);
    backdrop-filter: blur(12px) saturate(120%);
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    flex-direction: column;
    min-width: 150px;
    z-index: 1000;
}

body.dark .profile-menu hr {

    background: rgba(255, 255, 255, 0.15);
}

/* mini cart */
.mini-cart-item-new {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    transition: all .18s;
}

.mini-cart-item-new:hover {
    background: rgba(0, 0, 0, 0.04)
}

body.dark .mini-cart-item-new:hover {
    background: rgba(255, 255, 255, 0.06)
}

.mini-cart-item-new img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
}

.mini-cart-info h4 {
    margin: 0 0 4px 0;
    font-size: 0.95rem;
    font-weight: 600;
}

.mini-cart-info p {
    margin: 2px 0;
    font-size: 0.82rem;
    color: var(--green);
}

.quantity-control {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    padding: 4px;
    gap: 6px;
    margin-top: 8px;
}

.quantity-control button {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: var(--green);
    font-size: 14px;
    cursor: pointer;
    border-radius: 8px;
    transition: .18s;
}

.quantity-control button:hover {
    background: var(--green);
    color: white;
}

.quantity-control input {
    width: 44px;
    height: 30px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: bold;
    font-size: 1rem
}

.mini-cart-price strong {
    color: #e74c3c;
    font-size: 0.98rem;
    font-weight: bold;
}

.remove-item-mini {
    width: 28px;
    height: 28px;
    background: var(--red);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    margin-left: auto;
    transition: .14s;
}

.remove-item-mini:hover {
    background: #c0392b;
    transform: scale(1.06);
}

.mini-cart-total>div {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem
}

.btn-checkout:hover {
    filter: brightness(1.06);
}

/* force mini-cart header to match switch.css */
#miniCart .mini-cart-header {
    background: var(--green);
    color: #fff;
}

#miniCart .mini-cart-header h3 {
    color: #fff;
}

#miniCart.show {
    display: flex !important;
}

.mini-cart-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.mini-cart-table th,
.mini-cart-table td {
    padding: 6px 8px;
    text-align: right;
    white-space: nowrap;
    color: #111;
}

body.dark .mini-cart-table th,
body.dark .mini-cart-table td {
    color: #eaf2f7;
}

.mini-cart-table thead th {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.mini-cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
}

.mini-cart-total {
    flex-shrink: 0;
    border-top: 2px solid var(--green);
    background: rgba(52, 152, 219, 0.08);
    padding: 10px 12px;
}

body.dark #miniCart {
    background: rgba(18, 20, 28, 0.98);
    border-color: rgba(255, 255, 255, 0.12)
}

.mini-cart-header {
    padding: 12px 16px;
    background: var(--green);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.mini-cart-header h3 {
    margin: 0;
    font-size: 1rem;
    line-height: 1;
}

#miniCartCount {
    font-size: 0.82rem;
    opacity: 0.95;
}

.mini-cart-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.mini-cart-table th,
.mini-cart-table td {
    padding: 6px 8px;
    text-align: right;
    white-space: nowrap;
    color: #111;
}

body.dark .mini-cart-table th,
body.dark .mini-cart-table td {
    color: #eaf2f7;
}

.mini-cart-table thead th {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.mini-cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
}

.mini-cart-total {
    flex-shrink: 0;
    border-top: 2px solid var(--green);
    background: rgba(52, 152, 219, 0.08);
    padding: 10px 12px;
}

body.dark #miniCart {
    background: rgba(18, 20, 28, 0.98);
    border-color: rgba(255, 255, 255, 0.12)
}

.mini-cart-header {
    padding: 12px 16px;
    background: var(--green);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.mini-cart-header h3 {
    margin: 0;
    font-size: 1rem;
    line-height: 1;
}

#miniCartCount {
    font-size: 0.82rem;
    opacity: 0.95;
}

.mini-cart-item-new {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    transition: all .18s;
}

.mini-cart-item-new:hover {
    background: rgba(0, 0, 0, 0.04)
}

body.dark .mini-cart-item-new:hover {
    background: rgba(255, 255, 255, 0.06)
}

.mini-cart-item-new img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
}

.mini-cart-info h4 {
    margin: 0 0 4px 0;
    font-size: 0.95rem;
    font-weight: 600;
}

.mini-cart-info p {
    margin: 2px 0;
    font-size: 0.82rem;
    color: var(--green);
}

.quantity-control {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    padding: 4px;
    gap: 6px;
    margin-top: 8px;
}

.quantity-control button {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: var(--green);
    font-size: 14px;
    cursor: pointer;
    border-radius: 8px;
    transition: .18s;
}

.quantity-control button:hover {
    background: var(--green);
    color: white;
}

.quantity-control input {
    width: 44px;
    height: 30px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: bold;
    font-size: 1rem
}

.mini-cart-price strong {
    color: #e74c3c;
    font-size: 0.98rem;
    font-weight: bold;
}

.remove-item-mini {
    width: 28px;
    height: 28px;
    background: var(--red);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    margin-left: auto;
    transition: .14s;
}

.remove-item-mini:hover {
    background: #c0392b;
    transform: scale(1.06);
}

.mini-cart-total>div {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem
}

.mini-cart-buttons {
    display: flex;
    gap: 10px;
}

.btn-view-cart,
.btn-checkout {
    flex: 1;
    padding: 12px 16px;
    text-align: center;
    border-radius: 16px;
    font-weight: 600;
    font-size: 0.94rem;
    text-decoration: none;
    transition: .18s;
}

#miniCart #miniCartTotal {
    display: block;
    text-align: right;
    margin-bottom: 10px;
    color: #111;
}

#miniCart .btn-view-cart {
    background: #cfe0ea;
    color: #111;
}

#miniCart .btn-checkout {
    background: #3498db;
    color: #fff;
}

#miniCart .btn-view-cart:hover {
    filter: brightness(0.98);
}

#miniCart .btn-checkout:hover {
    filter: brightness(1.06);
}

/* === main === */
main {
    margin: 40px auto 5rem;
}

/* hero */
.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    max-width: 1920px;
    width: 100%;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    direction: rtl;
}

.hero-text p {
    font-size: 1.2rem;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 35px;
}

body.dark .hero {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}

.hero-btn {
    display: inline-block;
    padding: 8px 15px;
    background: rgba(49, 49, 49, 0.15);
    border: 1px solid #696969;
    border-radius: 10px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.hero-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

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

.hero-image img {
    width: 100%;
    max-width: 450px;
    border-radius: 20px;
    object-fit: cover;
    /* box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15); */
    transition: transform .32s ease, box-shadow .32s ease;
}

.hero-content {
    flex-direction: row;
    text-align: right;
}

/* products */
.products-section {
    background: var(--glass-bg);
    backdrop-filter: blur(14px) saturate(130%);
    color: var(--text);
    padding: 60px 40px 30px;
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    width: calc(100% - 48px);
    max-width: 1920px;
    margin: 80px auto 0;
}

body.dark .products-section {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}

.products-section {
    direction: rtl;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: var(--text-color);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    justify-content: center;
    justify-items: center;
}

.product-card {
    width: 100%;
    max-width: 460px;
    background: rgba(10, 10, 10, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    backdrop-filter: blur(15px);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.product-card img {
    width: 100%;
    border-radius: 15px;
    margin-bottom: 15px;
}

.product-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.product-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.product-btn {
    display: inline-block;
    padding: 8px 15px;
    background: rgba(49, 49, 49, 0.15);
    border: 1px solid #696969;
    border-radius: 10px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.product-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* card */
.cards-section {
    max-width: 1920px;
    width: calc(100% - 48px);
    border-radius: 20px;
    margin: 2rem auto 0;
    background: var(--glass-bg);
    padding: 0 24px;
    box-sizing: border-box;
    align-items: center;
    height: 320px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

body.dark .cards-section {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}

.card-container {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    backdrop-filter: blur(14px) saturate(130%);
    border-radius: 20px;
    cursor: grab;
    top: 20px;
}

#card-container {
    position: relative;
    overflow: hidden;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

#card-track {
    display: flex;
    gap: 32px;
    will-change: transform;
    position: absolute;
    flex-direction: row;
}

.card {
    position: relative;
    flex: 0 0 300px;
    max-width: 420px;
    height: 280px;
    background: rgba(10, 10, 10, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 18px;
    text-align: center;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 12px;
    user-select: none;
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:not(.dragging):hover img {
    transform: scale(1.2);
}

.card:not(.dragging):hover p {
    transform: translateX(-22px);
    width: calc(100% - 40px);
}

.img-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 12px;
    transition: width 0.3s ease;
}

.card a {
    text-decoration: none;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: width 0.3s ease;
}

.card p {
    margin-top: 12px;
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.4rem;
    text-align: center;
    transition: width 0.3s ease, transform 0.3s ease, font-size 0.3s ease;
}

.card-btn {
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 100%;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    background: rgba(49, 49, 49, 0.15);
    border: none;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transform: translateX(100%);
    transition: all 0.5s ease;
}

.card:hover .card-btn {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.card:hover .img-wrapper,
.card:hover p {
    width: calc(100% - 40px);
    transform: translateX(-22px);
    transition: 0.5s;
}

.card:hover img {
    transform: scale(1.2);

    transition: 0.5s;
}

.card:hover p {
    font-size: 1.05rem;
    transition: 0.5s;
}

.cards-section .card.hover-touch p {
    width: calc(100% - 40px);
    font-size: 1.05rem;
}

/* === footer === */
footer {
    margin-left: auto;
    margin-right: auto;
}

.footer-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(14px) saturate(130%);
    color: var(--text);
    padding: 30px 40px;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -6px 18px rgba(10, 10, 10, 0.06);
    width: calc(100% - 48px);
    max-width: 1920px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-column {
    flex: 1;
    min-width: 250px;
}

.footer-column h3 {
    margin-bottom: 14px;
    font-size: 1.2rem;
}

.footer-address,
.footer-phone {
    font-size: 0.95rem;
    opacity: 0.8;
    margin-top: 8px;
}

#footerPhone {
    text-decoration: none;
    color: var(--text);
    transition: color 0.3s ease;
}

#footerPhone:hover {
    opacity: 0.85;
}

#footerAddressText {
    color: var(--text);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    direction: rtl;
    transition: color 0.3s ease;
}

#footerAddressText:hover {
    opacity: 0.85;
}

.footer-logo {
    width: 150px;
    height: auto;
    margin-bottom: 10px;
}

.footer-brand {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.footer-copy {
    font-size: 0.9rem;
    opacity: 0.7;
}

.center {
    text-align: center;
}

.social-icons {
    margin-top: 12px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.social-icons a {
    color: var(--text);
    font-size: 1.4rem;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-icons a:hover {
    transform: scale(1.3);
    opacity: 0.8;
}

body.dark #footerPhone,
body.dark #footerAddressText {
    color: var(--text);
}

body.dark .footer-glass {
    background: rgba(0, 0, 0, 0.25);
    color: var(--text);
    box-shadow: 0 -4px 12px rgba(255, 255, 255, 0.05);
}

/* === responsive === */
@media (max-width: 1200px) {
    .card {
        flex: 0 0 calc((100% - 96px)/4);
    }

    main {
        margin: 100px auto 3rem;
    }

    .hero {
        padding: 2rem 1rem;
    }
}

@media (max-width: 992px) {
    .card {
        flex: 0 0 calc((100% - 64px)/3);
    }
}

@media (max-width: 957px) {
    .contact-column {
        order: 1;
    }

    .map-column {
        order: 2;
    }

    .logo-column {
        order: 3;
    }
}

@media (max-width: 768px) {
    .mobile-menu-wrapper.scrolled {
        transform: translateX(4px) translateY(-13px) scale(0.98);
    }

    .mobile-menu {
        background: linear-gradient(135deg, #d9f0ff, #ffffff);
        backdrop-filter: blur(16px) saturate(120%);
        border-radius: 10px;
        border: 1px solid rgba(255, 255, 255, 0.06);
        box-shadow: 0 10px 30px rgba(2, 6, 23, 0.3);
        min-width: 220px;
        padding: 10px;
        position: absolute;
        top: 10px;
        right: 24px;
        left: auto;
        transform-origin: top center;
        /* initial hidden state for animation */
        transform: translateY(-10px) scale(0.98);
        opacity: 0;
        transition: transform .32s cubic-bezier(.2, .9, .3, 1), opacity .28s ease;
    }

    body.dark .mobile-menu {
        background: linear-gradient(135deg, #0b1e2d 0%, #1a2b3c 100%);
        backdrop-filter: blur(16px) saturate(120%);
        border-radius: 10px;
        border: 1px solid rgba(255, 255, 255, 0.06);
        box-shadow: 0 10px 30px rgba(2, 6, 23, 0.3);
        min-width: 220px;
        padding: 10px;
        position: absolute;
        top: 10px;
        right: 24px;
        left: auto;
        transform-origin: top center;
        /* initial hidden state for animation */
        transform: translateY(-10px) scale(0.98);
        opacity: 0;
        transition: transform .32s cubic-bezier(.2, .9, .3, 1), opacity .28s ease;
    }

    nav,
    .hero,
    .products-section,
    .footer-glass {
        width: 100%;
    }

    a,
    button {
        -webkit-tap-highlight-color: transparent;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-column {
        min-width: 100%;
        margin-bottom: 30px;
    }

    .footer-map iframe {
        height: 200px;
    }

    .logo-column {
        order: 1;
    }

    .contact-column {
        order: 2;
    }

    .map-column {
        order: 3;
    }

    ul.menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .footer-column {
        min-width: 100%;
        margin-bottom: 30px;
    }

    .hero {
        padding: 100px 20px 60px;
    }

    .hero-content {
        flex-direction: column !important;
        align-items: center;
        justify-content: center;
        text-align: center !important;
        gap: 30px;
    }

    .hero-image {
        order: -1 !important;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .hero-image img {
        max-width: calc(100% - 48px);
    }

    .hero-text {
        order: 2;
        max-width: calc(100% - 48px);
        text-align: center !important;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .profile-menu {
        position: absolute;
        top: 100%;
        background: linear-gradient(135deg, #d9f0ff, #ffffff);
        backdrop-filter: blur(12px) saturate(120%);
        border-radius: 10px;
        padding: 10px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        display: none;
        flex-direction: column;
        min-width: 150px;
        margin: 15px 0 0 -15px;
        z-index: 1000;
    }

    body.dark .profile-menu {
        position: absolute;
        top: 100%;
        background: linear-gradient(135deg, #0b1e2d 0%, #1a2b3c 100%);
        backdrop-filter: blur(12px) saturate(120%);
        border-radius: 10px;
        padding: 10px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        flex-direction: column;
        min-width: 150px;
        margin: 15px 0 0 -15px;
        z-index: 1000;
    }

    .card {
        flex: 0 0 calc((100% - 32px)/2);
    }

    .cards-section {
        width: 100%;
    }

    ul.menu {
        display: none;
    }

    .hamburger {
        display: flex;
        order: 5;
    }

    nav {
        direction: rtl;
    }

    #brandText {
        display: none;
    }

    .control {
        order: 0;
    }

    .hero {
        padding: 30px 20px;
    }
}

@media (max-width: 576px) {

    .logo-column,
    .contact-column,
    .map-column {
        margin-bottom: 2rem;
    }

    .purchase-block {
        margin: 0 !important;
        margin-top: 30px;
        padding: .5rem 2rem;
    }

    .color-options,
    .model-options {
        margin: 10px auto;
    }

    .purchase-block>h2 {
        text-align: center;
    }

    .discount-item {
        padding: 4px 8px;
    }

    #addToCartBtn {
        padding: .5rem;
    }

    .price-info {
        margin: .5rem auto;
        padding: .5rem;
    }
}

/* force mini-cart header to match k1.php */
#miniCart .mini-cart-header {
    background: #3498db;
    color: #fff;
}

#miniCart .mini-cart-header * {
    color: #fff;
}

/* force mini-cart footer to match k1.php */
#miniCart .mini-cart-total {
    border-top: 2px solid #3498db;
    background: rgba(52, 152, 219, 0.08);
}

#miniCart #miniCartTotal,
#miniCart .btn-view-cart,
#miniCart .btn-checkout {
    color: #111;
}

#miniCart .btn-checkout {
    background: #3498db;
    color: #fff;
}

/* === global === */
#darkModeToggle,
#logoImg,
#cart,
#brand {
    transition: none;
}

body,
nav,
.footer-glass,
.hero-image img,
ul.menu li a,
.btn {
    transition: background .32s ease, color .32s ease, box-shadow .32s ease,
        transform .18s ease, border-color .32s ease;
}

body {
    background: linear-gradient(135deg, #d9f0ff, #ffffff);
    color: #111;
    background-repeat: repeat;
    background-size: cover;
}

p {
    direction: rtl;
}

.disabled {
    color: grey !important;
}

/* === root === */
:root {
    --glass-bg: rgba(255, 255, 255, 0.12);
    --text: #0b0b0b;
    --accent: rgba(255, 255, 255, 0.12);
    --btn-bg: rgba(0, 0, 0, 0.1);
    --btn-text: #000;
    --hero-bg: linear-gradient(135deg, #a8edea, #fed6e3);
}

body.dark {
    --glass-bg: rgba(0, 0, 0, 0.25);
    --text: #f7f7f7;
    --accent: rgba(255, 255, 255, 0.1);
    --btn-bg: rgba(255, 255, 255, 0.15);
    --btn-text: #fff;
    --hero-bg: linear-gradient(135deg, #222, #111);
    background: linear-gradient(135deg, #0b1e2d 0%, #1a2b3c 100%);
    color: var(--text);
}

body.dark::-webkit-scrollbar {
    width: 12px;
}

body.dark::-webkit-scrollbar-track {
    background: linear-gradient(135deg, #0b1e2d 0%, #1a2b3c 100%);
}

body.dark::-webkit-scrollbar-thumb {
    background-color: #555;
    border-radius: 6px;
    border: 3px solid #1e1e1e;
}

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #eef9ff;
}

::-webkit-scrollbar-thumb {
    background-color: #d8d8d8;
    border-radius: 6px;
    border: 3px solid #defffd;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #b9b9b9;
    border-radius: 6px;
    border: 3px solid #defffd;
}

/* === header === */
/* navigation bar */
nav {
    position: fixed;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 1920px;
    padding: 14px 20px;
    border-radius: 14px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px) saturate(120%);
    box-shadow: 0 6px 18px rgba(10, 10, 10, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 999;
    color: var(--text);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: auto;
    width: 350px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(24px);
    border-radius: 20px;
    margin-top: 16px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.38);
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1001;
}

.dropdown-menu.show {
    display: block;
}

.logedout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

.dropdown-menu a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
}

.dropdown-menu hr {
    border: 0;
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    margin: 10px 0;
}

body.dark .dropdown-menu {
    background: rgba(18, 20, 28, 0.98);
    border-color: rgba(255, 255, 255, 0.12);
}

.logo img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
}

ul.menu {
    list-style: none;
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: center;
    flex: 1;
}

ul.menu li a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 10px;
    border-radius: 8px;
}

ul.menu li a:hover,
ul.menu li a:focus {
    background: var(--accent);
    transform: translateY(-2px) scale(1.03);
    outline: none;
}

.btn {
    cursor: pointer;
    padding: 8px 10px;
    border-radius: 9px;
    border: none;
    background: var(--btn-bg);
    color: var(--btn-text);
    font-weight: 600;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 6px;
}

.hamburger span {
    width: 26px;
    height: 3px;
    border-radius: 3px;
    background: var(--text);
    display: block;
    transition: transform .26s cubic-bezier(.2, .9, .3, 1), opacity .18s;
}

.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

nav {
    flex-direction: row-reverse;
}

.logo {
    order: 1;
}

.menu {
    order: 2;
}

.controls {
    order: 3;
}

.logo img {
    order: 5;
}

ul.menu {
    direction: rtl;
}

#userName {
    display: block;
    font-size: 0.85rem;
    text-align: center;
    margin-top: 2px;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* mobile menu */
.mobile-menu-wrapper {
    position: fixed;
    top: 80px;
    right: -15px;
    z-index: 10000;
    display: none;
    width: 100%;
    height: auto;
    pointer-events: none;
    transition: all 0.3s ease;
}

.mobile-menu-wrapper.show {
    display: block;
    pointer-events: auto;
}

.mobile-menu-wrapper.show .mobile-menu {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.mobile-menu a {
    display: block;
    padding: 10px;
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
}

.mobile-menu a:hover,
.mobile-menu a:focus {
    background: var(--accent);
    transform: scale(1.03);
}

/* profile menu */
.profile-menu-wrapper {
    position: relative;
    display: inline-block;
}

.profile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: linear-gradient(135deg, #d9f0ff, #ffffff);
    backdrop-filter: blur(12px) saturate(120%);
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    min-width: 150px;
    margin: 15px 0 0 -15px;
    z-index: 1000;
}

.profile-menu.show {
    display: flex;
}

.profile-menu p {
    padding-bottom: 5px;
}

.profile-menu a,
.profile-menu button {
    display: block;
    width: 100%;
    text-align: center;
    padding: 8px;
    border: none;
    color: var(--text);
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.profile-menu a:hover,
.profile-menu button:hover {
    background: var(--accent);
}

.profile-menu hr {
    border: none;
    height: 1px;
    background: rgba(0, 0, 0, 0.15);
    margin: 6px 0;
}

.profile-actions {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    margin-top: 6px;
}

.profile-actions .btn {
    flex: 1;
    padding: 6px 8px;
    font-size: 0.9rem;
}


body.dark .profile-menu {

    position: absolute;
    top: 100%;
    left: 0;
    background: linear-gradient(135deg, #0b1e2d 0%, #1a2b3c 100%);
    backdrop-filter: blur(12px) saturate(120%);
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    flex-direction: column;
    min-width: 150px;
    z-index: 1000;
}

body.dark .profile-menu hr {

    background: rgba(255, 255, 255, 0.15);
}

/* === footer === */
.footer-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(14px) saturate(130%);
    color: var(--text);
    padding: 30px 40px;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -6px 18px rgba(10, 10, 10, 0.06);
    width: calc(100% - 48px);
    max-width: 1920px;
    margin: 10px auto 0;
}

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

.footer-column {
    flex: 1;
    min-width: 250px;
}

.footer-column h3 {
    margin-bottom: 14px;
    font-size: 1.2rem;
}

.footer-address,
.footer-phone {
    font-size: 0.95rem;
    opacity: 0.8;
    margin-top: 8px;
}

#footerPhone {
    text-decoration: none;
    color: var(--text);
    transition: color 0.3s ease;
}

#footerPhone:hover {
    opacity: 0.85;
}

#footerAddressText {
    color: var(--text);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    direction: rtl;
    transition: color 0.3s ease;
}

#footerAddressText:hover {
    opacity: 0.85;
}

.footer-logo {
    width: 150px;
    height: auto;
    margin-bottom: 10px;
}

.footer-brand {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.footer-copy {
    font-size: 0.9rem;
    opacity: 0.7;
}

.center {
    text-align: center;
}

.social-icons {
    margin-top: 12px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.social-icons a {
    color: var(--text);
    font-size: 1.4rem;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-icons a:hover {
    transform: scale(1.3);
    opacity: 0.8;
}

body.dark #footerPhone,
body.dark #footerAddressText {
    color: var(--text);
}

body.dark .footer-glass {
    background: rgba(0, 0, 0, 0.25);
    color: var(--text);
    box-shadow: 0 -4px 12px rgba(255, 255, 255, 0.05);
}

/* === main === */
/* products */
.products-section {
    background: var(--glass-bg);
    backdrop-filter: blur(14px) saturate(130%);
    color: var(--text);
    padding: 30px 40px;
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    width: calc(100% - 48px);
    max-width: 1920px;
    margin: 100px auto 0;
}

body.dark .products-section {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}

html[lang="fa"] .products-section {
    direction: rtl;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    justify-content: center;
    justify-items: center;
}

.product-card {
    width: 100%;
    max-width: 460px;
    background: rgba(10, 10, 10, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    backdrop-filter: blur(15px);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.product-card img {
    width: 100%;
    border-radius: 15px;
    margin-bottom: 15px;
}

.product-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.product-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.product-btn {
    display: inline-block;
    padding: 8px 15px;
    background: rgba(49, 49, 49, 0.15);
    border: 1px solid #696969;
    border-radius: 10px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.product-btn:not(.disabled):hover {
    background: rgba(255, 255, 255, 0.3);
}

.product-btn.disabled:hover {
    cursor: not-allowed;
}

/* === responsive === */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        justify-content: center;
        justify-items: center;
    }
}

@media (max-width: 957px) {
    .contact-column {
        order: 1;
    }

    .map-column {
        order: 2;
    }

    .logo-column {
        order: 3;
    }
}

@media (max-width: 900px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 850px) {
    .mobile-menu-wrapper.scrolled {
        transform: translateX(4px) translateY(-13px) scale(0.98);
    }

    .mobile-menu {
        background: linear-gradient(135deg, #d9f0ff, #ffffff);
        backdrop-filter: blur(16px) saturate(120%);
        border-radius: 10px;
        border: 1px solid rgba(255, 255, 255, 0.06);
        box-shadow: 0 10px 30px rgba(2, 6, 23, 0.3);
        min-width: 220px;
        padding: 10px;
        position: absolute;
        top: 10px;
        right: 24px;
        left: auto;
        transform-origin: top center;
        /* initial hidden state for animation */
        transform: translateY(-10px) scale(0.98);
        opacity: 0;
        transition: transform .32s cubic-bezier(.2, .9, .3, 1), opacity .28s ease;
    }

    body.dark .mobile-menu {
        background: linear-gradient(135deg, #0b1e2d 0%, #1a2b3c 100%);
        backdrop-filter: blur(16px) saturate(120%);
        border-radius: 10px;
        border: 1px solid rgba(255, 255, 255, 0.06);
        box-shadow: 0 10px 30px rgba(2, 6, 23, 0.3);
        min-width: 220px;
        padding: 10px;
        position: absolute;
        top: 10px;
        right: 24px;
        left: auto;
        transform-origin: top center;
        /* initial hidden state for animation */
        transform: translateY(-10px) scale(0.98);
        opacity: 0;
        transition: transform .32s cubic-bezier(.2, .9, .3, 1), opacity .28s ease;
    }

}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-column {
        min-width: 100%;
        margin-bottom: 30px;
    }

    .footer-map iframe {
        height: 200px;
    }

    ul.menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .center {
        order: 1;
    }

    .map-column {
        order: 2;
    }

    .contact-column {
        order: 3;
    }

    .footer-column {
        min-width: 100%;
        margin-bottom: 30px;
    }

    ul.menu {
        display: none;
    }

    .hamburger {
        display: flex;
        order: 5;
    }

    nav {
        direction: rtl;
    }

    #brandText {
        display: none;
    }

    .control {
        order: 0;
    }

    .profile-menu {
        position: absolute;
        top: 100%;
        left: -52px;
        right: auto;
        background: linear-gradient(135deg, #d9f0ff, #ffffff);
        backdrop-filter: blur(12px) saturate(120%);
        border-radius: 10px;
        padding: 10px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.9);
        display: none;
        flex-direction: column;
        min-width: 150px;
        margin: 15px 0 0 -15px;
        z-index: 1000;
    }

    .profile-menu.not-logged-in {
        left: auto !important;
        right: -55px !important;
    }

    body.dark .profile-menu {
        position: absolute;
        top: 100%;
        left: -52px;
        right: auto;
        background: linear-gradient(135deg, #0b1e2d 0%, #1a2b3c 100%);
        backdrop-filter: blur(12px) saturate(120%);
        border-radius: 10px;
        padding: 10px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        flex-direction: column;
        min-width: 150px;
        margin: 15px 0 0 -15px;
        z-index: 1000;
    }

    nav,
    .hero,
    .products-section,
    .footer-glass {
        width: 100%;
    }

    a,
    button {
        -webkit-tap-highlight-color: transparent;
    }

    .logo-column {
        order: 1;
    }

    .contact-column {
        order: 2;
    }

    .map-column {
        order: 3;
    }
}

@media (max-width: 600px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* mini-cart unified with switch.css */
#miniCart.show {
    display: flex !important;
}

.mini-cart-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.mini-cart-table th,
.mini-cart-table td {
    padding: 6px 8px;
    text-align: right;
    white-space: nowrap;
    color: #111;
}

body.dark .mini-cart-table th,
body.dark .mini-cart-table td {
    color: #eaf2f7;
}

.mini-cart-table thead th {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.mini-cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
}

.mini-cart-total {
    flex-shrink: 0;
    border-top: 2px solid var(--green);
    background: rgba(52, 152, 219, 0.08);
    padding: 10px 12px;
}

.mini-cart-buttons {
    display: flex;
    gap: 10px;
}

.btn-view-cart,
.btn-checkout {
    flex: 1;
    padding: 9px 10px;
    text-align: center;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.94rem;
    text-decoration: none;
    transition: .18s;
}

.btn-view-cart {
    background: rgba(0, 0, 0, 0.07);
    color: var(--text);
}

.btn-checkout {
    background: var(--green);
    color: white;
}

.btn-view-cart:hover {
    background: rgba(0, 0, 0, 0.12);
}

.btn-checkout:hover {
    filter: brightness(1.06);
}

body.dark #miniCart {
    background: rgba(18, 20, 28, 0.98);
    border-color: rgba(255, 255, 255, 0.12)
}

.mini-cart-header {
    padding: 12px 16px;
    background: var(--green);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.mini-cart-header h3 {
    margin: 0;
    font-size: 1rem;
    line-height: 1;
}

#miniCartCount {
    font-size: 0.82rem;
    opacity: 0.95;
}

/* === global === */
html {
    scroll-behavior: smooth;
}

body,
nav,
.footer-glass,
.hero-image img,
ul.menu li a,
.btn {
    transition: background .32s ease, color .32s ease, box-shadow .32s ease,
        transform .18s ease, border-color .32s ease;
}

body {
    background: linear-gradient(135deg, #d9f0ff, #ffffff);
    color: #111;
    background-repeat: repeat;
    background-size: cover;
}

p {
    direction: rtl;
}

#darkModeToggle {
    order: 2;
}

#darkModeToggle,
#logoImg,
#cart,
#brand {
    transition: none;
}

.disabled {
    color: grey !important;
}

/* === root === */
:root {
    --glass-bg: rgba(255, 255, 255, 0.12);
    --text: #0b0b0b;
    --accent: rgba(255, 255, 255, 0.12);
    --btn-bg: rgba(0, 0, 0, 0.1);
    --btn-text: #000;
    --hero-bg: linear-gradient(135deg, #a8edea, #fed6e3);
}

body.dark {
    --glass-bg: rgba(0, 0, 0, 0.25);
    --text: #f7f7f7;
    --accent: rgba(255, 255, 255, 0.1);
    --btn-bg: rgba(255, 255, 255, 0.15);
    --btn-text: #fff;
    --green: #3498db;
    --hero-bg: linear-gradient(135deg, #222, #111);
    background: linear-gradient(135deg, #0b1e2d 0%, #1a2b3c 100%);
    color: var(--text);
}

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #eef9ff;
}

::-webkit-scrollbar-thumb {
    background-color: #d8d8d8;
    border-radius: 6px;
    border: 3px solid #defffd;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #b9b9b9;
    border-radius: 6px;
    border: 3px solid #defffd;
}

body.dark::-webkit-scrollbar {
    width: 12px;
}

body.dark::-webkit-scrollbar-track {
    background: linear-gradient(135deg, #0b1e2d 0%, #1a2b3c 100%);
}

body.dark::-webkit-scrollbar-thumb {
    background-color: #555;
    border-radius: 6px;
    border: 3px solid #1e1e1e;
}

/* === header === */
/* navigation bar */
nav {
    position: fixed;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 1920px;
    padding: 14px 20px;
    border-radius: 14px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px) saturate(120%);
    box-shadow: 0 6px 18px rgba(10, 10, 10, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 999;
    color: var(--text);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: auto;
    width: 350px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(24px);
    border-radius: 20px;
    margin-top: 16px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.38);
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1001;
}

.dropdown-menu.show {
    display: block;
}

.logedout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

.dropdown-menu a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
}

.dropdown-menu hr {
    border: 0;
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    margin: 10px 0;
}

body.dark .dropdown-menu {
    background: rgba(18, 20, 28, 0.98);
    border-color: rgba(255, 255, 255, 0.12);
}

.logo-link:hover,
.logo-link:focus,
.logo-link:active {
    text-decoration: none;
    color: inherit;
}

.logo img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
}

ul.menu {
    list-style: none;
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: center;
    flex: 1;
}

ul.menu li a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 10px;
    border-radius: 8px;
}

ul.menu li a:hover,
ul.menu li a:focus {
    background: var(--accent);
    transform: translateY(-2px) scale(1.03);
    outline: none;
}

.btn {
    cursor: pointer;
    padding: 8px 10px;
    border-radius: 9px;
    border: none;
    background: var(--btn-bg);
    color: var(--btn-text);
    font-weight: 600;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 6px;
}

.hamburger span {
    width: 26px;
    height: 3px;
    border-radius: 3px;
    background: var(--text);
    display: block;
    transition: transform .26s cubic-bezier(.2, .9, .3, 1), opacity .18s;
}

.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

nav {
    flex-direction: row-reverse;
}

.logo {
    order: 1;
}

.menu {
    order: 2;
}

.controls {
    order: 3;
}

.logo img {
    order: 5;
}

ul.menu {
    direction: rtl;
}

#userName {
    display: block;
    font-size: 0.85rem;
    text-align: center;
    margin-top: 2px;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* mobile menu */
.mobile-menu-wrapper {
    position: fixed;
    top: 80px;
    right: -15px;
    z-index: 10000;
    display: none;
    width: 100%;
    height: auto;
    pointer-events: none;
    transition: all 0.3s ease;
}

.mobile-menu-wrapper.show {
    display: block;
    pointer-events: auto;
}

.mobile-menu-wrapper.show .mobile-menu {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.mobile-menu a {
    display: block;
    padding: 10px;
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
}

.mobile-menu a:hover,
.mobile-menu a:focus {
    background: var(--accent);
    transform: scale(1.03);
}

/* profile menu */
.profile-menu-wrapper {
    position: relative;
    display: inline-block;
}

.profile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: linear-gradient(135deg, #d9f0ff, #ffffff);
    backdrop-filter: blur(12px) saturate(120%);
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    min-width: 150px;
    margin: 15px 0 0 -15px;
    z-index: 1000;
}

.profile-menu.show {
    display: flex;
}

.profile-menu p {
    padding-bottom: 5px;
}

.profile-menu a,
.profile-menu button {
    display: block;
    width: 100%;
    text-align: center;
    padding: 8px;
    border: none;
    color: var(--text);
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.profile-menu a:hover,
.profile-menu button:hover {
    background: var(--accent);
}

.profile-menu hr {
    border: none;
    height: 1px;
    background: rgba(0, 0, 0, 0.15);
    margin: 6px 0;
}

.profile-actions {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    margin-top: 6px;
}

.profile-actions .btn {
    flex: 1;
    padding: 6px 8px;
    font-size: 0.9rem;
}


body.dark .profile-menu {

    position: absolute;
    top: 100%;
    left: 0;
    background: linear-gradient(135deg, #0b1e2d 0%, #1a2b3c 100%);
    backdrop-filter: blur(12px) saturate(120%);
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    flex-direction: column;
    min-width: 150px;
    z-index: 1000;
}

body.dark .profile-menu hr {

    background: rgba(255, 255, 255, 0.15);
}

/* mini cart */
#miniCart.show {
    display: flex !important;
}

.mini-cart-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.mini-cart-table th,
.mini-cart-table td {
    padding: 6px 8px;
    text-align: right;
    white-space: nowrap;
}

.mini-cart-table thead th {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.mini-cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
}

.mini-cart-total {
    flex-shrink: 0;
    border-top: 2px solid var(--green);
    background: rgba(52, 152, 219, 0.08);
    padding: 10px 12px;
}

body.dark #miniCart {
    background: rgba(18, 20, 28, 0.98);
    border-color: rgba(255, 255, 255, 0.12)
}

/* mini-cart unified with switch.css */
#miniCart.show {
    display: flex !important;
}

.mini-cart-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.mini-cart-table th,
.mini-cart-table td {
    padding: 6px 8px;
    text-align: right;
    white-space: nowrap;
    color: #111;
}

body.dark .mini-cart-table th,
body.dark .mini-cart-table td {
    color: #eaf2f7;
}

.mini-cart-table thead th {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.mini-cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
}

.mini-cart-total {
    flex-shrink: 0;
    border-top: 2px solid var(--green);
    background: rgba(52, 152, 219, 0.08);
    padding: 10px 12px;
}

body.dark #miniCart {
    background: rgba(18, 20, 28, 0.98);
    border-color: rgba(255, 255, 255, 0.12)
}

.mini-cart-header {
    padding: 12px 16px;
    background: var(--green);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.mini-cart-header h3 {
    margin: 0;
    font-size: 1rem;
    line-height: 1;
}

#miniCartCount {
    font-size: 0.82rem;
    opacity: 0.95;
}


.mini-cart-header {
    padding: 12px 16px;
    background: var(--green);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.mini-cart-header h3 {
    margin: 0;
    font-size: 1rem;
    line-height: 1;
}

#miniCartCount {
    font-size: 0.82rem;
    opacity: 0.95;
}

.mini-cart-item-new {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    transition: all .18s;
}

.mini-cart-item-new:hover {
    background: rgba(0, 0, 0, 0.04)
}

body.dark .mini-cart-item-new:hover {
    background: rgba(255, 255, 255, 0.06)
}

.mini-cart-item-new img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
}

.mini-cart-info h4 {
    margin: 0 0 4px 0;
    font-size: 0.95rem;
    font-weight: 600;
}

.mini-cart-info p {
    margin: 2px 0;
    font-size: 0.82rem;
    color: var(--green);
}

.quantity-control {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    padding: 4px;
    gap: 6px;
    margin-top: 8px;
}

.quantity-control button {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: var(--green);
    font-size: 14px;
    cursor: pointer;
    border-radius: 8px;
    transition: .18s;
}

.quantity-control button:hover {
    background: var(--green);
    color: white;
}

.quantity-control input {
    width: 44px;
    height: 30px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: bold;
    font-size: 1rem
}

.mini-cart-price strong {
    color: #e74c3c;
    font-size: 0.98rem;
    font-weight: bold;
}

.remove-item-mini {
    width: 28px;
    height: 28px;
    background: var(--red);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    margin-left: auto;
    transition: .14s;
}

.remove-item-mini:hover {
    background: #c0392b;
    transform: scale(1.06);
}

.mini-cart-total>div {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem
}

.mini-cart-buttons {
    display: flex;
    gap: 10px;
}

.btn-view-cart,
.btn-checkout {
    flex: 1;
    padding: 9px 10px;
    text-align: center;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.94rem;
    text-decoration: none;
    transition: .18s;
}

.btn-view-cart {
    background: rgba(0, 0, 0, 0.07);
    color: var(--text);
}

.btn-checkout {
    background: var(--green);
    color: white;
}

.btn-view-cart:hover {
    background: rgba(0, 0, 0, 0.12);
}

.btn-checkout:hover {
    filter: brightness(1.06);
}

/* === main === */
main {
    margin: 120px auto 4rem;
}

/* hero */
.hero {
    background: var(--glass-bg);
    backdrop-filter: blur(14px) saturate(130%);
    color: var(--text);
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    width: calc(100% - 48px);
    max-width: 1920px;
    margin: 100px auto 0;
    padding: 1.5rem 3rem;
    flex: 1
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    max-width: 1920px;
    width: 100%;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 2.8rem;
    direction: rtl;
}

.hero-text p {
    font-size: 1.2rem;
    line-height: 1.6;
    opacity: 0.9;
}

body.dark .hero {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}

.hero-btn {
    display: inline-block;
    padding: 8px 15px;
    background: rgba(49, 49, 49, 0.15);
    border: 1px solid #696969;
    border-radius: 10px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.hero-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

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

.hero-image img {
    width: 100%;
    max-width: 450px;
    border-radius: 20px;
    object-fit: cover;
    transition: transform .32s ease, box-shadow .32s ease;
}

.hero-content {
    flex-direction: row;
    text-align: right;
}

/* about */
.about {
    background: var(--glass-bg);
    backdrop-filter: blur(14px) saturate(130%);
    color: var(--text);
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    width: calc(100% - 48px);
    max-width: 1920px;
    margin: 4rem auto;
    padding: 2rem 4rem;
}

body.dark .about {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}

#about-title {
    text-align: center;
}

.about table {
    width: 75%;
    direction: rtl;
    margin: 0 auto;
}

.about tr {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    border-bottom: 1px solid #000;
}

/* === footer === */
footer {
    margin-left: auto;
    margin-right: auto;
}

.footer-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(14px) saturate(130%);
    color: var(--text);
    padding: 30px 40px;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -6px 18px rgba(10, 10, 10, 0.06);
    width: calc(100% - 48px);
    max-width: 1920px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-column {
    flex: 1;
    min-width: 250px;
}

.footer-column h3 {
    margin-bottom: 14px;
    font-size: 1.2rem;
}

.footer-address,
.footer-phone {
    font-size: 0.95rem;
    opacity: 0.8;
    margin-top: 8px;
}

#footerPhone {
    text-decoration: none;
    color: var(--text);
    transition: color 0.3s ease;
}

#footerPhone:hover {
    opacity: 0.85;
}

#footerAddressText {
    color: var(--text);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    direction: rtl;
    transition: color 0.3s ease;
}

#footerAddressText:hover {
    opacity: 0.85;
}

.footer-logo {
    width: 150px;
    height: auto;
    margin-bottom: 10px;
}

.footer-brand {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.footer-copy {
    font-size: 0.9rem;
    opacity: 0.7;
}

.center {
    text-align: center;
}

.social-icons {
    margin-top: 12px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.social-icons a {
    color: var(--text);
    font-size: 1.4rem;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-icons a:hover {
    transform: scale(1.3);
    opacity: 0.8;
}

body.dark #footerPhone,
body.dark #footerAddressText {
    color: var(--text);
}

body.dark .footer-glass {
    background: rgba(0, 0, 0, 0.25);
    color: var(--text);
    box-shadow: 0 -4px 12px rgba(255, 255, 255, 0.05);
}

/* === responsive === */
@media (max-width: 1200px) {
    main {
        margin: 100px auto 3rem;
    }

    .hero {
        padding: 2rem 1rem;
    }

    table {
        width: 100%;
    }
}

@media (max-width: 992px) {
    .hero {
        padding: 100px 20px 60px;
    }

    .hero-content {
        flex-direction: column !important;
        align-items: center;
        justify-content: center;
        text-align: center !important;
        gap: 30px;
    }

    .hero-image {
        order: -1 !important;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .hero-image img {
        max-width: calc(100% - 48px);
    }

    .hero-text {
        order: 2;
        max-width: calc(100% - 48px);
        text-align: center !important;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 1rem;
    }
}

@media (max-width: 957px) {
    .contact-column {
        order: 1;
    }

    .map-column {
        order: 2;
    }

    .logo-column {
        order: 3;
    }
}

@media (max-width: 768px) {
    .mobile-menu-wrapper.scrolled {
        transform: translateX(4px) translateY(-13px) scale(0.98);
    }

    .mobile-menu {
        background: linear-gradient(135deg, #d9f0ff, #ffffff);
        backdrop-filter: blur(16px) saturate(120%);
        border-radius: 10px;
        border: 1px solid rgba(255, 255, 255, 0.06);
        box-shadow: 0 10px 30px rgba(2, 6, 23, 0.3);
        min-width: 220px;
        padding: 10px;
        position: absolute;
        top: 10px;
        right: 24px;
        left: auto;
        transform-origin: top center;
        /* initial hidden state for animation */
        transform: translateY(-10px) scale(0.98);
        opacity: 0;
        transition: transform .32s cubic-bezier(.2, .9, .3, 1), opacity .28s ease;
    }

    body.dark .mobile-menu {
        background: linear-gradient(135deg, #0b1e2d 0%, #1a2b3c 100%);
        backdrop-filter: blur(16px) saturate(120%);
        border-radius: 10px;
        border: 1px solid rgba(255, 255, 255, 0.06);
        box-shadow: 0 10px 30px rgba(2, 6, 23, 0.3);
        min-width: 220px;
        padding: 10px;
        position: absolute;
        top: -10px;
        right: 24px;
        left: auto;
        transform-origin: top center;
        /* initial hidden state for animation */
        transform: translateY(-10px) scale(0.98);
        opacity: 0;
        transition: transform .32s cubic-bezier(.2, .9, .3, 1), opacity .28s ease;
    }

    nav,
    .hero,
    .about,
    .products-section,
    .footer-glass {
        width: 100%;
    }

    a,
    button {
        -webkit-tap-highlight-color: transparent;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-column {
        min-width: 100%;
        margin-bottom: 30px;
    }

    .footer-map iframe {
        height: 200px;
    }

    .logo-column {
        order: 1;
    }

    .contact-column {
        order: 2;
    }

    .map-column {
        order: 3;
    }

    ul.menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .footer-column {
        min-width: 100%;
        margin-bottom: 30px;
    }

    .profile-menu {
        position: absolute;
        top: 100%;
        background: linear-gradient(135deg, #d9f0ff, #ffffff);
        backdrop-filter: blur(12px) saturate(120%);
        border-radius: 10px;
        padding: 10px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        display: none;
        flex-direction: column;
        min-width: 150px;
        margin: 15px 0 0 -15px;
        z-index: 1000;
    }

    body.dark .profile-menu {
        position: absolute;
        top: 100%;
        background: linear-gradient(135deg, #0b1e2d 0%, #1a2b3c 100%);
        backdrop-filter: blur(12px) saturate(120%);
        border-radius: 10px;
        padding: 10px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        flex-direction: column;
        min-width: 150px;
        margin: 15px 0 0 -15px;
        z-index: 1000;
    }

    ul.menu {
        display: none;
    }

    .hamburger {
        display: flex;
        order: 5;
    }

    nav {
        direction: rtl;
    }

    #brandText {
        display: none;
    }

    .logo {
        order: 4;
        position: absolute;
        gap: 0;
        right: calc(50% - 20px);
        top: calc(50% - 20px);
    }

    .control {
        order: 0;
    }

    .hero {
        padding: 30px 20px;
    }

    .about {
        padding: 3rem 2rem;
    }

    .cart-table-wrapper {
        overflow-x: auto;
    }

    .cart-table {
        width: max-content;
        min-width: 100%;
    }
}

@media (max-width: 576px) {

    .logo-column,
    .contact-column,
    .map-column {
        margin-bottom: 2rem;
    }
}

.mini-cart-table th,
.mini-cart-table td {
    color: #111;
}

body.dark .mini-cart-table th,
body.dark .mini-cart-table td {
    color: #eaf2f7;
}

/* Shared header + mini-cart styles (from switch.css) */
.btn {
    padding: 10px 20px;
    background: var(--glass);
    color: var(--text);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 600;
    transition: .3s;
}

.btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: auto;
    width: 350px;
    background: #e6f5ff;
    backdrop-filter: blur(24px);
    border-radius: 20px;
    margin-top: 16px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.38);
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1001;
}

.dropdown-menu.show {
    display: block;
}

.logedout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

.dropdown-menu a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
}

#darkModeToggle {
    padding: 1rem;
}

body.dark .dropdown-menu {
    background: rgba(18, 20, 28, 0.98);
    border-color: rgba(255, 255, 255, 0.12);
}

nav {
    position: fixed;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 1920px;
    padding: 14px 20px;
    border-radius: 14px;
    background: var(--glass);
    backdrop-filter: blur(12px) saturate(120%);
    box-shadow: 0 6px 18px rgba(10, 10, 10, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 999;
    color: var(--text);
    transition: all 0.3s ease !important;
}

nav.shrink {
    top: 0;
    padding: 8px 20px;
    border-radius: 0 0 12px 12px;
    backdrop-filter: blur(14px) saturate(140%);
}

nav.shrink .mobile-menu {
    top: -20px;
}

.logo img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
}

ul.menu li a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 10px;
    border-radius: 8px;
}

ul.menu li a:hover,
ul.menu li a:focus {
    background: var(--accent);
    transform: translateY(-2px) scale(1.03);
    outline: none;
}

.hamburger span {
    width: 26px;
    height: 3px;
    border-radius: 3px;
    background: var(--text);
    display: block;
    transition: transform .26s cubic-bezier(.2, .9, .3, 1), opacity .18s;
}

.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu-wrapper {
    position: fixed;
    top: 80px;
    right: -15px;
    z-index: 10000;
    display: none;
    width: 100%;
    height: auto;
    pointer-events: none;
    transition: all 0.3s ease;
}

.mobile-menu-wrapper.show {
    display: block;
    pointer-events: auto;
}

.mobile-menu-wrapper.show .mobile-menu {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.mobile-menu a {
    display: block;
    padding: 10px;
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
}

.mobile-menu a:hover,
.mobile-menu a:focus {
    background: var(--accent);
    transform: scale(1.03);
}

/* mini-cart */
#miniCart.show {
    display: flex !important;
}

.mini-cart-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.mini-cart-table th,
.mini-cart-table td {
    padding: 6px 8px;
    text-align: right;
    white-space: nowrap;
    color: #111;
    border: none !important;
}

body.dark .mini-cart-table th,
body.dark .mini-cart-table td {
    color: #eaf2f7;
}

.mini-cart-table thead th {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    font-weight: 700;
}

.mini-cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
}

.mini-cart-total {
    flex-shrink: 0;
    border-top: 2px solid var(--green);
    background: rgba(52, 152, 219, 0.08);
    padding: 10px 12px;
}

body.dark #miniCart {
    background: rgba(18, 20, 28, 0.98);
    border-color: rgba(255, 255, 255, 0.12);
}

.mini-cart-header {
    padding: 12px 16px;
    background: var(--green);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.mini-cart-header h3 {
    margin: 0;
    font-size: 1rem;
    line-height: 1;
}

#miniCartCount {
    font-size: 0.82rem;
    opacity: 0.95;
}

.mini-cart-total>div {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.mini-cart-buttons {
    display: flex;
    gap: 10px;
}

.btn-view-cart,
.btn-checkout {
    flex: 1;
    padding: 9px 10px;
    text-align: center;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.94rem;
    text-decoration: none;
    transition: .18s;
}

.btn-view-cart {
    background: rgba(0, 0, 0, 0.07);
    color: var(--text);
}

.btn-checkout {
    background: var(--green);
    color: white;
}

.btn-view-cart:hover {
    background: rgba(0, 0, 0, 0.12);
}

.btn-checkout:hover {
    filter: brightness(1.06);
}

/* === layout overrides (single source) === */
main {
    margin: 40px auto 4rem;
}

body.page-home main {
    margin: 120px auto 5rem;
}

/* final spacing override */
main {
    margin: 80px auto 2rem !important;
}

.hero {
    margin: 20px auto 0 !important;
}

/* unified section spacing/alignment */
.products-section,
.about,
.product-detail-intro {
    margin-top: 30px !important;
}

.products-section,
.about {
    padding: 40px 40px !important;
}

.product-detail-intro {
    padding-top: 30px !important;
}

.header-section {
    margin-top: 0 !important;
}

.purchase-block {
    margin-top: 0px !important;
}

.purchase-block {
    position: relative;
    z-index: 3;
}

.header-section {
    position: relative;
    z-index: 1;
}

.page-section {
    background: var(--glass-bg);
    backdrop-filter: blur(14px) saturate(130%);
    color: var(--text);
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    max-width: 1920px;
    margin: 30px auto 0;
    padding: 40px 40px;
    direction: rtl;
}

body.dark .page-section {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}

.page-section--product {
    padding: 30px 30px;
}

.page-section--product .container {
    max-width: 1920px;
    width: 100%;
    margin: 0 auto;
}

/* ensure product section width matches header/nav */
.page-section.page-section--product.product-detail-intro {
    width: var(--page-width);
    max-width: 1920px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.page-section--product .product-top {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 32px;
    align-items: start;
    margin-bottom: 32px;
    direction: ltr;
}

.page-section--product .product-top>* {
    direction: rtl;
}

.page-section--product .product-main {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.page-section--product .product-main .fullwidth-quote {
    margin: 0;
}

@media (max-width: 980px) {
    .page-section--product .product-top {
        grid-template-columns: 1fr;
    }
}

/* final width alignment with header */
:root {
    --page-max: 1920px;
    --page-width: calc(100% - 48px);
}

nav {
    width: var(--page-width) !important;
    max-width: var(--page-max) !important;
}

.product-detail-intro,
.page-section {
    /* width: var(--page-width) !important; */
    max-width: var(--page-max) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* prevent legacy float from constraining detail cards */
.purchase-block {
    float: none !important;
}

.details-grid {
    width: 100%;
}

/* cart page */
.cart-page {
    width: var(--page-width) !important;
    max-width: var(--page-max) !important;
    margin: 30px auto 0 !important;
    direction: rtl;
}

.cart-title {
    margin-bottom: 20px;
    color: var(--text);
}

.cart-title,
.cart-summary,
.cart-empty {
    padding: 24px 32px;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--glass);
    border-radius: 16px;
    overflow: hidden;
    direction: rtl;
}

/* final cart alignment override */
.page-section.cart-page {
    width: var(--page-width) !important;
    max-width: var(--page-max) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 !important;
}

.cart-table {
    width: 100% !important;
}

.cart-table tr {
    display: table-row;
    margin-bottom: 0;
    border-bottom: 0;
}

.cart-table tbody tr[data-url] {
    cursor: pointer;
}

.cart-table tbody tr[data-url]:hover td {
    background: rgba(0, 0, 0, 0.03);
}

.cart-table th,
.cart-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    text-align: right;
    white-space: nowrap;
}

.cart-table th {
    background: rgba(0, 0, 0, 0.04);
}

.cart-line-discount-rate {
    font-weight: 700;
    color: var(--green);
}

.cart-line-discount-amount {
    display: block;
    margin-top: 2px;
    font-size: 0.8rem;
    opacity: 0.85;
}

.cart-qty-control {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cart-qty-btn,
.cart-remove-btn {
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: transparent;
    border-radius: 8px;
    padding: 4px 8px;
    cursor: pointer;
    color: inherit;
    font-size: 1rem;
}

.cart-qty-btn:hover,
.cart-remove-btn:hover {
    background: rgba(0, 0, 0, 0.06);
}

.cart-qty-input {
    width: 64px;
    border: 1px solid rgba(0, 0, 0, 0.16);
    border-radius: 8px;
    padding: 6px 8px;
    text-align: center;
    background: transparent;
    color: inherit;
}

.cart-table tr.is-updating {
    opacity: 0.55;
    pointer-events: none;
}

body.dark .cart-table th,
body.dark .cart-table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.dark .cart-table th {
    background: rgba(255, 255, 255, 0.06);
}

body.dark .cart-table tbody tr[data-url]:hover td {
    background: rgba(255, 255, 255, 0.06);
}

body.dark .cart-qty-btn,
body.dark .cart-remove-btn {
    border-color: rgba(255, 255, 255, 0.24);
}

body.dark .cart-qty-btn:hover,
body.dark .cart-remove-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

body.dark .cart-qty-input {
    border-color: rgba(255, 255, 255, 0.24);
}

.cart-summary {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    justify-content: space-between;
    align-items: center;
}

.cart-empty {
    padding: 24px;
    background: var(--glass);
    border-radius: 16px;
}

.btn-primary {
    background: var(--green);
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
}

.muted {
    color: rgba(0, 0, 0, 0.6);
}

body.dark .muted {
    color: rgba(255, 255, 255, 0.7);
}

.purchase-block {
    margin: 0 !important;
}

.header-section {
    margin-bottom: 1rem;
}

#profileMenu {
    width: 300px;
    left: -70px;
}

#card-container img {
    pointer-events: none;
}

#authModal form {
    direction: rtl;
}

.mobile-menu {
    background: linear-gradient(135deg, #d9f0ff, #ffffff);
    backdrop-filter: blur(16px) saturate(120%);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.3);
    min-width: 220px;
    padding: 10px;
    position: absolute;
    top: -10px;
    right: 24px;
    left: auto;
    transform-origin: top center;
    transform: translateY(-10px) scale(0.98);
    opacity: 0;
    transition: transform .32s cubic-bezier(.2, .9, .3, 1), opacity .28s ease;
}

#splash {
    position: fixed;
    inset: 0;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#splash.hide {
    opacity: 0;
    visibility: hidden;
}

.splash-content {
    text-align: center;
    color: white;
}

.splash-content img {
    width: 300px;
    margin-bottom: 16px;
}

.splash-content h1 {
    font-size: 24px;
    letter-spacing: 2px;
}

@media (max-width: 768px) {
    nav {
        width: 100% !important;
    }

    .page-section.cart-page {
        width: 100% !important;
    }

    .cart-table th {
        text-align: center;
    }
}

@media (max-width: 576px) {

    .check-parrent,
    .check-parrent>* {
        display: block;
    }

    .check-parrent button {
        margin-top: 4px;
        margin-right: auto;
    }

    #loginForm .auth-btn {
        margin-top: 12px;
    }

    .main-container {
        width: 100% !important;
        padding: 1rem !important;
        margin: 0 !important;
    }

    #cartBtn,
    #profileBtn {
        padding: 6px;
    }

    .footer-container {
        gap: 0;
    }
}