/* 
   نظام تصميم SkyPrint - ملف التنسيق الأساسي (Premium Design System)
   الألوان الرسمية:
   البنفسجي الأساسي: #5A2D91
   الوردي الجذاب: #E91E63
   البنفسجي الداكن: #3F1F73
*/

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;900&display=swap');

:root {
    --primary: #5A2D91;
    --primary-dark: #3F1F73;
    --primary-light: #7E4AA8;
    --accent: #E91E63;
    --accent-hover: #D81B60;
    --bg-dark: #0F0A1A;
    --bg-light: #F8F6FC;
    --text-dark: #1E1A24;
    --text-light: #FFFFFF;
    --text-muted: #736C7D;
    --white: #FFFFFF;
    --card-bg: #FFFFFF;
    --border-color: #E2DFE6;
    
    --shadow-sm: 0 2px 4px rgba(90, 45, 145, 0.05);
    --shadow-md: 0 8px 24px rgba(90, 45, 145, 0.08);
    --shadow-lg: 0 16px 36px rgba(90, 45, 145, 0.12);
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --radius-full: 9999px;
}

/* إعادة ضبط القواعد الأساسية (Base Reset) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    outline: none;
    border: none;
}

/* تخطيط الصفحة (Layout & Utilities) */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 40px 0;
    }
}

/* الهيدر (Header / Navbar) */
header {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

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

.logo-img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-size: 22px;
    font-weight: 900;
}

.logo-text span.purple {
    color: var(--primary);
}

.logo-text span.pink {
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* يمكننا عمل قائمة جانبية للهواتف لاحقاً */
    }
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* زر السلة التفاعلي */
.cart-btn {
    position: relative;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    color: var(--primary);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition-normal);
}

.cart-btn:hover {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.05);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent);
    color: var(--white);
    font-size: 11px;
    font-weight: bold;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 4px;
    box-shadow: 0 2px 5px rgba(233, 30, 99, 0.4);
}

/* الأزرار (Buttons) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-normal);
    gap: 10px;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(90, 45, 145, 0.2);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(90, 45, 145, 0.3);
}

.btn-accent {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.2);
}

.btn-accent:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.3);
}

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

.btn-secondary:hover {
    background: var(--bg-light);
    border-color: var(--primary-light);
}

.btn:active {
    transform: translateY(0);
}

/* قسم الـ Hero (البطل) */
.hero {
    background: linear-gradient(135deg, #180D2B 0%, #301755 100%);
    color: var(--white);
    padding: 100px 0 140px 0;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--bg-light);
    clip-path: polygon(0 100%, 100% 100%, 100% 0);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
    gap: 50px;
}

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-buttons {
        justify-content: center;
    }
}

.hero-title {
    font-size: 48px;
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 20px;
}

.hero-title span {
    color: var(--accent);
}

.hero-subtitle {
    font-size: 18px;
    color: #CCC6D8;
    margin-bottom: 35px;
    font-weight: 300;
}

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

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-logo-glow {
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(233,30,99,0.3) 0%, rgba(90,45,145,0) 70%);
    position: absolute;
    z-index: 1;
}

.hero-logo-img {
    width: 280px;
    height: auto;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* الميزات (Features) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 35px 25px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    border-bottom: 3px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-bottom-color: var(--accent);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    margin: 0 auto 20px auto;
    transition: var(--transition-fast);
}

.feature-card:hover .feature-icon {
    background: var(--primary);
    color: var(--white);
}

.feature-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-desc {
    font-size: 14px;
    color: var(--text-muted);
}

/* استعراض المنتجات (Product Showcase) */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 32px;
    font-weight: 900;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

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

.product-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.product-img-wrapper {
    height: 250px;
    background: #EAE5F3;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-placeholder-img {
    font-size: 80px;
    color: var(--primary-light);
    opacity: 0.5;
    transition: var(--transition-normal);
}

.product-card:hover .product-placeholder-img {
    transform: scale(1.1);
}

.product-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent);
    color: var(--white);
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
}

.product-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.product-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.product-price {
    font-size: 15px;
    color: var(--text-muted);
}

.product-price span {
    font-size: 22px;
    font-weight: 900;
    color: var(--accent);
}

/* صفحة المنتج والطلب (Product Detail Configuration) */
.product-config-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

@media (max-width: 992px) {
    .product-config-grid {
        grid-template-columns: 1fr;
    }
}

.config-preview-panel {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 30px;
    position: sticky;
    top: 100px;
    box-shadow: var(--shadow-sm);
}

.preview-box {
    aspect-ratio: 4/3;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    border: 2px dashed var(--border-color);
    overflow: hidden;
}

.preview-logo-placeholder {
    width: 80px;
    opacity: 0.3;
    transition: var(--transition-normal);
}

.preview-uploaded-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    z-index: 5;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.config-options-panel {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 35px;
    box-shadow: var(--shadow-sm);
}

.config-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.config-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.config-label {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.config-label span {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 13px;
}

/* خيارات الأزرار الراديو للمقاسات */
.radio-tile-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 12px;
}

.radio-tile {
    position: relative;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px 6px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.radio-tile input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-tile:hover {
    border-color: var(--primary-light);
    background: rgba(90,45,145,0.02);
}

.radio-tile.selected {
    border-color: var(--primary);
    background: rgba(90,45,145,0.05);
    color: var(--primary);
    font-weight: 700;
    box-shadow: 0 0 0 1px var(--primary);
}

/* القائمة المنسدلة المخصصة */
.select-wrapper {
    position: relative;
}

.custom-select {
    width: 100%;
    padding: 14px 20px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.custom-select:focus {
    border-color: var(--primary);
    background: var(--white);
}

.select-wrapper::after {
    content: '▼';
    font-size: 10px;
    color: var(--text-muted);
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

/* أداة التحكم بالأرقام المخصصة (Number Picker) */
.number-picker {
    display: flex;
    align-items: center;
    gap: 5px;
    max-width: 150px;
}

.number-btn {
    width: 40px;
    height: 40px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--primary-dark);
    font-size: 18px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

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

.number-input {
    width: 50px;
    height: 40px;
    text-align: center;
    font-weight: bold;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--white);
}

/* خيار الطباعة على الوجهين تفاعلي */
.toggle-switch-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.switch-label {
    font-weight: 700;
    color: var(--primary-dark);
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 32px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary);
}

input:checked + .slider:before {
    transform: translateX(28px);
}

/* منطقة رفع الملف تفاعلية */
.upload-container {
    border: 2px dashed var(--primary-light);
    background: rgba(90,45,145,0.01);
    border-radius: var(--radius-sm);
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-normal);
}

.upload-container:hover {
    background: rgba(90,45,145,0.03);
    border-color: var(--accent);
}

.upload-icon {
    font-size: 32px;
    color: var(--primary-light);
    margin-bottom: 12px;
}

.upload-text {
    font-size: 14px;
    font-weight: bold;
    color: var(--primary-dark);
    margin-bottom: 5px;
}

.upload-hint {
    font-size: 12px;
    color: var(--text-muted);
}

/* شريط السعر الإجمالي في الأسفل */
.total-price-bar {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
}

.total-label {
    font-size: 14px;
    color: var(--text-muted);
}

.total-amount {
    font-size: 24px;
    font-weight: 900;
    color: var(--accent);
}

.total-unit-price {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* عربة التسوق الجانبية (Cart Sliding Drawer) */
.cart-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 10, 26, 0.6);
    backdrop-filter: blur(4px);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-normal);
}

.cart-drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.cart-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    max-width: 480px;
    background: var(--white);
    z-index: 210;
    box-shadow: -10px 0 30px rgba(0,0,0,0.15);
    transform: translateX(-100%);
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.cart-drawer.active {
    transform: translateX(0);
}

.cart-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-dark);
}

.cart-close-btn {
    background: none;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
}

.cart-close-btn:hover {
    color: var(--accent);
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 24px;
}

.cart-empty-message {
    text-align: center;
    color: var(--text-muted);
    margin-top: 50px;
}

.cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.cart-item-img {
    width: 70px;
    height: 70px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    color: var(--primary-light);
    flex-shrink: 0;
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-name {
    font-weight: 700;
    font-size: 15px;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.cart-item-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.cart-item-price {
    font-weight: 700;
    color: var(--accent);
}

.cart-item-remove {
    position: absolute;
    top: 0;
    left: 0;
    background: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
}

.cart-item-remove:hover {
    color: var(--accent);
}

.cart-footer {
    padding: 24px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-light);
}

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

.cart-total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

.cart-total-row.grand-total {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-dark);
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
    margin-top: 10px;
}

.cart-total-row.grand-total span {
    color: var(--accent);
}

/* صفحة الدفع وإتمام الطلب (Checkout Page) */
.checkout-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: start;
}

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

.checkout-form-panel {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 35px;
    box-shadow: var(--shadow-sm);
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

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

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

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 18px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: var(--transition-fast);
}

.form-input:focus {
    border-color: var(--primary);
    background: var(--white);
}

.delivery-options-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.delivery-option-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 15px;
    cursor: pointer;
    text-align: center;
    position: relative;
    transition: var(--transition-fast);
}

.delivery-option-card input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.delivery-option-card:hover {
    border-color: var(--primary-light);
}

.delivery-option-card.selected {
    border-color: var(--primary);
    background: rgba(90,45,145,0.05);
    color: var(--primary);
    font-weight: 700;
    box-shadow: 0 0 0 1px var(--primary);
}

.delivery-option-title {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 4px;
}

.delivery-option-price {
    font-size: 13px;
    color: var(--accent);
}

.checkout-summary-panel {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 100px;
}

/* نجاح الطلب (Order Success) */
.success-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 60px 40px;
    text-align: center;
    max-width: 600px;
    margin: 40px auto;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.success-icon {
    width: 80px;
    height: 80px;
    background: rgba(46, 125, 50, 0.1);
    color: #2E7D32;
    font-size: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    margin: 0 auto 30px auto;
}

.success-title {
    font-size: 26px;
    font-weight: 900;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.success-desc {
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* ذيل الصفحة (Footer) */
footer {
    background: #180D2B;
    color: #E2DFE6;
    padding: 60px 0 30px 0;
    border-top: 5px solid var(--accent);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo-wrapper {
    margin-bottom: 20px;
}

.footer-logo-img {
    height: 60px;
}

.footer-logo-text {
    font-size: 24px;
    font-weight: 900;
    color: var(--white);
}

.footer-logo-text span.purple {
    color: var(--primary-light);
}

.footer-logo-text span.pink {
    color: var(--accent);
}

.footer-title {
    color: var(--white);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background: var(--accent);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a:hover {
    color: var(--accent);
    padding-right: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 13px;
    color: #7A7285;
}

/* لوحة تحكم الإدارة (Admin Dashboard CSS) */
.admin-wrapper {
    padding: 40px 0;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 20px;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.admin-stat-card {
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 20px;
    border: 1px solid var(--border-color);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.admin-stat-val {
    font-size: 28px;
    font-weight: 900;
    color: var(--primary);
    margin-top: 5px;
}

.admin-table-wrapper {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: right;
    font-size: 14px;
}

.admin-table th {
    background: var(--primary-dark);
    color: var(--white);
    font-weight: 700;
    padding: 16px 20px;
}

.admin-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.admin-table tr:hover {
    background: rgba(90,45,145,0.01);
}

/* حالات الطلب (Order Status Badges) */
.status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: bold;
    text-align: center;
}

.status-pending { background: #FFF3E0; color: #E65100; }
.status-printing { background: #E8F5E9; color: #1B5E20; }
.status-shipped { background: #E3F2FD; color: #0D47A1; }
.status-completed { background: #E0F2F1; color: #004D40; }
.status-cancelled { background: #FFEBEE; color: #C62828; }

.status-select {
    padding: 6px 12px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 12px;
    cursor: pointer;
}

.admin-login-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 40px;
    max-width: 450px;
    margin: 80px auto;
    box-shadow: var(--shadow-md);
}

/* تأثير حركة الهيدر للهواتف (إخفاء عند النزول وإظهار عند الصعود) */
@media (max-width: 768px) {
    header {
        transition: transform 0.3s ease-in-out;
    }
    header.scroll-down {
        transform: translateY(-100%);
    }
}

/* تنسيقات الهواتف لصفحة تفاصيل المنتج لعدم التداخل */
@media (max-width: 992px) {
    .product-config-grid {
        gap: 30px;
        margin-bottom: 150px; /* مساحة إضافية لشريط السعر والواتساب السفلي */
    }
    .config-preview-panel {
        position: relative !important;
        top: auto !important;
        padding: 20px;
    }
    .total-price-bar {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 99 !important;
        margin: 0 !important;
        border-radius: 0 !important;
        border-top: 1px solid var(--border-color) !important;
        box-shadow: 0 -4px 15px rgba(0,0,0,0.1) !important;
        background: var(--white) !important;
        padding: 15px 20px !important;
    }
}

/* رفع زر الواتساب العائم في صفحة تفاصيل المنتج حتى لا يتداخل مع شريط السعر السفلي */
@media (max-width: 992px) {
    .container:has(.product-config-grid) ~ .whatsapp-float {
        bottom: 160px !important; /* رفعه بمقدار كافٍ ليكون أعلى من شريط السعر الذي طوله 124px */
    }
}
