:root {
    --taeef-blue: #0b55e5;
    --taeef-blue-dark: #073db4;
    --taeef-ink: #111827;
    --taeef-muted: #667085;
    --taeef-soft: #f7f9fd;
    --taeef-line: #e2e8f2;
    --taeef-card: #ffffff;
    --taeef-radius: 8px;
    --taeef-shadow: 0 18px 55px rgba(15, 23, 42, 0.08);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--taeef-ink);
    background: #fff;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

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

img {
    max-width: 100%;
    height: auto;
}

button,
input,
select,
textarea {
    font: inherit;
}

.taeef-shell,
.taeef-container {
    width: min(1472px, calc(100% - 56px));
    margin-inline: auto;
}

.screen-reader-text,
.skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link:focus {
    top: 12px;
    left: 12px;
    width: auto;
    height: auto;
    padding: 10px 14px;
    clip: auto;
    background: var(--taeef-blue);
    color: #fff;
    z-index: 9999;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--taeef-line);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.03);
    backdrop-filter: blur(16px);
}

.header-inner {
    min-height: 92px;
    display: grid;
    grid-template-columns: 242px 190px minmax(320px, 1fr) auto;
    align-items: center;
    gap: 24px;
}

.taeef-logo,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--taeef-blue);
    font-size: 34px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0;
}

.logo-mark {
    width: 58px;
    height: 48px;
    display: inline-grid;
    place-items: center;
    border: 3px solid var(--taeef-blue);
    border-radius: 2px;
    color: var(--taeef-blue);
    font-weight: 900;
}

.custom-logo {
    max-height: 58px;
    width: auto;
}

.header-location {
    height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-left: 26px;
    border-left: 1px solid var(--taeef-line);
    color: var(--taeef-ink);
    font-size: 13px;
}

.header-location strong {
    font-weight: 800;
}

.ui-icon {
    font-size: 21px;
    line-height: 1;
}

.header-search {
    height: 58px;
    display: grid;
    grid-template-columns: 1fr 84px;
    border: 1px solid #d7e0ee;
    border-radius: 7px;
    background: #fff;
    overflow: hidden;
}

.header-search input {
    width: 100%;
    border: 0;
    outline: 0;
    padding: 0 22px;
    color: var(--taeef-ink);
}

.header-search input::placeholder {
    color: #7b8798;
}

.header-search button {
    border: 0;
    background: var(--taeef-blue);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.main-navigation {
    display: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 26px;
    white-space: nowrap;
}

.header-action,
.cart-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #101828;
    font-size: 13px;
    font-weight: 800;
}

.cart-link {
    position: relative;
}

.cart-link > span:last-child {
    position: absolute;
    top: -15px;
    right: -12px;
    min-width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: var(--taeef-blue);
    color: #fff;
    font-size: 11px;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--taeef-line);
    border-radius: var(--taeef-radius);
    background: #fff;
}

.menu-toggle span:not(.screen-reader-text) {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: var(--taeef-blue);
}

.taeef-home {
    padding: 32px 0 0;
    background: #fff;
}

.home-grid {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 28px;
}

.category-rail {
    border-right: 1px solid var(--taeef-line);
    padding-right: 26px;
}

.category-rail h2 {
    height: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0 16px;
    border: 1px solid var(--taeef-line);
    border-radius: 7px 7px 0 0;
    color: var(--taeef-blue);
    font-size: 14px;
    font-weight: 900;
}

.category-rail ul {
    margin: 0;
    padding: 8px 0;
    border: 1px solid var(--taeef-line);
    border-top: 0;
    list-style: none;
}

.category-rail a {
    display: grid;
    grid-template-columns: 28px 1fr 12px;
    align-items: center;
    gap: 12px;
    min-height: 63px;
    padding: 8px 14px;
}

.category-rail a:hover {
    background: #f7faff;
    color: var(--taeef-blue);
}

.cat-icon {
    color: #344054;
    font-size: 18px;
    text-align: center;
}

.category-rail strong,
.category-rail small {
    display: block;
}

.category-rail strong {
    font-size: 13px;
    font-weight: 800;
}

.category-rail small {
    color: var(--taeef-muted);
    font-size: 11px;
}

.category-rail em {
    color: #64748b;
    font-size: 20px;
    font-style: normal;
}

.deal-card {
    display: grid !important;
    grid-template-columns: 30px 1fr !important;
    margin-top: 16px;
    border-radius: 6px;
    background: #f0f5ff;
    color: var(--taeef-blue);
}

.deal-card small {
    color: #667085;
}

.home-main {
    min-width: 0;
}

.hero-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 18px;
}

.tech-hero {
    position: relative;
    min-height: 445px;
    overflow: hidden;
    border-radius: 7px;
    background:
        radial-gradient(circle at 78% 42%, rgba(255, 255, 255, 0.15), transparent 22%),
        linear-gradient(135deg, #07111f 0%, #111a29 48%, #28303b 100%);
    color: #fff;
}

.hero-copy {
    position: relative;
    z-index: 2;
    width: 45%;
    padding: 70px 0 0 48px;
}

.hero-copy p {
    margin: 0 0 22px;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-copy h1 {
    margin: 0 0 18px;
    font-size: 48px;
    line-height: 1.13;
    letter-spacing: 0;
}

.hero-copy span {
    display: block;
    max-width: 390px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 17px;
    font-weight: 600;
}

.hero-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    margin-top: 28px;
    padding: 0 24px;
    border: 1px solid var(--taeef-blue);
    border-radius: 6px;
    background: var(--taeef-blue);
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}

.hero-button b {
    margin-left: 14px;
}

.slider-dots {
    position: absolute;
    left: 48px;
    bottom: 36px;
    display: flex;
    gap: 14px;
}

.slider-dots span {
    width: 19px;
    height: 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
}

.slider-dots span:first-child {
    background: var(--taeef-blue);
}

.tech-visual {
    position: absolute;
    inset: 0;
}

.laptop-art {
    position: absolute;
    top: 0;
    right: 0;
    width: 345px;
    height: 170px;
    transform: skew(-18deg) rotate(-2deg);
    border-radius: 0 0 18px 22px;
    background: linear-gradient(135deg, #d8d9dc, #6c7079 58%, #1e2430);
    box-shadow: -30px 32px 80px rgba(0, 0, 0, 0.55);
}

.laptop-art::after {
    content: "";
    position: absolute;
    top: 66px;
    left: 136px;
    width: 42px;
    height: 48px;
    border-radius: 50% 50% 46% 46%;
    background: rgba(0, 0, 0, 0.36);
}

.phone-art {
    position: absolute;
    right: 115px;
    bottom: 62px;
    width: 300px;
    height: 150px;
    transform: rotate(16deg);
    border-radius: 28px;
    background: linear-gradient(135deg, #1e2633, #aab0ba);
    box-shadow: -24px 26px 70px rgba(0, 0, 0, 0.55);
}

.phone-art::before {
    content: "";
    position: absolute;
    top: 22px;
    left: 24px;
    width: 82px;
    height: 82px;
    border-radius: 24px;
    background:
        radial-gradient(circle at 24px 24px, #0a0f18 0 10px, #e9edf4 11px 18px, transparent 19px),
        radial-gradient(circle at 58px 24px, #0a0f18 0 10px, #e9edf4 11px 18px, transparent 19px),
        radial-gradient(circle at 24px 58px, #0a0f18 0 10px, #e9edf4 11px 18px, transparent 19px),
        rgba(255, 255, 255, 0.18);
}

.watch-art {
    position: absolute;
    right: 390px;
    bottom: 42px;
    width: 86px;
    height: 105px;
    border-radius: 22px;
    background: #07101b;
    box-shadow: 0 25px 55px rgba(0, 0, 0, 0.5);
}

.watch-art::before,
.watch-art::after {
    content: "";
    position: absolute;
    left: 26px;
    width: 34px;
    height: 36px;
    border-radius: 12px;
    background: #d8dce3;
}

.watch-art::before {
    top: -31px;
}

.watch-art::after {
    bottom: -31px;
}

.buds-art {
    position: absolute;
    right: 72px;
    bottom: 85px;
    width: 82px;
    height: 52px;
    border-radius: 30px;
    background:
        radial-gradient(circle at 25px 20px, #e5e7eb 0 12px, #fff 13px 23px, transparent 24px),
        radial-gradient(circle at 58px 20px, #e5e7eb 0 12px, #fff 13px 23px, transparent 24px);
}

.headphone-art {
    position: absolute;
    top: 70px;
    right: 280px;
    width: 210px;
    height: 205px;
    border: 26px solid #070b11;
    border-bottom-color: transparent;
    border-radius: 130px 130px 70px 70px;
    transform: rotate(-12deg);
    filter: drop-shadow(0 35px 35px rgba(0, 0, 0, 0.55));
}

.headphone-art::before,
.headphone-art::after {
    content: "";
    position: absolute;
    bottom: 4px;
    width: 58px;
    height: 86px;
    border-radius: 28px;
    background: linear-gradient(135deg, #202633, #05070b);
}

.headphone-art::before {
    left: -30px;
}

.headphone-art::after {
    right: -30px;
}

.trust-panel {
    display: grid;
    border: 1px solid var(--taeef-line);
    border-radius: 7px;
    background: #fff;
}

.trust-item {
    display: grid;
    grid-template-columns: 46px 1fr;
    align-content: center;
    column-gap: 14px;
    min-height: 111px;
    padding: 18px;
    border-bottom: 1px solid var(--taeef-line);
}

.trust-item:last-child {
    border-bottom: 0;
}

.trust-item span {
    grid-row: span 2;
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    border-radius: 7px;
    background: #eef4ff;
    color: var(--taeef-blue);
    font-size: 20px;
}

.trust-item strong {
    font-size: 14px;
    font-weight: 900;
}

.trust-item small {
    color: var(--taeef-muted);
    font-size: 13px;
}

.brand-strip {
    display: grid;
    grid-template-columns: repeat(8, 1fr) 140px;
    margin-top: 32px;
    border: 1px solid var(--taeef-line);
    border-radius: 6px;
    overflow: hidden;
}

.brand-strip a {
    min-height: 58px;
    display: grid;
    place-items: center;
    border-right: 1px solid var(--taeef-line);
    color: #101828;
    font-size: 19px;
    font-weight: 900;
}

.brand-strip a:nth-child(3),
.brand-strip .view-all {
    color: var(--taeef-blue);
}

.brand-strip .view-all {
    border-right: 0;
    font-size: 13px;
}

.home-section {
    margin-top: 42px;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.section-heading h2 {
    margin: 0;
    color: #101828;
    font-size: 22px;
    line-height: 1.15;
}

.section-heading a {
    color: var(--taeef-blue);
    font-weight: 900;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 16px;
}

.category-tile {
    min-height: 165px;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 14px;
    border: 1px solid var(--taeef-line);
    border-radius: 7px;
    background: linear-gradient(180deg, #fbfcff, #f5f6f9);
    color: #101828;
    font-size: 13px;
    font-weight: 900;
    text-align: center;
}

.product-art,
.demo-product-image,
.newsletter-products {
    position: relative;
    display: block;
}

.product-art {
    width: 72px;
    height: 78px;
}

.product-art-1,
.phone,
.product-art-2,
.product-art-3,
.headphone,
.product-art-4,
.watch,
.product-art-5,
.power,
.product-art-6,
.keyboard,
.earbuds {
    background-repeat: no-repeat;
}

.product-art-1,
.phone {
    border-radius: 14px;
    background: linear-gradient(135deg, #041028, #0e62dc);
    box-shadow: inset 8px 0 18px rgba(255, 255, 255, 0.16);
}

.product-art-2 {
    height: 52px;
    border-radius: 6px;
    background: linear-gradient(135deg, #101828, #3568af);
    box-shadow: 0 16px 0 -8px #2c3442;
}

.product-art-3,
.headphone {
    border: 10px solid #2b3038;
    border-bottom-color: transparent;
    border-radius: 46px;
}

.product-art-4,
.watch {
    width: 58px;
    border-radius: 15px;
    background: linear-gradient(135deg, #030712, #334155);
}

.product-art-5,
.power {
    width: 60px;
    height: 66px;
    border-radius: 10px;
    background: linear-gradient(135deg, #1f2937, #d1d5db);
}

.product-art-6 {
    width: 76px;
    height: 54px;
    border-radius: 24px;
    background: linear-gradient(135deg, #111827, #475569);
}

.product-section .woocommerce ul.products,
.demo-product-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.demo-product {
    position: relative;
    width: auto;
    float: none;
    min-height: 330px;
    margin: 0 !important;
    padding: 16px;
    border: 1px solid var(--taeef-line);
    border-radius: 7px;
    background: #fff;
}

.woocommerce ul.products li.product img {
    width: 100%;
    aspect-ratio: 1 / 0.78;
    object-fit: contain;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.demo-product h3 {
    min-height: 42px;
    margin: 12px 0 4px;
    color: #101828;
    font-size: 13px;
    font-weight: 900;
}

.demo-product p {
    margin: 0 0 12px;
    color: #667085;
    font-size: 12px;
}

.woocommerce span.onsale,
.sale-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    min-height: 0;
    padding: 4px 8px;
    border-radius: 3px;
    background: var(--taeef-blue);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
}

.demo-product button {
    position: absolute;
    top: 12px;
    right: 14px;
    border: 0;
    background: transparent;
    color: #98a2b3;
    font-size: 20px;
}

.demo-product-image {
    width: 100%;
    height: 120px;
    margin-top: 20px;
    background-position: center;
}

.earbuds {
    background:
        radial-gradient(circle at 42% 42%, #f8fafc 0 18px, #d9dee7 19px 28px, transparent 29px),
        radial-gradient(circle at 62% 42%, #f8fafc 0 18px, #d9dee7 19px 28px, transparent 29px),
        linear-gradient(180deg, transparent 0 64px, #f8fafc 65px 102px, transparent 103px);
}

.rating {
    color: #f59e0b;
    font-size: 12px;
    font-weight: 900;
}

.rating span {
    color: #667085;
    font-weight: 600;
}

.demo-product strong,
.woocommerce div.product p.price,
.woocommerce div.product span.price,
.woocommerce ul.products li.product .price {
    display: block;
    margin-top: 8px;
    color: #101828;
    font-size: 18px;
    font-weight: 900;
}

.demo-product del,
.woocommerce ul.products li.product .price del {
    margin-left: 7px;
    color: #98a2b3;
    font-size: 12px;
    font-weight: 700;
}

.demo-product > a,
.woocommerce ul.products li.product .button {
    width: 100%;
    min-height: 36px;
    margin-top: 14px;
    border: 1px solid var(--taeef-blue);
    border-radius: 4px;
    background: #fff;
    color: var(--taeef-blue);
    font-size: 13px;
    font-weight: 900;
}

.newsletter-band {
    position: relative;
    min-height: 136px;
    display: grid;
    grid-template-columns: 1fr 380px 250px;
    align-items: center;
    gap: 28px;
    margin: 38px 0 18px;
    padding: 28px 38px;
    overflow: hidden;
    border-radius: 6px;
    background: linear-gradient(90deg, #edf4ff, #f8fbff);
}

.newsletter-band strong {
    color: var(--taeef-blue);
    font-size: 22px;
    letter-spacing: 3px;
}

.newsletter-band h2 {
    max-width: 440px;
    margin: 8px 0 0;
    font-size: 21px;
    line-height: 1.25;
}

.newsletter-band form {
    display: grid;
    grid-template-columns: 1fr 116px;
    height: 46px;
    border: 1px solid var(--taeef-line);
    border-radius: 5px;
    background: #fff;
    overflow: hidden;
}

.newsletter-band input {
    border: 0;
    outline: 0;
    padding: 0 18px;
}

.newsletter-band button {
    border: 0;
    margin: 4px;
    border-radius: 4px;
    background: var(--taeef-blue);
    color: #fff;
    font-weight: 900;
}

.newsletter-products {
    height: 110px;
}

.newsletter-products::before {
    content: "";
    position: absolute;
    right: 0;
    top: -10px;
    width: 190px;
    height: 150px;
    background:
        radial-gradient(circle at 52% 55%, #111827 0 38px, transparent 39px),
        radial-gradient(circle at 70% 36%, #d7dde8 0 26px, transparent 27px),
        linear-gradient(135deg, #111827, #667085);
    border-radius: 22px;
}

.page-content,
.content-layout,
.taeef-shop-layout {
    padding-block: 48px;
}

.entry-title,
.page-title {
    color: #101828;
}

.entry-card {
    margin-bottom: 24px;
    padding: 24px;
    border: 1px solid var(--taeef-line);
    border-radius: var(--taeef-radius);
    background: #fff;
}

.entry-media img {
    display: block;
    width: 100%;
    border-radius: var(--taeef-radius);
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    border-top-color: var(--taeef-blue);
    background: #fff;
}

.woocommerce-message::before,
.woocommerce-info::before {
    color: var(--taeef-blue);
}

.site-footer {
    margin-top: 0;
    padding: 0 0 28px;
    background: #fff;
    color: #344054;
}

.footer-benefits {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-top: 16px;
    border: 1px solid var(--taeef-line);
    border-radius: 5px;
}

.footer-benefits div {
    display: grid;
    grid-template-columns: 34px 1fr;
    align-content: center;
    min-height: 72px;
    padding: 12px 22px;
}

.footer-benefits span {
    grid-row: span 2;
    color: #101828;
    font-size: 22px;
}

.footer-benefits strong {
    font-size: 13px;
    font-weight: 900;
}

.footer-benefits small {
    color: #667085;
    font-size: 11px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(4, 1fr);
    gap: 54px;
    padding-top: 36px;
}

.footer-brand {
    margin: 0 0 14px;
    color: var(--taeef-blue);
    font-size: 31px;
}

.footer-brand .logo-mark {
    width: 50px;
    height: 40px;
    font-size: 22px;
}

.footer-grid p {
    max-width: 245px;
    margin: 0 0 22px;
    color: #344054;
    font-size: 15px;
}

.social-row,
.payment-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.social-row a,
.payment-row span {
    min-width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 5px;
    background: #f2f4f7;
    color: #101828;
    font-weight: 900;
}

.footer-links h3 {
    margin: 0 0 16px;
    color: #101828;
    font-size: 13px;
    font-weight: 900;
}

.footer-links a {
    display: block;
    margin-bottom: 11px;
    color: #667085;
    font-size: 13px;
}

.footer-widgets {
    grid-column: 1 / -1;
}

.footer-bottom {
    margin-top: 18px;
    color: #667085;
    font-size: 13px;
}

@media (max-width: 1200px) {
    .header-inner {
        grid-template-columns: 210px 1fr auto;
    }

    .header-location {
        display: none;
    }

    .home-grid,
    .hero-row,
    .newsletter-band {
        grid-template-columns: 1fr;
    }

    .category-rail {
        display: none;
    }

    .brand-strip {
        grid-template-columns: repeat(4, 1fr);
    }

    .category-grid,
    .product-section .woocommerce ul.products,
    .demo-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .footer-benefits,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .taeef-shell,
    .taeef-container {
        width: min(100% - 24px, 1472px);
    }

    .header-inner {
        min-height: auto;
        grid-template-columns: 1fr auto;
        gap: 14px;
        padding: 14px 0;
    }

    .taeef-logo {
        font-size: 26px;
    }

    .logo-mark {
        width: 46px;
        height: 38px;
        font-size: 20px;
    }

    .header-search,
    .header-actions {
        grid-column: 1 / -1;
    }

    .header-actions {
        justify-content: space-between;
        gap: 10px;
        white-space: normal;
    }

    .menu-toggle {
        display: block;
    }

    .main-navigation.is-open {
        display: block;
        grid-column: 1 / -1;
    }

    .tech-hero {
        min-height: 540px;
    }

    .hero-copy {
        width: auto;
        padding: 34px 24px 0;
    }

    .hero-copy h1 {
        font-size: 38px;
    }

    .tech-visual {
        transform: translateY(110px) scale(0.72);
        transform-origin: center bottom;
    }

    .brand-strip,
    .category-grid,
    .product-section .woocommerce ul.products,
    .demo-product-grid,
    .footer-benefits,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .newsletter-band form {
        grid-template-columns: 1fr;
        height: auto;
    }

    .newsletter-band button {
        min-height: 42px;
    }
}

@media (max-width: 480px) {
    .header-search {
        grid-template-columns: 1fr;
        height: auto;
    }

    .header-search input,
    .header-search button {
        min-height: 46px;
    }

    .brand-strip,
    .category-grid,
    .product-section .woocommerce ul.products,
    .demo-product-grid,
    .footer-benefits,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .tech-visual {
        transform: translate(70px, 130px) scale(0.58);
    }
}
