
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Tahoma, Arial, sans-serif;
    direction: rtl;
    background-color: #fff7fa;
    color: #493640;
}

header {
    background-color: white;
    padding: 22px 8%;
    border-bottom: 1px solid #f5dce7;
}

header h2 {
    margin: 0;
    color: #d85b91;
}

.hero {
    text-align: center;
    padding: 90px 20px;
    background: linear-gradient(135deg, #fff0f6, #ffffff);
}

.hero h1 {
    font-size: 34px;
    color: #c74480;
    margin-bottom: 18px;
}

.hero p {
    color: #806b76;
    font-size: 17px;
    line-height: 2;
}

.hero button {
    background-color: #d85b91;
    color: white;
    border: none;
    border-radius: 30px;
    padding: 14px 32px;
    font-size: 16px;
    cursor: pointer;
}

.hero button:hover {
    background-color: #bd3d76;
}


/* ===== صفحه ورود مدیریت ===== */

.admin-login-page {
    min-height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    background: linear-gradient(135deg, #fff1f7, #fce4ef);
    font-family: Tahoma, Arial, sans-serif;
}

.login-container {
    width: 100%;
    max-width: 390px;
    box-sizing: border-box;
    padding: 35px 28px;
    background: #ffffff;
    border: 1px solid #f8d6e5;
    border-radius: 22px;
    box-shadow: 0 12px 40px rgba(199, 68, 128, 0.12);
    text-align: center;
}

.login-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.login-container h1 {
    color: #c74480;
    font-size: 27px;
    margin: 10px 0;
}

.login-container > p {
    color: #777;
    font-size: 14px;
    margin-bottom: 28px;
}

#login-form {
    display: flex;
    flex-direction: column;
    text-align: right;
    gap: 12px;
}

#login-form label {
    color: #444;
    font-size: 14px;
}

#admin-password {
    width: 100%;
    box-sizing: border-box;
    padding: 13px;
    border: 1px solid #ead5df;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
}

#admin-password:focus {
    border-color: #c74480;
    box-shadow: 0 0 0 3px rgba(199, 68, 128, 0.1);
}

#login-form button {
    padding: 13px;
    border: none;
    border-radius: 10px;
    background: #c74480;
    color: white;
    font-family: inherit;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s;
}

#login-form button:hover {
    background: #ad326b;
}

#login-message {
    color: #d32f2f;
    font-size: 13px;
    margin: 0;
}

.back-to-store {
    display: inline-block;
    margin-top: 24px;
    color: #c74480;
    text-decoration: none;
    font-size: 13px;
}

.back-to-store:hover {
    text-decoration: underline;
}

/* ===== صفحه جزئیات محصول ===== */

.product-detail-page {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
}

.product-detail-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 32px;
    padding: 30px;
    background: #fff;
    border: 1px solid #f5d9e6;
    border-radius: 22px;
    box-shadow: 0 10px 35px rgba(199, 68, 128, 0.08);
}

.product-detail-image {
    width: 100%;
    max-height: 440px;
    object-fit: contain;
    background: #fff5f9;
    border-radius: 16px;
}

.product-detail-card h1 {
    color: #c74480;
    font-size: 27px;
    line-height: 1.8;
}

.product-detail-card p {
    color: #666;
    line-height: 2;
    font-size: 15px;
}

.product-detail-card .product-price {
    color: #c74480;
    font-size: 23px;
    font-weight: bold;
    margin: 22px 0;
}

.product-detail-card button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: #c74480;
    color: white;
    font-family: inherit;
    font-size: 16px;
    cursor: pointer;
}

.product-detail-card button:hover {
    background: #ad326b;
}

.product-detail-card a {
    display: inline-block;
    margin-top: 20px;
    color: #c74480;
    text-decoration: none;
}

@media (max-width: 650px) {
    .product-detail-page {
        margin: 20px auto;
        padding: 14px;
    }

    .product-detail-card {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 20px;
    }

    .product-detail-image {
        max-height: 320px;
    }

    .product-detail-card h1 {
        font-size: 22px;
    }
}

/* ===== صفحه ثبت سفارش ===== */

.checkout-page {
    max-width: 720px;
    margin: 35px auto;
    padding: 20px;
}

.checkout-card {
    padding: 30px;
    background: #fff;
    border: 1px solid #f5d9e6;
    border-radius: 22px;
    box-shadow: 0 10px 35px rgba(199, 68, 128, 0.08);
}

.checkout-card h1 {
    margin-top: 0;
    color: #c74480;
    font-size: 26px;
}

.checkout-card > p {
    color: #777;
    line-height: 1.9;
}

#checkout-product {
    margin: 22px 0;
    padding: 16px;
    background: #fff3f8;
    border: 1px solid #f8d6e5;
    border-radius: 12px;
    color: #6f3450;
    line-height: 2;
}

#checkout-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 25px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field label {
    color: #444;
    font-size: 14px;
}

.form-field input {
    width: 100%;
    box-sizing: border-box;
    padding: 13px;
    border: 1px solid #ead5df;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    background: #fff;
}

.form-field input:focus {
    border-color: #c74480;
    box-shadow: 0 0 0 3px rgba(199, 68, 128, 0.1);
}

#checkout-form button {
    grid-column: 1 / -1;
    padding: 15px;
    border: none;
    border-radius: 12px;
    background: #c74480;
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
}

#checkout-form button:hover {
    background: #ad326b;
}

#checkout-message {
    grid-column: 1 / -1;
    margin: 0;
    color: #c74480;
    line-height: 1.8;
}

@media (max-width: 550px) {
    .checkout-page {
        padding: 14px;
        margin: 20px auto;
    }

    .checkout-card {
        padding: 20px;
    }

    #checkout-form {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    #checkout-form button,
    #checkout-message {
        grid-column: 1;
    }
}

/* ===== Coco Facial Header ===== */

.site-header {
    position: relative;
    z-index: 100;
    width: 100%;
    min-height: 76px;
    box-sizing: border-box;
    padding: 14px clamp(18px, 5vw, 48px);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    background: #fffafc;
    border-bottom: 1px solid #f5e1e8;
}

/* آیکون منو */

.header-menu-button,
.header-icon-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 8px;
    border: none;
    background: transparent;
    color: rgba(244, 52, 112, 1);
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s ease, transform 0.2s ease;
}

.header-menu-button {
    justify-self: start;
}

.header-menu-button svg,
.header-icon-button svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.header-menu-button:hover,
.header-icon-button:hover {
    background: #fde8ef;
}

/* نام برند */

.brand-logo {
    justify-self: center;
    color: rgba(244, 52, 112, 1);
    text-decoration: none;
    white-space: nowrap;
}

.brand-name {
    display: inline-block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(23px, 3vw, 29px);
    font-weight: 400;
    font-style: italic;
    letter-spacing: -0.8px;
    line-height: 1.3;
}

/* آیکون‌های سمت دیگر هدر */

.header-actions {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 9px;
}

.cart-dot {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(244, 52, 112, 1);
}


/* منو دقیقاً زیر آیکون سه‌خطی */

.site-header {
    position: relative;
}

.header-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: auto;
    right: clamp(18px, 5vw, 48px);
    display: none;
    width: 220px;
    box-sizing: border-box;
    padding: 10px;
    background: #fff;
    border: 1px solid #f7d5e1;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(120, 40, 70, 0.12);
}

.header-dropdown.is-open {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.header-dropdown button {
    width: 100%;
    padding: 13px 14px;
    border: none;
    border-radius: 9px;
    background: transparent;
    color: #5c424b;
    font-family: inherit;
    font-size: 14px;
    text-align: right;
    cursor: pointer;
}

.header-dropdown button:hover {
    color: rgba(244, 52, 112, 1);
    background: #fff0f5;
}

@media (max-width: 480px) {
    .header-dropdown {
        right: 12px;
        width: 200px;
    }
}


/* ===== COCO.FACIAL - PRODUCT DESIGN ===== */

#product-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 16px 12px;
    align-items: start;
}

#product-list > * {
    min-width: 0;
}

#product-list img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 16px;
    background: #fff0f5;
}

#product-list > * {
    overflow: hidden;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(244, 52, 112, 0.09);
    box-shadow: 0 5px 18px rgba(244, 52, 112, 0.10);
    padding: 10px;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

#product-list > *:hover {
    box-shadow: 0 8px 24px rgba(244, 52, 112, 0.18);
    transform: translateY(-3px);
}

#product-list button {
    max-width: 100%;
}

@media (min-width: 768px) {
    #product-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 22px;
        padding: 24px;
    }
}

@media (min-width: 1100px) {
    #product-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 24px;
    }
}

/* ===== COCO.FACIAL - CUTE PRODUCT CARDS ===== */

#product-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 14px 10px;
    align-items: start;
}

#product-list > * {
    min-width: 0;
    overflow: hidden;
    padding: 8px;
    border-radius: 20px;
    background: linear-gradient(
        145deg,
        #fff5f9 0%,
        #fde6f0 55%,
        #fcecf8 100%
    );
    border: 1px solid rgba(244, 52, 112, 0.13);
    box-shadow:
        0 5px 14px rgba(244, 52, 112, 0.09),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#product-list > *:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(244, 52, 112, 0.15);
}

/* Smaller, softer product images */
#product-list img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    padding: 5px;
    border-radius: 15px;
    background: linear-gradient(
        135deg,
        #fce4ee,
        #fff0f7,
        #f9e5f5
    );
}

/* Product name */
#product-list h3 {
    margin: 10px 2px 5px;
    color: #63364b;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.8;
    text-align: center;
}

/* Product price */
#product-list p {
    margin: 4px 2px;
    color: #f43470;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

/* Hide descriptions and details buttons on product cards */
#product-list p:has(+ button) {
    /* Keep the price visible; no effect on unrelated paragraphs */
}

@media (min-width: 768px) {
    #product-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 20px;
        padding: 22px;
    }

    #product-list > * {
        padding: 10px;
    }

    #product-list h3 {
        font-size: 14px;
    }
}

@media (max-width: 360px) {
    #product-list {
        gap: 10px;
        padding: 10px 8px;
    }

    #product-list > * {
        padding: 6px;
        border-radius: 16px;
    }

    #product-list h3,
    #product-list p {
        font-size: 12px;
    }
}

/* ===== COCO.FACIAL ORDER GUIDE ===== */

.order-guide {
    margin: 20px 12px 28px;
    padding: 22px 14px 16px;
    border: 1px solid rgba(244, 52, 112, 0.13);
    border-radius: 24px;
    background: linear-gradient(
        145deg,
        #fff7fa 0%,
        #fdeaf2 52%,
        #fff2f8 100%
    );
    box-shadow: 0 8px 26px rgba(244, 52, 112, 0.08);
}

.order-guide-heading {
    text-align: center;
    margin-bottom: 24px;
}

.order-guide-heart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-bottom: 5px;
    border-radius: 50%;
    background: #ffffff;
    color: rgba(244, 52, 112, 1);
    font-size: 26px;
    box-shadow: 0 3px 12px rgba(244, 52, 112, 0.12);
}

.order-guide-heading h1 {
    margin: 4px 0 7px;
    color: #63364b;
    font-size: 21px;
    font-weight: 700;
}

.order-guide-heading > p {
    margin: 0;
    color: #966a7d;
    font-size: 13px;
}

.order-guide-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.order-step {
    position: relative;
    min-width: 0;
    padding: 14px 7px 12px;
    text-align: center;
    border: 1px solid rgba(244, 52, 112, 0.10);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 4px 12px rgba(244, 52, 112, 0.05);
}

.order-step-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 43px;
    height: 43px;
    margin: 0 auto 9px;
    border-radius: 15px;
    background: #fce1ec;
    color: rgba(244, 52, 112, 1);
}

.order-step-icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.order-step-number {
    display: block;
    margin-bottom: 5px;
    color: rgba(244, 52, 112, 1);
    font-size: 11px;
    font-weight: 700;
}

.order-step h3 {
    margin: 0 0 7px;
    color: #63364b;
    font-size: 12px;
    line-height: 1.8;
}

.order-step p {
    margin: 0;
    color: #896b7a;
    font-size: 10px;
    line-height: 1.9;
}

.order-guide-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
    padding-top: 13px;
    border-top: 1px solid rgba(244, 52, 112, 0.12);
    color: rgba(244, 52, 112, 1);
}

.order-guide-footer span {
    font-size: 17px;
}

.order-guide-footer p {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
}

@media (min-width: 600px) {
    .order-guide {
        max-width: 850px;
        margin: 28px auto 36px;
        padding: 28px 24px 20px;
    }

    .order-guide-steps {
        gap: 16px;
    }

    .order-step {
        padding: 20px 14px 18px;
    }

    .order-step h3 {
        font-size: 14px;
    }

    .order-step p {
        font-size: 12px;
    }
}


/* ===== صفحه جزئیات محصول ===== */

.product-detail-page {
    width: min(1120px, 94%);
    margin: 35px auto 60px;
    direction: rtl;
}

.product-detail-card {
    box-sizing: border-box;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: clamp(18px, 4vw, 36px);
    border: 1px solid rgba(244, 52, 112, 0.15);
    border-radius: 26px;
    background: linear-gradient(145deg, #ffffff, #fff5f8);
    color: #352a30;
    box-shadow: 0 15px 45px rgba(75, 35, 52, 0.09);
    overflow: hidden;
    line-height: 1.9;
}

.product-detail-card h1,
.product-detail-card h2,
.product-detail-card h3,
.product-detail-card p {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.product-detail-card .product-detail-name {
    margin: 24px 0 8px;
    font-size: clamp(23px, 4vw, 32px);
    line-height: 1.6;
    color: #33242b;
}

.product-detail-card .product-section-title {
    margin: 28px 0 12px;
    padding-right: 12px;
    border-right: 3px solid #f43470;
    color: #b92155;
    font-size: 19px;
    line-height: 1.7;
}

.product-detail-card .product-short-description {
    margin: 14px 0;
    color: #775d68;
    font-size: 15px;
}

.product-detail-card .product-detail-description,
.product-detail-card .product-usage {
    margin: 0;
    color: #574750;
    font-size: 15px;
    overflow-wrap: anywhere;
}

.product-detail-card .product-extra-details {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.product-detail-card .product-extra-details p {
    margin: 0;
    padding: 12px 15px;
    border: 1px solid #f3dce5;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.8);
}

.product-detail-card .product-benefits-list {
    margin: 0;
    padding-right: 24px;
    color: #574750;
}

.product-detail-card .product-benefits-list li {
    margin-bottom: 7px;
    padding-right: 4px;
}

.product-detail-card .product-price {
    margin: 25px 0 18px;
    color: #e52e6b;
    font-size: clamp(22px, 4vw, 29px);
    font-weight: 800;
}

/* ===== گالری تصاویر ===== */

.product-detail-gallery {
    width: 100%;
    max-width: 540px;
    margin: 0 auto 28px;
    text-align: center;
}

.product-detail-gallery > .product-detail-image {
    box-sizing: border-box;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-width: 500px;
    max-height: none;
    object-fit: contain;
    padding: 12px;
    border: 1px solid rgba(244, 52, 112, 0.13);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(60, 30, 45, 0.07);
    opacity: 1;
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.product-detail-gallery > .product-detail-image.is-fading {
    opacity: 0;
    transform: scale(0.985);
}

.product-gallery-thumbnails {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.product-gallery-thumbnail {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    padding: 3px;
    overflow: hidden;
    border: 1px solid #eadde3;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.product-gallery-thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.product-gallery-thumbnail:hover {
    transform: translateY(-2px);
}

.product-gallery-thumbnail.active {
    border: 2px solid #f43470 !important;
    box-shadow: 0 0 0 3px rgba(244, 52, 112, 0.1);
}

/* ===== دکمه سفارش و بازگشت ===== */

.product-detail-card .product-order-button {
    display: block;
    width: 100%;
    min-height: 50px;
    margin: 15px 0;
    padding: 12px 18px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #f43470, #df2861);
    color: #ffffff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-detail-card .product-order-button:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(244, 52, 112, 0.2);
}

.product-detail-card .product-order-button:disabled {
    cursor: not-allowed;
}

.product-detail-card .product-back-link {
    display: inline-block;
    margin-top: 8px;
    color: #d72d65;
    text-decoration: none;
    font-weight: 600;
}

.product-detail-card .product-back-link:hover {
    text-decoration: underline;
}

/* ===== ظاهر شیشه‌ای محصول ناموجود ===== */

.product-detail-card.product-unavailable {
    position: relative;
    isolation: isolate;
    background:
        radial-gradient(
            circle at 90% 0%,
            rgba(244, 52, 112, 0.13),
            transparent 38%
        ),
        linear-gradient(
            135deg,
            rgba(67, 60, 68, 0.94),
            rgba(45, 42, 49, 0.92)
        ) !important;
    color: #f8f2f6 !important;
    border: 1px solid rgba(255, 255, 255, 0.17) !important;
    box-shadow:
        0 18px 50px rgba(35, 25, 35, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.product-unavailable .product-detail-name,
.product-unavailable .product-section-title,
.product-unavailable .product-detail-description,
.product-unavailable .product-short-description,
.product-unavailable .product-usage,
.product-unavailable .product-benefits-list,
.product-unavailable .product-extra-details p,
.product-unavailable .product-price {
    color: #f8f2f6 !important;
}

.product-unavailable .product-section-title {
    border-right-color: #f47da4;
}

.product-unavailable .product-extra-details p {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.12);
}

.product-unavailable .product-detail-gallery > .product-detail-image {
    background: rgba(255, 255, 255, 0.94);
}

.product-unavailable .product-gallery-thumbnail {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

.product-unavailable .product-back-link {
    color: #ff9cbd;
}

/* ===== نمایش موبایل ===== */

@media (max-width: 600px) {
    .product-detail-page {
        width: 94%;
        margin: 18px auto 35px;
    }

    .product-detail-card {
        padding: 17px;
        border-radius: 20px;
    }

    .product-detail-gallery {
        margin-bottom: 22px;
    }

    .product-detail-gallery > .product-detail-image {
        border-radius: 16px;
    }

    .product-gallery-thumbnail {
        flex-basis: 60px;
        width: 60px;
        height: 60px;
    }

    .product-detail-card .product-section-title {
        font-size: 17px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-detail-gallery > .product-detail-image,
    .product-gallery-thumbnail,
    .product-detail-card .product-order-button {
        transition: none;
    }
}


/* ===== طراحی شیشه‌ای صورتی برای توضیحات محصول؛ دسکتاپ ===== */
@media (min-width: 601px) {

    /* تیتر هر بخش */
    .product-section-title {
        display: block;
        width: fit-content;
        max-width: 100%;
        margin: 28px 0 12px;
        padding: 9px 16px;
        color: #e91e63;
        font-size: 18px;
        font-weight: 800;
        line-height: 1.8;
        border-right: 4px solid #f43470;
        border-radius: 5px 12px 12px 5px;
        background: linear-gradient(
            90deg,
            rgba(244, 52, 112, 0.04),
            rgba(244, 52, 112, 0.13)
        );
    }

    /* کادر شیشه‌ای توضیحات */
    .product-detail-description {
        box-sizing: border-box;
        display: block;
        width: 100%;
        margin: 0 0 22px;
        padding: 20px 22px;
        color: #713044;
        font-size: 15px;
        line-height: 2.2;
        text-align: right;
        white-space: pre-line;
        background: linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.82),
            rgba(255, 220, 234, 0.72),
            rgba(255, 240, 246, 0.88)
        );
        border: 1px solid rgba(244, 52, 112, 0.35);
        border-right: 4px solid rgba(244, 52, 112, 0.85);
        border-radius: 16px;
        box-shadow:
            0 8px 24px rgba(244, 52, 112, 0.10),
            inset 0 1px 0 rgba(255, 255, 255, 0.95);
        overflow-wrap: anywhere;
    }

    /* کادر ویژگی‌های محصول */
    .product-benefits-list {
        box-sizing: border-box;
        width: 100%;
        margin: 0 0 22px;
        padding: 20px 42px 20px 20px;
        color: #713044;
        line-height: 2.2;
        background: linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.82),
            rgba(255, 215, 232, 0.75)
        );
        border: 1px solid rgba(244, 52, 112, 0.35);
        border-right: 4px solid #f43470;
        border-radius: 16px;
        box-shadow: 0 8px 24px rgba(244, 52, 112, 0.10);
    }

    .product-benefits-list li {
        padding: 4px 0;
        margin-bottom: 4px;
    }

    .product-benefits-list li::marker {
        color: #f43470;
    }

    /* کادر روش استفاده */
    .product-usage {
        box-sizing: border-box;
        width: 100%;
        margin: 0 0 24px;
        padding: 20px 22px;
        color: #713044;
        font-size: 15px;
        line-height: 2.2;
        white-space: pre-line;
        overflow-wrap: anywhere;
        background: linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.82),
            rgba(255, 225, 237, 0.78)
        );
        border: 1px solid rgba(244, 52, 112, 0.35);
        border-right: 4px solid #f43470;
        border-radius: 16px;
        box-shadow: 0 8px 24px rgba(244, 52, 112, 0.10);
    }

    /* تیترها و متن‌ها از هم فاصله داشته باشند */
    .product-detail-card .product-section-title + * {
        margin-top: 0;
    }

    .product-detail-card .product-section-title {
        clear: both;
    }
}


/* ==========================================
   COCO.FACIAL — Premium Product Page
   ========================================== */

.product-detail-card {
    --coco-pink: #f43470;
    --coco-deep-pink: #cf245b;
    --coco-soft-pink: #fff0f5;
    --coco-text: #493640;

    gap: 18px !important;
    padding: clamp(16px, 3vw, 32px) !important;
    border: 1px solid rgba(244, 52, 112, 0.13) !important;
    border-radius: 26px !important;
    background:
        radial-gradient(ellipse at top right, rgba(255, 208, 225, 0.38), transparent 38%),
        linear-gradient(145deg, #ffffff, #fff8fb) !important;
    box-shadow:
        0 18px 55px rgba(114, 44, 73, 0.08),
        0 4px 14px rgba(244, 52, 112, 0.05) !important;
    color: var(--coco-text);
}

/* نام محصول */
.product-detail-card .product-detail-name {
    margin: 0 0 5px !important;
    color: #38242e !important;
    font-size: clamp(23px, 3vw, 32px) !important;
    font-weight: 850 !important;
    line-height: 1.8 !important;
    letter-spacing: -0.6px;
}

/* نشان موجودی */
.product-detail-card .product-status {
    border: 1px solid rgba(244, 52, 112, 0.08);
    font-weight: 700 !important;
    transition: transform 0.2s ease;
}

.product-detail-card .product-status.available {
    background: #e8f8ef !important;
    color: #18784b !important;
}

.product-detail-card .product-status.unavailable {
    background: #55454f !important;
    color: #ffffff !important;
}

/* کادرهای توضیحات و ویژگی‌ها */
.product-detail-card .product-content-section {
    position: relative;
    isolation: isolate;
    margin: 5px 0 !important;
    padding: clamp(16px, 2.5vw, 23px) !important;
    border: 1px solid rgba(244, 52, 112, 0.17) !important;
    border-radius: 20px !important;
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.94),
            rgba(255, 237, 245, 0.78)
        ) !important;
    box-shadow:
        0 8px 24px rgba(190, 67, 111, 0.055),
        inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.product-detail-card .product-content-section:hover {
    border-color: rgba(244, 52, 112, 0.34) !important;
    box-shadow:
        0 12px 30px rgba(190, 67, 111, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
}

/* تیتر هر بخش */
.product-detail-card .product-content-section .product-section-title {
    margin: 0 0 15px !important;
    padding: 2px 13px 10px 0 !important;
    border-right: 3px solid var(--coco-pink) !important;
    border-bottom: 1px solid rgba(244, 52, 112, 0.13) !important;
    color: #c9255b !important;
    font-size: 16px !important;
    font-weight: 850 !important;
    line-height: 1.8 !important;
}

/* متن توضیحات */
.product-detail-card .product-content-section .product-detail-description,
.product-detail-card .product-content-section .product-short-description,
.product-detail-card .product-content-section .product-usage {
    margin: 0 !important;
    color: #594651 !important;
    font-size: 14px !important;
    font-weight: 450;
    line-height: 2.25 !important;
    overflow-wrap: anywhere;
}

/* فهرست ویژگی‌ها */
.product-detail-card .product-content-section .product-benefits-list {
    margin: 0 !important;
    padding-right: 23px !important;
    line-height: 2.2 !important;
}

.product-detail-card .product-content-section .product-benefit {
    padding: 3px 0;
    color: #594651 !important;
}

.product-detail-card .product-content-section .product-benefit::marker {
    color: var(--coco-pink);
}

/* مشخصات حجم و نوع پوست */
.product-detail-card .product-content-section .product-extra-details {
    gap: 12px !important;
}

.product-detail-card .product-content-section .product-extra-details > p {
    border: 1px solid rgba(244, 52, 112, 0.10);
    transition: background 0.2s ease;
}

.product-detail-card .product-content-section .product-extra-details > p:hover {
    background: #ffffff !important;
}

/* گالری تصاویر */
.product-detail-card .product-detail-gallery {
    min-width: 0;
    padding: 14px;
    border: 1px solid rgba(244, 52, 112, 0.10);
    border-radius: 22px;
    background: linear-gradient(145deg, #fffafd, #fff0f6);
    overflow: hidden;
}

.product-detail-card .product-detail-image {
    max-height: 480px !important;
    border-radius: 17px !important;
    transition: opacity 0.3s ease, transform 0.35s ease !important;
}

.product-detail-card .product-gallery-thumbnails {
    gap: 9px !important;
    padding: 4px 2px 6px;
}

.product-detail-card .product-gallery-thumbnail {
    flex-shrink: 0;
    border-radius: 12px !important;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(75, 37, 54, 0.05);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.product-detail-card .product-gallery-thumbnail:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(244, 52, 112, 0.14);
}

.product-detail-card .product-gallery-thumbnail.active {
    box-shadow: 0 0 0 2px rgba(244, 52, 112, 0.10);
}

/* قیمت */
.product-detail-card .product-price {
    margin: 12px 0 5px !important;
    padding: 17px 20px !important;
    border: 1px solid rgba(244, 52, 112, 0.17);
    border-radius: 17px;
    background: linear-gradient(120deg, #fff0f6, #ffffff) !important;
    color: #c91d58 !important;
    font-size: clamp(20px, 2.5vw, 26px) !important;
    font-weight: 900 !important;
    line-height: 1.9 !important;
    text-align: center;
}

/* دکمه ثبت سفارش */
.product-detail-card .product-order-button {
    min-height: 54px;
    padding: 14px 22px !important;
    border: 0 !important;
    border-radius: 16px !important;
    background: linear-gradient(115deg, #f43470, #d92360) !important;
    box-shadow:
        0 8px 18px rgba(244, 52, 112, 0.23),
        inset 0 1px 0 rgba(255, 255, 255, 0.20) !important;
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease;
}

.product-detail-card .product-order-button:not(:disabled):hover {
    transform: translateY(-2px);
    filter: saturate(1.08);
    box-shadow: 0 12px 25px rgba(244, 52, 112, 0.30) !important;
}

.product-detail-card .product-order-button:not(:disabled):active {
    transform: translateY(0) scale(0.99);
}

.product-detail-card .product-order-button:focus-visible,
.product-detail-card .product-gallery-thumbnail:focus-visible {
    outline: 3px solid rgba(244, 52, 112, 0.40);
    outline-offset: 3px;
}

/* بازگشت به فروشگاه */
.product-detail-card .product-back-link {
    justify-self: center;
    width: fit-content;
    max-width: 100%;
    margin-top: 2px;
    padding: 9px 15px;
    border-radius: 12px;
    color: #bd2859 !important;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease;
}

.product-detail-card .product-back-link:hover {
    background: rgba(244, 52, 112, 0.08);
}

/* حالت ناموجود: تیره و هماهنگ */
.product-detail-card.product-unavailable {
    background: linear-gradient(145deg, #28232a, #383039) !important;
    border-color: #50434e !important;
    box-shadow: 0 18px 45px rgba(20, 15, 22, 0.18) !important;
}

.product-detail-card.product-unavailable .product-detail-name,
.product-detail-card.product-unavailable .product-detail-description,
.product-detail-card.product-unavailable .product-short-description,
.product-detail-card.product-unavailable .product-usage,
.product-detail-card.product-unavailable .product-benefit {
    color: #f7edf2 !important;
}

.product-detail-card.product-unavailable .product-content-section {
    background: linear-gradient(
        135deg,
        rgba(77, 58, 70, 0.82),
        rgba(48, 40, 49, 0.88)
    ) !important;
    border-color: rgba(255, 184, 210, 0.17) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035) !important;
}

.product-detail-card.product-unavailable .product-section-title {
    color: #ffb2cc !important;
    border-bottom-color: rgba(255, 184, 210, 0.16) !important;
}

.product-detail-card.product-unavailable .product-extra-details > p {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.08);
    color: #f7edf2 !important;
}

.product-detail-card.product-unavailable .product-price {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.10);
    color: #ffffff !important;
}

.product-detail-card.product-unavailable .product-back-link {
    color: #ffb2cc !important;
}

/* موبایل */
@media (max-width: 600px) {
    .product-detail-card {
        gap: 12px !important;
        padding: 14px !important;
        border-radius: 21px !important;
    }

    .product-detail-card .product-detail-name {
        font-size: 22px !important;
        line-height: 1.8 !important;
    }

    .product-detail-card .product-content-section {
        padding: 15px !important;
        margin: 3px 0 !important;
        border-radius: 17px !important;
    }

    .product-detail-card .product-content-section .product-section-title {
        margin-bottom: 12px !important;
        font-size: 15px !important;
    }

    .product-detail-card .product-content-section .product-detail-description,
    .product-detail-card .product-content-section .product-short-description,
    .product-detail-card .product-content-section .product-usage {
        font-size: 13.5px !important;
        line-height: 2.15 !important;
    }

    .product-detail-card .product-detail-gallery {
        padding: 9px;
        border-radius: 17px;
    }

    .product-detail-card .product-detail-image {
        max-height: 340px !important;
    }

    .product-detail-card .product-gallery-thumbnail img {
        width: 62px !important;
        height: 62px !important;
    }

    .product-detail-card .product-price {
        padding: 13px !important;
        font-size: 21px !important;
    }

    .product-detail-card .product-order-button {
        min-height: 51px;
        font-size: 15px !important;
    }
}

/* احترام به تنظیم کاهش حرکت دستگاه */
@media (prefers-reduced-motion: reduce) {
    .product-detail-card *,
    .product-detail-card *::before,
    .product-detail-card *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}


/* کادر ناموجود در صفحه جزئیات محصول */
.product-detail-card .product-order-button:disabled {
    background: linear-gradient(
        135deg,
        rgba(75, 62, 72, 0.94),
        rgba(54, 46, 55, 0.96)
    ) !important;
    color: #f8edf2 !important;
    border: 1px solid rgba(255, 220, 235, 0.16) !important;
    border-radius: 15px !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 5px 14px rgba(40, 25, 35, 0.10) !important;
    opacity: 1 !important;
    cursor: not-allowed !important;
}


/* ظاهر شیشه‌ای و نیمه‌تیره محصولات ناموجود در صفحه اصلی */
.product-card.product-unavailable {
    background: linear-gradient(
        145deg,
        rgba(65, 55, 64, 0.88),
        rgba(91, 74, 87, 0.82)
    ) !important;
    border: 1px solid rgba(255, 220, 235, 0.20) !important;
    box-shadow:
        0 8px 24px rgba(55, 35, 48, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.10) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.product-card.product-unavailable .product-name,
.product-card.product-unavailable .product-price {
    color: #fff2f7 !important;
}

/* کادر شیشه‌ای محصول ناموجود در صفحه اصلی */
#product-list > .product-card.product-unavailable {
    background: linear-gradient(
        145deg,
        rgba(91, 78, 89, 0.94),
        rgba(57, 49, 58, 0.94)
    ) !important;

    border: 1px solid rgba(255, 220, 235, 0.24) !important;

    box-shadow:
        0 7px 20px rgba(48, 35, 45, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* نام و قیمت روی پس‌زمینه تیره خوانا باشند */
#product-list > .product-card.product-unavailable h3,
#product-list > .product-card.product-unavailable .product-price {
    color: #fff0f6 !important;
}

/* عکس محصول روشن و واضح باقی بماند */
#product-list > .product-card.product-unavailable img {
    opacity: 1;
}

/* هدر صفحه جزئیات محصول */
.product-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    padding: 12px 22px;
    background: linear-gradient(
        135deg,
        rgba(255, 245, 250, 0.97),
        rgba(255, 225, 239, 0.94)
    );
    border-bottom: 1px solid rgba(244, 52, 112, 0.15);
    box-shadow: 0 5px 22px rgba(244, 52, 112, 0.09);
}

/* لوگوی صفحه محصولات؛ هماهنگ با صفحه اصلی */
.product-header .brand-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    justify-self: center;
    color: rgba(244, 52, 112, 1);
    text-decoration: none;
    white-space: nowrap;
}

.product-header .brand-name {
    display: inline-block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(23px, 3vw, 29px);
    font-weight: 400;
    font-style: italic;
    letter-spacing: -0.8px;
    line-height: 1.3;
}

/* دکمه برگشت */
.product-header .product-back-button {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 43px;
    height: 43px;
    padding: 0;
    border-radius: 15px;
    color: #f43470;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(244, 52, 112, 0.18);
    box-shadow: 0 4px 12px rgba(244, 52, 112, 0.12);
    transition: transform 0.2s ease, background 0.2s ease;
    line-height: 0;
}

.product-header .product-back-button:hover {
    background: #fff;
    transform: translateY(-2px);
}

/* فلش گرافیکی؛ دقیقاً وسط دکمه */
.product-header .back-arrow {
    display: block;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
}

/* فضای متعادل روبه‌روی لوگو */
.product-header .header-spacer {
    width: 43px;
    height: 43px;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .product-header {
        min-height: 68px;
        padding: 10px 15px;
    }

    .product-header .product-brand {
        font-size: 27px;
    }

    .product-header .product-back-button,
    .product-header .header-spacer {
        width: 40px;
        height: 40px;
    }
}