/* Important note box (single product) */
.macneed-important-note-box {
    margin-top: 16px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: #fff4bf;
    border: 1px solid #f2cf5b;
    border-radius: 12px;
    direction: rtl;
    text-align: right;
}

.macneed-important-note-icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.macneed-important-note-icon img {
    width: 24px;
    height: 24px;
    display: block;
}

.macneed-important-note-content {
    flex: 1;
}

.macneed-important-note-title {
    display: block;
    margin-bottom: 4px;
    color: #5b3f00;
    font-size: 14px;
    font-weight: 700;
}

.macneed-important-note-text {
    color: #5b3f00;
    font-size: 13px;
    line-height: 1.85;
}

.macneed-important-note-text p {
    margin: 0;
}

.macneed-important-note-text p + p {
    margin-top: 6px;
}
/* Version: 2025-11-03-19-25 */
html {
    scroll-behavior: smooth;
}
@font-face {
    font-family: Vazirmatn;
    src: url('assets/fonts/vazirmatn/Vazirmatn-Thin.woff2') format('woff2');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

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

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

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

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

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

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

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

@font-face {
    font-family: Vazirmatn;
    src: url('assets/fonts/vazirmatn/Vazirmatn-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}
body {
    background: #F5F5F7;
    direction: rtl;
    text-aligh: right;
    font-family: Vazirmatn;
    font-weight: 400;
    overflow-x: hidden;
}

/* WordPress adds "search" class to body on search results page.
   Prevent generic ".search" component styles from shrinking whole layout. */
body.search {
    width: auto !important;
    margin: 0 !important;
}

html {
    overflow-x: hidden;
}
a.miniLogo {
    background: url('assets/img/mini-logo.png') no-repeat;
    width: 48px;
    height: 24px;
    display: block;
    background-size: contain;
    flex-shrink: 0;
    margin-top: 6px;
    margin-right: 0;
    margin-left: 12px;
}
.bgMenuTop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    padding: 0;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transition: height 0.3s ease;
    display: flex;
    align-items: center;
}

.bgMenuTop.scrolled {
    height: 50px;
}

.bgMenuTop .container {
    display: flex;
    align-items: center;
    height: 60px;
    transition: height 0.3s ease;
}

.bgMenuTop.scrolled .container {
    height: 50px;
}

.bgMenuTop .container .row {
    width: 100%;
    margin: 0;
    align-items: center;
    height: 100%;
}

.topNav {
    display: flex;
    align-items: center;
    height: 100%;
    padding-top: 0;
}

.topNav ul {
    margin: 0px;
    padding: 0px;
    display: flex;
    align-items: center;
    list-style: none;
    height: 100%;
}

.topNav ul li {
    display: flex;
    align-items: center;
    padding: 0px 15px;
    height: 100%;
}

.topNav ul li a {
    font-size: 14px;
    color: #23455F;
    text-decoration: none;
    display: flex;
    align-items: center;
    height: 100%;
    transition: font-size 0.3s ease, color 0.3s ease;
}

.topNav ul li a:hover {
    color: #2997FC;
}

.topNav ul li span.topNav-link--disabled {
    font-size: 14px;
    color: #9ca3af;
    cursor: not-allowed;
    user-select: none;
    pointer-events: none;
}

.bgMenuTop.scrolled .topNav ul li a {
    font-size: 12px;
}

.bgMenuTop.scrolled .topNav ul li span.topNav-link--disabled {
    font-size: 12px;
}
.userInfo {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
}
.userInfo ul {
    padding: 0px;
    margin: 0px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.userInfo ul li {
    display: flex;
    align-items: center;
    padding: 0px;
}
a.logReg {
    text-decoration: none;
}
.logReg {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 17px;
    background: none;
    border: 1px solid #23455F;
    border-radius: 50px;
    transition: background 0.2s ease;
}

.logReg:hover {
    background: #EBEBED;
}

.logReg.cartBtn {
    background: #2997FC;
    border: 1px solid #2997FC;
}

.logReg.cartBtn .btn-login__icon {
    filter: brightness(0) invert(1);
}

.logReg.cartBtn .btn-login__text {
    color: #fff;
}

.logReg.cartBtn:hover {
    background: #4da6ff;
    border-color: #4da6ff;
}

.btn-login:hover {
    background: #1d4ed8;
}

.btn-login__icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.btn-login__text {
    white-space: nowrap;
    font-size: 14px;
    color: #23455F;
    text-decoration: none;
    transition: font-size 0.3s ease;
}

.bgMenuTop.scrolled .btn-login__text {
    font-size: 12px;
}
.newsOfTheDay {
    width: 100%;
    background: #EBEBED;
    text-align: center;
    padding: 12px 0px;
    margin-top: 60px;
    transform: translateY(0);
    opacity: 1;
    transition: transform 0.75s ease, opacity 0.75s ease, background-color 0.45s ease, color 0.45s ease;
}

.newsOfTheDay span {
    font-size: 12px;
    padding-left: 10px;
    transition: color 0.45s ease;
}

.newsOfTheDay a {
    font-size: 12px;
    color: #2997FC;
    text-decoration: none;
    position: relative;
    display: inline-block;
    transition: color 0.45s ease;
}

.newsOfTheDay a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background: #2997FC;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.28s ease;
}

.newsOfTheDay.notice-initial-state {
    background: #2997FC;
}

.newsOfTheDay.notice-pre-enter {
    transform: translateY(-100%);
    opacity: 0;
}

.newsOfTheDay.notice-initial-state span,
.newsOfTheDay.notice-initial-state a {
    color: #FFFFFF;
}

.newsOfTheDay.notice-initial-state a::after {
    background: #FFFFFF;
}

.newsOfTheDay a:hover::after,
.newsOfTheDay a:focus-visible::after {
    transform: scaleX(1);
}
.bgHead {
    background: #F5F5F7;
    right: auto;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 860px;
    height: 372px;
    z-index: 1;
}
.mainHead .title {
    z-index: 2;
    position: relative;
}

.mainHead {
    background: url(assets/img/bg-header.png) repeat;
    background-size: 750px;
    width: 100%;
    height: 372px;
    padding: 50px 0px 0px;
    text-align: center;
    position: relative;
}

.mainHead .title h1 {
    font-size: 25px;
    color: #23455F;
    font-weight: bold;
}

.mainHead .desc {
    width: 44%;
    margin: 25px auto;
    z-index: 2;
    position: relative;
}

.mainHead .desc span {
    font-size: 14px;
    color: #23455F;
}

.crossLinks {
    z-index: 2;
    position: relative;
}

.crossLinks ul {
    padding: 0px;
    margin: 0px;
}

.crossLinks ul li {
    display: inline-block;
    padding: 0px 5px;
}

.crossLinks ul li a {
    font-size: 14px;
    text-decoration: none;
}

.crossLinks ul li a.shop {
    border: 1px solid #2997FC;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 25px;
    background: none;
    border-radius: 50px;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    color: #2997FC;
}

.crossLinks ul li a.shop:hover {
    background: #2997FC;
    color: #fff;
    border-color: #2997FC;
}

.crossLinks ul li a.appstore {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 25px;
    background: #2997FC;
    border-radius: 50px;
    transition: background 0.2s ease, color 0.2s ease;
    color: #fff;
    border: 1px solid transparent;
}

.crossLinks ul li a.appstore:hover {
    background: #1a7fd4;
}
.search {
    width: 80%;
    margin: 20px auto;
    z-index: 2;
    position: relative;
}
.search form {
    position: relative;
}
.bgSearch {
    width: 100%;
    background: #F0F0F0;
    padding: 80px 200px 200px;
}

.searchTitle {
    width: 100%;
    text-align: right;
}

.searchTitle h1, .searchTitle h2 {
    font-size: 23px;
    font-weight: bold;
    color: #373D3F;
    padding-bottom: 15px;
}

.search form input {
    width: 100%;
    height: 40px;
    border-radius: 50px;
    border: 1px solid #ebebed;
    color: #80889A;
    padding: 25px 20px;
    font-size: 14px;
    font-weight: 300;
    background: #fff;
}

button.searchIcon {
    outline: none;
    background: #2997FC;
    position: absolute;
    left: 14px;
    right: auto;
    border: none !important;
    -webkit-transition: background 0.2s ease;
    -o-transition: background 0.2s ease;
    transition: background 0.2s ease;
    margin: 0;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 100px;
    width: 40px !important;
    height: 40px !important;
    z-index: 2;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

button.searchIcon:hover {
    background: #1a7fd4;
}
button.searchIcon svg {
}
.search__icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    margin: 0;
    display: block;
}
.bgWhite {
    background: #fff;
    padding-bottom: 50px;
    padding-top: 30px;
}

.DescSection {
    padding: 30px 0px;
    margin-bottom: 40px;
}

.DescSection .title {
    margin: 0px;
    text-align: right;
    padding-bottom: 20px;
    padding-top: 30px;
}

.DescSection .title span {
    font-size: 22px;
    font-weight: bold;
    background: linear-gradient(90deg, #4E86B0, #23455F);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.DescSection .desc {
    width: 100%;
}

.DescSection .desc p {
    font-size: 14px;
    font-weight: 400;
    line-height: 30px;
}

.DescSection a.ctaButton {
    float: left;
    color: #373D3F;
    text-decoration: none;
    font-size: 14px;
    border: 1px solid #373D3F;
    border-radius: 15px;
    padding: 7px 13px;
}
.DescSection .imgSamp {
    float: right;
    margin-right: 40px;
}

.DescSection .imgSamp img {
    width: 100%;
    height: auto;
}

/* ——— برگه‌های استاتیک (سوالات متداول و …) — تیتر گرادیان بیرون باکس، متن داخل باکس ——— */
/* تیتر و باکس یک ستون مشترک تا لبهٔ راست تیتر با باکس سفید یکی باشد */
.macneed-page-shell .macneed-page-header,
.macneed-page-content-box {
    width: 100%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.macneed-page-shell .macneed-page-header {
    margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

.macneed-page-header .title {
    margin: 0;
    text-align: right;
    padding: 0 0 0.35rem;
}

.macneed-page-title-gradient {
    display: inline-block;
    font-size: 22px;
    font-weight: bold;
    line-height: 1.45;
    background: linear-gradient(90deg, #4e86b0, #23455f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.macneed-page-content-box {
    background: #fff;
    border-radius: 50px;
    padding: clamp(1.75rem, 4vw, 3rem);
    border: 1px solid rgba(35, 69, 95, 0.08);
    box-shadow: 0 4px 24px rgba(35, 69, 95, 0.06);
}

.macneed-page-content-inner {
    font-size: 14px;
    font-weight: 400;
    line-height: 30px;
    color: #23455f;
    text-align: right;
}

.macneed-page-content-inner > *:first-child {
    margin-top: 0;
}

.macneed-page-content-inner p {
    margin-bottom: 1rem;
}

.macneed-page-content-inner h2,
.macneed-page-content-inner h3,
.macneed-page-content-inner h4 {
    color: #23455f;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.65rem;
    line-height: 1.45;
}

.macneed-page-content-inner h2 {
    font-size: 1.15rem;
}

.macneed-page-content-inner h3 {
    font-size: 1.05rem;
}

.macneed-page-content-inner h4 {
    font-size: 1rem;
}

.macneed-page-content-inner ul,
.macneed-page-content-inner ol {
    padding-right: 1.25rem;
    margin-bottom: 1rem;
}

.macneed-page-content-inner li {
    margin-bottom: 0.4rem;
}

.macneed-page-content-inner a {
    color: #2997fc;
    text-decoration: none;
}

.macneed-page-content-inner a:hover {
    text-decoration: underline;
}

.macneed-page-links {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #ebebed;
    font-size: 14px;
}

/* Contact Form 7 — هم‌رنگ فرم ورود و دکمه‌های تم (برگه‌هایی مثل تماس با ما) */
.macneed-page-content-inner .wpcf7 {
    max-width: min(560px, 100%);
    margin-top: clamp(1.75rem, 4vw, 2.75rem);
    margin-left: auto;
    margin-right: auto;
}

.macneed-page-content-inner .wpcf7-form {
    margin: 0;
}

.macneed-page-content-inner .wpcf7-form p {
    margin: 0 0 1rem;
}

.macneed-page-content-inner .wpcf7-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #23455f;
    margin-bottom: 8px;
    line-height: 1.45;
}

.macneed-page-content-inner .wpcf7-form .wpcf7-form-control-wrap {
    display: block;
    margin-top: 0;
}

.macneed-page-content-inner .wpcf7-form input[type="text"],
.macneed-page-content-inner .wpcf7-form input[type="email"],
.macneed-page-content-inner .wpcf7-form input[type="tel"],
.macneed-page-content-inner .wpcf7-form input[type="url"],
.macneed-page-content-inner .wpcf7-form input[type="number"],
.macneed-page-content-inner .wpcf7-form input[type="date"],
.macneed-page-content-inner .wpcf7-form select,
.macneed-page-content-inner .wpcf7-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-size: 14px;
    color: #1d1d1f;
    font-family: 'Vazirmatn', sans-serif;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    direction: rtl;
    text-align: right;
}

.macneed-page-content-inner .wpcf7-form textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.6;
}

.macneed-page-content-inner .wpcf7-form select {
    cursor: pointer;
    appearance: auto;
    background-color: #fff;
}

.macneed-page-content-inner .wpcf7-form input::placeholder,
.macneed-page-content-inner .wpcf7-form textarea::placeholder {
    color: #86868b;
    opacity: 1;
}

.macneed-page-content-inner .wpcf7-form input:focus,
.macneed-page-content-inner .wpcf7-form select:focus,
.macneed-page-content-inner .wpcf7-form textarea:focus {
    outline: none;
    border-color: #4e86b0;
    box-shadow: 0 0 0 3px rgba(78, 134, 176, 0.12);
}

.macneed-page-content-inner .wpcf7-form input[type="file"] {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px dashed #c5ccd4;
    border-radius: 12px;
    font-size: 13px;
    font-family: 'Vazirmatn', sans-serif;
    color: #23455f;
    background: #f9fafb;
    cursor: pointer;
}

.macneed-page-content-inner .wpcf7-form .wpcf7-checkbox .wpcf7-list-item,
.macneed-page-content-inner .wpcf7-form .wpcf7-radio .wpcf7-list-item {
    margin: 0 0 0.5rem;
}

.macneed-page-content-inner .wpcf7-form .wpcf7-checkbox .wpcf7-list-item label,
.macneed-page-content-inner .wpcf7-form .wpcf7-radio .wpcf7-list-item label,
.macneed-page-content-inner .wpcf7-form .wpcf7-acceptance label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 500;
    margin-bottom: 0;
    cursor: pointer;
}

.macneed-page-content-inner .wpcf7-form .wpcf7-checkbox input[type="checkbox"],
.macneed-page-content-inner .wpcf7-form .wpcf7-radio input[type="radio"],
.macneed-page-content-inner .wpcf7-form .wpcf7-acceptance input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: #23455f;
    cursor: pointer;
}

.macneed-page-content-inner .wpcf7-form input[type="submit"],
.macneed-page-content-inner .wpcf7-form input.wpcf7-submit,
.macneed-page-content-inner .wpcf7-form button[type="submit"] {
    width: 100%;
    margin-top: 0.25rem;
    padding: 13px 16px;
    background: #2997fc;
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Vazirmatn', sans-serif;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 14px rgba(41, 151, 252, 0.28);
}

.macneed-page-content-inner .wpcf7-form input[type="submit"]:hover,
.macneed-page-content-inner .wpcf7-form input.wpcf7-submit:hover,
.macneed-page-content-inner .wpcf7-form button[type="submit"]:hover {
    background: #1a7fd4;
    box-shadow: 0 6px 18px rgba(41, 151, 252, 0.35);
}

.macneed-page-content-inner .wpcf7-form input[type="submit"]:active,
.macneed-page-content-inner .wpcf7-form input.wpcf7-submit:active,
.macneed-page-content-inner .wpcf7-form button[type="submit"]:active {
    transform: translateY(1px);
}

.macneed-page-content-inner .wpcf7-form input[type="submit"]:disabled,
.macneed-page-content-inner .wpcf7-form input.wpcf7-submit:disabled,
.macneed-page-content-inner .wpcf7-form button[type="submit"]:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.macneed-page-content-inner .wpcf7 .wpcf7-spinner {
    margin: 0 8px 0 0;
    vertical-align: middle;
}

.macneed-page-content-inner .wpcf7 .ajax-loader,
.macneed-page-content-inner .wpcf7 .wpcf7-spinner {
    border-color: rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
}

.macneed-page-content-inner .wpcf7-response-output {
    margin: 1rem 0 0;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.55;
    border: 1px solid transparent;
}

.macneed-page-content-inner .wpcf7 form.sent .wpcf7-response-output,
.macneed-page-content-inner .wpcf7 .wpcf7-form.sent ~ .wpcf7-response-output,
.macneed-page-content-inner .wpcf7 form .wpcf7-response-output.wpcf7-mail-sent-ok,
.macneed-page-content-inner .wpcf7 .wpcf7-response-output.wpcf7-mail-sent-ok {
    color: #14532d;
    background: #ecfdf5;
    border-color: #bbf7d0;
}

.macneed-page-content-inner .wpcf7 form.invalid .wpcf7-response-output,
.macneed-page-content-inner .wpcf7 .wpcf7-form.invalid ~ .wpcf7-response-output,
.macneed-page-content-inner .wpcf7 form.unaccepted .wpcf7-response-output,
.macneed-page-content-inner .wpcf7 .wpcf7-form.unaccepted ~ .wpcf7-response-output,
.macneed-page-content-inner .wpcf7 form.failed .wpcf7-response-output,
.macneed-page-content-inner .wpcf7 .wpcf7-form.failed ~ .wpcf7-response-output,
.macneed-page-content-inner .wpcf7 form.aborted .wpcf7-response-output,
.macneed-page-content-inner .wpcf7 .wpcf7-form.aborted ~ .wpcf7-response-output,
.macneed-page-content-inner .wpcf7 form.spam .wpcf7-response-output,
.macneed-page-content-inner .wpcf7 .wpcf7-form.spam ~ .wpcf7-response-output,
.macneed-page-content-inner .wpcf7 .wpcf7-response-output.wpcf7-validation-errors,
.macneed-page-content-inner .wpcf7 .wpcf7-response-output.wpcf7-mail-sent-ng {
    color: #991b1b;
    background: #fef2f2;
    border-color: #fecaca;
}

.macneed-page-content-inner .wpcf7-not-valid-tip {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #dc2626;
}

.macneed-page-content-inner .wpcf7-form .wpcf7-not-valid {
    border-color: #f87171 !important;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15) !important;
}

@media (max-width: 991px) {
    .macneed-page-header .title {
        text-align: center;
    }

    .macneed-page-title-gradient {
        font-size: 16px;
    }

    .macneed-page-shell .macneed-page-header,
    .macneed-page-content-box {
        max-width: 100%;
    }

    .macneed-page-content-box {
        border-radius: 32px;
        padding: 1.35rem 1.15rem;
    }

    .macneed-page-content-inner .wpcf7 {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
}

.macbooksSection {
    width: 100%;
}

.macbooksSection .title {
    text-align: center;
    margin-bottom: 25px;
}

.macbooksSection .title h2 {
    font-size: 16px;
    color: #373D3F;
}

.productCard {
    background: #F5F5F7;
    border-radius: 50px;
    padding: 30px 0px;
    text-align: center;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.productCard .img {
    text-align: center;
    display: block;
}

.productCard .img img {
    width: auto;
    height: 100%;
}
.color-dots {
    list-style: none;
    display: inline-flex;
    gap: 6px;
    padding: 0;
    margin: 0;
    align-items: center;
}

.color-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-blue {
    background-color: #23455F;
}

.dot-green {
    background-color: #79BCEF;
}

.dot-yellow {
    background-color: #F3BF4F;
}

.dot-red {
    background-color: #D9D9D9;
}
.productCard .title {
    margin: 25px 0px;
    text-align: center;
}

.productCard .title h3 {
    font-size: 14px;
    color: #23455F;
    font-weight: bold;
}

.productCard .info {
    background: #EBEBED;
    padding: 10px;
}

.productCard .info ul {
    margin: 0px;
    padding: 0px;
    display: inline-flex;
}

.productCard .info ul li {
    display: inline-block;
    padding: 0px 20px;
}

.productCard .info ul li span {
    font-size: 12px;
    color: #23455F;
}

.productCard .price {
    margin: 20px 0px;
    color: #23455F;
    font-size: 14px;
    font-weight: 500;
}

.productCard a.buyButton {
    color: #fff;
    background: #2997FC;
    text-decoration: none;
    font-size: 14px;
    padding: 5px 55px;
    border-radius: 15px;
}
.top50 {
    margin-top: 50px;
}
.toolsSection {
    width: 100%;
    margin: 30px 0px;
}

.productCardTools {
    display: block;
    background: #fff;
    border-radius: 50px;
    float: right;
    padding: 20px 0px 30px;
    text-align: center;
    position: relative;
    flex: 0 0 230px;
    width: 230px;
}

.productCardTools .img {
    width: 100%;
    height: 188px;
}

.productCardTools .img img {
    width: auto;
    height: auto;
}

.productCardTools .title {
    padding-top: 10px;
}

.productCardTools .title h3 {
    font-size: 14px;
    font-weight: 300;
    color: #23455F;
}

.productCardTools ul.color-dots {
    position: absolute;
    top: 180px;
    right: 43%;
}

.productCardTools .price {
    font-size: 14px;
    font-weight: 500;
    color: #23455F;
    padding: 10px 0px 20px;
}

.productCardTools a.buyButton {
    color: #fff;
    background: #2997FC;
    text-decoration: none;
    font-size: 14px;
    padding: 5px 55px;
    border-radius: 15px;
}
.card-logo {
    width: 35px;
    height: 35px;
    object-fit: contain;
    margin: auto;
    display: block;
    margin-bottom: 20px;
}
/* فاصله بلوک گیفت از بالای محتوا */
.macneed-home-gift-block {
    padding-top: 56px;
    padding-bottom: 72px;
}

.macneed-home-gift-block .macneed-gift-intro {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 16px;
    padding-bottom: clamp(2rem, 5vw, 3rem);
}

/* معرفی گیفت: داخل همان ٬container٬ سکشن؛ متن به لبهٔ داخلی شروع (راست در RTL)، عکس به لبهٔ داخلی پایان (چپ) */
.macneed-home-gift-block .macneed-gift-intro-text {
    padding-inline-start: 0;
    padding-inline-end: clamp(1rem, 3vw, 2.25rem);
    text-align: right;
}

/* همان رفتار DescSection: دکمه سمت چپ بلاک متن (کنار تصویر) */
.macneed-home-gift-block .macneed-gift-intro-text .ctaButton {
    float: left;
    clear: left;
}

.macneed-home-gift-block .macneed-gift-intro-visual {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    direction: ltr;
    padding-inline-end: 0;
    padding-inline-start: clamp(0.75rem, 2.5vw, 1.5rem);
}

.macneed-home-gift-block .macneed-gift-intro-visual .imgSamp.giftcard-image {
    float: none;
    margin: 0;
    width: 100%;
    max-width: 100%;
    padding-inline-start: 0;
    margin-top: clamp(12px, 3vw, 28px);
}

.macneed-home-gift-block .macneed-gift-intro-visual .imgSamp.giftcard-image img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 991px) {
    .macneed-home-gift-block .macneed-gift-intro-text .title,
    .macneed-home-gift-block .macneed-gift-intro-text .desc {
        text-align: right;
    }

    .macneed-home-gift-block .macneed-gift-intro-visual {
        justify-content: center;
        padding-inline-start: clamp(0.5rem, 3vw, 1rem);
        padding-inline-end: clamp(0.5rem, 3vw, 1rem);
        direction: ltr;
    }
}

.macneed-home-gift-block .macneed-gift-grid {
    margin-top: clamp(7.5rem, 12vw, 10rem);
    margin-bottom: 0;
}

/* آیکن Font Awesome — یک رنگ سرمه‌ای (#23455F) */
.macneed-home-gift-block a.cardGift .cardGift-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    width: 3rem;
    height: 3rem;
    font-size: clamp(1.9rem, 4.5vw, 2.4rem);
    line-height: 1;
    flex-shrink: 0;
    color: #23455f;
}

.macneed-home-gift-block a.cardGift .cardGift-icon i {
    line-height: 1;
    display: block;
    -webkit-font-smoothing: antialiased;
}

.macneed-home-gift-block a.cardGift--playstation-plus .cardGift-icon {
    position: relative;
}

.macneed-home-gift-block a.cardGift--playstation-plus .cardGift-icon::after {
    content: "";
    position: absolute;
    top: -4px;
    right: -10px;
    width: 15px;
    height: 15px;
    background: url("./assets/img/plus-navy.svg") center/contain no-repeat;
    pointer-events: none;
}

.macneed-home-gift-block .macneed-gift-intro a.ctaButton {
    transition: background-color 0.2s ease, color 0.2s ease;
}

.macneed-home-gift-block .macneed-gift-intro a.ctaButton:hover {
    background-color: #373d3f;
    color: #fff;
}

/* آرشیو /product-category/giftcards/ — همان hover دکمهٔ intro صفحه اصلی */
.macneed-gift-category-archive .DescSection a.ctaButton {
    transition: background-color 0.2s ease, color 0.2s ease;
}

.macneed-gift-category-archive .DescSection a.ctaButton:hover {
    background-color: #373d3f;
    color: #fff;
}

/* بلوک «خیالت از بابت برنامه‌های روی مک…» — همان hover دکمهٔ «مشاهده همه گیفت‌کارت‌ها» */
.DescSection.macneed-app-store-promote a.ctaButton {
    transition: background-color 0.2s ease, color 0.2s ease;
}

.DescSection.macneed-app-store-promote a.ctaButton:hover {
    background-color: #373d3f;
    color: #fff;
}

.DescSection.macneed-app-store-promote .desc p {
    text-align: justify;
    text-align-last: right;
}

.macneed-gift-category-archive .macneed-gift-category-desc {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.macneed-gift-category-archive .macneed-gift-category-desc,
.macneed-gift-category-archive .macneed-gift-category-desc p {
    text-align: justify;
    text-justify: inter-word;
    text-align-last: right;
}

.macneed-gift-category-archive .macneed-gift-category-desc p {
    margin: 0;
}

/* Giftcards category intro spacing/alignment adjustments */
.macneed-gift-category-archive .DescSection.top50 {
    margin-top: 14px;
}

.macneed-gift-category-archive .macneed-gift-category-desc,
.macneed-gift-category-archive .macneed-gift-category-desc p {
    text-align: right;
    text-align-last: right;
}

/* پرش لنگر: روی تیتر سکشن؛ فاصله از بالا زیر هدر ثابت/چسبان */
#giftcard-selection-anchor {
    scroll-margin-top: clamp(7.5rem, 18vw, 11.5rem);
    outline: none;
}

/* کارت‌های گیفت فقط در بلوک صفحه اصلی — آرشیو گیفت از macneed-search-card استفاده می‌کند */
.macneed-home-gift-block a.cardGift {
    position: relative;
    overflow: hidden;
    background: #F5F5F7;
    border-radius: 50px;
    display: block;
    text-align: center;
    text-decoration: none;
    color: #23455F;
    padding: 20px;
    padding-top: 30px;
    box-sizing: border-box;
}

/* نوار رنگ برند فقط از سمت راست؛ با hover پهن‌تر می‌شود بدون جابه‌جایی محتوا و بدون سایه */
.macneed-home-gift-block a.cardGift::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 4px;
    transition: width 0.25s ease;
    border-top-right-radius: 50px;
    border-bottom-right-radius: 50px;
    pointer-events: none;
}

.macneed-home-gift-block a.cardGift:hover::after {
    width: 12px;
}

/* نوار راست کارت — رنگ برند (آیتونز، اسپاتیفای، ChatGPT، پلی‌استیشن، پلاس، استیم، ایکس‌باکس، ویزا) */
.macneed-home-gift-block a.cardGift--apple::after {
    background: #fa57c1;
}

.macneed-home-gift-block a.cardGift--spotify::after {
    background: #1db954;
}

.macneed-home-gift-block a.cardGift--chatgpt::after {
    background: #10a37f;
}

.macneed-home-gift-block a.cardGift--playstation::after {
    background: #003791;
}

.macneed-home-gift-block a.cardGift--playstation-plus::after {
    background: #ffd700;
}

.macneed-home-gift-block a.cardGift--steam::after {
    background: #66C0F4;
}

.macneed-home-gift-block a.cardGift--xbox::after {
    background: #107c10;
}

.macneed-home-gift-block a.cardGift--visa::after {
    background: #1a1f71;
}

.macneed-home-gift-block a.cardGift .title h3 {
    font-size: 16px;
    font-weight: 400;
}
.supportSection {
    background: #fff;
    width: 70%;
    margin: 60px auto;
    padding: 50px;
    border-radius: 50px;
    text-align: center;
}

.supportSection .title h4 {
    font-size: 22px;
    color: #23455F;
}

.supportSection .title {
    padding-bottom: 20px;
}

.supportSection .desc {
    width: 70%;
    margin: 0 auto;
    padding-bottom: 10px;
}

.supportSection .desc p {
    font-size: 14px;
    line-height: 30px;
    color: #23455F;
}

.supportSection a.ctaButton {
    color: #fff;
    background: #23455F;
    text-decoration: none;
    font-size: 14px;
    padding: 5px 30px;
    border-radius: 15px;
    display: inline-block;
    transform-origin: 50% 0;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

@keyframes macneed-support-bell-shake {
    0%,
    100% {
        transform: rotate(0deg);
    }
    12% {
        transform: rotate(14deg);
    }
    24% {
        transform: rotate(-12deg);
    }
    36% {
        transform: rotate(8deg);
    }
    48% {
        transform: rotate(-5deg);
    }
    60% {
        transform: rotate(3deg);
    }
    72% {
        transform: rotate(0deg);
    }
}

.supportSection a.ctaButton:hover {
    background: #1a3550;
    box-shadow: 0 4px 14px rgba(35, 69, 95, 0.28);
    animation: macneed-support-bell-shake 0.65s ease-in-out;
}

.supportSection a.ctaButton:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(41, 151, 252, 0.45);
    animation: macneed-support-bell-shake 0.65s ease-in-out;
}

@media (prefers-reduced-motion: reduce) {
    .supportSection a.ctaButton:hover,
    .supportSection a.ctaButton:focus-visible {
        animation: none;
    }
}
/* ========== Footer (فروشگاهی) ========== */
.macneed-footer {
    background: #23455F;
    color: rgba(255, 255, 255, 0.9);
    width: 100%;
    margin-top: auto;
    direction: rtl;
    text-align: right;
}

.macneed-footer__main {
    padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.macneed-footer__logo {
    display: inline-block;
    margin-bottom: 1rem;
    line-height: 0;
}

/* لوگوی فوتر — نسخه سفید؛ حدود نیم‌اندازهٔ قبلی */
.macneed-footer__logo-img {
    width: min(100%, 120px);
    height: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

.macneed-footer__tagline {
    font-size: 0.9rem;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.78);
    margin: 0 0 1.35rem;
    max-width: 26rem;
}

.macneed-footer__title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 1rem;
    letter-spacing: 0.02em;
}

.macneed-footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.macneed-footer__links li {
    margin-bottom: 0.55rem;
}

.macneed-footer__links a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s ease;
}

.macneed-footer__links a:hover {
    color: #79bcef;
}

.macneed-footer__muted {
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.88rem;
    cursor: default;
}

.macneed-footer__contact {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
}

.macneed-footer__contact li {
    margin-bottom: 0.5rem;
    font-size: 0.88rem;
}

.macneed-footer__contact a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.macneed-footer__contact a:hover {
    color: #79bcef;
}

.macneed-footer__contact-label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 0.15rem;
}

.macneed-footer__social {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
}

.macneed-footer__social a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-size: 0.82rem;
    padding: 0.35rem 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.macneed-footer__social a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(121, 188, 239, 0.55);
    color: #79bcef;
}

.macneed-footer__bottom {
    padding: 1.15rem 0 1.35rem;
    background: rgba(0, 0, 0, 0.12);
}

.macneed-footer__bottom-inner {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

@media (min-width: 768px) {
    .macneed-footer__bottom-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
    }
}

.macneed-footer__copy,
.macneed-footer__credits {
    margin: 0;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.55);
}

.macneed-footer__copy {
    color: rgba(255, 255, 255, 0.65);
}

@media (max-width: 575px) {
    .macneed-footer__social {
        justify-content: flex-start;
    }
}

footer.macneed-footer {
    min-height: 0;
}
.productSlider {
    position: relative;
    overflow: hidden;
    user-select: none;
}

.productSlider .slides {
    position: relative;
}

.productSlider .slide {
    display: none;
    animation: fadeIn 300ms ease-in;
}
.productSlider .slide.is-active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.productSlider .nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    cursor: pointer;
    z-index: 10;
    background: none;
}
.productSlider .nav:hover {
    opacity: 0.7;
}

.productSlider .nav.prev {
    right: 0;
}
.productSlider .nav.next {
    left: 0;
}

.productSlider {
    min-height: 100%;
    position: relative;
    padding: 0 40px;
}

.productSlider .slides {
    background: #F5F5F7;
    border-radius: 50px;
    text-align: center;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}


.toolsSection {
    position: relative;
    margin: 60px 0;
}

.toolsNav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    cursor: pointer;
    z-index: 10;
    background: none;
}
.toolsNav:hover {
    opacity: 0.7;
}
.toolsNav.prev {
    left: -15px;
}
.toolsNav.next {
    right: -15px;
}

.toolsSlider {
    overflow: hidden;
    position: relative;
}
.toolsTrack {
    display: flex;
    gap: 20px;
    will-change: transform;
    transition: transform 0.5s ease;
    direction: ltr;
}

/* اسلایدر لوازم جانبی — فقط صفحهٔ اصلی (مرجع: کارت‌ها عرض ویو را پر می‌کنند؛ فلش دایره‌ای روی لبه) */
.macneed-accessories-showcase-wrap .macneed-home-tools {
    background: #F5F5F7;
    margin: 60px 0 0;
    padding: 48px 0 56px;
}

.macneed-accessories-showcase-wrap .macneed-home-tools .container {
    overflow: visible;
}

.macneed-tools-viewport {
    position: relative;
    z-index: 1;
}

.macneed-accessories-showcase-wrap .macneed-home-tools .toolsSlider {
    overflow: hidden;
    width: 100%;
}

.macneed-accessories-showcase-wrap .macneed-home-tools .toolsTrack {
    align-items: stretch;
}

.macneed-accessories-showcase-wrap .macneed-home-tools .productCardTools {
    float: none;
    box-sizing: border-box;
}

.macneed-accessories-showcase-wrap .macneed-tools-viewport .toolsNav.toolsNav--fab {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 50%;
    background: #e8e8ed;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.macneed-accessories-showcase-wrap .macneed-tools-viewport .toolsNav.toolsNav--fab:hover {
    opacity: 1;
    background: #dedee3;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.macneed-accessories-showcase-wrap .macneed-tools-viewport .toolsNav.toolsNav--fab img {
    width: 18px;
    height: auto;
    display: block;
}

.macneed-accessories-showcase-wrap .macneed-tools-viewport .toolsNav.toolsNav--fab.prev {
    left: 0;
    right: auto;
    transform: translate(-50%, -50%);
}

.macneed-accessories-showcase-wrap .macneed-tools-viewport .toolsNav.toolsNav--fab.next {
    right: 0;
    left: auto;
    transform: translate(50%, -50%);
}

/*Single*/
.product {
    padding-right: 40px;
}
.mainHead.single {
    height: 230px;
    padding: 50px 0 18px;
}

.bgHead.single {
    height: 230px;
}

.search.single {
    margin: 24px auto 0 !important;
}
.productGallery {}
.productGallery .mainImage {
    overflow: hidden;
    margin-bottom: 8px;
    margin-top: 7px;
}
.productGallery .mainImage img {
    width: 100%;
    height: auto;
    display: block;
}

/* اسلایدر بندانگشتی‌ها */
.sliderProduct {
    position: relative;
    user-select: none;
}
.sliderProduct .thumbViewport {
    overflow: hidden;
    width: 80%;
    margin: 0 auto;
}
.sliderProduct .thumbTrack {
    display: flex;
    gap: 10px;
    transition: transform 0.35s ease;
    will-change: transform;
    justify-content: center;
}

/* بندانگشتی‌ها */
.sliderProduct .thumb {
    flex: 0 0 72px;
    height: 72px;
    border: 1px solid #EBEBED;
    border-radius: 10px;
    background: #F2F2F2;
    padding: 6px;
    cursor: pointer;
    display: grid;
    place-items: center;
}
.sliderProduct .thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.sliderProduct .thumb:is(:hover, :focus) {
    border-color: #c9d6e2;
    outline: none;
}
.sliderProduct .thumb.is-active {
    border-color: #23455F;
}

/* فلش‌ها */
.sliderProduct .thumbNav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        border: none;
        cursor: pointer;
        z-index: 2;
        background: none;
}
.sliderProduct .thumbNav:hover { opacity: .7; }
.sliderProduct .thumbNav.prev { left: -8px; }
.sliderProduct .thumbNav.next { right: -8px; }

/* ریسپانسیو ساده */
@media (max-width: 576px) {
    .sliderProduct .thumb { flex-basis: 64px; height: 64px; }
}
.color-selector {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    direction: rtl;
    margin: 28px 0px;
}
.color-selector p {
    font-size: 9px;
    color: #23455F;
    padding-top: 15px;
    font-weight: 500;
}
/* رادیوها مخفی می‌شن */
.color-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* هر گزینه */
.color-option {
    --ring: #d0d5dd;
    --swatch: #000000;
    display: inline-flex
;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border: 1px solid #F5F5F7;
    border-radius: 50px;
    background: #fff;
    cursor: pointer;
    user-select: none;
    transition: border-color .2s
    ease;
}

/* دایره‌ی رنگی */
.color-option .swatch {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: var(--swatch);
}

/* متن‌ها */
.color-option .label {
    display: flex
;
    align-items: baseline;
    gap: 3px;
}
.color-option .label .fa {     font-weight: 500;
    font-family: 'Vazirmatn';
    font-size: 12px; color:#23455F}
.color-option .label .en {   font-size:12px; color: #23455F;
    font-family: 'Vazirmatn'; }

/* Hover / Focus */
.color-option:hover { border-color: #b6bfca; }
.color-input:focus + .color-option {
    border-color: #2997FC;
}

/* وقتی انتخاب شد، رینگ همرنگ خود اسواچ می‌شه */
.color-input:checked + .color-option { 
    --ring: var(--swatch);
    border-color: #2997FC;
}

/* حالت غیرفعال (اختیاری) */
.color-option[aria-disabled="true"] {
    opacity: .5;
    pointer-events: none;
}

.color-option.active {
    border-color: #2997FC;
}
.breadcrumb span {
    font-size: 10px;
    color: #23455F;
    font-weight: 500;
}

.breadcrumb a {
    color: #23455F;
    text-decoration: none;
    font-weight: 300;
}

.breadcrumb span.breadcrumb_last {
    font-weight: 500;
}

.breadcrumb {
    margin: 20px 0px 0px;
}

.singlePost .title h1 {
    font-size: 20px;
    color: #23455F;
    font-weight: bold;
    border-bottom: 1px solid #F5F5F7;
    padding-bottom: 25px;
    margin-bottom: 30px;
}

.singlePost .title {
    padding-top: 45px;
}

.singlePost .info {}

.singlePost .info p {
    font-size: 14px;
    color: #23455F;
    line-height: 16px;
    font-weight: 300;
}
.singlePost .info p strong {
    font-weight: 500;
}
.addtoCartSection {
    width: 100%;
    background: #F5F5F7;
    padding: 20px 40px;
    margin: 10px 0px;
    border-radius: 15px;
    position: relative;
}

.addtoCartSection .sendDetail {
    padding-top: 7px;
    text-align: right;
}

.addtoCartSection .sendDetail ul {
    padding: 0px;
    margin: 0px;
    display: inline-flex;
    gap: 20px;
    justify-content: center;
}

.addtoCartSection .sendDetail ul li {
    display: flex;
    align-items: center;
    padding: 0px 10px;
    font-size: 15px;
    font-weight: 400;
    color: #23455F;
}

.addtoCartSection .sendDetail ul li img {
    width: 22px;
    height: 22px;
    margin-left: 8px;
}

.addtoCartSection button.addtocart {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 5px 30px;
    border: none;
    background: #2997FC;
    border-radius: 50px;
    transition: background 0.2s ease;
    color: #fff;
    cursor: pointer;
}

.addtoCartSection button.addtocart:hover {
    background: #1d7fd8;
}

.priceAndCart {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
}

.productPrice {
    font-size: 20px;
    font-weight: 600;
    color: #23455F;
    white-space: nowrap;
}

.productPrice.out-of-stock {
    position: relative;
    display: inline-block;
}

.productPrice.out-of-stock::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    background: #ED6A5E;
    transform: translateY(-50%) rotate(-8deg);
}

.outOfStockLabel {
    display: inline-block;
    color: #ED6A5E;
    font-size: 16px;
    font-weight: 500;
    margin-right: 10px;
}

.addtocart.disabled,
.addtocart:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Specs Table */
.specsTable {
    margin-top: 40px;
}

.specsBox {
    background: #FBFBFD;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    padding: 35px;
    height: 100%;
}

.specsGroup {
    margin-bottom: 40px;
}

.specsGroup:last-child {
    margin-bottom: 0;
}

.specsGroupTitle {
    font-size: 16px;
    font-weight: 600;
    color: #23455F;
    margin: 0 0 20px 0;
    transition: color 0.2s ease;
}

.specsGroup:hover .specsGroupTitle {
    color: #2997FC;
}

.specRow {
    display: flex;
    align-items: baseline;
    margin-bottom: 14px;
    direction: rtl;
}

.specRow:last-child {
    margin-bottom: 0;
}

.specKey {
    color: #86868B;
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
    flex-shrink: 0;
}

.specDots {
    flex-grow: 1;
    border-bottom: 1px dotted #D2D2D7;
    margin: 0 8px;
    min-width: 20px;
    height: 1px;
    position: relative;
    bottom: 3px;
}

.specValue {
    color: #1D1D1F;
    font-weight: 400;
    font-size: 14px;
    text-align: left;
    direction: rtl;
}

.specsQuestion {
    text-align: center;
    margin-top: 50px;
    padding: 30px 0;
}

.specsQuestion p {
    font-size: 9px;
    color: #23455F;
    font-weight: 500;
    margin: 0;
}

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

/* Desktop Small (992px - 1200px) */
@media (min-width: 992px) and (max-width: 1200px) {
    .topNav ul li {
        padding: 0px 10px;
    }
    
    .topNav ul li a {
        font-size: 11px;
    }
    
    .userInfo ul {
        gap: 2px;
    }
    
    .logReg {
        padding: 5px 10px;
        font-size: 11px;
    }
    
    .btn-login__icon {
        width: 18px;
        height: 18px;
    }
    
    .productSlider {
        padding: 0 35px;
    }
    
    .productCard {
        max-width: 420px;
    }
    
    .productSlider .nav.prev {
        right: -5px;
    }
    .productSlider .nav.next {
        left: -5px;
    }
}

/* Hamburger Menu */
.hamburgerMenu {
    background: none;
    border: none;
    padding: 5px 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    height: 32px;
    flex-shrink: 0;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: #23455F;
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
}

.hamburgerMenu:hover .hamburger-line {
    background: #2997FC;
}

/* Mobile Menu (Offcanvas) */
.offcanvas {
    z-index: 99999 !important;
}

.offcanvas-backdrop {
    z-index: 99998 !important;
}

.offcanvas-header {
    background: #F5F5F7;
    border-bottom: 1px solid #EBEBED;
    direction: ltr;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.offcanvas-title {
    font-size: 16px;
    font-weight: 600;
    color: #23455F;
    direction: rtl;
    text-align: right;
    margin: 0;
}

.offcanvas-header .btn-close {
    margin: 0;
}

.offcanvas-body {
    padding: 20px 0;
    background: #fff;
}

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

.mobileNav li {
    border-bottom: 1px solid #EBEBED;
}

.mobileNav li a {
    display: block;
    padding: 15px 20px;
    font-size: 14px;
    color: #23455F;
    text-decoration: none;
    transition: background 0.2s ease;
}

.mobileNav li a:hover {
    background: #F5F5F7;
    color: #2997FC;
}

.mobileNav li span.mobileNav-link--disabled {
    display: block;
    padding: 15px 20px;
    font-size: 14px;
    color: #9ca3af;
    cursor: not-allowed;
    user-select: none;
    pointer-events: none;
}

.mobile-user-actions {
    margin-top: 20px;
    padding: 20px;
    background: #F5F5F7;
    border: none !important;
}

.mobile-auth-buttons {
    display: flex;
    gap: 10px;
}

.mobile-auth-btn {
    flex: 1 1 0;
    justify-content: center;
    text-align: center;
    gap: 0;
    padding: 12px 8px;
}

.mobile-auth-btn .btn-login__text {
    font-size: 15px;
    color: #23455F;
}

.mobile-auth-btn--blue {
    background: #2997FC;
    border-color: #2997FC;
}

.mobile-auth-btn--blue .btn-login__text {
    color: #fff;
}

.mobile-auth-btn--blue:hover {
    background: #1a7fd4;
    border-color: #1a7fd4;
}

.mobile-auth-buttons .logReg {
    width: auto;
}

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

.mobile-user-actions .mobile-auth-buttons .logReg {
    width: auto !important;
}

/* Tablet (768px - 991px) */
@media (max-width: 991px) {
    .topNav {
        display: none !important;
    }
    
    .specsBox {
        padding: 25px;
        height: auto;
    }
    
    .specsGroup {
        margin-bottom: 35px;
    }
    
    .specsGroupTitle {
        font-size: 15px;
    }
    
    .specRow {
        font-size: 13px;
    }
    
    .specKey, .specValue {
        font-size: 13px;
    }
    
    .userInfo ul {
        gap: 3px;
    }
    
    .logReg {
        padding: 5px 12px;
        font-size: 11px;
    }
    
    .btn-login__icon {
        width: 18px;
        height: 18px;
    }
}

/* Mobile (Below 768px) */
@media (max-width: 767px) {
    .specsBox {
        padding: 20px;
        border-radius: 30px;
        height: auto;
    }
    
    .specsGroup {
        margin-bottom: 30px;
    }
    
    .specsGroupTitle {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .specRow {
        margin-bottom: 10px;
    }
    
    .specKey, .specValue {
        font-size: 12px;
    }
    
    .specsQuestion p {
        font-size: 16px;
    }
    
    .newsOfTheDay {
        height: auto;
        padding: 8px 10px;
        margin-top: 62px;
    }
    
    .newsOfTheDay span {
        font-size: 9px;
        padding-left: 5px;
        display: block;
        line-height: 1.4;
    }
    
    .newsOfTheDay a {
        font-size: 9px;
    }
    
    .mainHead {
        height: auto;
        padding: 22px 0px 0px;
        background-size: 400px;
    }

    .mainHead.single {
        min-height: 118px;
        height: auto;
        padding: 8px 0 14px;
    }

    .bgHead.single {
        min-height: 118px;
        height: 100%;
    }

    .mainHead.single .title {
        display: block;
        margin-top: 8px;
    }

    .mainHead.single .title h1 {
        margin-top: 20px;
    }
    
    .mainHead .title h1 {
        font-size: 15px;
    }
    
    .mainHead .desc {
        width: 90%;
        margin: 15px auto;
    }
    
    .mainHead .desc span {
        font-size: 12px;
        line-height: 1.6;
    }
    
    .crossLinks ul li {
        display: block;
        padding: 5px 0;
        text-align: center;
    }
    
    .crossLinks ul li a {
        display: inline-flex;
        font-size: 11px;
        padding: 8px 20px;
    }
    
    .search {
        width: 95%;
        margin: 12px auto 6px;
    }

    /* Fix mobile header search icon positioning */
    button.searchIcon {
        left: 10px !important;
        right: auto !important;
        margin-right: 0 !important;
        margin-top: 0 !important;
        top: 54% !important;
        transform: translateY(-50%) !important;
    }

    .search form input {
        padding: 12px 20px 12px 46px;
        text-align: right;
        direction: rtl;
    }
    
    .bgHead {
        width: 100%;
        height: 170px;
    }
    
    .logReg {
        padding: 5px 10px;
        gap: 2px;
    }
    
    .btn-login__text {
        font-size: 11px;
    }
    
    .miniLogo {
        width: 44px;
        height: 22px;
    }

    a.miniLogo {
        margin-left: 0;
        margin-right: 14px;
    }
    
    .userInfo ul {
        gap: 2px;
    }
}

/* Small Mobile (Below 576px) */
@media (max-width: 575px) {
    .miniLogo {
        width: 20px;
        height: 20px;
    }
    
    .mainHead .title h1 {
        font-size: 16px;
    }
    
    .mainHead .desc span {
        font-size: 11px;
    }
    
    .search form input {
        font-size: 11px;
        padding: 10px 18px 10px 42px;
    }
    
    button.searchIcon {
        width: 26px !important;
        height: 26px !important;
        left: 8px !important;
        right: auto !important;
        margin-right: 0 !important;
        margin-top: 0 !important;
        top: 54% !important;
        transform: translateY(-50%) !important;
    }
    
    .search__icon {
        width: 20px;
        height: 20px;
    }
    
    .userInfo ul {
        gap: 3px;
    }
    
    .logReg {
        padding: 4px 8px;
    }
    
    .hamburgerMenu {
        padding: 4px 6px;
    }
}

/* ==================== Homepage Content Responsive ==================== */

/* Mobile & Tablet - Description Sections */
@media (max-width: 991px) {
    .DescSection {
        padding: 20px 0px;
    }
    
    .DescSection .title {
        text-align: center;
        padding-bottom: 15px;
        padding-top: 15px;
    }
    
    .DescSection .title span {
        font-size: 16px;
    }
    
    .DescSection .desc {
        text-align: center;
    }

    .DescSection.macneed-app-store-promote .desc p {
        text-align: justify;
        text-align-last: right;
    }

    .macneed-gift-category-archive .macneed-gift-category-desc,
    .macneed-gift-category-archive .macneed-gift-category-desc p {
        text-align: center;
        text-align-last: center;
    }

    .macneed-gift-category-archive .macneed-gift-category-desc {
        gap: 0.75rem;
    }

    .macneed-gift-category-archive .DescSection .imgSamp.giftcard-image {
        margin: 30px auto 0;
    }

    .macneed-gift-category-archive .macneed-gift-intro-image-col {
        margin-bottom: 14px !important;
    }
    
    .DescSection .desc p {
        font-size: 13px;
        line-height: 26px;
    }
    
    .DescSection a.ctaButton {
        float: none;
        display: block;
        margin: 10px auto;
        text-align: center;
        width: 100%;
        max-width: 300px;
    }

    .macneed-home-gift-block .macneed-gift-intro-text a.ctaButton {
        float: left;
        clear: left;
        display: inline-block;
        margin: 12px 0 10px;
        width: auto;
        max-width: none;
        text-align: center;
    }

    .DescSection .imgSamp {
        text-align: center;
        margin: 0 auto 20px;
        float: none;
    }
    
    .DescSection .imgSamp img {
        max-width: 80%;
        height: auto;
    }
}

/* Product Cards - Mobile */
@media (max-width: 991px) {
    .productSlider {
        padding: 0 35px;
    }
    
    .productCard {
        width: 100%;
        max-width: 450px;
        margin: 0 auto;
        padding: 25px 15px;
        border-radius: 35px;
    }
    
    .productCard .title h3 {
        font-size: 13px;
    }
    
    .productCard .info ul li span {
        font-size: 11px;
    }
    
    .productCard .price {
        font-size: 13px;
    }
    
    .productCard a.buyButton {
        font-size: 13px;
        padding: 5px 45px;
    }
    
    .productSlider .nav.prev {
        right: -5px;
    }
    .productSlider .nav.next {
        left: -5px;
    }
}

@media (max-width: 575px) {
    .productSlider {
        padding: 0 30px;
    }
    
    .productCard {
        max-width: 100%;
        padding: 20px 10px;
        border-radius: 30px;
    }
    
    .productCard .title h3 {
        font-size: 12px;
    }
    
    .productCard .info ul li {
        padding: 0px 10px;
    }
    
    .productCard .info ul li span {
        font-size: 10px;
    }
    
    .productCard .price {
        font-size: 12px;
        margin: 15px 0px;
    }
    
    .productCard a.buyButton {
        font-size: 12px;
        padding: 5px 35px;
    }
    
    .productSlider .nav.prev {
        right: -8px;
    }
    .productSlider .nav.next {
        left: -8px;
    }
}

/* Macbooks Section Titles */
@media (max-width: 991px) {
    .macbooksSection .title {
        text-align: center;
        margin-bottom: 20px;
    }
    
    .macbooksSection .title h2 {
        font-size: 15px;
    }
    
    .macbooksSection {
        padding-bottom: 20px;
    }
}

/* Tools Section - Responsive */
@media (max-width: 991px) {
    .toolsSection {
        margin: 40px 0;
        padding: 0 35px;
    }
    
    .toolsNav.prev {
        left: -10px;
    }
    .toolsNav.next {
        right: -10px;
    }
    
    .productCardTools {
        flex: 0 0 180px;
        width: 180px;
        padding: 15px 0px 25px;
        border-radius: 35px;
    }
    
    .productCardTools .img {
        height: 150px;
    }
    
    .productCardTools .title h3 {
        font-size: 13px;
    }
    
    .productCardTools .price {
        font-size: 13px;
        padding: 8px 0px 15px;
    }
    
    .productCardTools a.buyButton {
        font-size: 13px;
        padding: 5px 40px;
    }
    
    .productCardTools ul.color-dots {
        top: 145px;
        right: 38%;
    }
}

@media (max-width: 767px) {
    .toolsSection {
        margin: 30px 0;
        padding: 0 25px;
    }
    
    .toolsSection .container {
        overflow: visible;
    }
    
    .toolsSlider {
        padding: 0;
        overflow: hidden;
    }
    
    .toolsTrack {
        gap: 15px;
    }
    
    .toolsNav.prev {
        left: -15px;
    }
    .toolsNav.next {
        right: -15px;
    }
    
    .productCardTools {
        flex: 0 0 160px;
        width: 160px;
        padding: 12px 0px 20px;
        border-radius: 30px;
    }
    
    .productCardTools .img {
        height: 130px;
    }
    
    .productCardTools .title h3 {
        font-size: 12px;
    }
    
    .productCardTools .price {
        font-size: 12px;
        padding: 6px 0px 12px;
    }
    
    .productCardTools a.buyButton {
        font-size: 12px;
        padding: 4px 30px;
    }
    
    .productCardTools ul.color-dots {
        top: 125px;
        right: 35%;
    }
}

/* Support Section - Responsive */
@media (max-width: 991px) {
    .supportSection {
        width: 90%;
        padding: 35px 25px;
        border-radius: 35px;
        margin: 40px auto;
    }
    
    .supportSection .title h4 {
        font-size: 18px;
    }
    
    .supportSection .desc {
        width: 90%;
    }
    
    .supportSection .desc p {
        font-size: 13px;
        line-height: 26px;
    }
    
    .supportSection a.ctaButton {
        font-size: 13px;
    }
}

@media (max-width: 575px) {
    .supportSection {
        width: 95%;
        padding: 25px 20px;
        border-radius: 30px;
        margin: 30px auto;
    }
    
    .supportSection .title h4 {
        font-size: 16px;
    }
    
    .supportSection .desc {
        width: 100%;
    }
    
    .supportSection .desc p {
        font-size: 12px;
        line-height: 24px;
    }
    
    .supportSection a.ctaButton {
        font-size: 12px;
        padding: 5px 25px;
    }
}

/* Gift Cards - Already responsive with Bootstrap */
@media (max-width: 575px) {
    .macneed-home-gift-block a.cardGift {
        border-radius: 35px;
        padding: 18px 15px;
        padding-top: 25px;
    }

    .macneed-home-gift-block a.cardGift::after {
        border-top-right-radius: 35px;
        border-bottom-right-radius: 35px;
    }
    
    .macneed-home-gift-block a.cardGift .title h3 {
        font-size: 17px;
    }

    .macneed-home-gift-block a.cardGift .cardGift-icon {
        width: 2.65rem;
        height: 2.65rem;
        font-size: 1.7rem;
        margin-bottom: 15px;
    }
}

/* ==================== Product Sections (Single Page) ==================== */

.productSections {
    background: #F5F5F7;
    padding-bottom: 60px;
}

/* Navigation Tabs */
.sectionNav {
    position: -webkit-sticky;
    position: sticky;
    top: 50px;
    background: rgba(245, 245, 247, 0.72);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 30px 0 20px;
    text-align: center;
    z-index: 50;
    will-change: transform;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.floatingNav {
    position: fixed;
    top: 50px;
    left: 0;
    right: 0;
    background: rgba(245, 245, 247, 0.72);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 30px 0 20px;
    text-align: center;
    z-index: 50;
    transform: translateY(-150%) translateZ(0);
    -webkit-transform: translateY(-150%) translateZ(0);
    opacity: 0;
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
    pointer-events: none;
}

.floatingNav.show {
    transform: translateY(0) translateZ(0);
    -webkit-transform: translateY(0) translateZ(0);
    opacity: 1;
    pointer-events: all;
}

.sectionTabs {
    background: #fff;
    border-radius: 50px;
    padding: 12px 20px;
    display: inline-flex;
    gap: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.tabLink {
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 14px;
    color: #23455F;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tabLink:hover {
    color: #2997FC;
}

.tabLink.active {
    background: #F5F5F7;
    color: #23455F;
}

.tabLink.active:hover {
    color: #23455F;
}

/* Product Sections */
.productSection {
    padding: 40px 0;
}

.sectionTitle {
    font-size: 2rem;
    font-weight: bold;
    background: linear-gradient(90deg, #4E86B0, #23455F);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    margin-bottom: 30px;
}

.sectionDivider {
    height: 1px;
    background: #EBEBED;
    margin: 0 auto;
    width: 70%;
}

/* Review Content
   ----------------
   تمامی هدینگ‌ها و متن‌هایی که کاربر در ویرایشگر وردپرس با هر استایل/رنگی می‌زند،
   در سایت به استایل یکپارچهٔ تم (گرادیانت آبی-سرمه‌ای برای هدینگ‌ها، سرمه‌ای برای متن،
   وسط‌چین) نمایش داده می‌شوند. از !important استفاده شده تا استایل‌های inline
   تزریقی ویرایشگر (color, background, font-family, text-align) نادیده گرفته شوند. */
.reviewContent {
    max-width: 900px;
    margin: 0 auto;
    text-align: right;
    direction: rtl;
    color: #23455F;
}

.reviewContent h1,
.reviewContent h2,
.reviewContent h3,
.reviewContent h4,
.reviewContent h5,
.reviewContent h6 {
    font-family: inherit !important;
    font-weight: 700 !important;
    text-align: right !important;
    line-height: 1.55 !important;
    margin: 28px 0 14px !important;
    background: linear-gradient(90deg, #4E86B0, #23455F) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
    text-shadow: none !important;
}

.reviewContent h1 { font-size: 1.8rem !important; }
.reviewContent h2 { font-size: 1.6rem !important; }
.reviewContent h3 { font-size: 1.4rem !important; }
.reviewContent h4 { font-size: 1.2rem !important; }
.reviewContent h5,
.reviewContent h6 { font-size: 1.05rem !important; }

.reviewContent p {
    font-size: 14px;
    font-weight: 300;
    line-height: 30px;
    color: #23455F !important;
    margin: 0 0 20px !important;
    text-align: right !important;
    font-family: inherit !important;
    background: transparent !important;
}

/* متن‌های درون پاراگراف/لیست/سلول‌های جدول: رنگ سرمه‌ای تم (بدون اثرگذاری روی هدینگ‌ها) */
.reviewContent p,
.reviewContent li,
.reviewContent td,
.reviewContent th {
    color: #23455F !important;
}

.reviewContent p span,
.reviewContent p strong,
.reviewContent p em,
.reviewContent p b,
.reviewContent p i,
.reviewContent p u,
.reviewContent li span,
.reviewContent li strong,
.reviewContent li em,
.reviewContent li b,
.reviewContent li i,
.reviewContent li u {
    color: inherit !important;
    background: transparent !important;
    font-family: inherit !important;
}

.reviewContent ul,
.reviewContent ol {
    text-align: right;
    margin: 12px 0;
    padding-inline-start: 1.5em;
    color: #23455F !important;
}

.reviewContent li {
    font-size: 14px;
    line-height: 30px;
    font-weight: 300;
    margin-bottom: 8px;
}

.reviewContent a {
    color: #2997fc !important;
    text-decoration: none;
}
.reviewContent a:hover {
    text-decoration: underline;
}

.reviewContent img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 16px;
}

.reviewContent blockquote {
    border-inline-start: 4px solid #4E86B0;
    background: #f4f8fb;
    padding: 12px 20px;
    margin: 20px auto;
    color: #23455F !important;
    max-width: 90%;
    border-radius: 10px;
    text-align: start;
}

.reviewIllustration img {
    width: 100%;
    height: auto;
    max-width: 400px;
    display: block;
    margin: 0 auto;
}

/* Video Cards */
.videoCard {
    background: #fff;
    border-radius: 50px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.videoCard:hover {
    transform: scale(1.02);
}

.videoThumbnail {
    position: relative;
    overflow: hidden;
}

.videoThumbnail img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    border-radius: 50px 50px 0 0;
}

.videoTitle {
    color: #23455F;
    font-size: 16px;
    font-weight: 500;
    display: block;
    padding: 20px 0;
    text-align: center;
}

/* Placeholders */
.commentsPlaceholder {
    text-align: center;
    padding: 60px 20px;
    color: #80889A;
    font-size: 14px;
}

/* Compare Cards */
.compareCard {
    background: #F5F5F7;
    border-radius: 50px;
    padding: 30px 25px;
    text-align: center;
    transition: transform 0.3s ease;
}

.compareCard:hover {
    transform: translateY(-5px);
}

.compareCard.featured {
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.compareHeader {
    margin-bottom: 20px;
}

.compareTitle {
    font-size: 16px;
    font-weight: 600;
    color: #23455F;
    margin-bottom: 8px;
}

.compareSubtitle {
    font-size: 12px;
    color: #80889A;
    display: block;
}

.compareSubtitle.highlight {
    color: #2997FC;
    font-weight: 500;
}

.compareImage {
    margin: 25px 0;
    max-width: 100%;
    overflow: hidden;
}

.compareImage img {
    width: auto;
    height: auto;
    max-width: min(250px, 100%);
    max-height: 220px;
    margin: 0 auto;
    display: block;
    object-fit: contain;
}

.compareSpecs {
    list-style: none;
    padding: 0;
    margin: 25px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.compareSpecs li {
    background: #EBEBED;
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 13px;
    color: #23455F;
}

.compareCard.featured .compareSpecs li {
    background: #F5F5F7;
}

.compareBuyBtn {
    display: inline-block;
    background: #2997FC;
    color: #fff;
    padding: 10px 50px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s ease;
    cursor: pointer;
}

.compareBuyBtn:hover {
    background: #1d7fd8;
    color: #fff;
}

/* Mac Apps Section CTA */
.ctaButtonAppstore {
    display: inline-block;
    color: #373D3F;
    text-decoration: none;
    font-size: 14px;
    border: 1px solid #373D3F;
    border-radius: 15px;
    padding: 10px 25px;
    background: #EBEBED;
    transition: all 0.3s ease;
}

.ctaButtonAppstore:hover {
    background: #2997FC;
    color: #fff;
    border-color: #2997FC;
}

/* Single Product Page - Responsive */

/* Tablet & Mobile - Gallery & Product Info */
@media (max-width: 991px) {
    .singlePost .title h1 {
        font-size: 16px;
        padding-bottom: 20px;
        margin-bottom: 25px;
        text-align: center;
    }
    
    .singlePost .info p {
        font-size: 13px;
        line-height: 26px;
        text-align: center;
    }
    
    .breadcrumb {
        text-align: center;
        margin: 15px 0px 0px;
    }
    
    .color-selector {
        justify-content: center;
    }
    
    .color-selector p {
        width: 100%;
        text-align: center;
        font-size: 16px;
    }
}

@media (max-width: 767px) {
    .productGallery .mainImage {
        margin-bottom: 15px;
    }
    
    .sliderProduct .thumbViewport {
        width: 90%;
    }
    
    .sliderProduct .thumb {
        flex: 0 0 60px;
        height: 60px;
    }
    
    .sliderProduct .thumbNav.prev {
        left: -5px;
    }
    .sliderProduct .thumbNav.next {
        right: -5px;
    }
    
    .singlePost .title {
        padding-top: 30px;
    }
    
    .singlePost .title h1 {
        font-size: 15px;
    }
    
    .singlePost .info p {
        font-size: 12px;
        line-height: 24px;
    }
    
    .color-option {
        padding: 6px 10px;
    }
    
    .color-option .swatch {
        width: 18px;
        height: 18px;
    }
    
    .color-option .label .fa,
    .color-option .label .en {
        font-size: 11px;
    }
    
    .priceAndCart {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 15px;
    }
    
    .productPrice {
        font-size: 9px;
        text-align: center;
        width: 100%;
    }
    
    .addtoCartSection button.addtocart {
        width: 100%;
        justify-content: center;
    }
    
    .addtoCartSection .sendDetail ul {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .addtoCartSection .sendDetail ul li {
        padding: 5px 0;
    }
}

@media (max-width: 575px) {
    .breadcrumb span {
        font-size: 9px;
    }
    
    .singlePost .title h1 {
        font-size: 14px;
    }
    
    .singlePost .info p {
        font-size: 11px;
        line-height: 22px;
    }
    
    .color-selector {
        margin: 20px 0px;
    }
    
    .color-selector p {
        font-size: 14px;
    }
    
    .color-option {
        padding: 5px 8px;
    }
    
    .color-option .swatch {
        width: 16px;
        height: 16px;
    }
    
    .color-option .label .fa,
    .color-option .label .en {
        font-size: 10px;
    }
    
    .productPrice {
        font-size: 16px;
    }
    
    .addtoCartSection {
        padding: 15px 20px;
        margin: 10px 0px;
    }
    
    .addtoCartSection .sendDetail ul li {
        font-size: 10px;
    }
    
    .addtoCartSection .sendDetail ul li img {
        width: 14px;
        height: auto;
    }
    
    .addtoCartSection button.addtocart {
        font-size: 13px;
        padding: 8px 25px;
    }
    
    .sliderProduct .thumb {
        flex: 0 0 55px;
        height: 55px;
    }
}

/* Product Sections Responsive */
@media (max-width: 991px) {
    .sectionNav {
        top: 50px;
        padding: 20px 0 15px;
    }
    
    .sectionTabs {
        width: 95%;
        justify-content: center;
        flex-wrap: wrap;
        padding: 10px 15px;
    }
    
    .tabLink {
        padding: 8px 15px;
        font-size: 12px;
    }
    
    .sectionTitle {
        font-size: 1.75rem;
        text-align: center;
    }
    
    .productSection {
        padding: 30px 0;
    }
    
    .reviewIllustration img {
        max-width: 300px;
    }
}

@media (max-width: 767px) {
    .sectionNav {
        top: 50px;
        padding: 15px 0 10px;
    }
    
    .sectionTabs {
        padding: 8px 12px;
        gap: 3px;
        width: 98%;
    }
    
    .tabLink {
        padding: 6px 12px;
        font-size: 11px;
    }
    
    .sectionTitle {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }
    
    .productSection {
        padding: 25px 0;
    }
    
    .reviewContent p {
        font-size: 13px;
        line-height: 26px;
    }
    
    .videoCard {
        border-radius: 35px;
    }
    
    .videoThumbnail img {
        height: 160px;
        border-radius: 35px 35px 0 0;
    }
    
    .videoTitle {
        font-size: 14px;
        padding: 15px 0;
    }
}

@media (max-width: 575px) {
    .sectionNav {
        top: 50px;
    }
    
    .sectionTabs {
        flex-wrap: wrap;
        gap: 5px;
        padding: 4px 5px;
    }
    
    .tabLink {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .sectionTitle {
        font-size: 1.45rem;
    }
    
    .reviewContent p {
        font-size: 12px;
        line-height: 24px;
    }
    
    .videoCard {
        border-radius: 30px;
    }
    
    .videoThumbnail img {
        height: 140px;
        border-radius: 30px 30px 0 0;
    }
    
    .videoTitle {
        font-size: 13px;
        padding: 12px 0;
    }
    
    .compareCard {
        border-radius: 35px;
        padding: 25px 20px;
        margin-bottom: 15px;
    }
    
    .compareTitle {
        font-size: 14px;
    }
    
    .compareSubtitle {
        font-size: 11px;
    }
    
    .compareImage img {
        max-width: min(180px, 100%);
        max-height: 180px;
        object-fit: contain;
    }
    
    .compareSpecs {
        margin: 20px 0;
        gap: 2px;
    }
    
    .compareSpecs li {
        font-size: 12px;
        padding: 8px 12px;
    }
    
    .compareBuyBtn {
        padding: 8px 40px;
        font-size: 13px;
    }
    
    .sectionDivider {
        width: 90%;
    }
}

/* ========================================
   Accessories Category Page Styles
   ======================================== */

/* Gift Cards Category Page Styles
   ======================================== */

/* Gift Card Image - Remove margin and align to right */
.DescSection .imgSamp.giftcard-image {
    float: right;
    margin-right: 0;
    margin-left: 0;
    padding-right: 0;
}

.DescSection .imgSamp.giftcard-image img {
    width: 100%;
    height: auto;
}

/* تصویر معرفی لوازم جانبی — وسط ستون تا با ردیف justify-content-center هم‌تراز باشد */
.macneed-accessories-showcase-wrap .DescSection .macneed-accessories-intro-img-col {
    display: flex;
    justify-content: center;
}

@media (min-width: 992px) {
    .macneed-accessories-showcase-wrap .DescSection .macneed-accessories-intro-img-col {
        padding-inline-start: 0;
        padding-inline-end: 0;
    }
}

@media (max-width: 991px) {
    .macneed-accessories-showcase-wrap .DescSection .macneed-accessories-intro-img-col {
        justify-content: center;
    }
}

.macneed-accessories-showcase-wrap .DescSection .imgSamp.accessories-image {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.macneed-accessories-showcase-wrap .DescSection .imgSamp.accessories-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Remove right padding from image column in gift cards page */
.woocommerce .bgWhite .DescSection .row > .col-lg-5:first-child {
    padding-right: 0;
}

/* Gift Card Selection Section */
.giftcardSelectionSection {
    padding: 80px 0 100px;
    background: #F5F5F7;
}

/* Gift Card Header — وسط‌چین؛ خط گرادیان جدا زیر تیتر */
.giftcardHeader {
    text-align: center;
    margin-bottom: 40px;
}

.giftcardHeader h2 {
    font-size: 9px;
    font-weight: 600;
    line-height: 1.65;
    color: #23455F;
    margin: 0 auto;
    letter-spacing: -0.02em;
    max-width: 36rem;
}

.giftcardHeaderAccent {
    color: #2997FC;
    font-weight: 700;
}

.giftcardHeader::after {
    content: '';
    display: block;
    width: min(280px, 72%);
    height: 3px;
    margin: 14px auto 0;
    border-radius: 2px;
    background: linear-gradient(90deg, #2997FC 0%, #79BCEF 50%, #23455F 100%);
}

/* Gift Card Filter Wrapper */
.giftcardFilterWrapper {
    display: block;
    width: 100%;
    margin-bottom: 60px;
}

/* Gift Card Filter Tabs - Liquid Glass Style */
.giftcardFilterTabs {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: saturate(180%) blur(40px);
    -webkit-backdrop-filter: saturate(180%) blur(40px);
    border-radius: 50px;
    padding: 12px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    width: 100%;
    position: relative;
    z-index: 1000;
}

/* Gift Card Filter Dropdown */
.giftcardFilterDropdown {
    position: relative;
    display: inline-block;
    width: 240px;
    z-index: 10000;
}

/* Gift Card Filter Button */
.giftcardFilterBtn {
    background: #F5F5F7;
    border: none;
    color: #23455F;
    font-size: 14px;
    font-weight: 400;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2px;
    transition: all 0.2s ease;
    white-space: nowrap;
    width: 100%;
}

.giftcardFilterBtn:hover {
    background: #EBEBED;
}

.giftcardFilterBtn svg {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.giftcardFilterBtn.open svg {
    transform: rotate(180deg);
}

/* Gift Card Filter Menu (Dropdown) */
.giftcardFilterMenu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    background: #FFFFFF;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    padding: 10px 0;
    width: 100%;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.giftcardFilterDropdown.open .giftcardFilterMenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: all;
}

/* Gift Card Filter Item */
.giftcardFilterItem {
    display: block;
    padding: 10px 20px;
    color: #1D1D1F;
    font-size: 13px;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.2s ease;
}

.giftcardFilterItem:hover {
    background: #F5F5F7;
    color: #2997FC;
}

/* Gift Cards Grid */
.giftcardsGrid {
    margin-top: 0;
    position: relative;
    z-index: 1;
}

.giftcardsGrid .row {
    row-gap: 35px;
}

/* Gift Card Item */
.giftcardItem {
    background: #FFFFFF;
    border-radius: 25px;
    padding: 32px 22px 25px;
    text-align: center;
    box-shadow: 0 3px 18px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

.giftcardItem:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.12);
    z-index: 2;
}

/* Gift Card Tab (top decorative element) */
.giftcardTab {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 65px;
    height: 12px;
    background: #EBEBED;
    border-radius: 0 0 8px 8px;
}

/* Gift Card Header Box (Logo + Title) */
.giftcardHeaderBox {
    background: #FAFAFA;
    border-radius: 18px;
    padding: 25px 20px 22px;
    margin-bottom: 22px;
    width: 100%;
    border: 1px solid #F0F0F0;
}

/* Gift Card Logo */
.giftcardLogo {
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 65px;
}

.giftcardLogo img {
    max-width: 105px;
    max-height: 65px;
    object-fit: contain;
}

/* Gift Card Title */
.giftcardTitle {
    margin-bottom: 0;
}

.giftcardTitle h3 {
    font-size: 14px;
    font-weight: 400;
    color: #1D1D1F;
    margin: 0;
    line-height: 1.3;
}

/* Gift Card Flags — تصویر پرچم محلی از assets/img/flags */
.giftcardFlags {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2px;
    min-height: 15px;
    margin-bottom: 18px;
    flex-wrap: wrap;
    padding: 0 8px;
}

.giftcardFlagImg {
    width: 20px;
    height: auto;
    max-height: 15px;
    object-fit: contain;
    display: block;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* Gift Card Price */
.giftcardPrice {
    margin-bottom: 22px;
    text-align: center;
}

.giftcardDenomination {
    font-size: 32px;
    font-weight: 700;
    color: #1D1D1F;
    letter-spacing: -0.5px;
    line-height: 1;
    margin-bottom: 12px;
}

.giftcardToman {
    font-size: 14px;
    font-weight: 400;
    color: #86868B;
    line-height: 1;
}

/* Gift Card Buy Button */
.giftcardBuyBtn {
    background: #2997FC;
    color: #FFFFFF !important;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 40px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 3px 12px rgba(41, 151, 252, 0.22);
}

.giftcardBuyBtn:hover {
    background: #1d7fd8;
    color: #FFFFFF !important;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgba(41, 151, 252, 0.32);
}

/* Responsive Styles for Gift Cards */
@media (max-width: 991px) {
    .giftcardFilterTabs {
        flex-direction: column;
        gap: 10px;
        padding: 20px;
    }
    
    .giftcardFilterDropdown {
        width: 100%;
    }
    
    .giftcardFilterBtn {
        width: 100%;
        justify-content: space-between;
        padding: 12px 20px;
    }
}

@media (max-width: 767px) {
    .giftcardSelectionSection {
        padding: 50px 0 80px;
    }
    
    .giftcardHeader h2 {
        font-size: 15px;
        line-height: 1.7;
    }
    
    .giftcardHeader {
        margin-bottom: 30px;
    }

    .giftcardHeader::after {
        width: min(220px, 80%);
        margin-top: 12px;
    }
    
    .giftcardFilterTabs {
        padding: 15px;
    }
    
    .giftcardFilterDropdown {
        width: 100%;
    }
    
    .giftcardFilterBtn {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .giftcardFilterItem {
        padding: 8px 15px;
        font-size: 12px;
    }
    
    .giftcardItem {
        padding: 35px 20px 25px;
    }
    
    .giftcardHeaderBox {
        padding: 25px 20px 20px;
    }
    
    .giftcardLogo {
        min-height: 60px;
        margin-bottom: 15px;
    }
    
    .giftcardLogo img {
        max-width: 100px;
        max-height: 60px;
    }
    
    .giftcardTitle h3 {
        font-size: 14px;
    }
    
    .giftcardFlagImg {
        width: 36px;
        max-height: 27px;
    }
    
    .giftcardPrice {
        margin-bottom: 20px;
    }
    
    .giftcardDenomination {
        font-size: 12px;
        margin-bottom: 10px;
    }
    
    .giftcardToman {
        font-size: 12px;
    }
    
    .giftcardBuyBtn {
        padding: 11px 35px;
        font-size: 13px;
    }
    
    .giftcardsGrid .row {
        row-gap: 20px;
    }
}

/* ========================================
   Quick Buy Section
   ======================================== */

.quickBuySection {
    padding: 40px 0;
    background: transparent;
}

.quickBuyBox {
    background: #23455F;
    border-radius: 24px;
    padding: 30px 40px;
    box-shadow: 0 12px 40px rgba(35, 69, 95, 0.15);
}

.quickBuyTitle {
    margin-bottom: 25px;
}

.quickBuyTitle h3 {
    font-size: 20px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
    text-align: right;
    letter-spacing: -0.3px;
}

.quickBuyContent {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 15px;
    flex-wrap: wrap;
}

.quickBuyDropdown {
    position: relative;
    flex: 1;
    min-width: 180px;
}

.quickBuyDropdown label {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: #FFFFFF;
    margin-bottom: 8px;
    opacity: 0.8;
    text-align: right;
}

.quickBuyBtn {
    background: #FFFFFF;
    border: none;
    color: #23455F;
    font-size: 14px;
    font-weight: 400;
    padding: 14px 18px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    transition: all 0.2s ease;
    white-space: nowrap;
    width: 100%;
    text-align: right;
}

.quickBuyBtn:hover {
    background: #F5F5F7;
    transform: translateY(-1px);
}

.quickBuyBtn svg {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.quickBuyDropdown.open .quickBuyBtn svg {
    transform: rotate(180deg);
}

/* تا انتخاب نوع کارت، ریجن و مبلغ غیرفعال */
.quickBuyDropdown.quickBuyDropdown--locked .quickBuyBtn {
    opacity: 0.48;
    cursor: not-allowed;
    pointer-events: none;
    transform: none;
}

.quickBuyDropdown.quickBuyDropdown--locked .quickBuyBtn:hover {
    background: #ffffff;
    transform: none;
}

.quickBuyMenu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    padding: 8px;
    max-height: min(10rem, 30vh);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 5000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.quickBuyDropdown.open .quickBuyMenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* خرید سریع — جستجو در منوی «نوع کارت» */
.quickBuyCardType .quickBuyMenu {
    display: flex;
    flex-direction: column;
    max-height: min(18rem, 50vh);
    overflow: hidden;
    padding: 8px;
}

.quickBuyCardType .quickBuyMenuSearchRow {
    flex-shrink: 0;
    margin-bottom: 6px;
}

.quickBuyMenuSearchInput {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #ebebed;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 400;
    color: #23455f;
    background: #f5f5f7;
    text-align: right;
    direction: rtl;
}

.quickBuyMenuSearchInput::placeholder {
    color: #86868b;
}

.quickBuyMenuSearchInput:focus {
    outline: none;
    border-color: #2997fc;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(41, 151, 252, 0.2);
}

.quickBuyCardType .quickBuyMenuList {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.quickBuyItem {
    display: block;
    padding: 10px 14px;
    font-size: 14px;
    color: #23455F;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    text-align: right;
}

.quickBuyRegion .quickBuyItem {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    direction: rtl;
    text-align: right;
}

.quickBuyMenu .quickBuyItem {
    direction: rtl;
    text-align: right;
}

.quickBuyItem:hover {
    background: #F5F5F7;
    color: #23455F;
    text-decoration: none;
}

.quickBuyPrice {
    flex: 1;
    min-width: 180px;
}

.quickBuyPrice label {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: #FFFFFF;
    margin-bottom: 8px;
    opacity: 0.8;
    text-align: right;
}

.priceDisplay {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 14px 18px;
    text-align: right;
}

.priceValue {
    font-size: 16px;
    font-weight: 600;
    color: #FFFFFF;
    letter-spacing: -0.3px;
}

.quickBuyAction {
    flex-shrink: 0;
}

.quickBuyButton {
    background: #0071E3;
    border: none;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 40px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-width: 140px;
}

.quickBuyButton:hover:not(:disabled) {
    background: #0077ED;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 113, 227, 0.3);
}

.quickBuyButton:disabled {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
}

/* Responsive Quick Buy */
@media (max-width: 991px) {
    .quickBuyBox {
        padding: 25px 30px;
    }
    
    .quickBuyTitle h3 {
        font-size: 9px;
    }
    
    .quickBuyContent {
        gap: 12px;
    }
    
    .quickBuyDropdown {
        min-width: 150px;
    }
    
    .quickBuyPrice {
        min-width: 150px;
    }
}

@media (max-width: 767px) {
    .quickBuySection {
        padding: 30px 0;
    }
    
    .quickBuyBox {
        padding: 20px;
        border-radius: 20px;
    }
    
    .quickBuyTitle {
        margin-bottom: 20px;
    }
    
    .quickBuyTitle h3 {
        font-size: 16px;
    }
    
    .quickBuyContent {
        flex-direction: column;
        gap: 15px;
    }
    
    .quickBuyDropdown,
    .quickBuyPrice {
        width: 100%;
        min-width: unset;
    }
    
    .quickBuyAction {
        width: 100%;
    }
    
    .quickBuyButton {
        width: 100%;
        padding: 14px 20px;
    }
    
    .quickBuyBtn {
        padding: 12px 16px;
        font-size: 13px;
    }
    
    .priceDisplay {
        padding: 12px 16px;
    }
    
    .priceValue {
        font-size: 15px;
    }
}

/* Giftcards archive: keep image-to-next-box gap very tight */
.macneed-gift-category-archive + .quickBuySection {
    padding-top: 14px;
}

/* ========================================
   Gift Card Single Product Page Styles
   ======================================== */

/* Gift Card Selectors in Single Page */
.giftcard-selectors {
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 1000;
}

/* در سینگل گیفت‌کارت شروع ناحیه دراپ‌داون با شروع تصویر محصول هم‌تراز شود. */
.addtoCartSection.addtoCartSection--giftcard {
    padding-inline-start: 12px;
}

.giftcard-dropdown-wrapper {
    display: flex;
    flex-direction: row;
    gap: 15px;
    align-items: center;
    position: relative;
}

.giftcard-dropdown {
    position: relative;
    width: 240px;
    flex-shrink: 0;
}

.giftcard-dropdown-btn {
    background: #FFFFFF;
    border: none;
    color: #23455F;
    font-size: 14px;
    font-weight: 400;
    padding: 14px 20px;
    border-radius: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    transition: all 0.2s ease;
    white-space: nowrap;
    width: 100%;
}

/* Divider بعد از dropdown‌ها */
.giftcard-divider {
    width: 1px;
    height: 50px;
    background: #80889A;
    flex-shrink: 0;
    margin-left: 15px;
}

.giftcard-dropdown-btn:hover {
    background: #EBEBED;
}

/* مبلغ گیفت کارت: نماد و عدد LTR برای خوانایی $ / £ */
.giftcard-denomination .giftcard-dropdown-btn .selected-value {
    direction: ltr;
    unicode-bidi: plaintext;
    font-weight: 600;
}

.giftcard-denomination .giftcard-dropdown-item {
    direction: ltr;
    unicode-bidi: plaintext;
}

.giftcard-dropdown-btn svg {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.giftcard-dropdown-btn.open svg {
    transform: rotate(180deg);
}

.giftcard-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    background: #FFFFFF;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    width: 100%;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.giftcard-dropdown.open .giftcard-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: all;
}

.giftcard-dropdown-item {
    display: block;
    padding: 10px 20px;
    color: #1D1D1F;
    font-size: 13px;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.2s ease;
}

.giftcard-region .giftcard-dropdown-btn .selected-value {
    display: inline-flex;
    align-items: center;
    flex-direction: row;
    justify-content: flex-start;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
    direction: rtl;
    text-align: right;
    order: 1;
}

.giftcard-region .giftcard-dropdown-btn {
    direction: rtl;
    flex-direction: row !important;
}

.giftcard-region .giftcard-dropdown-btn > svg {
    order: 2;
}

.giftcard-region .giftcard-dropdown-item {
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: flex-start;
    gap: 8px;
    direction: rtl;
    text-align: right;
}

.giftcard-region-flag {
    width: 18px;
    height: 12px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
}

.giftcard-dropdown-item:hover {
    background: #F5F5F7;
    color: #2997FC;
}

/* Gift Card Price Display in Single Page */
.priceAndCart .productPrice {
    font-size: 24px;
    font-weight: 600;
    color: #1D1D1F;
}

/* Responsive for Gift Card Single Page */
@media (max-width: 767px) {
    .giftcard-dropdown-wrapper {
        flex-direction: column;
        gap: 12px;
    }
    
    .giftcard-dropdown {
        width: 100%;
    }
    
    .giftcard-dropdown-btn {
        padding: 12px 18px;
        font-size: 13px;
    }
    
    .giftcard-divider {
        display: none;
    }
}

/* Tablet and below: image first, then content, then stacked selectors */
@media (max-width: 768px) {
    .singlePost > .row {
        display: flex;
        flex-direction: column;
    }

    .singlePost .productGallery {
        order: 1;
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
        margin-bottom: 16px;
    }

    .singlePost .product {
        order: 2;
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
    }

    .singlePost .title h1 {
        font-size: 34px;
        line-height: 1.35;
    }

    .singlePost .info,
    .singlePost .info p {
        text-align: right;
    }

    .singlePost .productGallery .mainImage {
        width: 100%;
    }

    .singlePost .productGallery .mainImage img {
        width: 100%;
        height: auto;
        display: block;
    }

    .addtoCartSection .row {
        display: flex;
        flex-direction: column;
    }

    .addtoCartSection .row > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
    }

    .addtoCartSection .giftcard-dropdown-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .addtoCartSection .giftcard-dropdown {
        width: 100%;
    }

    /* Giftcard mobile ordering: selectors -> price -> add to cart */
    .addtoCartSection--giftcard .row > .order-2 {
        order: 1 !important;
    }

    .addtoCartSection--giftcard .row > .order-1 {
        order: 2 !important;
    }

    .addtoCartSection--giftcard .priceAndCart .productPrice {
        order: 1 !important;
        margin-top: 28px !important;
        margin-bottom: 22px !important;
    }

    .addtoCartSection--giftcard .priceAndCart form.cart {
        order: 3 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    .addtoCartSection--giftcard .priceAndCart .view-cart-btn {
        order: 2 !important;
        margin-bottom: 10px !important;
    }

    .addtoCartSection--giftcard .priceAndCart {
        min-height: auto;
        gap: 0 !important;
        padding-bottom: 2px;
    }

    .addtoCartSection--giftcard .priceAndCart form.cart button.addtocart {
        width: 100%;
    }
}

/* Accessories Categories Section */
.accessoriesCategoriesSection {
    padding: 40px 0 40px;
}

.accessoryCategoryCard {
    background: #F5F5F7;
    border-radius: 35px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: #23455F;
    width: 215px;
    height: 215px;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.accessoryCategoryCard:hover {
    text-decoration: none;
    color: #23455F;
    transform: scale(1.02);
}

.accessoryIcon {
    margin-bottom: 15px;
}

.accessoryIcon img {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.accessoryTitle h3 {
    font-size: 14px;
    font-weight: 400;
    color: #23455F;
    margin: 0;
    line-height: 1.3;
}

/* ========================================
   Mac Category Page Styles
   ======================================== */

/* Mac Categories Section */
.macCategoriesSection {
    padding: 80px 0 20px;
}

.macCategoryCard {
    background: #F5F5F7;
    border-radius: 50px;
    padding: 40px 30px;
    display: block;
    text-align: center;
    text-decoration: none;
    color: #23455F;
    height: 100%;
}

.macCategoryCard:hover {
    text-decoration: none;
    color: #23455F;
}

.macIcon {
    margin-bottom: 25px;
}

.macIcon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.macTitle h3 {
    font-size: 16px;
    font-weight: bold;
    color: #23455F;
    margin-bottom: 15px;
}

.macDesc p {
    font-size: 14px;
    font-weight: 400;
    color: #23455F;
    margin-bottom: 20px;
}

.macPrice {
    margin-bottom: 25px;
}

.macPrice span {
    font-size: 12px;
    font-weight: 400;
    color: #23455F;
}

.macButton {
    margin-top: auto;
}

.ctaButtonOutline {
    background: #2997FC;
    border: none;
    color: #fff;
    padding: 10px 30px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 400;
    cursor: pointer;
    transition: background 0.2s ease;
}

.ctaButtonOutline:hover {
    background: #1d7fd8;
}

/* Help Section (Based on supportSection with reversed colors) */
.helpSection {
    margin: 120px auto 60px;
}

.helpBox {
    background: #23455F;
    width: 70%;
    margin: 0 auto;
    padding: 50px;
    border-radius: 50px;
    text-align: center;
}

.helpTitle h2 {
    font-size: 22px;
    font-weight: 400;
    color: #fff;
    margin-bottom: 20px;
}

.helpDesc {
    width: 70%;
    margin: 0 auto;
    padding-bottom: 10px;
}

.helpDesc p {
    font-size: 14px;
    font-weight: 400;
    line-height: 30px;
    color: #fff;
    margin-bottom: 0;
}

.ctaButtonWhiteOutline {
    background: #fff;
    border: none;
    color: #23455F;
    padding: 5px 30px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s ease;
}

.ctaButtonWhiteOutline:hover {
    background: #e6e6e6;
    text-decoration: none;
}

/* Mac Filtering Section */
.macFilteringSection {
    padding: 30px 0;
    margin: 60px 0 40px;
    text-align: center;
}

.filterWrapper {
    display: inline-block;
    text-align: center;
}

.filterLabel {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #23455F;
    white-space: nowrap;
    padding-right: 15px;
}

.filterIcon {
    width: 20px;
    height: 20px;
}

.filterTabs {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: saturate(180%) blur(40px);
    -webkit-backdrop-filter: saturate(180%) blur(40px);
    border-radius: 50px;
    padding: 12px 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.filterTab {
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 14px;
    color: #23455F;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filterTab:hover {
    color: #2997FC;
    text-decoration: none;
}

.filterTab.active {
    background: #F5F5F7;
    color: #23455F;
}

/* Mac Slider Styles */
.macSliderTitle {
    font-size: 16px;
    font-weight: 500;
    color: #23455F;
    margin: 0;
}

.macSliderHeader {
    padding-bottom: 20px;
    border-bottom: 1px solid #EBEBED;
    margin-bottom: 30px;
}

.viewAllButton {
    background: transparent;
    border: 1px solid #2997FC;
    color: #2997FC;
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.viewAllButton:hover {
    background: #2997FC;
    color: #fff;
    text-decoration: none;
}

/* Category Pages Tools Section - Arrows in Bootstrap Grid */
.macFilteringSection ~ .toolsSection,
.accessoriesCategoriesSection ~ .toolsSection {
    position: relative;
    padding: 0;
}

.macFilteringSection ~ .toolsSection .row,
.accessoriesCategoriesSection ~ .toolsSection .row {
    align-items: center;
}

/* Bootstrap col-arrow and col-slider for Mac and Accessories pages */
.col-arrow {
    flex: 0 0 auto;
    width: 4.166%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.col-slider {
    flex: 0 0 auto;
    width: 91.668%;
}

.col-arrow .toolsNav {
    position: static;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
    padding: 0;
    display: block;
    margin-top: 120px;
}

.col-arrow .toolsNav img {
    max-width: 100%;
    height: auto;
    display: block;
}

.col-arrow .toolsNav:hover {
    opacity: 0.7;
}

.col-arrow .toolsNav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Increase product card width to show 4 cards - APPLIES TO ALL CATEGORY PAGES */
.macFilteringSection ~ .toolsSection .productCardTools,
.accessoriesCategoriesSection ~ .toolsSection .productCardTools,
.toolsSection .productCardTools {
    flex: 0 0 270px;
    width: 270px;
    min-width: 270px;
}

.macFilteringSection ~ .toolsSection .productCardTools .img,
.accessoriesCategoriesSection ~ .toolsSection .productCardTools .img,
.toolsSection .productCardTools .img {
    width: 165px;
    height: 115px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.macFilteringSection ~ .toolsSection .productCardTools .img img,
.accessoriesCategoriesSection ~ .toolsSection .productCardTools .img img,
.toolsSection .productCardTools .img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Color dots for Category Pages - Not absolute */
.macFilteringSection ~ .toolsSection .productCardTools ul.color-dots,
.accessoriesCategoriesSection ~ .toolsSection .productCardTools ul.color-dots,
.toolsSection .productCardTools ul.color-dots {
    position: static;
    margin: 15px 0 10px;
    justify-content: center;
}

/* Info section for Category Pages Cards */
.macFilteringSection ~ .toolsSection .productCardTools .info,
.accessoriesCategoriesSection ~ .toolsSection .productCardTools .info,
.toolsSection .productCardTools .info {
    margin: 15px 0 10px;
    background: #F5F5F7;
    border-radius: 20px;
    padding: 4px 5px;
}

.macFilteringSection ~ .toolsSection .productCardTools .info ul,
.accessoriesCategoriesSection ~ .toolsSection .productCardTools .info ul,
.toolsSection .productCardTools .info ul {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 2px;
}

.macFilteringSection ~ .toolsSection .productCardTools .info ul li,
.accessoriesCategoriesSection ~ .toolsSection .productCardTools .info ul li,
.toolsSection .productCardTools .info ul li {
    display: inline-block;
    padding: 0;
}

.macFilteringSection ~ .toolsSection .productCardTools .info ul li span,
.accessoriesCategoriesSection ~ .toolsSection .productCardTools .info ul li span,
.toolsSection .productCardTools .info ul li span {
    font-size: 11px;
    color: #86868B;
    font-weight: 400;
}

/* Responsive Styles for Mac Category */
@media (max-width: 768px) {
    .macCategoriesSection {
        padding: 50px 0 30px;
    }
    
    .macCategoryCard {
        padding: 30px 20px;
        margin-bottom: 20px;
    }
    
    .macIcon img {
        width: 60px;
        height: 60px;
    }
    
    .macTitle h3 {
        font-size: 15px;
    }
    
    .filterWrapper {
        flex-direction: column;
        gap: 15px;
    }
    
    .filterTabs {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .filterTab {
        padding: 8px 15px;
        font-size: 12px;
    }
    
    .toolsSection .productCardTools {
        flex: 0 0 210px;
        width: 210px;
    }
    
    .toolsSection .productCardTools .img {
        width: 145px;
        height: 100px;
    }
    
    .macFilteringSection ~ .toolsSection .productCardTools .info ul li span {
        font-size: 10px;
    }
    
    .toolsSection .productCardTools .img {
        width: 145px;
        height: 100px;
    }
    
    .macFilteringSection ~ .toolsSection .productCardTools .info ul li span,
    .accessoriesCategoriesSection ~ .toolsSection .productCardTools .info ul li span {
        font-size: 10px;
    }
    
    .macFilteringSection ~ .toolsSection .col-arrow,
    .accessoriesCategoriesSection ~ .toolsSection .col-arrow {
        flex: 0 0 5%;
        max-width: 5%;
    }
    
    .macFilteringSection ~ .toolsSection .col-slider,
    .accessoriesCategoriesSection ~ .toolsSection .col-slider {
        flex: 0 0 90%;
        max-width: 90%;
    }
    
    .macSliderTitle {
        font-size: 9px;
    }
    
    .viewAllButton {
        font-size: 12px;
        padding: 6px 20px;
    }
    
    .accessoryCategoryCard {
        width: 180px;
        height: 180px;
        padding: 25px 15px;
    }
    
    .accessoryIcon {
        margin-bottom: 12px;
    }
    
    .accessoryIcon img {
        width: 30px;
        height: 30px;
    }
    
    .accessoryTitle h3 {
        font-size: 13px;
    }
    
    .helpBox {
        width: 90%;
        padding: 35px 25px;
        border-radius: 35px;
    }
    
    .helpTitle h2 {
        font-size: 18px;
    }
    
    .helpDesc {
        width: 90%;
    }
    
    .helpDesc p {
        font-size: 13px;
        line-height: 26px;
    }
    
    .ctaButtonWhiteOutline {
        font-size: 13px;
    }
}

@media (max-width: 575px) {
    .macCategoryCard {
        border-radius: 35px;
    }
    
    .macIcon img {
        width: 50px;
        height: 50px;
    }
    
    .macTitle h3 {
        font-size: 14px;
    }
    
    .macDesc p {
        font-size: 12px;
    }
    
    .macPrice span {
        font-size: 11px;
    }
    
    .toolsSection .productCardTools .img {
        width: 125px;
        height: 90px;
    }
    
    .macFilteringSection ~ .toolsSection .productCardTools .info,
    .accessoriesCategoriesSection ~ .toolsSection .productCardTools .info {
        padding: 6px 8px;
    }
    
    .macFilteringSection ~ .toolsSection .productCardTools .info ul,
    .accessoriesCategoriesSection ~ .toolsSection .productCardTools .info ul {
        gap: 5px;
    }
    
    .macFilteringSection ~ .toolsSection .productCardTools .info ul li span,
    .accessoriesCategoriesSection ~ .toolsSection .productCardTools .info ul li span {
        font-size: 9px;
    }
    
    .macFilteringSection ~ .toolsSection .col-arrow,
    .accessoriesCategoriesSection ~ .toolsSection .col-arrow {
        flex: 0 0 6%;
        max-width: 6%;
    }
    
    .macFilteringSection ~ .toolsSection .col-slider,
    .accessoriesCategoriesSection ~ .toolsSection .col-slider {
        flex: 0 0 88%;
        max-width: 88%;
    }
    
    .helpBox {
        width: 95%;
        padding: 25px 20px;
        border-radius: 30px;
    }
    
    .helpTitle h2 {
        font-size: 16px;
    }
    
    .helpDesc {
        width: 100%;
    }
    
    .helpDesc p {
        font-size: 12px;
        line-height: 24px;
    }
    
    .ctaButtonWhiteOutline {
        font-size: 12px;
        padding: 5px 25px;
    }
    
    .accessoryCategoryCard {
        width: 160px;
        height: 160px;
        padding: 20px 12px;
        border-radius: 30px;
    }
    
    .accessoryIcon {
        margin-bottom: 10px;
    }
    
    .accessoryIcon img {
        width: 28px;
        height: 28px;
    }
    
    .accessoryTitle h3 {
        font-size: 12px;
    }
}

/* ============================================
   Notification System - نوتیفیکیشن سبد خرید
   ============================================ */
.macneed-notification {
    position: fixed;
    top: 30px;
    right: -400px;
    width: 380px;
    max-width: calc(100% - 40px);
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 8px;
    padding: 18px 22px 18px 48px;
    box-shadow:
        0 12px 40px rgba(17, 34, 68, 0.12),
        0 2px 12px rgba(17, 34, 68, 0.06);
    z-index: 999999;
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55),
                opacity 0.3s ease;
    opacity: 0;
    border: 1px solid rgba(28, 45, 74, 0.12);
    direction: rtl;
}

.macneed-notification.show {
    right: 30px;
    opacity: 1;
}

.macneed-notification .notification-content {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.macneed-notification .notification-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(145deg, #1a2d4a 0%, #243b5c 55%, #1e3350 100%);
    box-shadow: 0 4px 14px rgba(26, 45, 74, 0.35);
}

.macneed-notification.error .notification-icon {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.3);
}

.macneed-notification .notification-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.macneed-notification .notification-message {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.macneed-notification .notification-kicker {
    font-family: 'Vazirmatn', 'vazir', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #1a2d4a;
    line-height: 1.35;
    opacity: 0.92;
}

.macneed-notification .notification-text {
    font-family: 'Vazirmatn', 'vazir', sans-serif;
    font-size: 14px;
    line-height: 1.65;
    color: #2c3a4f;
}

.macneed-notification .notification-text strong {
    font-weight: 700;
    color: #111f33;
}

.macneed-notification .notification-cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    background: linear-gradient(145deg, #1a2d4a 0%, #243b5c 100%);
    color: #fff !important;
    text-decoration: none;
    padding: 7px 14px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Vazirmatn', 'vazir', sans-serif;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: 0 2px 10px rgba(26, 45, 74, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.macneed-notification .notification-cart-btn:hover {
    background: linear-gradient(145deg, #243b5c 0%, #1a2d4a 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(26, 45, 74, 0.38);
    color: #fff !important;
}

.macneed-notification .notification-close {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 45, 74, 0.06);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    color: #4a5d78;
}

.macneed-notification .notification-close:hover {
    background: rgba(26, 45, 74, 0.12);
    color: #1a2d4a;
    transform: scale(1.04);
}

.macneed-notification .notification-close svg {
    width: 18px;
    height: 18px;
}

/* Loading state for button */
.single_add_to_cart_button.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.single_add_to_cart_button .loader {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
    margin-left: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* موبایل */
@media (max-width: 768px) {
    .macneed-notification {
        top: 20px;
        right: -100%;
        width: calc(100% - 40px);
        left: 50%;
        transform: translateX(-50%);
        right: auto;
    }
    
    .macneed-notification.show {
        right: auto;
        transform: translateX(-50%);
    }
    
    .macneed-notification .notification-text {
        font-size: 14px;
    }
    
    .macneed-notification .notification-icon {
        width: 36px;
        height: 36px;
    }
    
    .macneed-notification .notification-cart-btn {
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* ============================================
   Cart Count Badge - نشان تعداد سبد خرید
   ============================================ */
.cartBtn {
    position: relative;
}

.cart-count-wrapper {
    position: absolute;
    top: -8px;
    left: -8px;
}

.cart-count {
    background: linear-gradient(145deg, #ff6b6b 0%, #fa243c 45%, #e01830 100%);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    min-width: 21px;
    height: 21px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    box-shadow:
        0 2px 10px rgba(250, 36, 60, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.25) inset;
    font-family: 'Vazirmatn', sans-serif;
    line-height: 1;
    border: 2px solid #ffffff;
}

/* ============================================
   View Cart Button - دکمه مشاهده سبد خرید
   ============================================ */
.priceAndCart {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-direction: row-reverse !important;
    gap: 20px !important;
}

.priceAndCart .view-cart-btn {
    order: 3;
    flex-shrink: 0;
    margin-right: auto !important;
}

.priceAndCart .productPrice {
    order: 2;
    margin: 0 !important;
    flex-shrink: 0;
    font-size: 24px !important;
    font-weight: 600 !important;
    color: #1D1D1F !important;
}

.priceAndCart form.cart {
    order: 1;
    margin: 0 !important;
    flex-shrink: 0;
}

.priceAndCart form.cart button.addtocart {
    margin: 0 !important;
}

.view-cart-btn {
    display: inline-block;
    background: #10b981;
    color: white;
    border: none;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s ease;
    font-family: 'Vazirmatn', sans-serif;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
}

.view-cart-btn:hover {
    background: #059669;
    color: white;
}

.view-cart-btn.show {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .priceAndCart {
        flex-direction: column !important;
        align-items: stretch !important;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================
   Cart Page - صفحه سبد خرید
   ============================================ */

/* Progress Wizard */
.cart-wizard {
    background: white;
    padding: 40px 0 30px;
}

.wizard-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    max-width: 500px;
    margin: 0 auto;
}

.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.wizard-step.step-link {
    text-decoration: none;
}

.step-circle {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #F3F4F6;
    color: #9CA3AF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 2px solid #E5E7EB;
}

.wizard-step.active .step-circle,
.wizard-step.completed .step-circle {
    background: #23455F;
    color: white;
    border-color: #23455F;
}

.step-text {
    font-size: 13px;
    color: #80889A;
    font-weight: 400;
}

.wizard-step.active .step-text,
.wizard-step.completed .step-text {
    color: #23455F;
    font-weight: 500;
}

.wizard-line {
    flex: 1;
    max-width: 120px;
    height: 2px;
    background: #E5E7EB;
    margin: 0 15px;
    margin-bottom: 35px;
}

/* Cart Page */
.cart-page {
    padding: 40px 0;
    min-height: 60vh;
}

.cart-title.macneed-cart-page-title {
    font-size: clamp(1.125rem, 2.2vw, 1.375rem);
    font-weight: 700;
    margin-bottom: 28px;
    line-height: 1.5;
    background: none;
    -webkit-text-fill-color: unset;
}

.cart-title.macneed-cart-page-title .cart-title__main {
    background: linear-gradient(90deg, #4E86B0, #23455F);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cart-count-text {
    color: #80889a;
    font-size: 14px;
    font-weight: 400;
    background: none;
    -webkit-text-fill-color: #80889a;
    margin-inline-start: 0.35rem;
}

/* Cart Items */
.cart-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
}

.cart-item-card {
    background: #F9FAFB;
    border-radius: 12px;
    padding: 24px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: none;
    transition: all 0.3s ease;
    position: relative;
}

.cart-item-card:hover {
    box-shadow: none;
}

.cart-item-image {
    width: 128px;
    height: 128px;
    flex-shrink: 0;
    border-radius: 20px;
    overflow: hidden;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

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

.cart-item-info {
    flex: 1;
    min-width: 200px;
    min-height: 128px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}

.cart-item-name {
    font-size: 14px;
    font-weight: 500;
    color: #23455F;
    margin-bottom: 0;
    padding-inline-end: 40px;
}

.cart-item-name a {
    color: #23455F;
    text-decoration: none;
}

.cart-item-name a:hover {
    color: #4E86B0;
}

.cart-item-name .macneed-cart-region-flag {
    width: 18px;
    height: 12px;
    object-fit: cover;
    border-radius: 2px;
    display: inline-block;
    vertical-align: middle;
    margin: 0 6px;
}

.cart-item-name .macneed-cart-region-flag-emoji {
    display: inline-block;
    vertical-align: middle;
    font-size: 16px;
    line-height: 1;
    margin: 0 6px;
}

.cart-item-name .macneed-cart-title-with-flag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cart-item-name .macneed-cart-title-text {
    color: inherit;
    text-decoration: none;
}

.cart-item-details {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cart-item-color {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    color: #80889A;
    background: white;
    padding: 6px 12px;
    border-radius: 3px;
}

.color-swatch {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid #E5E7EB;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 2px;
}

.quantity-label {
    font-size: 12px;
    color: #80889A;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 3px;
    background: white;
    border-radius: 8px;
    padding: 4px 8px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #F3F4F6;
    border: none;
    color: #80889A;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: #E5E7EB;
    color: #23455F;
}

.qty-input {
    width: 35px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 13px;
    font-weight: 500;
    color: #23455F;
}

.cart-item-price {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    background: white;
    padding: 8px 12px;
    border-radius: 3px;
    direction: rtl;
}

.price-label {
    font-size: 12px;
    color: #80889A;
    flex-shrink: 0;
}

.price-value {
    font-size: 13px;
    font-weight: 600;
    color: #23455F;
    unicode-bidi: plaintext;
}

.cart-item-remove {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
}

.remove-item {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: #EF4444;
}

.remove-item:hover {
    background: #FEE2E2;
}

/* Cart Summary */
.cart-summary {
    background: white;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 120px;
}

.summary-title {
    font-size: clamp(1.125rem, 2.2vw, 1.375rem);
    font-weight: 700;
    color: #1D1D1F;
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 14px;
}

.summary-label {
    color: #6B7280;
}

.summary-value {
    font-weight: 600;
    color: #1D1D1F;
}

.summary-row.discount .summary-value {
    color: #EF4444;
}

.summary-divider {
    height: 1px;
    background: #E5E7EB;
    margin: 16px 0;
}

.summary-row.total {
    font-size: 16px;
    padding-top: 16px;
}

.summary-row.total .summary-label,
.summary-row.total .summary-value {
    font-weight: 700;
    color: #1D1D1F;
}

.checkout-btn {
    display: block;
    width: 100%;
    background: #23455f;
    color: #fff;
    text-align: center;
    padding: 14px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    margin-top: 20px;
    text-decoration: none;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 14px rgba(35, 69, 95, 0.28);
    border: none;
}

.checkout-btn:hover {
    background: #1a3649;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(35, 69, 95, 0.35);
}

/* Promo Banner — هماهنگ با تصویر روشن app-store-promote */
.cart-promo-banner.macneed-cart-promo-appstore {
    background: linear-gradient(160deg, #eef2f6 0%, #e4eaf1 45%, #dfe7f0 100%);
    border: 1px solid #d8e0ea;
    border-radius: 20px;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    margin-top: 40px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.cart-promo-banner.macneed-cart-promo-appstore .promo-content {
    text-align: right;
}

.cart-promo-banner.macneed-cart-promo-appstore .promo-content h3 {
    font-size: clamp(1.15rem, 2.5vw, 1.45rem);
    font-weight: 700;
    color: #23455f;
    margin-bottom: 0.75rem;
    line-height: 1.45;
}

.cart-promo-banner.macneed-cart-promo-appstore .promo-content p {
    font-size: 14px;
    color: #5a6570;
    line-height: 1.85;
    margin-bottom: 1.25rem;
    text-align: justify;
    text-align-last: right;
}

.cart-promo-banner.macneed-cart-promo-appstore .promo-btn {
    display: inline-block;
    background: #23455f;
    color: #fff;
    padding: 10px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 3px 10px rgba(35, 69, 95, 0.2);
}

.cart-promo-banner.macneed-cart-promo-appstore .promo-btn:hover {
    background: #1a3649;
    color: #fff;
}

.cart-promo-banner.macneed-cart-promo-appstore .macneed-cart-promo-appstore__visual {
    text-align: center;
    background: #fff;
    border-radius: 8px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(35, 69, 95, 0.06);
}

.cart-promo-banner.macneed-cart-promo-appstore .macneed-cart-promo-appstore__visual img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 10px;
}

/* Cart promo placement:
   - Desktop: show inside cart items column
   - Mobile: show after order summary */
.cart-promo-banner--desktop {
    display: block !important;
}

.cart-promo-banner--mobile {
    display: none !important;
}

@media (max-width: 991px) {
    .cart-page .row {
        display: flex;
        flex-direction: column;
    }

    .cart-promo-banner--desktop {
        display: none !important;
    }

    .cart-promo-banner--mobile {
        display: block !important;
        margin-top: 20px;
    }

    /* Hard-force cart order on mobile:
       items -> cart-summary -> promo apps */
    .cart-page .row > .col-12.col-lg-8 {
        order: 1;
    }
    .cart-page .row > .col-12.col-lg-4 {
        order: 2;
    }
    .cart-page .row > .cart-promo-mobile-wrap {
        order: 3;
    }
}

/* Promo Banner (قدیمی بدون کلاس appstore) */
.cart-promo-banner {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-radius: 8px;
    padding: 40px;
    margin-top: 40px;
}

.promo-content h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 12px;
}

.promo-content p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.8;
    margin-bottom: 20px;
}

.promo-btn {
    display: inline-block;
    background: #23455f;
    color: #fff;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.promo-btn:hover {
    background: #1a3649;
    color: #fff;
}

.promo-image {
    text-align: center;
}

.promo-image img {
    max-width: 100%;
    height: auto;
}

/* Empty Cart */
.empty-cart {
    text-align: center;
    padding: clamp(2rem, 5vw, 3.5rem) 1rem;
}

.empty-cart.macneed-empty-cart {
    padding: clamp(2.5rem, 6vw, 4rem) 1rem;
}

.macneed-empty-cart__card {
    max-width: 440px;
    margin: 0 auto;
    padding: 2.5rem 1.75rem 2.25rem;
    background: #fff;
    border: 1px solid #ebebed;
    border-radius: 24px;
    box-shadow: 0 12px 40px rgba(35, 69, 95, 0.08);
    text-align: center;
}

.macneed-empty-cart__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(145deg, #f3f6f9 0%, #e8eef4 100%);
    color: #9ca8b8;
}

.macneed-empty-cart__icon svg {
    width: 36px;
    height: 36px;
    stroke: currentColor;
    fill: none;
}

.macneed-empty-cart__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #23455f;
    margin: 0 0 0.65rem;
    line-height: 1.5;
}

.macneed-empty-cart__text {
    font-size: 14px;
    line-height: 1.75;
    color: #80889a;
    margin: 0 0 1.5rem;
}

/* همان .viewAllButton (اسلایدرها / دسته مک) — حاشیه آبی، هاور پر آبی + متن سفید */
.cart-page .macneed-empty-cart .ctaButton.macneed-empty-cart__cta,
.checkout-page .macneed-empty-cart .ctaButton.macneed-empty-cart__cta {
    float: none;
    display: inline-block;
    margin: 0 auto;
    background: transparent !important;
    border: 1px solid #2997fc !important;
    color: #2997fc !important;
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.3s ease;
    -webkit-text-fill-color: #2997fc;
}

.cart-page .macneed-empty-cart .ctaButton.macneed-empty-cart__cta:hover,
.cart-page .macneed-empty-cart .ctaButton.macneed-empty-cart__cta:focus-visible,
.checkout-page .macneed-empty-cart .ctaButton.macneed-empty-cart__cta:hover,
.checkout-page .macneed-empty-cart .ctaButton.macneed-empty-cart__cta:focus-visible {
    background-color: #2997fc !important;
    border-color: #2997fc !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff;
    text-decoration: none;
}

@media (max-width: 576px) {
    .macneed-empty-cart__card {
        padding: 1.85rem 1.2rem 1.65rem;
    }

    .macneed-empty-cart__title {
        font-size: 1.1rem;
    }
}

.empty-cart:not(.macneed-empty-cart) h2 {
    font-size: 24px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 12px;
}

.empty-cart:not(.macneed-empty-cart) p {
    color: #6b7280;
    margin-bottom: 24px;
}

/* Responsive */
@media (max-width: 991px) {
    .cart-summary {
        position: static;
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .cart-item-card {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .cart-item-info {
        width: 100%;
        order: 2;
    }
    
    .cart-item-quantity {
        order: 3;
    }
    
    .cart-item-price {
        order: 4;
        min-width: auto;
    }
    
    .cart-item-remove {
        position: absolute;
        top: 50%;
        left: 15px;
        transform: translateY(-50%);
    }
    
    .cart-promo-banner {
        padding: 25px;
    }
    
    .wizard-steps {
        gap: 0;
    }
    
    .wizard-line {
        margin: 0 10px;
        margin-bottom: 30px;
    }
    
    .step-text {
        font-size: 12px;
    }
    
    .step-circle {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

/* ============================================
   Checkout Page - صفحه تسویه حساب
   ============================================ */
.checkout-page {
    padding: 40px 0 60px;
}

/* اعلان‌های ووکامرس — نصف عرض والد، وسط؛ متن راست، دکمه/لینک چپ */
.checkout-page .woocommerce-notices-wrapper,
body.woocommerce-checkout .woocommerce-notices-wrapper,
.woocommerce-cart .woocommerce-notices-wrapper {
    width: 100%;
    max-width: 50%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
    box-sizing: border-box;
}

@media (max-width: 767px) {
    .checkout-page .woocommerce-notices-wrapper,
    body.woocommerce-checkout .woocommerce-notices-wrapper,
    .woocommerce-cart .woocommerce-notices-wrapper {
        max-width: 100%;
    }
}

.checkout-page .woocommerce-message,
.checkout-page .woocommerce-info,
body.woocommerce-checkout .woocommerce-message,
body.woocommerce-checkout .woocommerce-info,
.woocommerce-cart .woocommerce-message,
.woocommerce-cart .woocommerce-info {
    list-style: none;
    margin: 0 0 12px !important;
    padding: 14px 16px 14px 14px !important;
    border-radius: 12px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 15px;
    line-height: 1.65;
    font-weight: 500;
    color: #23455f !important;
    background: #fff !important;
    border: 1px solid rgba(35, 69, 95, 0.1) !important;
    box-shadow: 0 2px 12px rgba(35, 69, 95, 0.08);
    border-inline-start: 4px solid #2997fc !important;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
    direction: rtl;
    text-align: right;
}

/* لینک/دکمهٔ اکشن (اولین فرزند در DOM ووکامرس) با order بالاتر از متن → سمت چپ باکس */
.checkout-page .woocommerce-message > a,
.checkout-page .woocommerce-message > .button,
.checkout-page .woocommerce-info > a,
.checkout-page .woocommerce-info > .button,
body.woocommerce-checkout .woocommerce-message > a,
body.woocommerce-checkout .woocommerce-message > .button,
body.woocommerce-checkout .woocommerce-info > a,
.woocommerce-cart .woocommerce-message > a,
.woocommerce-cart .woocommerce-message > .button,
.woocommerce-cart .woocommerce-info > a {
    order: 2;
    flex-shrink: 0;
    margin-top: 0 !important;
}

.checkout-page .woocommerce-error,
.checkout-page ul.woocommerce-error,
body.woocommerce-checkout .woocommerce-error,
body.woocommerce-checkout ul.woocommerce-error,
.woocommerce-cart .woocommerce-error,
.woocommerce-cart ul.woocommerce-error {
    list-style: none;
    margin: 0 0 12px !important;
    padding: 14px 16px 14px 14px !important;
    border-radius: 12px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 15px;
    line-height: 1.65;
    font-weight: 500;
    color: #23455f !important;
    background: #fff !important;
    border: 1px solid rgba(35, 69, 95, 0.1) !important;
    box-shadow: 0 2px 12px rgba(35, 69, 95, 0.08);
    border-inline-start: 4px solid #dc2626 !important;
}

.checkout-page .woocommerce-message::before,
.checkout-page .woocommerce-info::before,
.checkout-page .woocommerce-error::before,
body.woocommerce-checkout .woocommerce-message::before,
body.woocommerce-checkout .woocommerce-info::before,
body.woocommerce-checkout .woocommerce-error::before,
.woocommerce-cart .woocommerce-message::before,
.woocommerce-cart .woocommerce-info::before,
.woocommerce-cart .woocommerce-error::before {
    display: none !important;
    content: none !important;
}

.checkout-page ul.woocommerce-error,
body.woocommerce-checkout ul.woocommerce-error,
.woocommerce-cart ul.woocommerce-error {
    padding-inline-start: 16px !important;
}

.checkout-page ul.woocommerce-error li,
body.woocommerce-checkout ul.woocommerce-error li,
.woocommerce-cart ul.woocommerce-error li {
    margin: 0 0 6px;
    list-style: none;
}

.checkout-page ul.woocommerce-error li:last-child,
body.woocommerce-checkout ul.woocommerce-error li:last-child,
.woocommerce-cart ul.woocommerce-error li:last-child {
    margin-bottom: 0;
}

.checkout-page .woocommerce-message .button,
.checkout-page .woocommerce-message a.button,
.checkout-page .woocommerce-message a.wc-forward,
.checkout-page .woocommerce-info .button,
.checkout-page .woocommerce-info a.button,
body.woocommerce-checkout .woocommerce-message .button,
body.woocommerce-checkout .woocommerce-message a.button,
body.woocommerce-checkout .woocommerce-message a.wc-forward,
body.woocommerce-checkout .woocommerce-info .button,
body.woocommerce-checkout .woocommerce-info a.button,
.woocommerce-cart .woocommerce-message .button,
.woocommerce-cart .woocommerce-message a.button,
.woocommerce-cart .woocommerce-message a.wc-forward,
.woocommerce-cart .woocommerce-info .button,
.woocommerce-cart .woocommerce-info a.button {
    float: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    margin-inline-end: 0;
    margin-inline-start: 0;
    padding: 8px 18px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    font-family: 'Vazirmatn', sans-serif !important;
    line-height: 1.3 !important;
    color: #2997fc !important;
    background: #fff !important;
    border: 1px solid #2997fc !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    text-decoration: none !important;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.checkout-page .woocommerce-message .button:hover,
.checkout-page .woocommerce-message a.button:hover,
.checkout-page .woocommerce-message a.wc-forward:hover,
.checkout-page .woocommerce-info .button:hover,
body.woocommerce-checkout .woocommerce-message .button:hover,
body.woocommerce-checkout .woocommerce-message a.button:hover,
body.woocommerce-checkout .woocommerce-message a.wc-forward:hover,
body.woocommerce-checkout .woocommerce-info .button:hover,
.woocommerce-cart .woocommerce-message .button:hover,
.woocommerce-cart .woocommerce-message a.button:hover,
.woocommerce-cart .woocommerce-message a.wc-forward:hover,
.woocommerce-cart .woocommerce-info .button:hover {
    background: #2997fc !important;
    color: #fff !important;
    border-color: #2997fc !important;
    box-shadow: 0 4px 14px rgba(41, 151, 252, 0.28) !important;
}

.checkout-page .woocommerce-error .button,
.checkout-page .woocommerce-error a.button,
body.woocommerce-checkout .woocommerce-error .button,
body.woocommerce-checkout .woocommerce-error a.button,
.woocommerce-cart .woocommerce-error .button,
.woocommerce-cart .woocommerce-error a.button {
    border-color: #dc2626 !important;
    color: #dc2626 !important;
}

.checkout-page .woocommerce-error .button:hover,
.checkout-page .woocommerce-error a.button:hover,
body.woocommerce-checkout .woocommerce-error .button:hover,
body.woocommerce-checkout .woocommerce-error a.button:hover,
.woocommerce-cart .woocommerce-error .button:hover,
.woocommerce-cart .woocommerce-error a.button:hover {
    background: #dc2626 !important;
    color: #fff !important;
    border-color: #dc2626 !important;
}

.checkout-section-title {
    font-size: clamp(1.125rem, 2.2vw, 1.375rem);
    font-weight: 700;
    color: #23455f;
    margin-bottom: 25px;
    line-height: 1.4;
}

.checkout-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.section-subtitle {
    font-size: 15px;
    font-weight: 600;
    color: #23455F;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    color: #6B7280;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group .form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 14px;
    color: #1D1D1F;
    font-family: 'Vazirmatn', sans-serif;
    transition: all 0.2s ease;
}

.form-group .form-control:focus {
    outline: none;
    border-color: #4E86B0;
    box-shadow: 0 0 0 3px rgba(78, 134, 176, 0.1);
}

.form-group textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

/* Checkout Sidebar */
.checkout-sidebar-box {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.sidebar-label {
    display: block;
    font-size: 14px;
    color: #23455F;
    font-weight: 600;
    margin-bottom: 12px;
}

/* Discount Input */
.discount-input-group {
    display: flex;
    gap: 2px;
    margin-bottom: 10px;
}

.discount-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 13px;
    color: #1D1D1F;
    font-family: 'Vazirmatn', sans-serif;
}

.discount-input:focus {
    outline: none;
    border-color: #4E86B0;
}

.apply-coupon-btn {
    padding: 10px 20px;
    background: #23455F;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.apply-coupon-btn:hover {
    background: #1A3346;
}

.coupon-message {
    font-size: 12px;
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 3px;
    display: none;
}

.coupon-message.success {
    display: block;
    background: #D1FAE5;
    color: #059669;
}

.coupon-message.error {
    display: block;
    background: #FEE2E2;
    color: #DC2626;
}

/* Order Summary in Checkout */
.summary-row-checkout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 13px;
    border-bottom: 1px solid #F3F4F6;
}

.summary-row-checkout:last-child {
    border-bottom: none;
}

.summary-label-checkout {
    color: #6B7280;
}

.summary-value-checkout {
    font-weight: 600;
    color: #23455F;
}

.summary-row-checkout.total {
    padding-top: 16px;
    margin-top: 10px;
    border-top: 2px solid #E5E7EB;
    font-size: 15px;
}

.summary-row-checkout.total .summary-label-checkout,
.summary-row-checkout.total .summary-value-checkout {
    font-weight: 700;
    color: #23455F;
}

/* Payment Method */
.payment-method {
    margin-bottom: 16px;
}

.payment-method.macneed-payment-methods {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.payment-gateway-icon {
    display: flex;
    align-items: center;
    margin-inline-start: auto;
}

.payment-gateway-icon img {
    max-height: 28px;
    width: auto;
}

.payment-no-gateway {
    color: #b45309;
    font-size: 13px;
    margin: 0 0 12px;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.payment-option:hover {
    border-color: #4E86B0;
    background: #F8FAFC;
}

.payment-option input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.payment-text {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: #23455F;
}

.payment-logo {
    height: 24px;
    width: auto;
}

.payment-notice {
    background: #F8FAFC;
    padding: 14px;
    border-radius: 8px;
    font-size: 12px;
    color: #6B7280;
    line-height: 1.6;
    margin-bottom: 16px;
}

/* Terms Checkbox */
.terms-checkbox {
    margin-bottom: 20px;
}

.terms-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.terms-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
    flex-shrink: 0;
}

.terms-checkbox span {
    font-size: 13px;
    color: #6B7280;
    line-height: 1.5;
}

/* Checkout Submit Button */
.checkout-submit-btn {
    display: block;
    width: 100%;
    background: #23455F;
    color: white;
    text-align: center;
    padding: 16px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(35, 69, 95, 0.3);
}

.checkout-submit-btn:hover {
    background: #1A3346;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(35, 69, 95, 0.4);
}

.checkout-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.checkout-success-card {
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.checkout-success-card h2 {
    font-size: 11px;
    color: #23455F;
    margin: 0 0 10px;
}

.checkout-success-card p {
    font-size: 14px;
    color: #23455F;
    margin: 0 0 12px;
}

.gift-code-panel {
    margin-top: 20px;
    border-top: 1px solid #E5E7EB;
    padding-top: 20px;
}

.gift-code-panel h3 {
    font-size: 11px;
    color: #23455F;
    margin: 0 0 14px;
}

.gift-code-item {
    background: linear-gradient(180deg, #F8FBFF 0%, #F2F8FF 100%);
    border: 1px solid #D3E4F2;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 12px;
}

.gift-code-product {
    font-size: 16px;
    font-weight: 600;
    color: #23455F;
    margin-bottom: 10px;
}

.gift-code-line {
    margin-bottom: 10px;
}

.gift-code-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #3A5A75;
    margin-bottom: 6px;
}

.gift-code-value-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.gift-code-value {
    background: #fff;
    border: 1px dashed #4E86B0;
    border-radius: 10px;
    padding: 10px 14px;
    color: #23455F;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    direction: ltr;
    unicode-bidi: plaintext;
}

.gift-code-copy-btn {
    border: 0;
    background: #23455F;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.gift-code-copy-btn:hover {
    background: #1A3346;
    transform: translateY(-1px);
}

.gift-code-copy-feedback {
    display: inline-block;
    margin-top: 6px;
    font-size: 13px;
    color: #15803D;
    min-height: 18px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.gift-code-copy-feedback.show {
    opacity: 1;
}

.gift-code-empty {
    background: #FFF7ED;
    color: #9A3412 !important;
    border-radius: 10px;
    padding: 10px 12px;
}

/* Responsive */
@media (max-width: 991px) {
    .checkout-page .col-lg-4 {
        margin-top: 30px;
    }

    .gift-code-value {
        font-size: 9px;
        word-break: break-all;
    }
}

/* ============================================
   MacBook Air Category with Filters
   ============================================ */

/* Category Header */
.macCategoryHeader {
    padding: 40px 0 30px;
    text-align: center;
}

.category-title-gradient {
    font-size: 28px;
    font-weight: 600;
    background: linear-gradient(90deg, #4E86B0, #23455F);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    margin-bottom: 10px;
}

.category-desc {
    font-size: 14px;
    color: #80889A;
}

/* Filter Section */
.macFilterSection {
    background: white;
    padding: 20px 0;
    margin-bottom: 30px;
    border-top: 1px solid #E5E7EB;
    border-bottom: 1px solid #E5E7EB;
}

.filter-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.filter-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: saturate(180%) blur(40px);
    -webkit-backdrop-filter: saturate(180%) blur(40px);
    border: 1px solid #E5E7EB;
    padding: 12px 24px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 600;
    color: #23455F;
}

.filter-toggle:hover {
    background: rgba(78, 134, 176, 0.1);
    border-color: #4E86B0;
}

.filter-toggle.active {
    background: #4E86B0;
    color: white;
    border-color: #4E86B0;
}

.filter-toggle img {
    width: 20px;
    height: 20px;
}

.filters-container {
    display: none;
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.filter-group {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #F3F4F6;
}

.filter-group:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #23455F;
    margin-bottom: 12px;
}

/* Price Range */
.price-range-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.price-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #E5E7EB;
    border-radius: 3px;
    font-size: 13px;
    text-align: center;
    color: #23455F;
}

.price-separator {
    color: #80889A;
    font-size: 13px;
}

.price-range-slider {
    position: relative;
    height: 40px;
}

.range-slider {
    position: absolute;
    width: 100%;
    height: 4px;
    background: #E5E7EB;
    border-radius: 2px;
    -webkit-appearance: none;
    pointer-events: none;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    pointer-events: all;
    width: 16px;
    height: 16px;
    background: #4E86B0;
    border-radius: 50%;
    cursor: pointer;
}

.range-slider::-moz-range-thumb {
    pointer-events: all;
    width: 16px;
    height: 16px;
    background: #4E86B0;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* Filter Checkboxes */
.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 8px 14px;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    color: #23455F;
}

.filter-checkbox:hover {
    background: #EFF6FF;
    border-color: #4E86B0;
}

.filter-checkbox input[type="checkbox"] {
    cursor: pointer;
}

.filter-checkbox input[type="checkbox"]:checked + span {
    color: #4E86B0;
    font-weight: 600;
}

/* Filter Actions */
.filter-actions {
    display: flex;
    gap: 12px;
    padding-top: 20px;
}

.btn-apply-filters {
    flex: 1;
    padding: 12px;
    background: linear-gradient(135deg, #4E86B0, #5a98c8);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-apply-filters:hover {
    background: linear-gradient(135deg, #5a98c8, #6aacdc);
    transform: translateY(-1px);
}

.btn-clear-filters {
    flex: 1;
    padding: 12px;
    background: transparent;
    color: #6B7280;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-clear-filters:hover {
    background: #F9FAFB;
    border-color: #6B7280;
}

/* Products Grid */
.macProductsGrid {
    padding: 40px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.no-products {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
}

.no-products p {
    font-size: 16px;
    color: #6B7280;
}

/* Pagination */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    gap: 2px;
    margin-top: 40px;
}

.pagination-wrapper a,
.pagination-wrapper span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 40px;
    padding: 0 12px;
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    color: #23455F;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pagination-wrapper a:hover {
    background: #4E86B0;
    color: white;
    border-color: #4E86B0;
}

.pagination-wrapper .current {
    background: #4E86B0;
    color: white;
    border-color: #4E86B0;
}

/* Responsive */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }
    
    .filter-actions {
        flex-direction: column;
    }
    
    .filter-options {
        flex-direction: column;
    }
    
    .filter-checkbox {
        width: 100%;
    }
}

/* ============================================
   Login Page - صفحه ورود (هماهنگ با قالب مک‌نید)
   ============================================ */
.login-page {
    background: #ffffff;
    min-height: auto;
    padding: 32px 0 64px;
    font-family: 'Vazirmatn', sans-serif;
}

.login-page * {
    font-family: 'Vazirmatn', sans-serif;
}

.login-wrapper {
    display: flex;
    align-items: stretch;
    gap: 20px;
    justify-content: center;
    direction: ltr;
    max-width: 920px;
    margin: 0 auto;
    background: transparent;
    border-radius: 32px;
    padding: 0;
}

.login-card {
    flex: 1 1 0;
    min-width: 0;
    background: #eef0f3;
    border-radius: 28px;
    padding: 28px 32px 32px;
    max-width: 440px;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow:
        0 4px 24px rgba(15, 23, 42, 0.06),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    direction: rtl;
}

.login-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3px;
    margin: 0 0 22px;
}

.login-dots .dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.login-dots .dot-red {
    background: #ec6a5e;
}

.login-dots .dot-yellow {
    background: #f2be4e;
}

.login-dots .dot-green {
    background: #68bd56;
}

.login-header {
    text-align: center;
    margin-bottom: 24px;
}

.login-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: #23455f;
    line-height: 1.5;
    margin: 0 0 10px;
    letter-spacing: -0.02em;
    font-family: 'Vazirmatn', sans-serif !important;
}

.login-header .login-register-hint {
    font-size: 13px;
    color: #2997fc;
    margin: -4px 0 12px;
    line-height: 1.6;
    opacity: 0.95;
    font-family: 'Vazirmatn', sans-serif !important;
}

.login-header .login-register-link {
    color: #2997fc;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.login-header .login-register-link:hover {
    color: #1a7fd4;
}

.login-header p {
    font-size: 13px;
    color: #23455f;
    letter-spacing: -0.01em;
    line-height: 1.75;
    margin: 0;
    opacity: 0.88;
    font-family: 'Vazirmatn', sans-serif !important;
}

/* Form Styling */
.form-group-login,
.tml-field-wrap {
    margin-bottom: 16px;
}

.form-group-login label,
.tml-field-wrap label {
    display: block;
    font-size: 14px;
    color: #23455f;
    font-weight: 600;
    margin-bottom: 8px;
}

.input-login,
.tml-field-wrap input[type="text"],
.tml-field-wrap input[type="email"],
.tml-field-wrap input[type="password"] {
    width: 100% !important;
    padding: 12px 14px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    color: #1d1d1f !important;
    font-family: 'Vazirmatn', sans-serif !important;
    background: #fff !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.input-login:focus,
.tml-field-wrap input:focus {
    outline: none !important;
    border-color: #4e86b0 !important;
    box-shadow: 0 0 0 3px rgba(78, 134, 176, 0.12) !important;
}

/* Login Options */
.login-options,
.tml-rememberme-wrap {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 20px;
    gap: 10px;
    flex-wrap: nowrap;
    width: 100%;
}

.tml-login .tml-rememberme-wrap {
    direction: rtl;
    width: 100%;
    justify-content: space-between !important;
    display: flex !important;
    gap: 8px !important;
    align-items: center !important;
}

.tml-login .tml-rememberme-wrap > * {
    float: none !important;
    position: static !important;
    width: auto !important;
    max-width: 100%;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 13px;
    color: #23455f;
    cursor: pointer;
}

.tml-login .tml-rememberme-wrap label,
.tml-login .tml-rememberme-wrap .remember-me {
    display: inline-flex !important;
    align-items: center;
    flex-direction: row !important;
    gap: 2px;
    margin: 0 !important;
    font-size: 13px !important;
    color: #23455f !important;
    font-family: 'Vazirmatn', sans-serif !important;
    font-weight: 500;
    white-space: nowrap;
    line-height: 1.4 !important;
    min-width: 0;
    max-width: 100%;
}

.remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #23455f;
}

.tml-login .tml-rememberme-wrap input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0 0 0 6px !important;
    accent-color: #23455f;
    flex: 0 0 auto;
}

.tml-login .tml-rememberme-wrap label span {
    white-space: nowrap !important;
}

.forgot-password {
    font-size: 13px;
    color: #2997fc;
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.tml-login .tml-rememberme-wrap .forgot-password {
    margin-inline-start: 0 !important;
    display: inline-flex !important;
    align-items: center;
    line-height: 1.4 !important;
    font-family: 'Vazirmatn', sans-serif !important;
    font-size: 12px !important;
    flex: 0 0 auto;
    text-align: left !important;
}

.forgot-password:hover {
    color: #1a7fd4;
}

/* Login Button — هم‌رنگ دکمه‌های خرید قالب */
.login-btn,
.tml-submit-wrap input[type="submit"] {
    width: 100% !important;
    display: block !important;
    padding: 13px 16px !important;
    background: #2997fc !important;
    color: #fff !important;
    border: none !important;
    border-radius: 999px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background 0.2s ease, box-shadow 0.2s ease !important;
    box-shadow: 0 4px 14px rgba(41, 151, 252, 0.28) !important;
    font-family: 'Vazirmatn', sans-serif !important;
}

.tml-login .tml-submit-wrap,
.tml-login .tml-submit-wrap input[type="submit"],
.tml-login .tml-submit-wrap button,
.tml-login input[name="wp-submit"],
.tml-login button[name="wp-submit"],
.tml-register .tml-submit-wrap,
.tml-register .tml-submit-wrap input[type="submit"],
.tml-register .tml-submit-wrap button,
.tml-register input[name="wp-submit"],
.tml-register button[name="wp-submit"],
.tml-lostpassword .tml-submit-wrap,
.tml-lostpassword .tml-submit-wrap input[type="submit"],
.tml-lostpassword .tml-submit-wrap button,
.tml-lostpassword input[name="wp-submit"],
.tml-lostpassword button[name="wp-submit"],
.tml-resetpass .tml-submit-wrap,
.tml-resetpass .tml-submit-wrap input[type="submit"],
.tml-resetpass .tml-submit-wrap button,
.tml-resetpass input[name="wp-submit"],
.tml-resetpass button[name="wp-submit"],
.tml-login .button {
    width: 100% !important;
}

.tml-login .tml-submit-wrap input[type="submit"],
.tml-login .tml-submit-wrap button,
.tml-login input[name="wp-submit"],
.tml-login button[name="wp-submit"],
.tml-register .tml-submit-wrap input[type="submit"],
.tml-register .tml-submit-wrap button,
.tml-register input[name="wp-submit"],
.tml-register button[name="wp-submit"],
.tml-lostpassword .tml-submit-wrap input[type="submit"],
.tml-lostpassword .tml-submit-wrap button,
.tml-lostpassword input[name="wp-submit"],
.tml-lostpassword button[name="wp-submit"],
.tml-resetpass .tml-submit-wrap input[type="submit"],
.tml-resetpass .tml-submit-wrap button,
.tml-resetpass input[name="wp-submit"],
.tml-resetpass button[name="wp-submit"],
.tml-login .button {
    background: #2997fc !important;
    color: #fff !important;
    border: none !important;
    border-radius: 999px !important;
    padding: 13px 16px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 14px rgba(41, 151, 252, 0.28) !important;
    font-family: 'Vazirmatn', sans-serif !important;
    text-align: center !important;
    cursor: pointer !important;
    line-height: 1.6 !important;
}

.login-btn:hover,
.tml-submit-wrap input[type="submit"]:hover {
    background: #1a7fd4 !important;
    transform: none !important;
    box-shadow: 0 6px 18px rgba(41, 151, 252, 0.35) !important;
}

.tml-login .tml-submit-wrap input[type="submit"]:hover,
.tml-login .tml-submit-wrap button:hover,
.tml-login input[name="wp-submit"]:hover,
.tml-login button[name="wp-submit"]:hover,
.tml-register .tml-submit-wrap input[type="submit"]:hover,
.tml-register .tml-submit-wrap button:hover,
.tml-register input[name="wp-submit"]:hover,
.tml-register button[name="wp-submit"]:hover,
.tml-lostpassword .tml-submit-wrap input[type="submit"]:hover,
.tml-lostpassword .tml-submit-wrap button:hover,
.tml-lostpassword input[name="wp-submit"]:hover,
.tml-lostpassword button[name="wp-submit"]:hover,
.tml-resetpass .tml-submit-wrap input[type="submit"]:hover,
.tml-resetpass .tml-submit-wrap button:hover,
.tml-resetpass input[name="wp-submit"]:hover,
.tml-resetpass button[name="wp-submit"]:hover,
.tml-login .button:hover {
    background: #1a7fd4 !important;
    box-shadow: 0 6px 18px rgba(41, 151, 252, 0.35) !important;
}

/* Register Link */
.register-link,
.tml-links {
    text-align: center;
    margin-top: 18px;
    font-size: 13px;
    color: #23455f;
    line-height: 1.6;
}

.tml-links,
.tml-links ul,
.tml-links li {
    list-style: none !important;
    padding: 0;
    margin: 0;
}

.tml-links li + li {
    margin-top: 8px;
}

.tml-login .tml-links a[href*="lostpassword"] {
    display: none !important;
}

.register-link a,
.tml-links a {
    color: #2997fc;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.register-link a:hover,
.tml-links a:hover {
    color: #1a7fd4;
}

/* Illustration */
.login-illustration {
    flex: 1 1 0;
    min-width: 0;
    max-width: 440px;
    border-radius: 28px;
    overflow: hidden;
    background: #23455f;
    display: flex;
    align-items: stretch;
}

.login-illustration img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.tml-submit-wrap {
    margin-top: 2px;
}

/* Hide Theme My Login default elements */
.tml-login h1,
.tml-register h1,
.tml-lostpassword h1,
.tml-resetpass h1,
.tml-login .tml-action-links,
.tml-register .tml-action-links,
.tml-lostpassword .tml-action-links,
.tml-resetpass .tml-action-links {
    display: none !important;
}

/* Responsive */
@media (max-width: 991px) {
    .login-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 0;
        max-width: 460px;
        width: 100%;
        border-radius: 26px;
        padding: 0 12px;
    }

    .login-card {
        max-width: 100%;
        width: 100%;
        padding: 20px 16px 22px;
        min-height: 0;
        border-radius: 20px;
    }

    .login-illustration {
        display: none !important;
    }

    .login-illustration img {
        min-height: 0;
        aspect-ratio: auto;
    }
}

@media (max-width: 576px) {
    .login-page {
        padding: 20px 0 56px;
    }

    .login-card {
        border-radius: 16px;
        padding: 18px 14px 20px;
    }

    .login-header h2 {
        font-size: 18px;
    }

    .login-header p {
        font-size: 12px;
    }

    .login-illustration {
        border-radius: 22px;
    }

    .login-options,
    .tml-rememberme-wrap {
        flex-direction: row !important;
        align-items: center !important;
        gap: 8px !important;
    }

    .tml-login .tml-rememberme-wrap .forgot-password {
        margin-inline-start: 0;
    }

    .tml-login .tml-rememberme-wrap label,
    .tml-login .tml-rememberme-wrap .remember-me {
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
        white-space: nowrap !important;
    }

    .tml-login .tml-rememberme-wrap input[type="checkbox"] {
        width: 14px !important;
        height: 14px !important;
        margin: 0 0 0 6px !important;
        flex: 0 0 14px !important;
    }
}

/* ============================================
   User Dropdown Menu - منوی کاربری
   ============================================ */
.user-menu-wrapper {
    position: relative;
}

.user-menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 5px 17px;
    background: none;
    border: 1px solid #23455F;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
}

.user-menu-toggle:hover {
    background: rgba(78, 134, 176, 0.1);
}

.dropdown-arrow {
    transition: transform 0.3s ease;
}

.user-menu-toggle.open .dropdown-arrow {
    transform: rotate(180deg);
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    min-width: 220px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.user-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #23455F;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
}

.user-menu-item:hover {
    background: #EFF6FF;
    color: #4E86B0;
}

.user-menu-item svg {
    flex-shrink: 0;
    color: #6B7280;
}

.user-menu-item:hover svg {
    color: #4E86B0;
}

.user-menu-item.logout {
    color: #DC2626;
}

.user-menu-item.logout:hover {
    background: #FEE2E2;
    color: #DC2626;
}

.user-menu-item.logout svg {
    color: #DC2626;
}

.user-menu-divider {
    height: 1px;
    background: #E5E7EB;
    margin: 8px 0;
}

/* Animation */
@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- سکشن «از کاربردی‌ترین تا بهترین مک‌بوک‌ها» — متن نزدیک‌تر به عکس ---------- */
.macneed-macbooks-row .imgSamp {
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center;
}

.macneed-macbooks-row .imgSamp img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    margin: 0 auto;
}

@media (min-width: 992px) {
    .macneed-macbooks-row--spaced {
        --bs-gutter-x: 3rem;
    }

    .macneed-macbooks-row .imgSamp img {
        max-width: 82%;
    }
}

/* ---------- صفحه اصلی: قفل موقتی سکشن (blur) ---------- */
.macneed-macbooks-showcase-wrap.macneed-lockable-section,
.macneed-accessories-showcase-wrap.macneed-lockable-section {
    isolation: isolate;
}

.macneed-lockable-section {
    position: relative;
}

.macneed-section-lock {
    position: absolute;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1.25rem, 4vw, 2.5rem);
    text-align: center;
    background: transparent;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border-radius: inherit;
    pointer-events: auto;
    user-select: none;
}

.macneed-section-lock__card {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: clamp(1rem, 3vw, 1.35rem);
    width: 100%;
    max-width: min(40rem, calc(100% - 1.5rem));
    margin: 0;
    padding: clamp(1rem, 2.5vw, 1.35rem) clamp(1.35rem, 3.5vw, 2rem);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(35, 69, 95, 0.08);
    border-inline-start: 3px solid #fa243c;
    border-radius: 20px;
    box-shadow:
        0 4px 24px rgba(15, 23, 42, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.6) inset;
    text-align: right;
}

.macneed-section-lock__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    margin: 0;
    border-radius: 50%;
    background: rgba(250, 36, 60, 0.12);
    color: #fa243c;
}

.macneed-section-lock__icon svg {
    width: 1.65rem;
    height: 1.65rem;
}

.macneed-section-lock__text {
    margin: 0;
    flex: 1;
    min-width: 0;
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    font-weight: 600;
    line-height: 1.65;
    color: #23455f;
    letter-spacing: 0.01em;
}

@media (max-width: 480px) {
    .macneed-section-lock__card {
        flex-direction: column;
        text-align: center;
        max-width: min(22rem, 100%);
        padding: 1.25rem 1.15rem;
        border-inline-start: 1px solid rgba(35, 69, 95, 0.08);
        border-top: 3px solid #fa243c;
    }

    .macneed-section-lock__text {
        text-align: center;
    }
}

/* ——— صفحه نتایج جستجو ——— (هدر بصری: mainHead.single در header.php) */
.macneed-search-page {
    min-height: 70vh;
    padding-bottom: 48px;
}

.macneed-search-results-intro {
    margin-bottom: 1.75rem;
    text-align: center;
}

.macneed-search-results-heading {
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    font-weight: 600;
    color: #23455f;
    margin: 0;
    line-height: 1.45;
}

.macneed-search-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none !important;
    color: inherit;
    box-shadow: 0 3px 18px rgba(0, 0, 0, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid rgba(35, 69, 95, 0.06);
}

.macneed-search-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 32px rgba(35, 69, 95, 0.12);
}

.macneed-search-card--post {
    padding: 1rem 1.1rem;
}

.macneed-search-card__thumb {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #fafafa;
    overflow: hidden;
}

.macneed-search-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.macneed-search-card__thumb--post {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1;
    background: #f0f0f0;
}

.macneed-search-card__thumb--post img {
    object-fit: cover;
}

.macneed-search-card__badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 11px;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(41, 151, 252, 0.92);
    color: #fff;
    z-index: 1;
}

.macneed-search-card__badge--post {
    position: static;
    display: inline-block;
    margin-bottom: 0.5rem;
    background: rgba(35, 69, 95, 0.88);
}

.macneed-search-card__body {
    padding: 1.1rem 1.15rem 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.macneed-search-card--post .macneed-search-card__body {
    padding: 0.35rem 0 0 0.75rem;
}

.macneed-search-card__title {
    font-size: 15px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0;
    line-height: 1.45;
}

.macneed-search-card__title a {
    color: inherit;
    text-decoration: none;
}

.macneed-search-card__title a:hover {
    color: #2997fc;
}

.macneed-search-card__price {
    font-size: 14px;
    font-weight: 500;
    color: #23455f;
    margin-top: auto;
}

.macneed-search-card__price .woocommerce-Price-amount {
    font-weight: 600;
}

/* آرشیو گیفت‌کارت — هماهنگ با کارت جستجو؛ تصویر همان قوانین قبلی */
.macneed-gift-category-archive-grid-wrap {
    --macneed-gc-card-radius: 20px;
}

.macneed-gift-category-archive-grid-wrap .macneed-giftcard-archive-card {
    border-radius: var(--macneed-gc-card-radius);
    box-shadow: 0 4px 20px rgba(35, 69, 95, 0.08);
    border: 1px solid rgba(35, 69, 95, 0.08);
}

.macneed-gift-category-archive-grid-wrap .macneed-giftcard-archive-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 44px rgba(35, 69, 95, 0.13);
}

/* تصویر محصول معمولاً مربع (مثلاً ۳۰۰×۳۰۰) — باکس مربع + contain تا کل عکس دیده شود */
.macneed-gift-category-archive-grid-wrap .macneed-search-card__thumb {
    aspect-ratio: 1 / 1;
    max-height: none;
    min-height: 0;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #fafbfc 0%, #f3f4f6 100%);
}

.macneed-gift-category-archive-grid-wrap .macneed-search-card__thumb img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    margin: 0;
    flex-shrink: 0;
}

.macneed-gift-category-archive-grid-wrap .macneed-search-card__body {
    padding: 0.85rem 1rem 1.05rem;
    gap: 0;
    text-align: center;
}

.macneed-gift-category-archive-grid-wrap .macneed-giftcard-archive-card .macneed-search-card__title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
    color: #1d1d1f;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.85em;
    letter-spacing: -0.01em;
    text-align: center;
}

.macneed-gift-category-archive-grid-wrap .macneed-giftcard-archive-card__meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
    flex: 1;
    justify-content: flex-end;
}

.macneed-gift-category-archive-grid-wrap .macneed-giftcard-archive-card__flags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    padding: 6px 8px;
    background: rgba(35, 69, 95, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(35, 69, 95, 0.06);
}

.macneed-gift-category-archive-grid-wrap .macneed-giftcard-archive-card__flag-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.07);
}

.macneed-gift-category-archive-grid-wrap .macneed-giftcard-archive-card__flag {
    width: 28px;
    height: 21px;
    object-fit: cover;
    display: block;
}

.macneed-gift-category-archive-grid-wrap .macneed-giftcard-archive-card__start-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    padding-top: 4px;
}

.macneed-gift-category-archive-grid-wrap .macneed-giftcard-archive-card__price-label {
    font-size: 12px;
    font-weight: 500;
    color: #86868b;
    letter-spacing: 0.01em;
}

.macneed-gift-category-archive-grid-wrap .macneed-giftcard-archive-card__price-row {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    line-height: 1.25;
}

.macneed-gift-category-archive-grid-wrap .macneed-giftcard-archive-card__price-value {
    font-size: 19px;
    font-weight: 700;
    color: #2997fc;
    letter-spacing: 0.02em;
}

.macneed-gift-category-archive-grid-wrap .macneed-giftcard-archive-card__price-unit {
    font-size: 13px;
    font-weight: 600;
    color: #23455f;
    opacity: 0.9;
}

/* موبایل: دو ستون — همان باکس مربع، بدون سقف ارتفاع اضافی روی تصویر */
@media (max-width: 767.98px) {
    .macneed-gift-category-archive-grid-wrap .macneed-search-card__thumb {
        padding: 10px 12px;
    }
}

/* از md به بالا: ۴ کارت در هر ردیف */
@media (min-width: 768px) {
    .macneed-gift-category-archive-grid-wrap .macneed-search-card__thumb {
        padding: 14px 18px;
    }
    .macneed-gift-category-archive-grid-wrap .macneed-giftcard-archive-card .macneed-search-card__title {
        font-size: 16px;
    }
    .macneed-gift-category-archive-grid-wrap .macneed-search-card__body {
        padding: 1rem 1.15rem 1.15rem;
    }
    .macneed-gift-category-archive-grid-wrap .macneed-giftcard-archive-card__price-value {
        font-size: 21px;
    }
    .macneed-gift-category-archive-grid-wrap .macneed-giftcard-archive-card__price-label {
        font-size: 13px;
    }
    .macneed-gift-category-archive-grid-wrap .macneed-giftcard-archive-card__price-unit {
        font-size: 14px;
    }
}

/* Search products — make giftcard cards exactly like giftcards archive cards */
.macneed-search-page .macneed-search-card--product.macneed-giftcard-archive-card {
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(35, 69, 95, 0.08);
    border: 1px solid rgba(35, 69, 95, 0.08);
}

.macneed-search-page .macneed-search-card--product.macneed-giftcard-archive-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 44px rgba(35, 69, 95, 0.13);
}

.macneed-search-page .macneed-search-card--product.macneed-giftcard-archive-card .macneed-search-card__thumb {
    aspect-ratio: 1 / 1;
    max-height: none;
    min-height: 0;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #fafbfc 0%, #f3f4f6 100%);
}

.macneed-search-page .macneed-search-card--product.macneed-giftcard-archive-card .macneed-search-card__thumb img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    margin: 0;
    flex-shrink: 0;
}

.macneed-search-page .macneed-search-card--product.macneed-giftcard-archive-card .macneed-search-card__body {
    padding: 0.85rem 1rem 1.05rem;
    gap: 0;
    text-align: center;
}

.macneed-search-page .macneed-search-card--product.macneed-giftcard-archive-card .macneed-search-card__title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
    color: #1d1d1f;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.85em;
    letter-spacing: -0.01em;
    text-align: center;
}

.macneed-search-page .macneed-search-card--product.macneed-giftcard-archive-card .macneed-giftcard-archive-card__meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
    flex: 1;
    justify-content: flex-end;
}

.macneed-search-page .macneed-search-card--product.macneed-giftcard-archive-card .macneed-giftcard-archive-card__flags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    padding: 6px 8px;
    background: rgba(35, 69, 95, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(35, 69, 95, 0.06);
}

.macneed-search-page .macneed-search-card--product.macneed-giftcard-archive-card .macneed-giftcard-archive-card__flag-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.07);
}

.macneed-search-page .macneed-search-card--product.macneed-giftcard-archive-card .macneed-giftcard-archive-card__flag {
    width: 28px;
    height: 21px;
    object-fit: cover;
    display: block;
}

.macneed-search-page .macneed-search-card--product.macneed-giftcard-archive-card .macneed-giftcard-archive-card__start-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    padding-top: 4px;
}

.macneed-search-page .macneed-search-card--product.macneed-giftcard-archive-card .macneed-giftcard-archive-card__price-label {
    font-size: 12px;
    font-weight: 500;
    color: #86868b;
    letter-spacing: 0.01em;
}

.macneed-search-page .macneed-search-card--product.macneed-giftcard-archive-card .macneed-giftcard-archive-card__price-row {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    line-height: 1.25;
}

.macneed-search-page .macneed-search-card--product.macneed-giftcard-archive-card .macneed-giftcard-archive-card__price-value {
    font-size: 19px;
    font-weight: 700;
    color: #2997fc;
    letter-spacing: 0.02em;
}

.macneed-search-page .macneed-search-card--product.macneed-giftcard-archive-card .macneed-giftcard-archive-card__price-unit {
    font-size: 13px;
    font-weight: 600;
    color: #23455f;
    opacity: 0.9;
}

@media (max-width: 767.98px) {
    .macneed-search-page .macneed-search-card--product.macneed-giftcard-archive-card .macneed-search-card__thumb {
        padding: 10px 12px;
    }
}

@media (min-width: 768px) {
    .macneed-search-page .macneed-search-card--product.macneed-giftcard-archive-card .macneed-search-card__thumb {
        padding: 14px 18px;
    }
    .macneed-search-page .macneed-search-card--product.macneed-giftcard-archive-card .macneed-search-card__title {
        font-size: 16px;
    }
    .macneed-search-page .macneed-search-card--product.macneed-giftcard-archive-card .macneed-search-card__body {
        padding: 1rem 1.15rem 1.15rem;
    }
    .macneed-search-page .macneed-search-card--product.macneed-giftcard-archive-card .macneed-giftcard-archive-card__price-value {
        font-size: 21px;
    }
    .macneed-search-page .macneed-search-card--product.macneed-giftcard-archive-card .macneed-giftcard-archive-card__price-label {
        font-size: 13px;
    }
    .macneed-search-page .macneed-search-card--product.macneed-giftcard-archive-card .macneed-giftcard-archive-card__price-unit {
        font-size: 14px;
    }
}

.macneed-search-card__excerpt {
    font-size: 13px;
    color: #86868b;
    margin: 0;
    line-height: 1.6;
}

.macneed-search-pagination {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
}

.macneed-search-pagination .pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.macneed-search-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    min-height: 2.5rem;
    padding: 0 0.65rem;
    border-radius: 10px;
    background: #fff;
    border: 1px solid rgba(35, 69, 95, 0.12);
    color: #23455f;
    text-decoration: none;
    font-size: 14px;
}

.macneed-search-pagination .page-numbers.current {
    background: #2997fc;
    border-color: #2997fc;
    color: #fff;
}

.macneed-search-pagination .page-numbers:hover:not(.current) {
    border-color: rgba(41, 151, 252, 0.5);
    color: #2997fc;
}

.macneed-search-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(35, 69, 95, 0.08);
    max-width: 36rem;
    margin: 0 auto;
}

.macneed-search-empty p {
    margin: 0 0 0.75rem;
    color: #23455f;
    line-height: 1.65;
}

.macneed-search-empty__hint {
    font-size: 14px;
    color: #86868b !important;
}

.macneed-search-empty__hint a {
    color: #2997fc;
    text-decoration: none;
    font-weight: 500;
}

.macneed-search-empty__hint a:hover {
    text-decoration: underline;
}

/* ============================================
   My Account Page
   ============================================ */
.woocommerce-account .site-main,
.woocommerce-account main,
.woocommerce-account .content-area {
    background: #f5f5f7;
}

.woocommerce-account .woocommerce {
    max-width: 1180px;
    margin: 0 auto;
    padding: 36px 16px 56px;
    display: flex;
    flex-direction: row-reverse;
    gap: 18px;
    align-items: flex-start;
    font-family: 'Vazirmatn', sans-serif;
}

.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce .um-account-side {
    width: 290px;
    min-width: 290px;
    background: #e9ebef;
    border-radius: 24px;
    padding: 18px 14px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.woocommerce-account .woocommerce-MyAccount-content,
.woocommerce-account .woocommerce .um-account-main {
    flex: 1 1 auto;
    min-width: 0;
    background: #e9ebef;
    border-radius: 24px;
    padding: 26px 22px 30px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li {
    margin: 0 0 4px;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border-radius: 12px;
    padding: 10px 12px;
    color: #23455f;
    font-size: 13px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
    background: #f8f9fb;
    color: #23455f;
}

.woocommerce-account .woocommerce-MyAccount-content h2,
.woocommerce-account .woocommerce-MyAccount-content h3,
.woocommerce-account .woocommerce-MyAccount-content legend,
.woocommerce-account .woocommerce-MyAccount-content .entry-title {
    font-size: 20px;
    color: #23455f;
    margin: 0 0 16px;
    font-weight: 700;
}

.woocommerce-account .woocommerce-MyAccount-content p,
.woocommerce-account .woocommerce-MyAccount-content label,
.woocommerce-account .woocommerce-MyAccount-content span,
.woocommerce-account .woocommerce-MyAccount-content li {
    font-family: 'Vazirmatn', sans-serif !important;
    color: #23455f;
    font-size: 13px;
}

.woocommerce-account .woocommerce-MyAccount-content form {
    display: block;
}

.woocommerce-account .woocommerce-MyAccount-content .form-row,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-form-row {
    margin-bottom: 14px;
}

.woocommerce-account .woocommerce-MyAccount-content input[type="text"],
.woocommerce-account .woocommerce-MyAccount-content input[type="email"],
.woocommerce-account .woocommerce-MyAccount-content input[type="tel"],
.woocommerce-account .woocommerce-MyAccount-content input[type="password"],
.woocommerce-account .woocommerce-MyAccount-content input[type="number"],
.woocommerce-account .woocommerce-MyAccount-content select,
.woocommerce-account .woocommerce-MyAccount-content textarea {
    width: 100% !important;
    min-height: 42px;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    background: #fff !important;
    color: #1d1d1f !important;
    font-size: 13px !important;
    padding: 10px 12px !important;
    box-shadow: none !important;
    font-family: 'Vazirmatn', sans-serif !important;
}

.woocommerce-account .woocommerce-MyAccount-content input:focus,
.woocommerce-account .woocommerce-MyAccount-content select:focus,
.woocommerce-account .woocommerce-MyAccount-content textarea:focus {
    border-color: #4e86b0 !important;
    box-shadow: 0 0 0 3px rgba(78, 134, 176, 0.12) !important;
    outline: none !important;
}

.woocommerce-account .woocommerce-MyAccount-content input[type="checkbox"],
.woocommerce-account .woocommerce-MyAccount-content input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: #23455f;
}

.woocommerce-account .woocommerce-MyAccount-content button,
.woocommerce-account .woocommerce-MyAccount-content .button,
.woocommerce-account .woocommerce-MyAccount-content input[type="submit"] {
    border: none !important;
    border-radius: 999px !important;
    background: #2997fc !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    min-height: 44px;
    padding: 10px 24px !important;
    font-family: 'Vazirmatn', sans-serif !important;
    box-shadow: 0 4px 14px rgba(41, 151, 252, 0.28) !important;
    transition: background 0.2s ease, box-shadow 0.2s ease !important;
}

.woocommerce-account .woocommerce-MyAccount-content button:hover,
.woocommerce-account .woocommerce-MyAccount-content .button:hover,
.woocommerce-account .woocommerce-MyAccount-content input[type="submit"]:hover {
    background: #1a7fd4 !important;
    box-shadow: 0 6px 18px rgba(41, 151, 252, 0.35) !important;
}

@media (max-width: 991px) {
    .woocommerce-account .woocommerce {
        flex-direction: column;
        padding-top: 24px;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation,
    .woocommerce-account .woocommerce .um-account-side,
    .woocommerce-account .woocommerce-MyAccount-content,
    .woocommerce-account .woocommerce .um-account-main {
        width: 100%;
        min-width: 0;
    }
}

/* Fallback for Ultimate Member account markup */
.um-account {
    max-width: 1180px;
    margin: 0 auto !important;
    padding: 36px 16px 56px !important;
    display: flex !important;
    flex-direction: row-reverse !important;
    gap: 18px !important;
    align-items: flex-start !important;
    font-family: 'Vazirmatn', sans-serif !important;
    background: #f5f5f7;
}

.um-account .um-account-side {
    width: 290px !important;
    min-width: 290px !important;
    background: #e9ebef !important;
    border-radius: 24px !important;
    padding: 18px 14px !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.um-account .um-account-main {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    background: #e9ebef !important;
    border-radius: 24px !important;
    padding: 26px 22px 30px !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.um-account .um-account-nav a {
    display: flex !important;
    align-items: center !important;
    border-radius: 12px !important;
    padding: 10px 12px !important;
    color: #23455f !important;
    font-size: 13px !important;
    text-decoration: none !important;
}

.um-account .um-account-nav a.current,
.um-account .um-account-nav a:hover {
    background: #f8f9fb !important;
}

.um-account .um-account-main input[type="text"],
.um-account .um-account-main input[type="email"],
.um-account .um-account-main input[type="tel"],
.um-account .um-account-main input[type="password"],
.um-account .um-account-main input[type="number"],
.um-account .um-account-main select,
.um-account .um-account-main textarea {
    width: 100% !important;
    min-height: 42px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    background: #fff !important;
    color: #1d1d1f !important;
    font-size: 13px !important;
    padding: 10px 12px !important;
    font-family: 'Vazirmatn', sans-serif !important;
}

.um-account .um-account-main input[type="checkbox"],
.um-account .um-account-main input[type="radio"] {
    width: 16px !important;
    height: 16px !important;
    accent-color: #23455f;
}

.um-account .um-button,
.um-account .um-account-main button,
.um-account .um-account-main input[type="submit"] {
    border: none !important;
    border-radius: 999px !important;
    background: #2997fc !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    min-height: 44px !important;
    padding: 10px 24px !important;
    box-shadow: 0 4px 14px rgba(41, 151, 252, 0.28) !important;
    transition: background 0.2s ease, box-shadow 0.2s ease !important;
    font-family: 'Vazirmatn', sans-serif !important;
}

.um-account .um-button:hover,
.um-account .um-account-main button:hover,
.um-account .um-account-main input[type="submit"]:hover {
    background: #1a7fd4 !important;
    box-shadow: 0 6px 18px rgba(41, 151, 252, 0.35) !important;
}

@media (max-width: 991px) {
    .um-account {
        flex-direction: column !important;
        padding-top: 24px !important;
    }

    .um-account .um-account-side,
    .um-account .um-account-main {
        width: 100% !important;
        min-width: 0 !important;
    }
}

/* Force override for /my-account page */
body[class*="my-account"] .site-main,
body[class*="my-account"] main,
body[class*="my-account"] .content-area {
    background: #f5f5f7 !important;
}

body[class*="my-account"] .um-account,
body[class*="my-account"] .woocommerce {
    max-width: 1180px !important;
    margin: 0 auto !important;
    padding: 36px 16px 56px !important;
    display: flex !important;
    flex-direction: row-reverse !important;
    gap: 18px !important;
    align-items: flex-start !important;
    font-family: 'Vazirmatn', sans-serif !important;
}

body[class*="my-account"] .um-account-side,
body[class*="my-account"] .woocommerce-MyAccount-navigation {
    width: 290px !important;
    min-width: 290px !important;
    background: #e9ebef !important;
    border-radius: 24px !important;
    padding: 18px 14px !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55) !important;
}

body[class*="my-account"] .um-account-main,
body[class*="my-account"] .woocommerce-MyAccount-content {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    background: #e9ebef !important;
    border-radius: 24px !important;
    padding: 26px 22px 30px !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55) !important;
}

body[class*="my-account"] input[type="text"],
body[class*="my-account"] input[type="email"],
body[class*="my-account"] input[type="tel"],
body[class*="my-account"] input[type="password"],
body[class*="my-account"] input[type="number"],
body[class*="my-account"] select,
body[class*="my-account"] textarea {
    width: 100% !important;
    min-height: 42px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    background: #fff !important;
    color: #1d1d1f !important;
    font-size: 13px !important;
    padding: 10px 12px !important;
    box-shadow: none !important;
    font-family: 'Vazirmatn', sans-serif !important;
}

body[class*="my-account"] button,
body[class*="my-account"] .button,
body[class*="my-account"] input[type="submit"] {
    border: none !important;
    border-radius: 999px !important;
    background: #2997fc !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    min-height: 44px !important;
    padding: 10px 24px !important;
    box-shadow: 0 4px 14px rgba(41, 151, 252, 0.28) !important;
    font-family: 'Vazirmatn', sans-serif !important;
}

body[class*="my-account"] button:hover,
body[class*="my-account"] .button:hover,
body[class*="my-account"] input[type="submit"]:hover {
    background: #1a7fd4 !important;
    box-shadow: 0 6px 18px rgba(41, 151, 252, 0.35) !important;
}

@media (max-width: 991px) {
    body[class*="my-account"] .um-account,
    body[class*="my-account"] .woocommerce {
        flex-direction: column !important;
        padding-top: 24px !important;
    }

    body[class*="my-account"] .um-account-side,
    body[class*="my-account"] .um-account-main,
    body[class*="my-account"] .woocommerce-MyAccount-navigation,
    body[class*="my-account"] .woocommerce-MyAccount-content {
        width: 100% !important;
        min-width: 0 !important;
    }
}

/* Custom My Account Template */
.macneed-account-page {
    background: #ffffff;
    padding: 32px 0 52px;
    font-family: 'Vazirmatn', sans-serif;
    direction: rtl;
    text-align: right;
}

.macneed-account-shell {
    background: #ffffff;
    border-radius: 26px;
    padding: 18px;
}

.macneed-account-layout {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 18px;
}

.macneed-account-sidebar {
    width: 292px;
    min-width: 292px;
    order: 1;
    margin-top: 0 !important;
}

.macneed-account-main {
    order: 2;
    margin-top: 0 !important;
}

.macneed-account-title {
    font-size: 27px;
    font-weight: 700;
    margin: 0 0 16px;
    background: linear-gradient(90deg, #4E86B0, #23455F);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #23455f;
}

.macneed-account-usercard {
    background: #e9ebef;
    border-radius: 22px;
    padding: 20px 16px;
    text-align: center;
    margin-bottom: 12px;
}

.macneed-account-usercard .avatar {
    border-radius: 50%;
    width: 92px;
    height: 92px;
}

.macneed-account-usercard h3 {
    margin: 10px 0 4px;
    font-size: 15px;
    color: #23455f;
}

.macneed-account-usercard p {
    margin: 0;
    font-size: 12px;
    color: #23455f;
}

.macneed-account-score {
    margin-top: 12px;
    background: #f8f9fb;
    border-radius: 12px;
    padding: 4px 5px;
    font-size: 13px;
    color: #23455f;
}

.macneed-account-nav {
    background: #e9ebef;
    border-radius: 22px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.macneed-account-nav a {
    text-decoration: none;
    color: #23455f;
    border-radius: 12px;
    padding: 11px 12px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s ease;
}

.macneed-account-nav a.is-active,
.macneed-account-nav a:hover {
    background: #f8f9fb;
}

.macneed-account-main {
    flex: 1 1 auto;
    min-width: 0;
    background: #e9ebef;
    border-radius: 22px;
    padding: 28px 24px 30px;
}

.macneed-account-main h3 {
    margin: 0 0 20px;
    font-size: 20px;
    color: #23455f;
    font-weight: 700;
}

.macneed-account-notice {
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 14px;
    font-size: 13px;
}

.macneed-account-notice.is-success {
    background: #eaf7ee;
    color: #246b3a;
}

.macneed-account-notice.is-error {
    background: #fdeeee;
    color: #8c2f2f;
}

.macneed-account-form .field {
    margin-bottom: 14px;
}

.macneed-account-form label,
.macneed-account-page .block-label {
    display: block;
    margin-bottom: 8px !important;
    color: #23455f !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.55 !important;
}

.macneed-account-page .macneed-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 10px;
}

.macneed-account-page .macneed-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.macneed-account-page .macneed-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.macneed-account-page input[type="text"],
.macneed-account-page input[type="email"],
.macneed-account-page input[type="password"],
.macneed-account-page textarea {
    width: 100% !important;
    border: 1px solid #dfe3ea !important;
    border-radius: 11px !important;
    min-height: 44px !important;
    background: #fff !important;
    font-size: 13px !important;
    color: #1d1d1f !important;
    padding: 10px 12px !important;
    font-family: 'Vazirmatn', sans-serif !important;
    line-height: 1.45 !important;
    box-shadow: none !important;
}

.macneed-account-page textarea {
    min-height: 96px !important;
    resize: vertical;
}

.macneed-account-page input:focus,
.macneed-account-page textarea:focus {
    border-color: #4e86b0 !important;
    box-shadow: 0 0 0 3px rgba(78, 134, 176, 0.12) !important;
    outline: none !important;
}

.macneed-account-page .radio-pill {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: #fff !important;
    border-radius: 11px !important;
    border: 1px solid #dfe3ea !important;
    min-height: 44px;
    padding: 0 12px;
    font-size: 13px;
    color: #23455f;
}

.macneed-account-page .radio-pill input {
    width: 16px;
    height: 16px;
    accent-color: #23455f;
}

.macneed-account-page .field-narrow {
    max-width: 320px;
}

.macneed-primary-btn {
    border: none;
    border-radius: 999px;
    background: #2997fc;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    min-height: 46px;
    padding: 10px 32px;
    box-shadow: 0 4px 14px rgba(41, 151, 252, 0.28);
    transition: background 0.2s ease, box-shadow 0.2s ease;
    font-family: 'Vazirmatn', sans-serif;
}

.macneed-primary-btn:hover {
    background: #1a7fd4;
    box-shadow: 0 6px 18px rgba(41, 151, 252, 0.35);
}

.macneed-account-form .macneed-primary-btn {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.macneed-orders-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.macneed-orders-wrap.is-loading,
.macneed-orders-list.is-loading {
    opacity: 0.55;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.macneed-orders-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
    padding: 12px 0 10px;
}

.macneed-orders-pagination .macneed-orders-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 10px;
    font-size: 14px;
    font-weight: 600;
    color: #23455f;
    text-decoration: none;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.macneed-orders-pagination .macneed-orders-page-link:hover {
    border-color: #2997fc;
    color: #2997fc;
}

.macneed-orders-pagination .macneed-orders-page-link.is-current {
    background: #2997fc;
    border-color: #2997fc;
    color: #fff;
    cursor: default;
    pointer-events: none;
}

.macneed-orders-list .order-item {
    display: grid;
    grid-template-columns: 1.2fr 1.3fr 1fr 1fr;
    gap: 10px;
    align-items: center;
    background: #fff;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 14px;
    color: #23455f;
}

.macneed-orders-list .order-gift-dropdown {
    grid-column: 1 / -1;
    border-top: 1px dashed #d8dee6;
    margin-top: 6px;
    padding-top: 8px;
}

.macneed-orders-list .order-gift-dropdown summary {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: #23455f;
    font-size: 13px;
    font-weight: 600;
    background: #eef5fb;
    border: 1px solid #d2e3f2;
    border-radius: 999px;
    padding: 6px 12px;
}

.macneed-orders-list .order-gift-dropdown summary::-webkit-details-marker {
    display: none;
}

.macneed-orders-list .order-gift-dropdown summary::before {
    content: "▾";
    font-size: 12px;
    transform: rotate(-90deg);
    transition: transform 0.2s ease;
}

.macneed-orders-list .order-gift-dropdown[open] summary::before {
    transform: rotate(0deg);
}

.order-gift-dropdown-body {
    margin-top: 10px;
    background: #f8fbff;
    border: 1px solid #dce8f4;
    border-radius: 10px;
    padding: 10px 12px;
}

.order-gift-group + .order-gift-group {
    margin-top: 10px;
}

.order-gift-group strong {
    display: block;
    font-size: 13px;
    color: #23455f;
    margin-bottom: 6px;
}

.order-gift-group ul {
    margin: 0;
    padding-right: 18px;
}

.order-gift-group li {
    margin-bottom: 4px;
}

.order-gift-group code {
    background: #fff;
    border: 1px dashed #4e86b0;
    border-radius: 7px;
    padding: 4px 8px;
    direction: ltr;
    unicode-bidi: plaintext;
    color: #1a3a52;
}

.macneed-address-card {
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    font-size: 14px;
    color: #23455f;
    line-height: 1.9;
}

@media (max-width: 991px) {
    .macneed-account-shell {
        padding: 14px;
        border-radius: 20px;
    }

    .macneed-account-layout {
        flex-direction: column;
    }

    .macneed-account-sidebar {
        width: 100%;
        min-width: 0;
    }

    .macneed-account-page .macneed-grid.two,
    .macneed-account-page .macneed-grid.three {
        grid-template-columns: 1fr;
    }

    .macneed-orders-list .order-item {
        grid-template-columns: 1fr;
    }

    .macneed-orders-list .order-gift-dropdown summary {
        width: 100%;
        justify-content: center;
    }
}

/* ---------- آرشیو دسته‌های مک (فیلتر + گرید) ---------- */
.macArchiveShell {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.macArchiveShell #macArchiveAjaxRoot {
    min-width: 0;
    max-width: 100%;
}

.macArchiveShell #macArchiveAjaxRoot.macArchiveAjaxLoading {
    opacity: 0.65;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.macArchiveShell .macArchivePageTitle.sectionTitle {
    font-size: 28px;
    margin-bottom: 16px;
}

.macArchiveShell .macArchiveSortBar {
    margin: 24px 0 32px;
}

.macArchiveMain {
    padding-bottom: 60px;
    max-width: 100%;
    overflow: hidden;
}

.macArchiveShell .macArchiveMain .row {
    min-width: 0;
}

.macArchiveShell .macArchiveMain .row > [class*="col-"] {
    min-width: 0;
}

.macArchiveHeader .archive-term-description {
    max-width: 48rem;
    margin-inline: auto;
    color: #646970;
    font-size: 15px;
    line-height: 1.8;
}

.macArchiveSidebar {
    position: sticky;
    top: 100px;
}

.macArchiveFilterCard {
    background: #f6f7f7;
    border: 1px solid #e8e8ed;
    border-radius: 24px;
    padding: 18px 16px;
    margin-bottom: 14px;
}

.macArchiveFilterTitle {
    font-size: 15px;
    font-weight: 600;
    color: #23455f;
    margin: 0 0 10px;
}

.macArchiveFilterHint {
    font-size: 12px;
    color: #80889a;
    margin: 0 0 10px;
}

.macArchivePriceRow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px;
}

.macArchiveInput {
    flex: 1 1 40%;
    min-width: 0;
    border: 1px solid #dcdcde;
    border-radius: 12px;
    padding: 4px 5px;
    font-size: 14px;
}

.macArchivePriceSep {
    font-size: 13px;
    color: #646970;
}

.macArchiveFilterChecks {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.macArchiveCheck {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 13px;
    color: #23455f;
    margin: 0;
    cursor: pointer;
}

.macArchiveFilterActions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.macArchiveBtnApply {
    border: 0;
    border-radius: 50px;
    padding: 10px 16px;
    background: #2997fc;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.macArchiveBtnApply:hover {
    background: #1d7fd8;
    color: #fff;
}

.macArchiveBtnClear {
    text-align: center;
    font-size: 13px;
    color: #80889a;
    text-decoration: none;
}

.macArchiveBtnClear:hover {
    color: #23455f;
}

.macArchiveMobileFilterToggle {
    display: none;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 2px;
    margin-bottom: 14px;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    background: #fff;
    color: #23455f;
    font-size: 14px;
}

.macArchiveShell .macProductsGrid.macArchiveGrid {
    padding-top: 0;
    padding-bottom: 24px;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.macArchiveShell .macArchiveProducts.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr));
    gap: 1.25rem;
    margin-bottom: 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    align-items: stretch;
}

.macArchiveShell .macArchiveProducts .productCardTools.macArchiveProductCard {
    display: flex;
    flex-direction: column;
    align-items: center;
    float: none !important;
    width: 100% !important;
    max-width: 100%;
    min-width: 0;
    flex: 1 1 auto !important;
    box-sizing: border-box;
    position: relative;
}

.macArchiveShell .macArchiveProducts .productCardTools .img {
    width: 100%;
    max-width: 100%;
    height: 188px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.macArchiveShell .macArchiveProducts .productCardTools .img > a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.macArchiveShell .macArchiveProducts .productCardTools .img img,
.macArchiveShell .macArchiveProducts .productCardTools .img picture img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
}

.macArchiveProductCard {
    height: 100%;
}

.macArchivePagination {
    margin-top: 32px;
}

.macArchivePagination .page-numbers {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 3px;
    padding: 0;
    margin: 0;
    list-style: none;
    justify-content: center;
}

.macArchivePagination a.page-numbers,
.macArchivePagination span.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid #e8e8ed;
    color: #23455f;
    text-decoration: none;
    font-size: 14px;
}

.macArchivePagination span.page-numbers.current {
    background: #f5f5f7;
    font-weight: 600;
}

@media (max-width: 991px) {
    .macArchiveMobileFilterToggle {
        display: flex;
    }

    .macArchiveSidebar {
        position: static;
        display: none;
        margin-bottom: 20px;
    }

    .macArchiveSidebar.is-open {
        display: block;
    }

    .macArchiveShell .macArchiveProducts.products-grid {
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr));
    }
}

/* ---------- نظرات خریداران (سینگل محصول) — مینیمال مک‌نید ---------- */
.screen-reader-text {
    border: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    white-space: nowrap;
}

.macneed-section-product-reviews .macneed-product-reviews-inner {
    max-width: 48rem;
    margin-inline: auto;
}

.macneed-wc-reviews {
    margin-top: 0.5rem;
}

.macneed-wc-reviews__empty,
.macneed-wc-reviews__none,
.macneed-wc-reviews__verify,
.macneed-wc-reviews__must-login {
    font-size: 14px;
    line-height: 1.75;
    color: #646970;
    margin: 0;
    text-align: center;
}

.macneed-wc-reviews__commentlist {
    list-style: none;
    margin: 0 0 2rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.macneed-wc-reviews .commentlist .children {
    list-style: none;
    margin: 0.75rem 0 0;
    padding: 0 1rem 0 0;
    border-right: 2px solid #ebebed;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.macneed-wc-reviews .macneed-review {
    margin: 0;
    padding: 0;
    border: 0;
}

.macneed-review__card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.35rem;
    background: #fff;
    border: 1px solid #ebebed;
    border-radius: 24px;
    box-sizing: border-box;
}

.macneed-wc-reviews .woocommerce-review__pending {
    font-style: normal;
    color: #80889a;
    font-size: 13px;
}

.macneed-wc-reviews .comment_container > img.avatar {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50%;
    flex-shrink: 0;
    border: 1px solid #ebebed;
}

.macneed-review__body {
    flex: 1;
    min-width: 0;
}

.macneed-review__rating-wrap {
    margin: 0 0 0.35rem;
}

.macneed-review__rating-caption {
    margin: 0 0 0.35rem;
    font-size: 13px;
    font-weight: 500;
    color: #2997fc;
}

.macneed-wc-reviews .star-rating {
    float: none;
    margin: 0 0 0.5rem;
    font-size: 14px;
    color: #2997fc;
}

.macneed-wc-reviews .star-rating::before {
    color: #dcdcde;
}

.macneed-wc-reviews .star-rating span::before {
    color: #2997fc;
}

.macneed-review__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.75rem;
    margin: 0 0 0.5rem;
    font-size: 13px;
    color: #80889a;
}

.macneed-review__author {
    font-size: 15px;
    font-weight: 600;
    color: #23455f;
}

.macneed-review__verified {
    font-size: 12px;
    font-weight: 500;
    color: #2997fc;
    background: rgba(41, 151, 252, 0.1);
    padding: 2px 8px;
    border-radius: 999px;
}

.macneed-review__date {
    font-size: 12px;
    color: #a0a8b8;
}

.macneed-wc-reviews .comment-text .description {
    font-size: 14px;
    line-height: 1.85;
    color: #23455f;
    font-weight: 400;
}

.macneed-wc-reviews .comment-text .description p {
    margin: 0;
}

.macneed-wc-reviews__pagination {
    margin-top: 1.5rem;
}

.macneed-wc-reviews__pagination .page-numbers {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 3px;
    padding: 0;
    margin: 0;
    list-style: none;
    justify-content: center;
}

.macneed-wc-reviews__pagination a.page-numbers,
.macneed-wc-reviews__pagination span.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    padding: 6px 10px;
    border-radius: 12px;
    border: 1px solid #e8e8ed;
    color: #23455f;
    text-decoration: none;
    font-size: 13px;
}

.macneed-wc-reviews__pagination span.page-numbers.current {
    background: #f5f5f7;
    font-weight: 600;
}

.macneed-wc-reviews__form-wrap {
    margin-top: 2rem;
    padding: 1.5rem 1.35rem 1.75rem;
    background: #f5f5f7;
    border: 1px solid #ebebed;
    border-radius: 28px;
    box-sizing: border-box;
}

.macneed-wc-reviews__reply-title {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #23455f;
    margin: 0 0 1.25rem;
}

.macneed-wc-reviews__form .macneed-wc-reviews__field {
    margin-bottom: 1rem;
}

.macneed-wc-reviews__form label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #23455f;
    margin-bottom: 6px;
}

.macneed-wc-reviews__input,
.macneed-wc-reviews__textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border: 1px solid #dcdcde;
    border-radius: 14px;
    padding: 10px 12px;
    font-size: 14px;
    color: #23455f;
    background: #fff;
    font-family: inherit;
}

.macneed-wc-reviews__textarea {
    min-height: 120px;
    resize: vertical;
}

.macneed-wc-reviews__rating-field {
    margin-bottom: 1rem;
}

.macneed-wc-reviews__rating-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #23455f;
    margin-bottom: 10px;
    text-align: center;
}

.macneed-rating-select-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.macneed-rating-stars {
	direction: rtl;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 2px;
	margin-bottom: 0.25rem;
}

/* لینک‌های «۱ از ۵ ستاره» که اسکریپت پیش‌فرض ووکامرس به #rating تزریق می‌کرد — اگر جایی باقی ماند مخفی شود */
.macneed-wc-reviews #respond p.stars {
	display: none !important;
}

.macneed-rating-stars.macneed-rating-stars--error {
    outline: 2px solid #c53030;
    outline-offset: 4px;
    border-radius: 12px;
}

.macneed-rating-star {
    background: none;
    border: 0;
    margin: 0;
    padding: 4px 6px;
    font-size: 32px;
    line-height: 1;
    color: #dcdcde;
    cursor: pointer;
    transition: color 0.15s ease, transform 0.12s ease;
}

.macneed-rating-star span {
    display: block;
}

.macneed-rating-star:hover,
.macneed-rating-star:focus-visible {
    color: #79bcef;
    transform: scale(1.06);
    outline: none;
}

.macneed-rating-star.is-active {
    color: #2997fc;
}

.macneed-wc-reviews .commentlist .children {
    list-style: none;
    margin: 0.75rem 0 0;
    padding: 0;
}

.macneed-wc-reviews ol.commentlist .children > .macneed-review {
    margin-inline-start: clamp(0.75rem, 4vw, 1.75rem);
    padding-inline-start: 1rem;
    border-inline-start: 2px solid #ebebed;
}

.macneed-review__reply {
    margin-top: 0.75rem;
}

.macneed-review__reply .comment-reply-link {
    font-size: 13px;
    font-weight: 500;
    color: #2997fc;
    text-decoration: none;
}

.macneed-review__reply .comment-reply-link:hover {
    text-decoration: underline;
    color: #1d7fd8;
}

#respond .comment-reply-title small,
#respond #cancel-comment-reply-link {
    font-size: 13px;
    font-weight: 500;
}

#respond #cancel-comment-reply-link {
    color: #80889a;
    margin-inline-start: 0.5rem;
}

.macneed-wc-reviews__submit {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-top: 0.5rem;
    padding: 12px 28px !important;
    border: 0 !important;
    border-radius: 50px !important;
    background: #2997fc !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s ease;
}

.macneed-wc-reviews__submit:hover {
    background: #1d7fd8 !important;
    color: #fff !important;
}

.macneed-wc-reviews .required {
    color: #c53030;
}

@media (max-width: 576px) {
    .macneed-review__card {
        flex-direction: column;
        align-items: stretch;
    }

    .macneed-wc-reviews .comment_container > img.avatar {
        align-self: flex-start;
    }
}

/* ============================================
   Mobile hard-fixes: login/register + homepage alignment
   ============================================ */

/* Center homepage images & description blocks (any viewport) */
.DescSection .imgSamp,
.DescSection .imgSamp img,
.productCard .img,
.productCard .img img {
    text-align: center;
}

@media (max-width: 991px) {
    .DescSection .imgSamp,
    .DescSection .imgSamp img,
    .productCard .img,
    .productCard .img img {
        display: block !important;
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: center !important;
        float: none !important;
    }

    .DescSection .imgSamp img,
    .productCard .img img {
        max-width: 80% !important;
        height: auto !important;
    }

    .DescSection .row,
    .DescSection .row > [class*="col-"] {
        text-align: center !important;
    }
}

@media (max-width: 767px) {
    /* === Login / Register / Lostpassword — Mobile rewrite === */
    .login-page {
        background: #ffffff !important;
        padding: 18px 0 48px !important;
        position: relative;
        z-index: 5;
    }

    .login-page .container,
    .login-page .container-fluid {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 14px !important;
        padding-right: 14px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .login-page .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
        --bs-gutter-x: 0 !important;
    }

    .login-page .row > [class*="col-"] {
        padding-left: 0 !important;
        padding-right: 0 !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .login-wrapper {
        display: block !important;
        flex-direction: column !important;
        gap: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        direction: rtl !important;
        background: transparent !important;
        border-radius: 0 !important;
    }

    .login-card {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-height: 0 !important;
        padding: 22px 16px 24px !important;
        background: #eef0f3 !important;
        border-radius: 18px !important;
        box-sizing: border-box !important;
        direction: rtl !important;
        box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06) !important;
    }

    .login-illustration,
    .login-illustration img {
        display: none !important;
    }

    .login-card .tml,
    .login-card .tml form,
    .login-card form,
    .login-card .custom-login-form,
    .login-card .custom-login-form form {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    .login-card .tml-field-wrap,
    .login-card .form-group-login {
        display: block !important;
        width: 100% !important;
        margin: 0 0 14px !important;
    }

    .login-card .tml-field-wrap label,
    .login-card .form-group-login label {
        display: block !important;
        width: auto !important;
        text-align: right !important;
        font-size: 13px !important;
        margin: 0 0 6px !important;
        color: #23455f !important;
        background: transparent !important;
    }

    .login-card .tml-field-wrap input[type="text"],
    .login-card .tml-field-wrap input[type="email"],
    .login-card .tml-field-wrap input[type="password"],
    .login-card .input-login,
    .login-card input[type="text"],
    .login-card input[type="email"],
    .login-card input[type="password"] {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 44px !important;
        padding: 10px 12px !important;
        border: 1px solid #dde2ea !important;
        border-radius: 10px !important;
        background: #ffffff !important;
        box-sizing: border-box !important;
        font-size: 14px !important;
        margin: 0 !important;
    }

    .login-card .login-header {
        margin-bottom: 18px !important;
        text-align: center !important;
    }

    .login-card .login-header h2 {
        font-size: 18px !important;
        line-height: 1.5 !important;
        margin: 0 0 6px !important;
    }

    .login-card .login-header p,
    .login-card .login-header .login-register-hint {
        font-size: 12.5px !important;
        line-height: 1.7 !important;
        margin: 0 0 4px !important;
    }

    .login-card .login-options,
    .login-card .tml-rememberme-wrap {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 8px 12px !important;
        align-items: center !important;
        justify-content: space-between !important;
        margin: 6px 0 14px !important;
    }

    .login-card .login-options .remember-me,
    .login-card .tml-rememberme-wrap label,
    .login-card .tml-rememberme-wrap .remember-me {
        font-size: 12px !important;
        gap: 6px !important;
    }

    .login-card .forgot-password,
    .login-card .tml-rememberme-wrap .forgot-password {
        font-size: 12px !important;
    }

    .login-card .login-btn,
    .login-card .tml-submit-wrap input[type="submit"],
    .login-card .tml-submit-wrap button,
    .login-card input[name="wp-submit"],
    .login-card button[name="wp-submit"] {
        width: 100% !important;
        display: block !important;
        margin: 6px 0 12px !important;
        padding: 12px 16px !important;
        font-size: 14px !important;
        border-radius: 999px !important;
    }

    .login-card .register-link,
    .login-card .tml-links {
        font-size: 12.5px !important;
        text-align: center !important;
        margin-top: 6px !important;
    }

    /* === Homepage: center title/desc/cross-links/search on mobile === */
    .mainHead,
    .mainHead .title,
    .mainHead .desc,
    .crossLinks,
    .search {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .search form input,
    .search form input::placeholder {
        text-align: right !important;
    }

    .DescSection .imgSamp img,
    .productCard .img img,
    .imgSamp img {
        display: block !important;
        margin: 0 auto !important;
        max-width: 80% !important;
        height: auto !important;
        float: none !important;
    }
}
