/* =========================================================
   HAYNO — التصميم الأساسي (موبايل أولاً)
   الألوان الرسمية: أسود #0a0a0a / أبيض #ffffff
   ========================================================= */

:root {
    --black: #0a0a0a;
    --black-soft: #1c1c1e;
    --white: #ffffff;
    --gray-100: #f7f7f8;
    --gray-200: #e4e4e6;
    --gray-400: #9a9a9f;
    --gray-600: #48484d;
    --radius: 14px;
    --shadow: 0 8px 24px rgba(10,10,10,0.07), 0 2px 6px rgba(10,10,10,0.04);
    --transition: 0.2s ease;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Cairo', system-ui, sans-serif;
    background: var(--white);
    color: var(--black);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 74px; /* مساحة لزر الطلب الثابت */
}

img { max-width: 100%; display: block; }

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 18px;
}

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

/* ===== الأزرار ===== */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    text-align: center;
    border: 2px solid var(--black);
    transition: transform var(--transition), background var(--transition), color var(--transition), box-shadow var(--transition);
    cursor: pointer;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
    background: var(--black);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(10,10,10,0.18);
}
.btn-primary:hover { background: var(--black-soft); box-shadow: 0 6px 18px rgba(10,10,10,0.24); }

.btn-secondary {
    background: var(--white);
    color: var(--black);
}
.btn-secondary:hover { background: var(--black); color: var(--white); }

.btn-block { display: block; width: 100%; }

/* ===== الهيدر ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,0.92);
    backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--gray-200);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}
.logo {
    font-weight: 900;
    font-size: 22px;
    letter-spacing: 1px;
    color: var(--black);
}
.logo span { color: var(--gray-400); }
.icon-btn {
    background: none;
    border: none;
    color: var(--black);
    padding: 6px;
    cursor: pointer;
}

/* ===== الهيرو ===== */
.hero {
    background: linear-gradient(180deg, var(--black) 0%, var(--black-soft) 100%);
    color: var(--white);
    padding: 56px 0 44px;
    text-align: center;
}
.hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
    color: var(--gray-400);
    margin-bottom: 14px;
    font-weight: 700;
}
.hero-title {
    font-size: 32px;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 16px;
}
.hero-sub {
    font-size: 15px;
    color: var(--gray-200);
    max-width: 420px;
    margin: 0 auto 28px;
}
.hero .btn-primary {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
    box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}
.hero .btn-primary:hover { background: var(--gray-200); }

/* ===== قسم المنتجات ===== */
.products { padding: 44px 0 20px; }
.section-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 22px;
    text-align: center;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 380px;
    margin: 0 auto;
}

.product-card {
    position: relative;
    display: block;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}
.product-card:active { transform: scale(0.98); }
.product-card:hover { box-shadow: 0 12px 30px rgba(10,10,10,0.12), 0 3px 8px rgba(10,10,10,0.06); }

.badge-sale {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    background: var(--black);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 999px;
    box-shadow: 0 3px 8px rgba(10,10,10,0.25);
}

.product-img-wrap {
    background: var(--gray-100);
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.product-img { width: 100%; height: 100%; object-fit: cover; }

.product-info { padding: 16px; }
.product-name { font-size: 17px; font-weight: 800; margin-bottom: 4px; }
.product-desc { font-size: 13px; color: var(--gray-600); margin-bottom: 12px; }

.price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 14px;
}
.price-old {
    font-size: 14px;
    color: var(--gray-400);
    text-decoration: line-through;
}
.price-new {
    font-size: 20px;
    font-weight: 900;
    color: var(--black);
}

/* ===== قسم الثقة ===== */
.trust { padding: 36px 0; border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); }
.trust-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--black);
}
.trust-item svg { flex-shrink: 0; color: var(--black); }

/* ===== الفوتر ===== */
.site-footer {
    background: linear-gradient(180deg, var(--black-soft) 0%, var(--black) 100%);
    color: var(--gray-400);
    padding: 32px 0 90px;
    text-align: center;
}
.footer-logo { color: var(--white); margin-bottom: 8px; }
.footer-logo span { color: var(--gray-600); }
.footer-text { font-size: 13px; }

/* ===== زر الطلب الثابت (موبايل) ===== */
.sticky-cta {
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    z-index: 100;
    background: var(--black);
    color: var(--white);
    text-align: center;
    font-weight: 800;
    font-size: 14px;
    padding: 18px 12px;
    box-shadow: 0 -6px 20px rgba(10,10,10,0.18);
}

/* =========================================================
   نموذج الطلب (nfscard.php)
   ========================================================= */
.page-title-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
}
.back-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gray-100);
    transition: background var(--transition);
}
.back-link:hover { background: var(--gray-200); }

.pp-gallery {
    position: relative;
    background: var(--gray-100);
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.gallery-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}
.gallery-slide.active {
    opacity: 1;
    pointer-events: auto;
}
.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}
.gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gray-200);
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}
.gallery-dot.active {
    background: var(--black);
    transform: scale(1.2);
}

.pp-info { padding: 18px 0; }
.pp-name { font-size: 22px; font-weight: 900; margin-bottom: 8px; }
.pp-price-row { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.pp-price-old { font-size: 16px; color: var(--gray-400); text-decoration: line-through; }
.pp-price-new { font-size: 26px; font-weight: 900; }

.form-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 20px;
    margin-top: 10px;
    box-shadow: var(--shadow);
}
.form-group { margin-bottom: 16px; }
.form-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}
.form-control {
    width: 100%;
    padding: 13px 14px;
    border: 1.5px solid var(--gray-200);
    border-radius: 10px;
    font-family: inherit;
    font-size: 15px;
    background: var(--white);
    color: var(--black);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus {
    outline: none;
    border-color: var(--black);
    box-shadow: 0 0 0 3px rgba(10,10,10,0.08);
}

.radio-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.radio-option {
    position: relative;
}
.radio-option input {
    position: absolute;
    opacity: 0;
    inset: 0;
    cursor: pointer;
}
.radio-option label {
    display: block;
    text-align: center;
    padding: 13px 8px;
    border: 1.5px solid var(--gray-200);
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition);
}
.radio-option input:checked + label {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
    box-shadow: 0 4px 12px rgba(10,10,10,0.2);
}

.qty-price-display {
    background: linear-gradient(135deg, var(--black) 0%, var(--black-soft) 100%);
    color: var(--white);
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    margin-bottom: 18px;
    box-shadow: 0 6px 18px rgba(10,10,10,0.2);
}
.qty-price-display .label { font-size: 12px; color: var(--gray-400); margin-bottom: 4px; }
.qty-price-display .amount { font-size: 28px; font-weight: 900; }

/* ===== خيارات المقاسات للمنتجات المخصصة ===== */
.product-custom-note {
    color: var(--gray-600);
    font-size: 14px;
    line-height: 1.9;
    margin-bottom: 16px;
}
.price-list {
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 4px;
}
.price-list div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 12px;
    font-size: 13.5px;
    border-bottom: 1px solid var(--gray-200);
}
.price-list div:last-child { border-bottom: none; }
.price-list strong { font-weight: 900; }
.size-selection-list { display: grid; gap: 10px; }
.size-selection-item {
    display: grid;
    grid-template-columns: minmax(100px, 0.7fr) minmax(0, 1.3fr);
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: var(--gray-100);
    border-radius: 10px;
}
.size-selection-item label { font-size: 13px; font-weight: 700; }
.size-selection-item .form-control { padding: 10px 12px; font-size: 13px; }

.submit-btn {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    border-radius: 12px;
}

.alert {
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 18px;
    text-align: center;
}
.alert-success { background: #eef6f0; color: #1e4d2b; border: 1px solid #cfe3d4; }
.alert-error { background: #f8eeee; color: #6b2320; border: 1px solid #e6c9c8; }

.field-error {
    color: #8a2f2c;
    font-size: 12.5px;
    margin-top: 6px;
    font-weight: 600;
}

.form-control.has-error,
.radio-group.has-error .radio-option label {
    border-color: #8a2f2c !important;
}

/* =========================================================
   نافذة الشكر بعد نجاح الطلب
   ========================================================= */
.thankyou-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.thankyou-box {
    background: var(--white);
    color: var(--black);
    width: 100%;
    max-width: 420px;
    min-height: 60vh;
    border-radius: 20px;
    padding: 40px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    animation: popIn 0.35s ease;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
@keyframes popIn {
    from { opacity: 0; transform: scale(0.92) translateY(10px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.thankyou-icon { font-size: 54px; margin-bottom: 18px; }
.thankyou-title { font-size: 24px; font-weight: 900; margin-bottom: 14px; }
.thankyou-text { font-size: 16px; color: var(--gray-600); margin-bottom: 22px; line-height: 1.8; }
.thankyou-team {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-bottom: 30px;
}
.thankyou-btn { width: 100%; }

/* ===== شاشات أكبر (تابلت/ديسكتوب) ===== */
@media (min-width: 640px) {
    .hero-title { font-size: 40px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); max-width: 700px; }
    .trust-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 420px) {
    .size-selection-item { grid-template-columns: 1fr; gap: 6px; }
}

@media (min-width: 900px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); max-width: 1000px; }
    .pp-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
}

/* =========================================================
   الشريط الجانبي (القائمة)
   ========================================================= */
.top-icons { display: flex; align-items: center; gap: 8px; }

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.55);
    z-index: 199;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.sidebar-overlay.open { opacity: 1; visibility: visible; }

.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 300px;
    max-width: 84vw;
    background: var(--white);
    z-index: 200;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(.4,0,.2,1);
    box-shadow: -12px 0 36px rgba(10,10,10,0.18);
    display: flex;
    flex-direction: column;
}
.sidebar.open { transform: translateX(0); }

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--gray-200);
    flex-shrink: 0;
}
.sidebar-close {
    background: none;
    border: none;
    color: var(--black);
    cursor: pointer;
    padding: 6px;
    display: flex;
    border-radius: 8px;
    transition: background var(--transition);
}
.sidebar-close:hover { background: var(--gray-100); }

.sidebar-nav {
    display: flex;
    flex-direction: column;
    padding: 12px;
    gap: 4px;
    overflow-y: auto;
}
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15.5px;
    color: var(--black);
    transition: background var(--transition), transform var(--transition);
}
.sidebar-link svg { flex-shrink: 0; color: var(--gray-600); transition: color var(--transition); }
.sidebar-link:hover { background: var(--gray-100); }
.sidebar-link:hover svg { color: var(--black); }
.sidebar-link:active { transform: scale(0.98); }

.sidebar-footer {
    margin-top: auto;
    padding: 18px 20px;
    border-top: 1px solid var(--gray-200);
    font-size: 12px;
    color: var(--gray-400);
    text-align: center;
    flex-shrink: 0;
}

/* =========================================================
   صفحات المعلومات (التوصيل / طرق الدفع / من نحن)
   ========================================================= */
.info-content { padding: 8px 0 40px; }
.info-lead {
    font-size: 15.5px;
    color: var(--gray-600);
    line-height: 1.9;
    margin-bottom: 22px;
}
.info-content h2 {
    font-size: 18px;
    font-weight: 800;
    margin: 26px 0 12px;
}
.info-content p {
    font-size: 15px;
    color: var(--gray-600);
    margin-bottom: 14px;
    line-height: 1.9;
}

.info-box {
    background: var(--gray-100);
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 14px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.info-box svg {
    flex-shrink: 0;
    color: var(--black);
    margin-top: 2px;
}
.info-box-title {
    font-weight: 800;
    font-size: 15px;
    margin-bottom: 4px;
}
.info-box-text {
    font-size: 13.5px;
    color: var(--gray-600);
    line-height: 1.8;
}

.payment-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 14px;
    box-shadow: var(--shadow);
}
.payment-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--black);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.payment-card-title { font-weight: 800; font-size: 15.5px; margin-bottom: 4px; }
.payment-card-text { font-size: 13.5px; color: var(--gray-600); line-height: 1.7; }

.about-hero {
    background: linear-gradient(135deg, var(--black) 0%, var(--black-soft) 100%);
    color: var(--white);
    border-radius: var(--radius);
    padding: 28px 22px;
    margin-bottom: 22px;
    text-align: center;
}
.about-hero .logo { justify-content: center; display: inline-flex; font-size: 26px; margin-bottom: 10px; }
.about-hero p { color: var(--gray-200); font-size: 14.5px; line-height: 1.8; margin: 0; }

.contact-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--black);
    color: var(--white);
    padding: 17px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 18px;
    margin-top: 6px;
    box-shadow: 0 6px 18px rgba(10,10,10,0.2);
    transition: background var(--transition);
}
.contact-phone:hover { background: var(--black-soft); }
.contact-phone span { direction: ltr; }
