/* =========================================================
   Wopow Store - Main Stylesheet
========================================================= */

:root {
    --wopow-primary: #ff6a00;
    --wopow-primary-dark: #e05e00;
    --wopow-dark: #1a1a2e;
    --wopow-text: #2b2b33;
    --wopow-muted: #6b6b76;
    --wopow-bg: #ffffff;
    --wopow-bg-soft: #f7f7fa;
    --wopow-border: #eaeaef;
    --wopow-radius: 14px;
    --wopow-shadow: 0 4px 20px rgba(0,0,0,0.06);
    --wopow-container: 1200px;
    --wopow-font: 'Poppins', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--wopow-font);
    color: var(--wopow-text);
    background: var(--wopow-bg);
    line-height: 1.7;
    direction: ltr;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 700; }

.container {
    max-width: var(--wopow-container);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: all .25s ease;
}
.btn-primary {
    background: var(--wopow-primary);
    color: #fff;
}
.btn-primary:hover { background: var(--wopow-primary-dark); transform: translateY(-2px); }
.btn-secondary {
    background: #fff;
    color: var(--wopow-primary);
    border: 2px solid var(--wopow-primary);
}
.btn-secondary:hover { background: var(--wopow-primary); color: #fff; }

.wopow-notice {
    background: var(--wopow-bg-soft);
    border: 1px dashed var(--wopow-border);
    padding: 20px;
    border-radius: var(--wopow-radius);
    text-align: center;
    color: var(--wopow-muted);
}

/* =========================================================
   Top Bar
========================================================= */
.top-bar {
    background: var(--wopow-dark);
    color: #cfcfe0;
    font-size: 13px;
}
.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px;
}
.top-bar-contact a { color: #cfcfe0; }
.top-bar-social { display: flex; gap: 12px; align-items: center; }
.top-bar-social .social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cfcfe0;
    transition: color .2s;
}
.top-bar-social .social-icon:hover { color: var(--wopow-primary); }

/* =========================================================
   Header
========================================================= */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--wopow-border);
    position: sticky;
    top: 0;
    z-index: 999;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 20px;
    flex-wrap: wrap;
    position: relative;
}
.site-branding img { max-height: 55px; width: auto; }
.site-title-fallback { font-size: 24px; font-weight: 800; color: var(--wopow-primary); }

.main-navigation { flex: 1; }
.nav-menu {
    display: flex;
    gap: 26px;
    justify-content: center;
    flex-wrap: wrap;
}
.nav-menu a {
    font-weight: 600;
    font-size: 15px;
    color: var(--wopow-text);
    padding: 6px 0;
    position: relative;
}
.nav-menu a:hover { color: var(--wopow-primary); }
.nav-menu li.current-menu-item > a { color: var(--wopow-primary); }

.header-actions { display: flex; align-items: center; gap: 16px; }
.search-toggle, .cart-toggle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--wopow-bg-soft);
    border: none;
    cursor: pointer;
    color: var(--wopow-text);
}
.search-toggle:hover, .cart-toggle:hover { background: var(--wopow-primary); color: #fff; }

.cart-count {
    position: absolute;
    top: -4px;
    left: -4px;
    background: var(--wopow-primary);
    color: #fff;
    font-size: 11px;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.mobile-menu-toggle span {
    width: 26px; height: 3px;
    background: var(--wopow-text);
    border-radius: 3px;
    transition: all .3s;
}

.header-search-box {
    display: none;
    width: 100%;
    padding-top: 14px;
}
.header-search-box.active { display: block; }

.wopow-search-form {
    display: flex;
    align-items: center;
    background: var(--wopow-bg-soft);
    border-radius: 50px;
    padding: 4px 6px 4px 4px;
    max-width: 500px;
    margin: 0 auto;
}
.wopow-search-form .search-field {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 16px;
    font-family: var(--wopow-font);
    font-size: 14px;
    outline: none;
}
.wopow-search-form .search-submit {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--wopow-primary);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================================================
   Hero Section
========================================================= */
.hero-section {
    background: linear-gradient(135deg, var(--wopow-dark) 0%, #302b63 100%);
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 90px 20px;
    text-align: center;
    position: relative;
}
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(20,20,35,0.45);
}
.hero-inner { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.hero-title { font-size: 42px; margin-bottom: 16px; }
.hero-subtitle { font-size: 18px; color: #e2e2f0; margin-bottom: 30px; }

/* =========================================================
   Offers Slider
========================================================= */
.offers-section { position: relative; overflow: hidden; }
.offers-slider { position: relative; }
.offers-slider-track {
    position: relative;
    min-height: 380px;
}
.offers-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease;
    background: linear-gradient(135deg, #fff3ea, #ffe6d5);
    display: flex;
    align-items: center;
}
.offers-slide.is-active {
    opacity: 1;
    visibility: visible;
    position: relative;
}
.offers-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    padding: 60px 20px;
    width: 100%;
}
.offers-content { flex: 1; min-width: 280px; }
.offers-eyebrow {
    display: inline-block;
    background: var(--wopow-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 50px;
    margin-bottom: 14px;
}
.offers-content h2 { font-size: 30px; }
.offers-content p { color: var(--wopow-muted); margin-bottom: 20px; font-size: 16px; }
.offers-image { flex: 1; min-width: 280px; max-width: 420px; }
.offers-image img { border-radius: var(--wopow-radius); box-shadow: var(--wopow-shadow); }

.offers-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--wopow-border);
    box-shadow: var(--wopow-shadow);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wopow-text);
    z-index: 3;
    transition: background .2s, color .2s;
}
.offers-arrow:hover { background: var(--wopow-primary); color: #fff; }
.offers-arrow-prev { left: 20px; }
.offers-arrow-next { right: 20px; }

.offers-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}
.offers-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(0,0,0,.2);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background .2s, transform .2s;
}
.offers-dot.is-active {
    background: var(--wopow-primary);
    transform: scale(1.3);
}

/* =========================================================
   Sections generic
========================================================= */
.section { padding: 60px 0; }
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 26px;
    flex-wrap: wrap;
    gap: 10px;
}
.section-header h2 { font-size: 26px; }
.section-link {
    color: var(--wopow-primary);
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}
.category-section:nth-of-type(even) { background: var(--wopow-bg-soft); }

/* =========================================================
   Product Cards / Grid
========================================================= */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.product-card {
    background: #fff;
    border: 1px solid var(--wopow-border);
    border-radius: var(--wopow-radius);
    overflow: hidden;
    transition: transform .25s, box-shadow .25s;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--wopow-shadow);
}
.product-card-image {
    position: relative;
    display: block;
    background: var(--wopow-bg-soft);
    aspect-ratio: 1 / 1;
    overflow: hidden;
}
.product-card-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.product-card:hover .product-card-image img { transform: scale(1.06); }
.badge-sale {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--wopow-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
    z-index: 2;
}
.product-card-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-card-title { font-size: 15px; line-height: 1.4; margin: 0; }
.product-card-title a:hover { color: var(--wopow-primary); }
.product-card-price {
    font-weight: 700;
    color: var(--wopow-primary);
    font-size: 15px;
}
.product-card-price del { color: var(--wopow-muted); font-weight: 400; margin-left: 8px; }
.product-card-actions { margin-top: auto; }
.product-card-actions .button {
    display: block;
    text-align: center;
    background: var(--wopow-dark);
    color: #fff;
    padding: 10px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    transition: background .2s;
}
.product-card-actions .button:hover { background: var(--wopow-primary); }
.product-card-actions .button.loading { opacity: .6; pointer-events: none; }
.product-card-actions .button.added { background: #1e7e4b; }
.product-card-actions .button.added::after { content: ' ✓'; }

/* =========================================================
   Why Us
========================================================= */
.why-us-section { background: var(--wopow-bg-soft); }
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}
.why-us-item { padding: 20px; }
.why-us-icon { font-size: 34px; display: block; margin-bottom: 12px; }
.why-us-item h3 { font-size: 17px; }
.why-us-item p { color: var(--wopow-muted); font-size: 14px; margin: 0; }

/* =========================================================
   Footer
========================================================= */
.site-footer { background: var(--wopow-dark); color: #cfcfe0; margin-top: 40px; }
.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.3fr;
    gap: 30px;
    padding: 60px 20px 40px;
}
.footer-col h3, .footer-col h4 { color: #fff; }
.footer-col p { color: #b6b6c9; font-size: 14px; }
.footer-social { display: flex; gap: 14px; margin-top: 14px; }
.footer-social a {
    color: #cfcfe0;
    font-size: 13px;
    border: 1px solid rgba(255,255,255,.15);
    padding: 6px 14px;
    border-radius: 50px;
    transition: all .2s;
}
.footer-social a:hover { background: var(--wopow-primary); border-color: var(--wopow-primary); color: #fff; }
.footer-menu li { margin-bottom: 10px; }
.footer-menu a, .footer-contact a { color: #cfcfe0; font-size: 14px; }
.footer-menu a:hover, .footer-contact a:hover { color: var(--wopow-primary); }
.footer-contact p { color: #cfcfe0; margin: 0 0 10px; }
.footer-widget-title { color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 18px 20px;
    text-align: center;
    font-size: 13px;
    color: #9a9ab0;
}

/* زر واتساب عائم */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    left: 24px;
    background: #25D366;
    color: #fff;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0,0,0,.25);
    z-index: 998;
    animation: wopow-pulse 2.2s infinite;
}
@keyframes wopow-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); }
    70% { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* =========================================================
   Pages / Posts general
========================================================= */
.page-content { padding: 50px 0; }
.page-header { margin-bottom: 24px; }
.page-title { font-size: 32px; }
.page-featured-image { margin-bottom: 24px; border-radius: var(--wopow-radius); overflow: hidden; }
.page-body { font-size: 16px; color: var(--wopow-text); }
.post-meta { color: var(--wopow-muted); font-size: 13px; }

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 20px;
}
.post-card {
    background: #fff;
    border: 1px solid var(--wopow-border);
    border-radius: var(--wopow-radius);
    overflow: hidden;
}
.post-card-image img { aspect-ratio: 16/10; object-fit: cover; }
.post-card-body { padding: 16px; }
.post-card-title { font-size: 17px; }
.post-card-excerpt { color: var(--wopow-muted); font-size: 14px; }

/* Contact page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 40px;
    margin-top: 30px;
}
.contact-info, .contact-form-wrap {
    background: var(--wopow-bg-soft);
    padding: 28px;
    border-radius: var(--wopow-radius);
}
.contact-form .form-row { margin-bottom: 16px; }
.contact-form label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 14px; }
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--wopow-border);
    border-radius: 10px;
    font-family: var(--wopow-font);
    font-size: 14px;
    outline: none;
    background: #fff;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--wopow-primary); }
.form-message {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 14px;
}
.form-message.success { background: #e6f7ee; color: #1e7e4b; }
.form-message.error { background: #fdeaea; color: #b52222; }

/* =========================================================
   WooCommerce Default Markup Theming
========================================================= */
.woocommerce ul.products,
.woocommerce-page ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    list-style: none;
    margin: 0 !important;
    padding: 0 !important;
}
.woocommerce ul.products li.product {
    background: #fff;
    border: 1px solid var(--wopow-border);
    border-radius: var(--wopow-radius);
    padding: 14px !important;
    text-align: center;
    transition: transform .25s, box-shadow .25s;
    width: 100% !important;
    margin: 0 !important;
}
.woocommerce ul.products li.product:hover { transform: translateY(-6px); box-shadow: var(--wopow-shadow); }
.woocommerce ul.products li.product img {
    border-radius: 10px;
    aspect-ratio: 1/1;
    object-fit: cover;
}
.woocommerce ul.products li.product .price {
    color: var(--wopow-primary);
    font-weight: 700;
}
.woocommerce ul.products li.product .button {
    background: var(--wopow-dark);
    color: #fff;
    border-radius: 50px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
}
.woocommerce ul.products li.product .button:hover { background: var(--wopow-primary); }
.woocommerce span.onsale {
    background: var(--wopow-primary) !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a { color: var(--wopow-text); }
.woocommerce div.product form.cart .button,
.woocommerce #respond input#submit,
.woocommerce a.button, .woocommerce button.button {
    background: var(--wopow-primary) !important;
    color: #fff !important;
    border-radius: 50px !important;
    padding: 12px 26px !important;
    font-weight: 600 !important;
    border: none !important;
}
.woocommerce div.product form.cart .button:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover {
    background: var(--wopow-primary-dark) !important;
}
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    border-radius: 8px !important;
    margin: 0 3px !important;
}
.woocommerce-message, .woocommerce-info {
    border-top-color: var(--wopow-primary) !important;
}
.woocommerce-message::before, .woocommerce-info::before {
    color: var(--wopow-primary) !important;
}

/* =========================================================
   Responsive
========================================================= */
@media (max-width: 991px) {
    .products-grid,
    .woocommerce ul.products, .woocommerce-page ul.products {
        grid-template-columns: repeat(3, 1fr);
    }
    .why-us-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .posts-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .mobile-menu-toggle { display: flex; order: 2; }
    .main-navigation {
        order: 5;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s ease;
        flex-basis: 100%;
    }
    .main-navigation.active { max-height: 500px; }
    .nav-menu { flex-direction: column; gap: 0; text-align: center; padding: 10px 0; }
    .nav-menu li { border-bottom: 1px solid var(--wopow-border); }
    .nav-menu a { display: block; padding: 12px 0; }
    .header-actions { order: 3; }
    .site-branding { order: 1; }
    .header-inner { justify-content: space-between; }

    .hero-title { font-size: 30px; }
    .hero-section { padding: 60px 16px; }
    .offers-content h2 { font-size: 24px; }
    .offers-slider-track { min-height: 460px; }
    .offers-arrow { width: 34px; height: 34px; font-size: 18px; }
    .offers-arrow-prev { left: 8px; }
    .offers-arrow-next { right: 8px; }

    .products-grid,
    .woocommerce ul.products, .woocommerce-page ul.products {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .why-us-grid { grid-template-columns: 1fr 1fr; }
    .footer-inner { grid-template-columns: 1fr; padding: 40px 20px; }
    .posts-grid { grid-template-columns: 1fr; }
    .section { padding: 40px 0; }
    .whatsapp-float { width: 52px; height: 52px; bottom: 16px; left: 16px; }
}

@media (max-width: 480px) {
    .products-grid,
    .woocommerce ul.products, .woocommerce-page ul.products {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .why-us-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 24px; }
    .hero-subtitle { font-size: 15px; }
    .top-bar-inner { flex-direction: column; gap: 6px; padding: 8px 16px; }
}
