/*
Theme Name: FreeFurry Outdoor
Theme URI: https://freefurry.com
Author: FreeFurry
Description: Modern WooCommerce theme for outdoor equipment
Version: 1.0.0
Text Domain: freefurry
*/

/* ================================
   CSS VARIABLES - سهولة التخصيص
   ================================ */
:root {
    /* Primary Colors */
    --primary-color: #e30613;
    --primary-hover: #c00510;
    --primary-light: #fff5f5;
    
    /* Secondary Colors */
    --secondary-color: #0a1930;
    --secondary-hover: #152a4a;
    
    /* Neutral Colors */
    --dark: #1a1a1a;
    --gray-dark: #333333;
    --gray: #666666;
    --gray-light: #999999;
    --gray-lighter: #e0e0e0;
    --background: #f8f9fa;
    --white: #ffffff;
    
    /* Status Colors */
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    
    /* Typography */
    --font-primary: 'Inter', 'Tajawal', sans-serif;
    --font-heading: 'Inter', 'Tajawal', sans-serif;
    
    /* Font Sizes */
    --fs-xs: 12px;
    --fs-sm: 14px;
    --fs-base: 16px;
    --fs-lg: 18px;
    --fs-xl: 20px;
    --fs-2xl: 24px;
    --fs-3xl: 32px;
    --fs-4xl: 42px;
    --fs-5xl: 56px;
    
    /* Spacing */
    --spacing-xs: 5px;
    --spacing-sm: 10px;
    --spacing-md: 20px;
    --spacing-lg: 30px;
    --spacing-xl: 50px;
    --spacing-2xl: 80px;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 15px;
    --radius-xl: 20px;
    --radius-full: 50%;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.15);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Container */
    --container-width: 1280px;
    --container-padding: 20px;
}

/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: var(--fs-base);
    line-height: 1.6;
    color: var(--dark);
    background: var(--white);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-base);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border: none;
    border-radius: var(--radius-full);
    font-size: var(--fs-base);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    text-transform: capitalize;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--secondary-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-outline:hover {
    background: var(--secondary-color);
    color: var(--white);
}

/* Section Titles */
.section-badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--primary-light);
    color: var(--secondary-color);
    border-radius: var(--radius-full);
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.section-badge.primary {
    background: var(--primary-color);
    color: var(--white);
}

.section-title {
    font-size: var(--fs-4xl);
    font-weight: 800;
    color: var(--secondary-color);
    line-height: 1.2;
    margin-bottom: 10px;
}

.section-title .highlight {
    color: var(--primary-color);
}

.section-description {
    color: var(--gray);
    font-size: var(--fs-base);
    max-width: 600px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}
/* ============================================
   MOBILE RESPONSIVE FIXES - FreeFurry Theme
   ============================================ */

/* ===== HEADER MOBILE ===== */
@media (max-width: 768px) {
    /* Fix Header Layout */
    .ff-middle-inner {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 15px !important;
    }
    
    .ff-logo {
        order: 1 !important;
        width: auto !important;
    }
    
    .ff-logo img {
        max-height: 45px !important;
    }
    
    .ff-header-icons {
        order: 2 !important;
        margin-left: auto !important;
    }
    
    .ff-search {
        order: 3 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .ff-contact {
        display: none !important;
    }
    
    /* Fix Nav Bar */
    .ff-nav-header {
        padding: 10px 0 !important;
    }
    
    .ff-nav-inner {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
        justify-content: space-between !important;
    }
    
    .ff-browse-btn {
        min-width: auto !important;
        padding: 10px 15px !important;
        font-size: 13px !important;
    }
    
    .ff-main-menu {
        display: none !important;
    }
    
    /* Fix Icons Size */
    .ff-icon-btn {
        width: 36px !important;
        height: 36px !important;
    }
    
    .ff-icon-btn svg {
        width: 18px !important;
        height: 18px !important;
    }
    
    .ff-badge {
        min-width: 18px !important;
        height: 18px !important;
        font-size: 10px !important;
        top: -3px !important;
        right: -3px !important;
    }
    
    /* Browse Dropdown Fix */
    .ff-browse-dropdown {
        width: calc(100vw - 30px) !important;
        max-width: 350px !important;
        left: 0 !important;
    }
    
    /* Top Bar */
    .ff-topbar-text {
        font-size: 11px !important;
        letter-spacing: 0.5px !important;
    }
}

/* ===== HERO SLIDER MOBILE ===== */
@media (max-width: 768px) {
    .ff-hero-section {
        padding: 15px 10px !important;
    }
    
    .ff-hero-grid,
    .ff-hero-classic .ff-hero-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    .ff-hero-slider-wrap,
    .lawn-promo-wrapper .promo-left {
        height: 300px !important;
    }
    
    .ff-hero-slide-content,
    .slide-overlay {
        max-width: 85% !important;
        padding: 18px !important;
    }
    
    .ff-hero-slide-content h2,
    .slide-overlay h2 {
        font-size: 22px !important;
    }
    
    .ff-hero-slide-content p,
    .slide-overlay p {
        font-size: 12px !important;
        margin-bottom: 12px !important;
    }
    
    .ff-hero-cards {
        gap: 12px !important;
    }
    
    .ff-hero-card-top {
        flex-direction: column !important;
        text-align: center !important;
        padding: 20px !important;
    }
    
    .ff-hero-card-top img {
        width: 60% !important;
        margin-top: 15px !important;
    }
    
    .ff-hero-card-top h3 {
        font-size: 20px !important;
    }
    
    .ff-hero-cards-row,
    .card-bottom-row {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    
    .ff-hero-card-small,
    .card-small {
        min-height: auto !important;
        padding: 15px !important;
    }
    
    /* Old hero layout */
    .lawn-promo-wrapper {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
        padding: 15px !important;
    }
    
    .ff-hero-arrow,
    .arrow {
        width: 32px !important;
        height: 32px !important;
        font-size: 16px !important;
    }
}

/* ===== CATEGORIES MOBILE ===== */
@media (max-width: 768px) {
    .ff-cats-section,
    .popCat-section {
        padding: 40px 10px !important;
    }
    
    .ff-cats-title,
    .popCat-title h2 {
        font-size: 26px !important;
    }
    
    .ff-cats-header,
    .popCat-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px !important;
    }
    
    .ff-cats-actions,
    .popCat-actions {
        width: 100% !important;
        justify-content: space-between !important;
    }
    
    /* Fix Cards - 2 per row */
    .ff-cats-slider .ff-cats-card,
    .popCat-slider .popCat-card {
        flex: 0 0 calc(50% - 10px) !important;
        min-width: calc(50% - 10px) !important;
    }
    
    .ff-cats-image,
    .popCat-img-wrap {
        height: 150px !important;
    }
    
    .ff-cats-name,
    .popCat-body h3 {
        font-size: 12px !important;
    }
    
    .ff-cats-count span,
    .popCat-count span {
        font-size: 9px !important;
    }
    
    .ff-cats-count strong,
    .popCat-count strong {
        font-size: 12px !important;
    }
    
    .ff-cats-info,
    .popCat-body {
        padding: 12px !important;
    }
    
    .ff-cats-viewall,
    .popCat-viewall {
        padding: 10px 16px !important;
        font-size: 11px !important;
    }
}

@media (max-width: 400px) {
    .ff-cats-slider .ff-cats-card,
    .popCat-slider .popCat-card {
        flex: 0 0 80% !important;
        min-width: 80% !important;
    }
}

/* ===== FEATURED PRODUCTS MOBILE ===== */
@media (max-width: 768px) {
    .ff-featured-section,
    .featured-section {
        padding: 40px 10px !important;
    }
    
    .ff-featured-title,
    .featured-main-title,
    .featured-title h2 {
        font-size: 26px !important;
    }
    
    .ff-featured-header,
    .featured-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px !important;
    }
    
    .ff-featured-actions,
    .featured-actions,
    .featured-header-right {
        width: 100% !important;
        justify-content: space-between !important;
    }
    
    /* Fix Cards - 2 per row */
    .ff-featured-slider .ff-featured-card,
    .featured-slider .featured-card {
        flex: 0 0 calc(50% - 10px) !important;
        min-width: calc(50% - 10px) !important;
    }
    
    .ff-featured-image,
    .featured-img {
        height: 160px !important;
    }
    
    .ff-featured-name,
    .featured-body h3 {
        font-size: 12px !important;
        min-height: 32px !important;
    }
    
    .ff-featured-price,
    .featured-price .price {
        font-size: 15px !important;
    }
    
    .ff-featured-cart-btn,
    .featured-cart {
        padding: 10px 12px !important;
        font-size: 10px !important;
    }
    
    .ff-featured-category,
    .featured-cat {
        font-size: 9px !important;
    }
    
    .ff-featured-rating {
        font-size: 12px !important;
    }
    
    .ff-featured-more-btn,
    .featured-more {
        padding: 10px 16px !important;
        font-size: 11px !important;
    }
    
    .ff-featured-nav button,
    .featured-nav-btn {
        width: 36px !important;
        height: 36px !important;
        font-size: 20px !important;
    }
}

@media (max-width: 400px) {
    .ff-featured-slider .ff-featured-card,
    .featured-slider .featured-card {
        flex: 0 0 80% !important;
        min-width: 80% !important;
    }
}

/* ===== MUST-HAVE PRODUCTS MOBILE ===== */
@media (max-width: 768px) {
    .ff-mh-section {
        padding: 40px 10px !important;
    }
    
    .ff-mh-title {
        font-size: 26px !important;
    }
    
    .ff-mh-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px !important;
    }
    
    .ff-mh-nav {
        align-self: flex-end !important;
    }
    
    .ff-mh-layout {
        grid-template-columns: 1fr !important;
    }
    
    /* Sidebar becomes horizontal scroll */
    .ff-mh-sidebar {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        gap: 8px !important;
        padding: 10px !important;
        scrollbar-width: none !important;
    }
    .ff-mh-sidebar::-webkit-scrollbar { display: none !important; }
    
    .ff-mh-cat-btn {
        flex: 0 0 auto !important;
        flex-direction: row !important;
        white-space: nowrap !important;
        padding: 10px 14px !important;
        font-size: 12px !important;
    }
    
    .ff-mh-cat-arrow {
        display: none !important;
    }
    
    .ff-mh-viewall {
        flex: 0 0 auto !important;
        white-space: nowrap !important;
        padding: 10px 16px !important;
        font-size: 11px !important;
    }
    
    /* Products Grid */
    .ff-mh-products.active {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    
    .ff-mh-carousel .ff-mh-card {
        flex: 0 0 calc(50% - 10px) !important;
    }
    
    .ff-mh-img {
        height: 160px !important;
        padding: 15px !important;
    }
    
    .ff-mh-name {
        font-size: 12px !important;
        min-height: 32px !important;
    }
    
    .ff-mh-price {
        font-size: 15px !important;
    }
    
    .ff-mh-btn {
        padding: 10px !important;
        font-size: 10px !important;
    }
}

@media (max-width: 400px) {
    .ff-mh-products.active {
        grid-template-columns: 1fr !important;
    }
    
    .ff-mh-carousel .ff-mh-card {
        flex: 0 0 85% !important;
    }
    
    .ff-mh-sidebar {
        flex-wrap: nowrap !important;
    }
}

/* ===== PROMO BANNER MOBILE ===== */
@media (max-width: 768px) {
    .ff-promo-section,
    .ryobi-pro {
        padding: 40px 15px !important;
    }
    
    .ff-promo-grid,
    .ryobi-pro__hero {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
        text-align: center !important;
    }
    
    .ff-promo-title,
    .ryobi-pro__content h1 {
        font-size: 30px !important;
    }
    
    .ff-promo-buttons,
    .ryobi-pro__actions {
        justify-content: center !important;
        flex-direction: column !important;
    }
    
    .ff-promo-btn-primary,
    .ff-promo-btn-secondary,
    .ryobi-btn {
        width: 100% !important;
        justify-content: center !important;
    }
    
    .ff-promo-image-card,
    .ryobi-pro__image-card {
        max-width: 300px !important;
        margin: 0 auto !important;
    }
    
    .ryobi-pro__grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
}

@media (max-width: 400px) {
    .ryobi-pro__grid {
        grid-template-columns: 1fr !important;
    }
}

/* ===== FEATURES BAR MOBILE ===== */
@media (max-width: 768px) {
    .ff-features-grid,
    .ff-features-boxed,
    .features-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    
    .ff-features-inline {
        flex-direction: column !important;
    }
    
    .ff-feature-card {
        padding: 18px !important;
    }
    
    .ff-feature-inline-divider {
        display: none !important;
    }
    
    .features-bar {
        padding: 20px 15px !important;
    }
    
    .feature-item {
        border-left: none !important;
        padding: 10px !important;
    }
}

/* ===== CTA SECTION MOBILE ===== */
@media (max-width: 768px) {
    .hero-cta-section {
        padding: 40px 15px !important;
        min-height: 350px !important;
    }
    
    .hero-cta-box {
        padding: 30px 20px !important;
    }
    
    .hero-cta-box h2 {
        font-size: 24px !important;
    }
    
    .hero-cta-box p {
        font-size: 13px !important;
    }
}

/* ===== BRANDS MOBILE ===== */
@media (max-width: 768px) {
    .brands-section {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        padding: 40px 15px !important;
    }
    
    .brands-text h2 {
        font-size: 24px !important;
    }
    
    .brands-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ===== TESTIMONIALS MOBILE ===== */
@media (max-width: 768px) {
    .ff-reviews-section {
        padding: 50px 10px !important;
    }
    
    .ff-reviews-header h2 {
        font-size: 28px !important;
    }
    
    .ff-reviews-slider-wrapper {
        padding: 0 35px !important;
    }
    
    .ff-review-card {
        flex: 0 0 100% !important;
    }
    
    .ff-slider-nav {
        width: 38px !important;
        height: 38px !important;
        font-size: 24px !important;
    }
}

/* ===== FOOTER MOBILE ===== */
@media (max-width: 768px) {
    .ff-site-footer {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    .ff-footer-container {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }
    
    .ff-footer-about {
        text-align: center !important;
        padding-bottom: 20px !important;
        border-bottom: 1px solid rgba(0,0,0,0.1) !important;
        margin-bottom: 10px !important;
    }
    
    .ff-footer-logo {
        display: flex !important;
        justify-content: center !important;
    }
    
    .ff-footer-social {
        justify-content: center !important;
    }
    
    /* Accordion Style for Footer Columns */
    .ff-footer-accordion {
        border-bottom: 1px solid rgba(0,0,0,0.1) !important;
        padding: 5px 10px !important;
    }
    
    .ff-accordion-toggle {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        cursor: pointer !important;
        padding: 15px 5px !important;
        margin: 0 !important;
    }
    
    .ff-footer-accordion h4::after {
        display: none !important;
    }
    
    .ff-toggle-icon {
        display: flex !important;
    }
    
    .ff-accordion-content {
        max-height: 0 !important;
        overflow: hidden !important;
        transition: max-height 0.4s ease !important;
        padding: 0 !important;
    }
    
    .ff-footer-accordion.active .ff-accordion-content {
        max-height: 500px !important;
        padding-top: 5px !important;
        padding-bottom: 15px !important;
    }
    
    .ff-footer-accordion.active .ff-toggle-icon {
        transform: rotate(180deg) !important;
    }
    
    .ff-footer-bottom-container {
        flex-direction: column-reverse !important;
        text-align: center !important;
        gap: 15px !important;
    }
    
    /* Newsletter Mobile */
    .ff-newsletter-bar {
        padding: 25px 15px !important;
    }
    
    .ff-newsletter-container {
        flex-direction: column !important;
        gap: 20px !important;
    }
    
    .ff-newsletter-left {
        flex-direction: column !important;
        text-align: center !important;
    }
    
    .ff-newsletter-form {
        flex-direction: column !important;
        min-width: 100% !important;
    }
    
    .ff-newsletter-form input,
    .ff-newsletter-form button {
        width: 100% !important;
    }
    
    .ff-newsletter-text h3 {
        font-size: 20px !important;
    }
}

/* ===== DRAWERS MOBILE ===== */
@media (max-width: 768px) {
    .ff-drawer {
        max-width: 100% !important;
    }
}

/* ===== GLOBAL MOBILE FIXES ===== */
@media (max-width: 768px) {
    body {
        overflow-x: hidden !important;
    }
    
    .container,
    .ff-container {
        padding: 0 12px !important;
    }
    
    /* Fix any overflow */
    section,
    .ff-hero-section,
    .ff-cats-section,
    .ff-featured-section,
    .ff-mh-section,
    .ff-promo-section,
    .ff-features-section,
    .ff-reviews-section {
        overflow: hidden !important;
    }
}
/* ============================================ */
/* FORCE PRODUCTS GRID - HIGH SPECIFICITY */
/* ============================================ */

body.woocommerce ul.products,
body.woocommerce-page ul.products,
body .shop-main ul.products,
body ul.products.columns-3,
body ul.products.columns-4,
body ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

body.woocommerce ul.products li.product,
body.woocommerce-page ul.products li.product,
body ul.products li.product,
body ul.products li {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 15px !important;
    float: none !important;
    clear: none !important;
    display: block !important;
    background: #fff !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
    box-sizing: border-box !important;
}

body ul.products li.product a img,
body ul.products li.product img {
    width: 100% !important;
    height: 220px !important;
    max-height: 220px !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
    background: #f9f9f9;
    border-radius: 6px;
}

@media (max-width: 992px) {
    body ul.products { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 576px) {
    body ul.products { grid-template-columns: 1fr !important; }
    body ul.products li.product a img { height: 280px !important; }
}