/* Eprofishing Inspired Theme Variables */
:root {
    --brand-cyan: #28c7ea;
    --brand-cyan-hover: #17c1e7;
    --brand-red: #f04f36;
    --text-dark: #1d1d1d;
    --text-gray: #5a5a5a;
    --border-light: #e8e8e8;
    --bg-main: #ffffff;
    --bg-gray: #fafafa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-main);
    color: var(--text-dark);
    padding-bottom: 70px;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Announcement Bar */
.announcement-bar {
    background-color: var(--brand-cyan);
    color: #fff;
    text-align: center;
    padding: 10px;
    font-size: 0.95rem;
    font-weight: 700;
}

/* Header */
.site-header {
    background: var(--bg-main);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

/* --- IMAGE LOGO STYLES (Desktop) --- */
.logo {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo img {
    height: 85px; 
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}
/* ------------------------- */

.search-bar {
    flex: 1;
    display: flex;
    max-width: 500px;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    background: var(--bg-main);
    overflow: hidden;
}

.search-bar input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 15px;
    outline: none;
    font-size: 0.95rem;
}

.search-bar button {
    background: var(--brand-cyan);
    border: none;
    padding: 0 20px;
    color: #fff;
    cursor: pointer;
    font-size: 1.1rem;
}

.desktop-nav {
    display: flex;
    gap: 15px;
}

.desktop-nav button {
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    padding: 5px 10px;
    transition: 0.3s;
}

.desktop-nav button:hover, .desktop-nav button.active {
    color: var(--brand-cyan);
}

.cart-icon {
    font-size: 1.4rem;
    position: relative;
    cursor: pointer;
    color: var(--text-dark);
}

.badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--brand-cyan);
    color: #fff;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 50%;
}

/* Trust Bar */
.trust-bar {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 25px 0;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 40px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-gray);
}

.trust-item i {
    color: var(--brand-cyan);
    font-size: 1.2rem;
}

/* Main Content */
.main-content {
    padding-bottom: 50px;
}

.section-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 30px;
    color: var(--text-dark);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.card {
    background: var(--bg-main);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: box-shadow 0.3s, border-color 0.3s;
    display: flex;
    flex-direction: column;
}

.card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-color: #ddd;
}

.card-img {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.card-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.4;
    text-align: center;
    flex-grow: 1;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.price {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--text-dark);
}

.btn-primary {
    background: var(--brand-cyan);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
    transition: 0.3s;
    padding: 8px 15px;
}

.btn-primary:hover {
    background: var(--brand-cyan-hover);
}

/* Product Details View */
.back-btn {
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 20px;
}

.back-btn:hover {
    color: var(--brand-cyan);
}

.product-details-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    background: #fff;
}

.pd-img {
    background: var(--bg-gray);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 450px;
}

.pd-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.pd-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.pd-brand {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 15px;
}

.pd-price {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--brand-red);
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
}

/* Product Page Trust Badges */
.pd-trust-badges {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: var(--bg-gray);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
}

.pd-trust-badges div {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 0.95rem;
}

.pd-trust-badges i {
    color: var(--brand-cyan);
    font-size: 1.3rem;
}

/* Full Description */
.pd-full-desc {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border-light);
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-gray);
}

.pd-full-desc h3 {
    color: var(--text-dark);
    font-size: 1.2rem;
    margin-bottom: 10px;
    margin-top: 20px;
}

.pd-full-desc ul {
    margin-right: 20px;
    margin-bottom: 15px;
}

.pd-full-desc li {
    margin-bottom: 8px;
}

/* Modal Checkout */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: flex-end; 
    z-index: 1000;
}

.modal-content {
    background: #fff;
    width: 100%;
    max-width: 450px;
    height: 100%;
    padding: 30px;
    overflow-y: auto;
    animation: slideIn 0.3s forwards;
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.close-btn {
    background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-gray);
}

.cart-item {
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid var(--border-light); padding: 15px 0; font-weight: 600;
}

.remove-item-btn {
    background: none;
    border: none;
    color: var(--brand-red);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 5px;
    margin-right: 15px;
    transition: 0.2s;
}

.remove-item-btn:hover {
    color: #c0392b;
    transform: scale(1.1);
}

.cart-total-box {
    display: flex; justify-content: space-between; margin: 20px 0; font-size: 1.2rem; font-weight: 800;
}

.checkout-section form {
    display: flex; flex-direction: column; gap: 12px;
}

.checkout-section input, .checkout-section textarea {
    padding: 12px; border: 1px solid var(--border-light); border-radius: 4px; font-size: 1rem; background: var(--bg-gray); outline:none;
}
.checkout-section input:focus, .checkout-section textarea:focus {
    border-color: var(--brand-cyan);
}

/* Mobile App Navigation */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0; left: 0; width: 100%;
    background: #fff;
    border-top: 1px solid var(--border-light);
    z-index: 100;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
    color: var(--text-gray);
    font-size: 0.75rem;
    cursor: pointer;
}

.nav-item i {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.nav-item:hover { color: var(--brand-cyan); }

.cart-nav-item { position: relative; }
.mobile-badge {
    position: absolute;
    top: 5px; right: 20px;
    background: var(--brand-red); 
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 50%;
}


/* ========================================= */
/* --- PERFECT CLEAN MOBILE LAYOUT --- */
/* ========================================= */

@media (max-width: 768px) {
    .desktop-nav, .desktop-cart, .hide-mobile { display: none; }
    .mobile-bottom-nav { display: flex; }
    
    /* 1. Stack the header cleanly with tight spacing */
    .header-wrapper { 
        flex-direction: column; 
        height: auto; 
        padding: 10px 15px; 
        gap: 10px; /* Reduced gap to save vertical space */
    }
    
    /* 2. Logo centered, large, and clean. NO borders, NO backgrounds */
    .logo {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .logo img { 
        height: 85px; /* Big enough to read the Arabic text, small enough not to waste space */
        width: auto;
        max-width: 100%;
        object-fit: contain;
        /* Removed all the floating/border code from last time */
    }

    /* 3. Search Bar full width under the logo */
    .search-bar { 
        width: 100%; 
        max-width: 100%; 
    }
    .search-bar input {
        padding: 8px 10px;
        font-size: 0.85rem;
    }
    
    /* 4. Trust bar - tight and compact */
    .trust-bar { 
        gap: 10px; 
        padding: 10px 0; 
        margin-bottom: 20px;
    }
    .trust-item { 
        font-size: 0.8rem; 
    }
    .trust-item i {
        font-size: 1rem;
    }
    
    /* Product Grid */
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .card { padding: 10px; }
    .card-img { height: 120px; }
    .card h3 { font-size: 0.85rem; }
    .price { font-size: 0.95rem; }
    
    /* Product Details */
    .product-details-layout { grid-template-columns: 1fr; gap: 20px;}
    .pd-img { height: 300px; padding: 10px; }
    .pd-title { font-size: 1.5rem; }
}