/* إضافة في بداية ملف core.css أو nexus-theme.css */

/* ===================================
   إزالة الخطوط تحت الروابط
   =================================== */

a {
    text-decoration: none !important;
}

/* إزالة الخطوط من الأزرار */
button {
    text-decoration: none !important;
}

/* إصلاح الروابط في الهيدر */
.nav-menu a,
.category-nav a {
    text-decoration: none !important;
}

/* إصلاح الروابط في البراندات */
.category-brand-card {
    text-decoration: none !important;
}

.category-brand-card:hover {
    text-decoration: none !important;
}

/* إصلاح روابط المنتجات */
.product-card a {
    text-decoration: none !important;
}

.product-title {
    text-decoration: none !important;
}

/* إصلاح الفوتر */
.footer-links a {
    text-decoration: none !important;
}

/* ===================================
   إزالة المربع حوالين النصوص (Outline)
   =================================== */

* {
    outline: none !important;
}

*:focus {
    outline: none !important;
    box-shadow: none !important;
}

a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* إزالة الـ focus ring من المتصفح */
:focus-visible {
    outline: none !important;
}

/* css/core.css - الهيكل والوظائف فقط */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

    /* تحسين نعومة الخطوط */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
header {
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: color 0.3s;
}

.cart-icon {
    position: relative;
    cursor: pointer;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.header-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-nav {
    display: flex;
    list-style: none;
    gap: 25px;
}

.category-nav a {
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 5px 0;
    position: relative;
    cursor: pointer;
    transition: color 0.3s;
}

.create-bundle {
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
}

/* Search Section */
.search-section {
    padding: 30px 0;
    margin: 20px 0;
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-box {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
}

.search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    border-radius: 0 0 10px 10px;
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    display: none;
}

.suggestion-group {
    padding: 10px 0;
    border-bottom: 1px solid;
}

.suggestion-group:last-child {
    border-bottom: none;
}

.suggestion-group-title {
    padding: 5px 20px;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.suggestion-item {
    padding: 12px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s;
}

.suggestion-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.suggestion-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.suggestion-text {
    flex: 1;
}

.suggestion-model {
    font-size: 12px;
    opacity: 0.7;
}

/* Floating Search Button */
.floating-search-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s;
}

.floating-search-btn:hover {
    transform: scale(1.1);
}

/* Main Content */
.main-content {
    min-height: 60vh;
    padding: 20px 0 50px;
}

/* Pages */
.page {
    display: none;
}

.page.active {
    display: block;
}

.page-title {
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-subtitle {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.8;
}

/* Notification Banner */
.notification-banner {
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 40px;
    text-align: center;
}

.notification-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.notification-steps {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    max-width: 120px;
}

.step-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.step-text {
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.product-card {
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-info {
    padding: 20px;
}

.product-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.product-model {
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 10px;
}

.product-price {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
}

.add-to-cart-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

/* Category Pages */
.category-header {
    text-align: center;
    margin-bottom: 40px;
}

.category-title {
    font-size: 36px;
    margin-bottom: 10px;
    font-weight: bold;
}

.category-brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.category-brand-card {
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.category-brand-card:hover {
    transform: translateY(-5px);
}

.category-brand-name {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 8px;
}

.category-brand-models {
    font-size: 14px;
    opacity: 0.8;
}

/* Cart */
.cart-items {
    margin-bottom: 30px;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 20px;
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.cart-item-model {
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 5px;
}

.cart-item-price {
    font-weight: bold;
}

.cart-item-remove {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background 0.3s;
}

.cart-summary {
    padding: 25px;
    border-radius: 10px;
    text-align: center;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

.checkout-btn {
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

/* Checkout */
.checkout-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.billing-info,
.payment-info {
    padding: 25px;
    border-radius: 10px;
}

.billing-info h3,
.payment-info h3 {
    margin-bottom: 20px;
    font-size: 22px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
}

.payment-methods {
    margin-bottom: 20px;
}

.payment-method {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.payment-method input {
    width: auto;
    margin-right: 10px;
}

/* Product Detail */
.back-button {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    margin-bottom: 20px;
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;

    /* استخدام ألوان الثيم */
    color: var(--primary-cyan) !important;
    text-shadow: 0 0 10px var(--primary-cyan);
    font-weight: 600;
}

.back-button:hover {
    color: var(--primary-dark) !important;
    text-shadow: 0 0 20px var(--primary-cyan);
    transform: translateX(-5px);
}

.back-button i {
    color: inherit;
    text-shadow: inherit;
    transition: transform 0.3s ease;
}

.back-button:hover i {
    transform: translateX(-3px);
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.product-detail-image {
    width: 100%;
    border-radius: 15px;
}

.product-detail-info {
    padding: 20px 0;
}

.product-detail-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
}

.product-detail-model {
    font-size: 18px;
    opacity: 0.8;
    margin-bottom: 15px;
}

.product-detail-price {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
}

.product-detail-description {
    margin-bottom: 25px;
    line-height: 1.8;
}

.product-detail-features {
    margin-bottom: 25px;
}

.product-detail-features h4 {
    margin-bottom: 10px;
    font-size: 18px;
}

.product-detail-features ul {
    list-style-position: inside;
    margin-left: 15px;
}

.product-detail-features li {
    margin-bottom: 8px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination-btn {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.pagination-btn.active {
    font-weight: bold;
}

/* Footer */
footer {
    padding: 50px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-title {
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: bold;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        gap: 15px;
    }

    .nav-menu a {
        font-size: 14px;
    }

    .category-nav {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .category-nav a {
        font-size: 13px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .checkout-form {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-detail {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .notification-steps {
        gap: 20px;
    }

    .step {
        max-width: 100px;
    }

    .step-icon {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .header-top {
        flex-direction: column;
        gap: 15px;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .category-brands-grid {
        grid-template-columns: 1fr;
    }

    .notification-steps {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .step {
        flex-direction: row;
        max-width: 100%;
        gap: 15px;
    }

    /* css/core.css - إضافة إعدادات الصور */

    /* تأكد أن كل الصور متسقة */
    img {
        max-width: 100%;
        height: auto;
    }

    /* تحسين general styles للصور */
    .product-image,
    .product-image-large img,
    .cart-item-image {
        display: block;
        margin: 0 auto;
    }

    /* تحسين الـ product cards */
    .product-card {
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .product-info {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .add-to-cart {
        margin-top: auto;
    }
}

/* Language Switcher Styles */
.language-switcher select {
    background: transparent;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 5px 8px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.language-switcher select:hover {
    background: rgba(255, 255, 255, 0.1);
}

.language-switcher select:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
}

.language-switcher select option {
    background: #2a2a2a;
    color: white;
    padding: 10px;
}