/*
Theme Name: Original Accessories
Theme URI: https://originalacc.ir
Author: Original Accessories Team
Author URI: https://originalacc.ir
Description: پوسته فروشگاهی لوازم جانبی موبایل ORIGINAL ACCESSORIES - طراحی مدرن با رنگ‌های فیروزه‌ای، لاجوردی و طوسی، سازگار با ووکامرس، راست‌چین و کاملاً فارسی
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: original-accessories
Tags: e-commerce, rtl-language-support, custom-colors, custom-logo, custom-menu, featured-images, translation-ready

ORIGINAL ACCESSORIES - قالب فروشگاهی لوازم جانبی موبایل
*/

:root {
    --turquoise-500: #05c8b3;
    --turquoise-600: #02a193;
    --turquoise-700: #078077;
    --lapis-800: #1f248a;
    --lapis-900: #1e236e;
    --lapis-950: #0b1043;
    --ash-50: #f6f7f9;
    --ash-200: #d5dae2;
    --ash-700: #444c60;
    --ash-950: #22262f;
}

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@100..900&display=swap');

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

html { direction: rtl; }

body {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    background: var(--ash-50);
    color: var(--ash-950);
    line-height: 1.7;
}

a { color: inherit; text-decoration: none; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 1rem; }

/* Top Bar */
.oa-topbar {
    background: var(--lapis-950);
    color: #fff;
    font-size: 0.75rem;
    padding: 0.5rem 0;
}
.oa-topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.oa-topbar a { color: #fff; }
.oa-topbar .highlight { color: #c7fff4; }

/* Header */
.oa-header {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}
.oa-header-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
}
.oa-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.oa-logo-mark {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--turquoise-500), var(--lapis-800));
    border-radius: 12px;
    color: #fff;
    font-weight: 900;
    font-size: 1.1rem;
    display: flex; align-items: center; justify-content: center;
}
.oa-logo-text { font-weight: 900; color: var(--lapis-900); line-height: 1; }
.oa-logo-text small { display: block; font-size: 0.65rem; color: var(--ash-700); font-weight: 400; margin-top: 2px; }

.oa-search {
    flex: 1;
    max-width: 600px;
    position: relative;
}
.oa-search input {
    width: 100%;
    background: var(--ash-50);
    border: 1px solid var(--ash-200);
    border-radius: 12px;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color .2s;
}
.oa-search input:focus { border-color: var(--turquoise-500); background: #fff; }

.oa-actions { display: flex; gap: 0.5rem; align-items: center; }
.oa-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: 12px;
    border: none;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all .2s;
}
.oa-btn-primary {
    background: linear-gradient(270deg, var(--turquoise-500), var(--turquoise-600));
    color: #fff;
}
.oa-btn-primary:hover { background: var(--turquoise-700); }
.oa-btn-ghost { background: transparent; color: var(--ash-700); }
.oa-btn-ghost:hover { background: var(--ash-50); }

/* Nav */
.oa-nav {
    border-top: 1px solid var(--ash-200);
    padding: 0.75rem 0;
    font-size: 0.875rem;
}
.oa-nav ul { display: flex; gap: 0.25rem; list-style: none; flex-wrap: wrap; }
.oa-nav a { padding: 0.5rem 0.75rem; border-radius: 8px; color: var(--ash-700); transition: color .2s; }
.oa-nav a:hover { color: var(--turquoise-600); }
.oa-nav .cat-btn {
    background: var(--lapis-900); color: #fff;
    padding: 0.5rem 1rem; border-radius: 8px; font-weight: 700;
}
.oa-nav .cat-btn:hover { background: var(--lapis-800); color: #fff; }

/* Hero */
.oa-hero {
    background: linear-gradient(135deg, var(--lapis-800), var(--lapis-950));
    color: #fff;
    border-radius: 24px;
    padding: 3rem;
    margin-top: 1.5rem;
    position: relative;
    overflow: hidden;
}
.oa-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(20, 184, 166, 0.2), transparent 50%);
}
.oa-hero h1 { font-size: 2.5rem; font-weight: 900; margin-bottom: 1rem; line-height: 1.3; position: relative; }
.oa-hero h1 span { color: #50f6de; display: block; }
.oa-hero p { color: #d5dae2; margin-bottom: 1.5rem; position: relative; }

/* Section */
.oa-section { padding: 2.5rem 0; }
.oa-section-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--lapis-900);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.oa-section-title a { font-size: 0.875rem; color: var(--turquoise-700); font-weight: 700; }

/* Categories */
.oa-cats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 0.75rem;
}
.oa-cat {
    background: #fff;
    border: 1px solid var(--ash-200);
    border-radius: 16px;
    padding: 1rem;
    text-align: center;
    transition: all .2s;
}
.oa-cat:hover { border-color: var(--turquoise-500); transform: translateY(-2px); }
.oa-cat-icon {
    width: 56px; height: 56px;
    background: var(--turquoise-500);
    color: #fff;
    border-radius: 16px;
    margin: 0 auto 0.5rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
}
.oa-cat-title { font-size: 0.8rem; font-weight: 700; color: var(--ash-950); }

/* Product Grid */
.oa-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}
.oa-product {
    background: #fff;
    border: 1px solid var(--ash-200);
    border-radius: 16px;
    overflow: hidden;
    transition: all .3s;
}
.oa-product:hover { border-color: var(--turquoise-500); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.oa-product-img {
    aspect-ratio: 1;
    background: var(--ash-50);
    display: block;
    overflow: hidden;
}
.oa-product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.oa-product:hover .oa-product-img img { transform: scale(1.05); }
.oa-product-body { padding: 1rem; }
.oa-product-brand { font-size: 0.7rem; color: var(--ash-700); }
.oa-product-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ash-950);
    line-height: 1.6;
    min-height: 2.75rem;
    margin: 0.25rem 0 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.oa-product-price { font-size: 1.1rem; font-weight: 900; color: var(--lapis-900); }
.oa-product-old { font-size: 0.75rem; color: var(--ash-700); text-decoration: line-through; margin-left: 0.5rem; }
.oa-badge {
    display: inline-block;
    background: #ef4444;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
}
.oa-product-wrap { position: relative; }

/* Deals */
.oa-deals {
    background: linear-gradient(270deg, #ef4444, var(--lapis-900));
    border-radius: 24px;
    padding: 1.5rem;
    color: #fff;
    margin-bottom: 2rem;
}
.oa-deals-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.oa-deals-title { font-size: 1.5rem; font-weight: 900; display: flex; align-items: center; gap: 0.5rem; }

/* Footer */
.oa-footer { background: var(--lapis-950); color: #d5dae2; margin-top: 4rem; }
.oa-footer-features { border-bottom: 1px solid rgba(255,255,255,0.1); padding: 2rem 0; }
.oa-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}
.oa-feature { display: flex; gap: 0.75rem; align-items: flex-start; }
.oa-feature-icon {
    width: 48px; height: 48px;
    background: var(--lapis-800);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.oa-feature-title { color: #fff; font-weight: 700; }
.oa-feature-desc { font-size: 0.75rem; color: #b0b9c8; margin-top: 0.25rem; }
.oa-footer-main { padding: 3rem 0; }
.oa-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
}
.oa-footer h4 { color: #fff; font-weight: 700; margin-bottom: 1rem; }
.oa-footer ul { list-style: none; }
.oa-footer li { margin-bottom: 0.5rem; font-size: 0.875rem; }
.oa-footer a:hover { color: var(--turquoise-500); }
.oa-copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1rem 0;
    text-align: center;
    font-size: 0.75rem;
    color: #8591a8;
}

/* Login page */
.oa-auth {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}
.oa-auth-box {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    padding: 2rem;
    max-width: 420px;
    width: 100%;
}
.oa-auth-title { text-align: center; font-size: 1.5rem; font-weight: 900; color: var(--lapis-900); margin-bottom: 1rem; }
.oa-field {
    display: block;
    width: 100%;
    background: var(--ash-50);
    border: 1px solid var(--ash-200);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    margin-bottom: 1rem;
    transition: border-color .2s;
}
.oa-field:focus { border-color: var(--turquoise-500); background: #fff; }
.oa-label { display: block; font-size: 0.875rem; font-weight: 700; color: var(--ash-700); margin-bottom: 0.5rem; }

/* Checkout */
.oa-checkout-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}
.oa-card {
    background: #fff;
    border: 1px solid var(--ash-200);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}
.oa-card h3 {
    font-weight: 900;
    color: var(--lapis-900);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--ash-200);
}
.oa-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .oa-hero { padding: 1.5rem; }
    .oa-hero h1 { font-size: 1.75rem; }
    .oa-footer-grid { grid-template-columns: 1fr; }
    .oa-checkout-grid { grid-template-columns: 1fr; }
}
