/*
Theme Name: 4you7 Global Marketplace
Theme URI: https://example.com/
Author: 4you7
Description: WordPress-ready conversion of the supplied 4you7 marketplace page.
Version: 1.0.0
Text Domain: 4you7-marketplace
*/

* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --primary-orange: #FF8C00;
            --accent-red: #E63946;
            --dark-text: #1a1a1a;
            --light-gray: #f8f8f8;
            --border-gray: #e0e0e0;
            --text-secondary: #666;
            --text-muted: #999;
        }

        html {
            direction: ltr;
            lang: en;
        }

        html[data-lang="ar"] {
            direction: rtl;
            lang: ar;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: var(--light-gray);
            color: var(--dark-text);
            line-height: 1.6;
        }

        /* ============ HEADER ============ */
        header {
            background: linear-gradient(135deg, var(--primary-orange) 0%, var(--accent-red) 100%);
            color: white;
            padding: 1rem 1.5rem;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .header-top {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
            max-width: 1400px;
            margin-left: auto;
            margin-right: auto;
        }

        .logo {
            font-size: 28px;
            font-weight: 700;
            letter-spacing: -1px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .header-actions {
            display: flex;
            gap: 12px;
            align-items: center;
        }

        .lang-toggle {
            background: rgba(255, 255, 255, 0.2);
            border: 1px solid rgba(255, 255, 255, 0.4);
            color: white;
            padding: 8px 16px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 12px;
            font-weight: 600;
            transition: all 0.3s;
        }

        .lang-toggle:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: scale(1.05);
        }

        .cart-icon {
            background: rgba(255, 255, 255, 0.2);
            border: 1px solid rgba(255, 255, 255, 0.4);
            color: white;
            padding: 8px 16px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
            display: flex;
            align-items: center;
            gap: 6px;
            transition: all 0.3s;
        }

        .cart-icon:hover {
            background: white;
            color: var(--primary-orange);
        }

        .cart-count {
            background: var(--accent-red);
            color: white;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 11px;
            font-weight: 700;
        }

        .search-bar {
            display: flex;
            gap: 8px;
            margin-bottom: 1rem;
            max-width: 1400px;
            margin-left: auto;
            margin-right: auto;
        }

        .search-bar input {
            flex: 1;
            padding: 12px 16px;
            border: none;
            border-radius: 6px;
            font-size: 14px;
            background: white;
            color: var(--dark-text);
        }

        .search-btn {
            background: white;
            color: var(--primary-orange);
            border: none;
            padding: 12px 24px;
            border-radius: 6px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
        }

        .search-btn:hover {
            background: #f0f0f0;
            transform: translateY(-1px);
        }

        .categories {
            display: flex;
            gap: 12px;
            overflow-x: auto;
            padding-bottom: 8px;
            max-width: 1400px;
            margin-left: auto;
            margin-right: auto;
        }

        .cat-btn {
            background: rgba(255, 255, 255, 0.2);
            border: 1px solid rgba(255, 255, 255, 0.4);
            color: white;
            padding: 8px 16px;
            border-radius: 20px;
            cursor: pointer;
            font-size: 13px;
            white-space: nowrap;
            transition: all 0.3s;
        }

        .cat-btn:hover,
        .cat-btn.active {
            background: white;
            color: var(--primary-orange);
            border-color: white;
        }

        /* ============ MAIN CONTENT ============ */
        .main-content {
            padding: 2rem 1.5rem;
            max-width: 1400px;
            margin: 0 auto;
        }

        .features {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            gap: 12px;
            margin-bottom: 2rem;
        }

        .feature-card {
            background: white;
            padding: 16px;
            border-radius: 8px;
            text-align: center;
            border: 0.5px solid var(--border-gray);
            transition: all 0.3s;
        }

        .feature-card:hover {
            box-shadow: 0 4px 12px rgba(255, 140, 0, 0.1);
            border-color: var(--primary-orange);
        }

        .feature-icon {
            font-size: 32px;
            margin-bottom: 8px;
        }

        .feature-label {
            font-size: 13px;
            font-weight: 600;
            color: var(--dark-text);
            margin-bottom: 4px;
        }

        .feature-desc {
            font-size: 11px;
            color: var(--text-muted);
        }

        .section-title {
            font-size: 22px;
            font-weight: 700;
            color: var(--dark-text);
            margin-bottom: 16px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .section-title::before {
            content: '';
            width: 4px;
            height: 24px;
            background: linear-gradient(180deg, var(--primary-orange) 0%, var(--accent-red) 100%);
            border-radius: 2px;
        }

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

        .product-card {
            background: white;
            border-radius: 8px;
            overflow: hidden;
            border: 0.5px solid var(--border-gray);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            cursor: pointer;
            position: relative;
        }

        .product-card:hover {
            box-shadow: 0 8px 24px rgba(255, 140, 0, 0.2);
            border-color: var(--primary-orange);
            transform: translateY(-4px);
        }

        .product-image {
            width: 100%;
            height: 140px;
            background: linear-gradient(135deg, #fff9f0 0%, #ffe8d6 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 56px;
            position: relative;
            overflow: hidden;
        }

        .badge {
            display: inline-block;
            background: linear-gradient(135deg, var(--primary-orange) 0%, var(--accent-red) 100%);
            color: white;
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 10px;
            font-weight: 700;
            position: absolute;
            top: 8px;
            right: 8px;
        }

        html[data-lang="ar"] .badge {
            right: auto;
            left: 8px;
        }

        .product-info {
            padding: 12px;
        }

        .product-name {
            font-size: 13px;
            font-weight: 600;
            color: var(--dark-text);
            margin-bottom: 4px;
            height: 32px;
            overflow: hidden;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
        }

        .product-seller {
            font-size: 11px;
            color: var(--text-muted);
            margin-bottom: 8px;
        }

        .product-rating {
            font-size: 11px;
            color: var(--primary-orange);
            margin-bottom: 8px;
        }

        .product-price {
            font-size: 14px;
            font-weight: 700;
            color: var(--accent-red);
            margin-bottom: 8px;
        }

        .add-to-cart {
            width: 100%;
            background: linear-gradient(135deg, var(--primary-orange) 0%, var(--accent-red) 100%);
            color: white;
            border: none;
            padding: 8px;
            border-radius: 6px;
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
        }

        .add-to-cart:hover {
            transform: scale(1.02);
            box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
        }

        /* ============ PAYMENT SECTION ============ */
        .payment-section {
            background: white;
            padding: 20px;
            border-radius: 8px;
            margin-bottom: 2rem;
            border: 0.5px solid var(--border-gray);
        }

        .payment-methods {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
            gap: 12px;
        }

        .payment-option {
            background: var(--light-gray);
            border: 1px solid var(--border-gray);
            padding: 12px;
            border-radius: 6px;
            text-align: center;
            cursor: pointer;
            font-size: 12px;
            font-weight: 600;
            transition: all 0.3s;
        }

        .payment-option:hover {
            background: #fff9f0;
            border-color: var(--primary-orange);
            transform: translateY(-2px);
        }

        .payment-icon {
            font-size: 28px;
            margin-bottom: 8px;
        }

        /* ============ SHIPPING SECTION ============ */
        .shipping-section {
            background: white;
            padding: 20px;
            border-radius: 8px;
            margin-bottom: 2rem;
            border: 0.5px solid var(--border-gray);
        }

        .shipping-options {
            display: grid;
            gap: 12px;
        }

        .ship-option {
            display: flex;
            gap: 12px;
            padding: 12px;
            border: 1px solid var(--border-gray);
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.3s;
            align-items: center;
        }

        .ship-option:hover {
            background: #fff9f0;
            border-color: var(--primary-orange);
        }

        .ship-option input {
            cursor: pointer;
            width: 18px;
            height: 18px;
        }

        .ship-details {
            flex: 1;
        }

        .ship-name {
            font-weight: 600;
            font-size: 13px;
            color: var(--dark-text);
        }

        .ship-time {
            font-size: 11px;
            color: var(--text-muted);
        }

        .ship-price {
            font-size: 13px;
            font-weight: 600;
            color: var(--accent-red);
            white-space: nowrap;
        }

        /* ============ CART SUMMARY ============ */
        .cart-summary {
            background: white;
            padding: 20px;
            border-radius: 8px;
            border: 0.5px solid var(--border-gray);
            margin-bottom: 2rem;
        }

        .summary-row {
            display: flex;
            justify-content: space-between;
            margin-bottom: 12px;
            font-size: 13px;
            color: var(--text-secondary);
        }

        .summary-total {
            border-top: 1px solid var(--border-gray);
            padding-top: 12px;
            font-weight: 700;
            font-size: 16px;
            color: var(--dark-text);
        }

        .checkout-btn {
            width: 100%;
            background: linear-gradient(135deg, var(--primary-orange) 0%, var(--accent-red) 100%);
            color: white;
            border: none;
            padding: 14px;
            border-radius: 6px;
            font-size: 16px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s;
            margin-bottom: 2rem;
        }

        .checkout-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(255, 140, 0, 0.3);
        }

        /* ============ FOOTER ============ */
        footer {
            background: var(--dark-text);
            color: white;
            padding: 3rem 1.5rem;
            text-align: center;
        }

        .footer-content {
            max-width: 1400px;
            margin: 0 auto;
        }

        .footer-links {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 2rem;
            text-align: left;
            margin-bottom: 2rem;
        }

        html[data-lang="ar"] .footer-links {
            text-align: right;
        }

        .footer-column h3 {
            margin-bottom: 12px;
            color: var(--primary-orange);
        }

        .footer-column a {
            display: block;
            color: #ccc;
            text-decoration: none;
            font-size: 12px;
            margin-bottom: 8px;
            transition: all 0.3s;
        }

        .footer-column a:hover {
            color: var(--primary-orange);
        }

        .footer-bottom {
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            padding-top: 2rem;
            font-size: 12px;
            color: #ccc;
        }

        @media (max-width: 768px) {
            .main-content {
                padding: 1rem;
            }

            .products-grid {
                grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
                gap: 8px;
            }

            .features {
                grid-template-columns: repeat(2, 1fr);
            }

            .header-top {
                flex-direction: column;
                gap: 12px;
            }

            .search-bar {
                flex-direction: column;
            }
        }
