:root {
    --primary: #07284f;
    --primary-dark: #041d3b;
    --accent: #f5a619;
    --accent-dark: #e99400;
    --pink: #f20a85;
    --purple: #5034e6;
    --bg: #f2f5f7;
    --white: #ffffff;
    --text: #232323;
    --muted: #777777;
    --border: #e6e9ed;
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    --radius: 10px;
    --container: 1500px;
    --font-body: Arial, Helvetica, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
}

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

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(var(--container), calc(100% - 48px));
    margin: 0 auto;
}

.topbar {
    background: var(--primary);
    color: #ffffff;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 14px;
}

.topbar-inner {
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.socials {
    display: flex;
    gap: 14px;
    align-items: center;
    opacity: 0.95;
}

.header-main {
    background: var(--primary);
    color: #ffffff;
}

.header-main-inner {
    min-height: 100px;
    display: grid;
    grid-template-columns: 260px 1fr 260px;
    gap: 28px;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 34px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.logo-icon {
    width: 46px;
    height: 46px;
    background: var(--accent);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 24px;
}

.search-form {
    display: flex;
    background: #ffffff;
    border-radius: 999px;
    overflow: hidden;
    height: 54px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.3);
}

.search-form input {
    flex: 1;
    border: 0;
    padding: 0 24px;
    font-size: 16px;
    outline: none;
}

.search-form button {
    width: 84px;
    border: 0;
    background: var(--accent);
    color: #ffffff;
    font-size: 22px;
    cursor: pointer;
}

.header-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 24px;
}

.header-action {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    font-size: 25px;
    color: #ffffff;
}

.header-action.divider {
    border-left: 1px solid rgba(255,255,255,0.25);
    padding-left: 28px;
}

.navbar {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
}

.navbar-inner {
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 34px;
    color: #555;
    font-size: 16px;
    letter-spacing: 1px;
}

.nav-links a.active,
.nav-links a:hover {
    color: var(--accent);
}

.call-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.call-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--accent);
    color: #ffffff;
    display: grid;
    place-items: center;
    font-size: 20px;
}

.call-text span {
    display: block;
    font-size: 13px;
    color: #333;
}

.call-text strong {
    display: block;
    font-size: 18px;
    letter-spacing: 1px;
}

.page-wrap {
    padding: 28px 0 0;
}

.home-grid {
    display: grid;
    grid-template-columns: 250px 1fr 260px;
    gap: 24px;
    align-items: start;
}

.card {
    background: var(--white);
    border-radius: 6px;
    box-shadow: var(--shadow);
}

.category-title {
    background: var(--accent);
    color: #ffffff;
    border-radius: 4px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 18px;
}

.sidebar-box {
    background: #ffffff;
    border-radius: 6px;
    padding: 22px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.sidebar-box h3 {
    margin: 0 0 20px;
    font-size: 18px;
    letter-spacing: 1px;
}

.mini-product {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 14px;
    align-items: center;
    margin-bottom: 18px;
}

.mini-product:last-child {
    margin-bottom: 0;
}

.mini-product-img {
    width: 70px;
    height: 70px;
    background: #f7f7f7;
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
    overflow: hidden;
}

.mini-product h4 {
    margin: 0 0 8px;
    font-size: 14px;
    color: #444;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.price {
    color: var(--accent);
    font-weight: 700;
}

.old-price {
    color: #999;
    text-decoration: line-through;
    margin-right: 8px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: #f4f4f4;
    color: #666;
    border-radius: 5px;
    padding: 10px 12px;
    font-size: 13px;
}

.side-banner {
    background: var(--primary);
    color: #ffffff;
    min-height: 320px;
    border-radius: 6px;
    padding: 28px 22px;
    position: relative;
    overflow: hidden;
}

.side-banner strong {
    display: block;
    font-size: 18px;
    margin-bottom: 16px;
}

.side-banner .big {
    font-size: 58px;
    font-weight: 800;
    line-height: 1;
}

.side-banner .accent-shape {
    position: absolute;
    right: -40px;
    bottom: -60px;
    width: 200px;
    height: 200px;
    background: var(--accent);
    border-radius: 50%;
}

.hero {
    background: #ffffff;
    border-radius: 6px;
    min-height: 430px;
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 60px;
    box-shadow: var(--shadow);
}

.hero-media {
    position: relative;
    z-index: 2;
}

.hero-circle-large {
    position: absolute;
    width: 330px;
    height: 330px;
    border: 65px solid var(--accent);
    border-radius: 50%;
    left: 80px;
    top: 80px;
    opacity: 0.95;
}

.hero-circle-mid {
    position: absolute;
    width: 160px;
    height: 160px;
    border: 45px solid var(--accent);
    border-radius: 50%;
    right: 330px;
    top: 100px;
}

.hero-circle-small {
    position: absolute;
    width: 110px;
    height: 110px;
    border: 36px solid var(--accent);
    border-radius: 50%;
    right: 120px;
    top: 50px;
}

.hero img {
    width: 430px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
}

.hero-content h1 {
    font-size: 44px;
    line-height: 1.1;
    margin: 0 0 20px;
    font-weight: 800;
}

.hero-content p {
    font-size: 24px;
    margin: 0 0 28px;
    color: #333;
}

.btn-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #ffffff;
    min-width: 150px;
    height: 54px;
    border-radius: 4px;
    font-weight: 700;
    letter-spacing: 1px;
}

.dots {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
}

.dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #b5b5b5;
}

.dot.active {
    background: #111;
}

.benefits {
    background: #ffffff;
    border-radius: 6px;
    padding: 8px 24px;
    box-shadow: var(--shadow);
}

.benefit {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 16px;
    align-items: center;
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
}

.benefit:last-child {
    border-bottom: 0;
}

.benefit-icon {
    color: var(--accent);
    font-size: 30px;
}

.benefit strong {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    letter-spacing: 1px;
}

.benefit span {
    color: #777;
    font-size: 15px;
}

.section {
    margin-top: 28px;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.section-head h2 {
    margin: 0;
    font-size: 24px;
    letter-spacing: 1px;
}

.tabs {
    display: flex;
    gap: 28px;
    color: #999;
}

.tabs span.active {
    color: #222;
}

.products-grid {
    background: #ffffff;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    box-shadow: var(--shadow);
}

.product-card {
    padding: 24px 18px 30px;
    min-height: 320px;
    position: relative;
    border-right: 1px solid #f4f4f4;
    border-bottom: 1px solid #f4f4f4;
}

.product-card:nth-child(4n) {
    border-right: 0;
}

.product-image {
    height: 180px;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
}

.product-image img {
    max-height: 170px;
    object-fit: contain;
}

.product-card h3 {
    font-size: 17px;
    margin: 0 0 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card .sale-badge {
    position: absolute;
    left: 18px;
    top: 170px;
    background: var(--accent);
    color: #ffffff;
    padding: 8px 14px;
    border-radius: 3px;
    font-size: 14px;
}

.product-actions {
    position: absolute;
    left: 50%;
    top: 170px;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    opacity: 0;
    transition: 0.2s;
}

.product-card:hover .product-actions {
    opacity: 1;
}

.round-action {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    display: grid;
    place-items: center;
}

.news-card {
    background: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-top: 24px;
}

.news-card .body {
    padding: 22px;
}

.news-card h3 {
    margin: 0 0 12px;
    font-size: 18px;
}

.news-card p {
    margin: 0 0 16px;
    color: #777;
    line-height: 1.7;
}

.brands {
    margin-top: 28px;
    background: #ffffff;
    padding: 34px 0;
}

.brands-inner {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 40px;
    color: #111;
    font-size: 40px;
    font-weight: 800;
    opacity: 0.85;
}

.footer {
    background: #ffffff;
    border-top: 1px solid var(--border);
}

.footer-links {
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 36px;
    color: #666;
}

.footer-main {
    padding: 38px 0;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1.1fr 1.3fr;
    gap: 50px;
}

.footer h3 {
    margin: 0 0 20px;
    font-size: 18px;
    letter-spacing: 1px;
}

.footer p,
.footer li {
    color: #666;
    line-height: 1.8;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 20px;
}

.fixed-buttons {
    position: fixed;
    right: 0;
    top: 210px;
    z-index: 20;
}

.fixed-btn {
    width: 78px;
    height: 82px;
    color: #ffffff;
    display: grid;
    place-items: center;
    text-align: center;
    font-weight: 700;
}

.fixed-btn.pink {
    background: var(--pink);
}

.fixed-btn.purple {
    background: var(--purple);
}

.scroll-top {
    position: fixed;
    right: 44px;
    bottom: 40px;
    width: 48px;
    height: 48px;
    background: var(--accent);
    color: #ffffff;
    border-radius: 6px;
    display: grid;
    place-items: center;
    z-index: 20;
}

[dir="rtl"] body {
    direction: rtl;
}

@media (max-width: 1200px) {
    .home-grid {
        grid-template-columns: 230px 1fr;
    }

    .right-sidebar {
        display: none;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .header-main-inner {
        grid-template-columns: 220px 1fr 180px;
    }
}

@media (max-width: 900px) {
    .container {
        width: min(100% - 28px, var(--container));
    }

    .topbar-inner {
        height: auto;
        padding: 12px 0;
        gap: 12px;
        flex-direction: column;
    }

    .header-main-inner {
        grid-template-columns: 1fr;
        padding: 24px 0;
    }

    .header-actions {
        justify-content: center;
    }

    .navbar-inner {
        height: auto;
        padding: 16px 0;
        flex-direction: column;
        gap: 18px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 18px;
    }

    .home-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 40px 24px;
    }

    .hero-content h1 {
        font-size: 34px;
    }

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

    .left-sidebar {
        order: 2;
    }

    .main-content {
        order: 1;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
    }

    .fixed-buttons {
        display: none;
    }
}

@media (max-width: 560px) {
    .logo {
        font-size: 26px;
        justify-content: center;
    }

    .search-form {
        height: 48px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .footer-main {
        grid-template-columns: 1fr;
    }

    .brands-inner {
        flex-wrap: wrap;
        font-size: 26px;
    }
}