/* =========================================
   STORE PRO DESIGN - LIGHT MODE
   Colors: Orange & Black/Dark
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&family=Tajawal:wght@400;500;700;800&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

:root {
    --pro-primary: #FF6A00;
    --pro-primary-hover: #ff8c42;
    --pro-dark: #1A1A1A;
    --pro-dark-soft: #2d2d2d;
    --pro-white: #FFFFFF;
    --pro-bg: #f8f9fc;
    --pro-gray: #e9ecef;
    --pro-text: #333333;
    --pro-text-light: #6c757d;

    --pro-shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --pro-shadow-md: 0 10px 20px -5px rgba(0, 0, 0, 0.08);
    --pro-shadow-lg: 0 20px 30px -5px rgba(255, 106, 0, 0.1);

    --pro-radius: 16px;
    --pro-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Base Restyling */
body {
    background-color: var(--pro-bg);
    font-family: 'Tajawal', 'Cairo', sans-serif;
    color: var(--pro-text);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.pro-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   PRO HEADER & NAVBAR
   ========================================= */
.pro-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--pro-shadow-sm);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.8rem 0;
}

.pro-navbar-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Mobile Icon Buttons */
.mobile-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.mobile-menu-btn,
.mobile-search-btn {
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--pro-dark);
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--pro-transition);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn:hover,
.mobile-search-btn:hover {
    color: var(--pro-primary);
    background: rgba(255, 106, 0, 0.1);
}

.right-nav-placeholder {
    display: none;
    /* Removed space placeholder since mobile icons are now on right */
}

/* Logo */
.pro-logo-img {
    height: 45px;
    transition: var(--pro-transition);
}

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

/* Navigation Links (Desktop) */
.desktop-nav {
    display: none;
    /* Hide traditional nav globally */
}

/* Search Bar (Global Dropdown behave like mobile) */
.pro-search-box {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--pro-white);
    border-radius: 0;
    border: none;
    border-bottom: 2px solid var(--pro-primary);
    padding: 1rem;
    z-index: 900;
    max-width: 100%;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.pro-search-box.show-mobile {
    display: flex;
    animation: fadeIn 0.3s forwards;
}

.pro-search-box.active {
    border-color: var(--pro-primary);
}

.pro-search-box:focus-within {
    border-color: var(--pro-primary);
    box-shadow: 0 0 0 4px rgba(255, 106, 0, 0.1);
    background: var(--pro-white);
}

.pro-search-input {
    border: none;
    background: var(--pro-bg);
    border-radius: 50px;
    padding: 0.8rem 1.5rem;
    width: 100%;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    color: var(--pro-dark);
}

.pro-search-btn {
    background: linear-gradient(135deg, var(--pro-primary), var(--pro-primary-hover));
    color: white;
    border: none;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    transition: var(--pro-transition);
}

.pro-search-btn:hover {
    box-shadow: 0 4px 10px rgba(255, 106, 0, 0.3);
    transform: translateY(-2px);
}

/* Mobile Menu Styles - Premium Glass Design */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2000;
    display: none;
}

.mobile-menu-overlay.active {
    display: flex;
    justify-content: flex-start;
}

.mobile-menu-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    animation: fadeIn 0.3s forwards;
}

.mobile-menu-content {
    position: relative;
    width: 60%;
    min-width: 240px;
    max-width: 350px;
    height: 100%;
    background: #ffffff;
    /* Solid white background */
    padding: 2rem 1rem;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.08); /* shadow on the left edge */
    transform: translateX(100%);
    animation: slideInRight 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    display: flex;
    flex-direction: column;
    border-radius: 0;
    border-left: none;
    height: 100vh; /* Force to take full height of screen */
}

.mobile-menu-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--pro-gray);
    position: relative;
}

.menu-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-menu-logo {
    height: 42px;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.1));
}

.menu-brand-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--pro-dark);
    background: linear-gradient(45deg, var(--pro-dark), var(--pro-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.close-menu-btn {
    background: rgba(0, 0, 0, 0.04);
    border: none;
    font-size: 1.2rem;
    color: var(--pro-dark);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--pro-transition);
    position: absolute;
    left: 0;
}

.close-menu-btn:hover {
    background: var(--pro-primary);
    color: white;
    transform: rotate(90deg);
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    flex: 1; /* Allow it to take up remaining space */
    overflow-y: auto; /* Scroll only the options if they exceed screen height */
    overflow-x: hidden;
}

.mobile-nav-list li {
    margin-bottom: 0.8rem;
}

.mobile-nav-list > li > a,
.mobile-dropdown-toggle {
    display: flex;
    align-items: center;
    padding: 0.8rem 0.5rem;
    color: var(--pro-dark);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 8px;
    transition: var(--pro-transition);
    position: relative;
    overflow: hidden;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--pro-gray);
    box-shadow: none;
}

.mobile-dropdown-toggle {
    justify-content: space-between;
    cursor: pointer;
}

.mobile-nav-list>li>a i.menu-icon,
.mobile-dropdown-toggle i.menu-icon {
    margin-left: 15px;
    color: var(--pro-primary) !important;
    font-size: 1.2rem;
    background: rgba(255, 106, 0, 0.1);
    width: 38px !important;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: var(--pro-transition);
}

.mobile-nav-list>li>a:hover,
.mobile-dropdown-toggle:hover {
    background: rgba(255, 106, 0, 0.05);
    color: var(--pro-primary);
    transform: translateY(0);
    border-bottom-color: var(--pro-primary);
}

.mobile-nav-list>li>a:hover i.menu-icon,
.mobile-dropdown-toggle:hover i.menu-icon {
    background: var(--pro-primary);
    color: white !important;
}

/* Mobile Dropdown (Accordion) */
.dropdown-arrow {
    transition: transform 0.3s ease;
    color: var(--pro-text-light);
    font-size: 0.9rem;
}

.mobile-dropdown-menu {
    list-style: none;
    padding: 0;
    margin: 0.5rem 1rem 0 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.mobile-dropdown-menu li a {
    display: flex;
    align-items: center;
    padding: 0.6rem 0.8rem;
    font-size: 1rem;
    color: var(--pro-text);
    border-right: 2px solid var(--pro-gray);
    border-radius: 0;
    text-decoration: none;
    transition: var(--pro-transition);
}

.mobile-dropdown-menu li a i {
    margin-left: 10px;
    color: var(--pro-text-light);
}

.mobile-dropdown-menu li a:hover {
    border-right-color: var(--pro-primary);
    background: transparent;
    color: var(--pro-primary);
}
}

.mobile-menu-footer {
    text-align: center;
    color: var(--pro-text-light);
    font-size: 0.9rem;
    margin-top: 2rem;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes slideInRight {
    to {
        transform: translateX(0);
    }
}

/* Adjust Desktop Global Structure */
@media (min-width: 993px) {
    .pro-navbar-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}

/* =========================================
   PRO BANNER (HERO)
   ========================================= */
.pro-banner-section {
    padding: 2rem 0;
}

.pro-banner {
    background: linear-gradient(135deg, var(--pro-dark), #000);
    border-radius: var(--pro-radius);
    overflow: hidden;
    display: flex;
    align-items: center;
    position: relative;
    box-shadow: var(--pro-shadow-lg);
    color: white;
    padding: 4rem 3rem;
    min-height: 350px;
}

.pro-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 106, 0, 0.3) 0%, transparent 60%);
    border-radius: 50%;
}

.pro-banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 140, 66, 0.2) 0%, transparent 60%);
    border-radius: 50%;
}

.pro-banner-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.pro-banner-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1rem;
    margin-top: 0;
}

.pro-banner-title span {
    color: var(--pro-primary);
    display: inline-block;
}

.pro-banner-text {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.pro-btn-glow {
    display: inline-block;
    background: linear-gradient(45deg, var(--pro-primary), var(--pro-primary-hover));
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(255, 106, 0, 0.4);
    transition: var(--pro-transition);
    border: none;
    cursor: pointer;
}

.pro-btn-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 106, 0, 0.6);
}

/* =========================================
   PRO PRODUCT GRID & CARDS
   ========================================= */
.pro-section-title {
    text-align: center;
    margin: 4rem 0 2rem;
    font-size: 2.2rem;
    color: var(--pro-dark);
    font-weight: 800;
    position: relative;
}

.pro-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--pro-primary);
    margin: 0.5rem auto 0;
    border-radius: 4px;
}

.pro-section-subtitle {
    text-align: center;
    color: var(--pro-text-light);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.pro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.pro-card {
    background: var(--pro-white);
    border-radius: var(--pro-radius);
    box-shadow: var(--pro-shadow-md);
    overflow: hidden;
    transition: var(--pro-transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.pro-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--pro-shadow-lg);
}

.pro-card-img-wrap {
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
    background: var(--pro-bg);
}

.pro-card-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.pro-card:hover .pro-card-img {
    transform: scale(1.08);
}

.pro-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--pro-dark);
    color: white;
    font-weight: 800;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.pro-badge span {
    color: var(--pro-primary);
    font-size: 0.9rem;
    margin-right: 2px;
}

.pro-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.pro-card-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--pro-dark);
    margin: 0 0 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 3.5rem;
}

.pro-card-desc {
    color: var(--pro-text-light);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.85rem;
}

.pro-card-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: max-content;
    min-width: 180px;
    margin-top: auto;
    margin-left: auto;
    margin-right: auto;
    align-self: center;
    text-align: center;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 106, 0, 0.1);
    color: var(--pro-primary);
    font-weight: 800;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--pro-transition);
    border: 1px solid transparent;
}

.pro-card:hover .pro-card-btn {
    background: var(--pro-primary);
    color: white;
    box-shadow: 0 4px 10px rgba(255, 106, 0, 0.3);
}

/* Status / Empty Messages */
.pro-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--pro-white);
    border-radius: var(--pro-radius);
    box-shadow: var(--pro-shadow-sm);
    grid-column: 1 / -1;
}

/* =========================================
   PRO FOOTER (Dark)
   ========================================= */
.pro-footer {
    background: var(--pro-dark);
    color: var(--pro-white);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

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

.pro-footer-col h3 {
    color: var(--pro-primary);
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.pro-footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--pro-primary);
}

.pro-footer-col p {
    color: #bbb;
    line-height: 1.8;
}

.pro-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pro-footer-links li {
    margin-bottom: 0.8rem;
}

.pro-footer-links a {
    color: #bbb;
    text-decoration: none;
    transition: var(--pro-transition);
    display: inline-block;
}

.pro-footer-links a:hover {
    color: var(--pro-primary);
    transform: translateX(-5px);
    /* RTL */
}

.pro-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.pro-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: var(--pro-transition);
}

.pro-social a:hover {
    background: var(--pro-primary);
    transform: translateY(-3px);
}

.pro-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    color: #888;
    font-size: 0.95rem;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 992px) {

    /* Header layout */
    .desktop-nav {
        display: none;
        /* Hide standard navigation */
    }

    .mobile-controls {
        display: flex;
        /* Show mobile icons */
    }

    .right-nav-placeholder {
        display: none;
        /* Hide the desktop space */
    }

    .pro-navbar-top {
        padding: 0.5rem 0;
    }

    .pro-navbar {
        flex-direction: column;
        align-items: stretch;
    }



    .pro-banner {
        padding: 3rem 2rem;
    }

    .pro-banner-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .pro-banner-title {
        font-size: 2rem;
    }

    .pro-logo-img {
        height: 35px;
        /* Slightly smaller logo for small screens */
    }
}