/*
Theme Name: BookGift Theme
Theme URI: https://ketab.ly/
Author: Ketab.ly
Description: RTL-first WooCommerce theme for a curated Libyan bookstore and gift shop.
Version: 1.3.0
Text Domain: ketab
*/

/* ====================================================
   Ketab.ly Modern UI Framework
   ==================================================== */

:root {
    --bg-main: var(--color-paper, #FBF8F0);
    --text-main: var(--color-ink, #202B3C);
    --text-muted: #606B7A;
    --color-primary: var(--color-green, #173F72);
    --color-accent: var(--color-brass, #C49A37);
    --card-bg: #FFFFFF;
    
    --radius-lg: 24px;
    --radius-md: 12px;
    --radius-pill: 50px;
    
    --shadow-base: 0 10px 30px rgba(58, 53, 47, 0.06);
    --shadow-hover: 0 20px 40px rgba(58, 53, 47, 0.12);
}

/* 2. فرض الاتجاه والخط الأساسي */
body {
    background-color: var(--bg-main) !important;
    color: var(--text-main);
    font-family: 'Tajawal', sans-serif !important;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}
body { text-align: start !important; }

h1, h2, h3, h4, .k-title {
    font-family: 'Aref Ruqaa', serif !important;
    color: var(--text-main);
    font-weight: 700;
}

/* 3. النظام الشبكي الحديث (Modern CSS Grid) */
.k-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.k-section {
    padding: 80px 0;
}

.k-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px; /* مسافات واسعة ومريحة */
    margin-top: 40px;
}

/* 4. البطاقات العصرية (Cards) */
.k-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-base);
    border: 1px solid rgba(140, 132, 123, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.k-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.k-card img {
    border-radius: var(--radius-md);
    width: 100%;
    height: auto;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* 5. الأزرار (Pill Buttons) */
.k-btn {
    display: inline-block;
    background-color: transparent;
    color: var(--color-primary);
    border-radius: var(--radius-pill);
    padding: 12px 30px;
    font-family: 'Tajawal', sans-serif;
    font-weight: 700;
    border: 2px solid var(--color-primary);
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.k-btn:hover {
    background-color: var(--color-primary);
    color: #FFF;
    transform: translateY(-2px);
}

.k-btn-accent {
    background-color: #A35032;
    color: #FFF;
    border-color: #A35032;
}

.k-btn-accent:hover {
    background-color: #873F29;
    border-color: #873F29;
}

/* 6. الشارات (Badges) */
.k-badge {
    display: inline-block;
    background: var(--color-primary);
    color: #FFF;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; overflow-x: hidden; }
a { color: var(--color-primary); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }

.site-shell { min-height: 100vh; display: flex; flex-direction: column; padding-bottom: 68px; }
.site-shell > main { flex: 1; }
.container { width: min(100% - 32px, 1200px); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg-main); border-bottom: 1px solid rgba(58, 53, 47, .12); }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-brand { display: inline-flex; flex-direction: column; color: var(--color-primary); text-decoration: none; }
.site-brand__name { font: 700 1.8rem/1.1 'Aref Ruqaa', serif; }
.site-brand__tagline { color: var(--text-muted); font-size: .85rem; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.search-form { display: flex; align-items: center; gap: 8px; }
.search-form input[type="search"] { width: min(25vw, 260px); min-height: 44px; padding: 8px 12px; border: 1px solid #716A62; border-radius: var(--radius-md); background: var(--card-bg); color: var(--text-main); }
.site-header .button, .header-link { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--color-primary); border-radius: var(--radius-pill); background: var(--card-bg); color: var(--color-primary); text-decoration: none; }
.header-link { border: 0; background: transparent; }
.cart-count { min-width: 24px; min-height: 24px; display: inline-grid; place-items: center; border-radius: 50%; background: var(--color-primary); color: #fff; font-size: .85rem; }
.language-switcher { display: flex; gap: 4px; }
.language-switcher a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 8px; border-radius: 8px; text-decoration: none; }
.primary-nav { border-top: 1px solid rgba(58, 53, 47, .08); }
.primary-nav ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 4px 0; list-style: none; }
.primary-nav a { min-height: 40px; display: flex; align-items: center; padding: 0 12px; border-radius: 8px; text-decoration: none; }
.primary-nav a:hover { background: var(--card-bg); }
.menu-toggle { display: none; }
.announcement { padding: 8px 16px; background: #E4ECE5; text-align: center; }
.woocommerce-notices-wrapper { width: min(100% - 32px, 1200px); margin: 12px auto 0; }

.site-main { width: min(100% - 32px, 1200px); margin-inline: auto; }
.k-section { padding-block: clamp(40px, 6vw, 80px); }
.k-section + .k-section { border-top: 1px solid rgba(58, 53, 47, .07); }
.k-section > .k-title, .k-section > .k-eyebrow { text-align: center; }
.k-title { margin: 0 0 12px; line-height: 1.25; }
.k-eyebrow { margin: 0 0 8px; color: var(--color-primary); font-weight: 700; }
.k-lead { max-width: 34rem; color: var(--text-muted); font-size: clamp(1rem, 2vw, 1.2rem); }
.k-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); align-items: stretch; gap: clamp(16px, 2.4vw, 30px); margin-top: 28px; }
.k-hero-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
.k-card { min-width: 0; text-align: start !important; justify-content: flex-start !important; }
.k-card p { color: var(--text-muted) !important; font-size: 1rem !important; line-height: 1.65; margin: 8px 0 16px !important; }
.k-hero-copy { justify-content: center !important; padding: clamp(24px, 4vw, 48px); }
.k-hero-copy .k-title { font-size: clamp(2.3rem, 5vw, 4rem); }
.k-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.k-hero-image { display: grid; place-items: center; min-height: 280px; overflow: hidden; background: #E4ECE5; }
.k-hero-image a { width: 100%; display: grid; place-items: center; }
.k-hero-image img { width: auto; max-width: 100%; max-height: 380px; object-fit: contain; }
.k-btn { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 22px; font-size: 1rem; }
.k-btn-accent { background: #A35032; color: #fff; border-color: #A35032; }
.k-btn-accent:hover { background: #873F29; border-color: #873F29; color: #fff; }
.k-category-card { justify-content: center !important; }
.k-category-card > a { display: block; color: inherit; text-decoration: none; }
.k-category-card .k-title { margin-bottom: 4px; }
.k-category-card p { margin: 0 !important; }
.k-product-card { height: 100%; gap: 12px; }
.k-product-link { display: block; color: inherit; text-decoration: none; }
.k-product-card img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: contain; background: #F8F5EF; }
.k-product-card .k-title { margin: 14px 0 0; font-size: 1.2rem; }
.k-product-card .k-product-price { margin: 0 !important; color: var(--text-main) !important; font-weight: 800; }
.k-product-card .k-badge { align-self: flex-start; margin: 0; }
.k-product-card .k-btn { width: 100%; margin-top: auto; }
.k-step-card { align-items: flex-start; }
.k-step-icon { width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; border: 2px solid #A35032; border-radius: 50%; color: #873F29; font-size: 1.15rem; font-weight: 700; }
.k-step-card .k-title, .k-trust-card .k-title { margin-top: 12px; font-size: 1.25rem; }
.k-trust-card .k-btn { align-self: flex-start; margin-top: auto; }
.k-empty-state { padding: 24px; border: 1px dashed rgba(58, 53, 47, .25); border-radius: var(--radius-lg); background: var(--card-bg); text-align: center; }
.k-icon { width: 48px; height: 48px; max-width: 48px; max-height: 48px; display: block; fill: none !important; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.k-section .k-icon { margin: 0 auto 16px; color: #873F29; }
.site-header .k-icon, .mobile-nav .k-icon { width: 22px !important; height: 22px !important; max-width: 22px; max-height: 22px; flex: 0 0 22px; margin: 0 !important; color: currentColor; }
.site-header button .k-icon, .mobile-nav a .k-icon { display: block; }
.mobile-nav { position: fixed; inset-inline: 0; bottom: 0; z-index: 60; min-height: 60px; display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px 8px max(6px, env(safe-area-inset-bottom)); border-top: 1px solid rgba(58, 53, 47, .14); background: #fff; box-shadow: 0 -4px 20px rgba(58, 53, 47, .1); }
.mobile-nav a { min-width: 0; min-height: 48px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--color-primary); font-size: .78rem; text-decoration: none; }
.mobile-nav a[aria-current="page"] { font-weight: 800; }
.site-footer { margin-top: 32px; padding: 40px 0 20px; background: #243B31; color: #fff; }
.site-footer a { color: #fff; }
.footer-inner { width: min(100% - 32px, 1200px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-inline: auto; }
.footer-inner > div, .footer-inner nav { display: grid; align-content: start; gap: 10px; }
.footer-inner .site-brand { color: #fff; }
.site-footer .menu { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.footer-bottom { width: min(100% - 32px, 1200px); display: flex; justify-content: space-between; gap: 16px; margin: 28px auto 0; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .25); }

@media (max-width: 700px) {
	.k-hero-grid { grid-template-columns: 1fr; }
	.k-hero-image { min-height: 220px; }
	.k-hero-image img { max-height: 280px; }
	.header-inner { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding-block: 10px; }
	.site-brand__name { font-size: 1.5rem; }
	.site-brand__tagline { display: none; }
	.menu-toggle { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid rgba(58, 53, 47, .2); border-radius: var(--radius-pill); background: #fff; color: var(--color-primary); font: inherit; }
	.header-actions { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px; }
	.search-form input[type="search"] { width: 100%; }
	.header-link .cart-label { display: none; }
	.primary-nav { display: none; }
	.primary-nav.is-open { display: block; }
	.primary-nav ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.footer-inner { grid-template-columns: 1fr; }
	.footer-bottom { flex-direction: column; }
}

@media (max-width: 380px) {
	.container, .site-main, .footer-inner, .footer-bottom { width: min(100% - 24px, 1200px); }
	.k-card { padding: 18px; }
	.k-hero-actions { flex-direction: column; }
	.k-hero-actions .k-btn { width: 100%; }
}

@media (min-width: 701px) {
	.site-shell { padding-bottom: 0; }
	.mobile-nav { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Editorial storefront */
.skip-link { position: fixed; z-index: 100; inset-block-start: 8px; inset-inline-start: 8px; transform: translateY(-160%); padding: 10px 16px; border-radius: 10px; background: #fff; color: #173e32; box-shadow: var(--shadow-hover); }
.skip-link:focus { transform: translateY(0); }
.site-header { background: rgba(255, 253, 249, .96); box-shadow: 0 5px 24px rgba(40, 49, 39, .045); backdrop-filter: blur(14px); }
.header-inner { min-height: 82px; }
.site-brand { flex-direction: row; align-items: center; gap: 10px; }
.site-brand__mark { width: 46px; height: 46px; display: grid; flex: 0 0 46px; place-items: center; border-radius: 15px; background: #1e5643; color: #fff; box-shadow: 0 6px 16px rgba(30, 86, 67, .18); }
.site-brand__mark svg { width: 29px; height: 29px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.site-brand__text { display: flex; flex-direction: column; }
.site-brand__name { font-size: 1.9rem; }
.site-brand__tagline { font-size: .78rem; }
.header-actions { gap: 14px; }
.search-form { position: relative; min-width: 220px; }
.search-form input[type="search"] { width: min(27vw, 310px); min-height: 46px; padding-inline: 16px 50px; border-color: #e5e3da; border-radius: 14px; background: #f7f6f0; }
.site-header .search-form .button { position: absolute; inset-inline-end: 4px; width: 40px; min-width: 40px; min-height: 40px; padding: 8px; border: 0; background: transparent; }
.site-header .search-form .button:hover { background: #e9eee5; }
.header-link { padding-inline: 10px; }
.header-link:hover, .language-switcher a:hover { background: #f0f1e9; }
.header-navigation { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid rgba(58, 53, 47, .075); }
.primary-nav { flex: 1; border: 0; }
.primary-nav ul { gap: 6px; padding-block: 6px; }
.primary-nav a { min-height: 42px; padding-inline: 16px; color: #45463f; font-weight: 700; transition: color .2s ease, background .2s ease; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { background: #edf1e9; color: #1e5643; }
.header-gift-link { display: inline-flex; min-height: 38px; align-items: center; gap: 7px; padding: 0 15px; border-radius: 99px; background: #fff0e9; color: #9e492e; font-weight: 800; text-decoration: none; transition: background .2s ease, transform .2s ease; }
.header-gift-link:hover { transform: translateY(-1px); background: #ffe3d6; }
.announcement { background: #edf1e8; color: #244a3a; font-weight: 700; }
.site-main { max-width: 1240px; }
.k-section { padding-block: clamp(38px, 5.5vw, 68px); }
.k-section + .k-section { border-top: 1px solid rgba(58, 53, 47, .055); }
.k-hero-section { padding-block: clamp(25px, 4vw, 48px) clamp(24px, 3vw, 38px); border: 0 !important; }
.k-hero-grid { min-height: 430px; display: grid; grid-template-columns: 1.02fr .98fr; overflow: hidden; border-radius: 34px; background: #edf1e8; box-shadow: 0 22px 60px rgba(42, 57, 41, .09); }
.k-hero-copy { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(30px, 5vw, 68px); }
.k-hero-copy .k-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 7px 13px; border: 1px solid #d7dfd2; border-radius: 99px; background: rgba(255, 255, 255, .55); color: #35624b; font-size: .91rem; }
.k-hero-copy .k-eyebrow span { color: #c46542; }
.k-hero-copy .k-title { max-width: 570px; margin-bottom: 15px; color: #203f33; font-size: clamp(2.8rem, 5.2vw, 4.65rem); line-height: 1.23; }
.k-hero-copy .k-lead { max-width: 450px; margin: 0 0 12px !important; color: #60685d !important; font-size: clamp(1.04rem, 1.55vw, 1.2rem) !important; line-height: 1.9; }
.k-hero-actions { gap: 11px; margin-top: 17px; }
.k-btn { min-height: 50px; padding: 11px 22px; border: 1px solid #1e5643; border-radius: 13px; background: #fff; color: #1e5643; font-weight: 800; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.k-btn:hover { transform: translateY(-2px); box-shadow: 0 9px 20px rgba(35, 70, 51, .12); background: #f6f8f2; color: #173e32; }
.k-btn-accent { border-color: #b95135; background: #b95135; color: #fff; }
.k-btn-accent:hover { border-color: #99432e; background: #99432e; color: #fff; }
.k-btn-light { border-color: rgba(32, 63, 51, .17); background: rgba(255, 255, 255, .78); color: #234a39; }
.k-hero-notes { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 24px; color: #4b6652; font-size: .89rem; font-weight: 700; }
.k-hero-notes span span { color: #c46542; }
.k-hero-art { position: relative; display: grid; min-height: 430px; place-items: center; overflow: hidden; background: radial-gradient(ellipse at 52% 44%, #f7e6cb 0 19%, transparent 19.5%), linear-gradient(145deg, #e6b895 0%, #e8c49c 45%, #d38d69 100%); }
.k-hero-art::before, .k-hero-art::after { position: absolute; content: ""; border: 1px solid rgba(255, 255, 255, .4); border-radius: 50%; }
.k-hero-art::before { width: 370px; height: 370px; }
.k-hero-art::after { width: 470px; height: 470px; }
.k-hero-art__halo { position: absolute; width: 280px; height: 280px; border: 1px solid rgba(255, 255, 255, .55); border-radius: 50%; }
.k-hero-book { position: relative; z-index: 1; display: grid; width: 206px; height: 284px; place-items: center; padding: 11px; border: 9px solid #fffaf1; border-radius: 5px 15px 15px 5px; background: #315b49; box-shadow: -13px 20px 0 #bd7359, 0 32px 44px rgba(63, 43, 33, .25); transform: rotate(-7deg); transition: transform .35s ease; }
.k-hero-book:hover { transform: rotate(-3deg) translateY(-5px); }
.k-hero-book img { width: 100%; height: 100%; border-radius: 1px; object-fit: cover; }
.k-hero-book--placeholder { align-content: center; justify-items: center; gap: 13px; color: #fff8e9; text-align: center; }
.k-hero-book--placeholder span { font: 700 1.6rem 'Aref Ruqaa', serif; }
.k-hero-book--placeholder strong { max-width: 150px; font: 700 1.3rem/1.6 'Aref Ruqaa', serif; }
.k-hero-book--placeholder i { color: #f3c993; font-size: 1.7rem; font-style: normal; }
.k-hero-caption { position: absolute; z-index: 2; inset-inline-start: 8%; bottom: 9%; display: grid; gap: 4px; max-width: 200px; padding: 14px 18px; border: 1px solid rgba(255, 255, 255, .7); border-radius: 16px; background: rgba(255, 252, 246, .9); box-shadow: 0 12px 30px rgba(68, 49, 36, .12); text-align: start; backdrop-filter: blur(8px); }
.k-hero-caption span { color: #797467; font-size: .8rem; }
.k-hero-caption strong { color: #324b3c; font-size: .92rem; }
.k-hero-stamp { position: absolute; z-index: 2; inset-inline-end: 9%; top: 10%; display: grid; width: 90px; height: 90px; align-content: center; justify-items: center; border: 1px solid rgba(255, 255, 255, .5); border-radius: 50%; background: #f7e7ca; color: #794c3b; font-size: .75rem; font-weight: 800; transform: rotate(9deg); }
.k-hero-stamp span { font-size: 1.4rem; line-height: 1; }
.k-hero-art__spark { position: absolute; z-index: 1; color: #fff8eb; }
.k-hero-art__spark--one { top: 22%; inset-inline-start: 17%; font-size: 2.3rem; }
.k-hero-art__spark--two { bottom: 25%; inset-inline-end: 16%; font-size: 1.7rem; }
.k-service-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 4px 0 14px; padding: 20px 25px; border: 1px solid #ebe8de; border-radius: 20px; background: #fffdfa; }
.k-service-strip > div { display: flex; align-items: center; gap: 13px; padding-inline: 14px; }
.k-service-strip > div + div { border-inline-start: 1px solid #e9e6dd; }
.k-service-strip > div > span { width: 43px; height: 43px; display: grid; flex: 0 0 43px; place-items: center; border-radius: 14px; background: #edf2e9; color: #345f48; font-size: 1.3rem; }
.k-service-strip > div:nth-child(2) > span { background: #fff0e8; color: #b95135; }
.k-service-strip p { display: grid; gap: 2px; margin: 0 !important; }
.k-service-strip strong { color: #303c31; font-size: .96rem; }
.k-service-strip small { color: #77776e; font-size: .81rem; }
.k-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.k-section-heading .k-eyebrow { margin-bottom: 5px; }
.k-section-heading .k-title { margin: 0; font-size: clamp(1.9rem, 3vw, 2.7rem); }
.k-text-link { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 8px; padding-bottom: 6px; color: #315d47; font-weight: 800; text-decoration: none; }
.k-text-link:hover { color: #aa4e32; }
.k-category-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.k-category-card { position: relative; min-height: 148px; overflow: hidden; justify-content: center; border-color: #e8e5db; background: #fffdfa; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.k-category-card:nth-child(4n+1) { background: #f1f3e9; }
.k-category-card:nth-child(4n+2) { background: #fbede4; }
.k-category-card:nth-child(4n+3) { background: #f5eff8; }
.k-category-card:nth-child(4n) { background: #eaf1f1; }
.k-category-card:hover { transform: translateY(-5px); border-color: #c7d2c0; box-shadow: var(--shadow-hover); }
.k-category-card > a { position: relative; z-index: 1; width: 100%; min-height: 100px; }
.k-category-card .k-title { margin: 7px 0 2px; font-size: 1.35rem; }
.k-category-card p { color: #75766d !important; font-size: .88rem !important; }
.k-category-mark { color: #bc6d4c; font-size: 1.2rem; }
.k-category-arrow { position: absolute; inset-inline-end: 3px; bottom: 4px; color: #586f53; font-size: 1.2rem; transition: transform .2s ease; }
.k-category-card:hover .k-category-arrow { transform: translateX(-4px); }
.k-product-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 225px), 1fr)); }
.k-product-card { padding: 17px; border-color: #ece9e0; background: #fffdfa; transition: transform .25s ease, box-shadow .25s ease; }
.k-product-card:hover { transform: translateY(-5px); box-shadow: 0 18px 36px rgba(55, 53, 42, .12); }
.k-product-card img { overflow: hidden; border: 1px solid #efede6; border-radius: 14px; background: #f4f1e9; }
.k-product-card .k-title { font: 700 1.16rem/1.5 'Tajawal', sans-serif !important; }
.k-product-card .k-badge { background: #edf2e9; color: #315c45; font-size: .78rem; }
.k-product-card .k-btn { min-height: 44px; border-radius: 11px; }
.k-people-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 27px; }
.k-person-card { display: grid; justify-items: center; gap: 9px; padding: 22px 14px; border: 1px solid #eae7de; border-radius: 20px; background: #fffdfa; color: #34483a; text-align: center; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.k-person-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.k-person-card img, .k-person-initial { width: 72px; height: 72px; display: grid; place-items: center; border: 4px solid #f0efe8; border-radius: 50%; background: #e8efe5; color: #3c694e; font: 700 1.8rem 'Aref Ruqaa', serif; object-fit: cover; }
.k-person-card:nth-child(4n+2) .k-person-initial { background: #f8e9df; color: #aa5437; }
.k-person-card:nth-child(4n+3) .k-person-initial { background: #f1eaf3; color: #735c80; }
.k-person-card strong { font-size: 1rem; }
.k-person-card > span:last-child { color: #7b7b71; font-size: .82rem; }
.k-gift-banner { position: relative; display: grid; grid-template-columns: .72fr 1.28fr; align-items: center; gap: 25px; min-height: 280px; overflow: hidden; margin-block: 20px 8px; padding: clamp(25px, 5vw, 58px); border-radius: 28px; background: #274e3c; color: #fff; }
.k-gift-banner::after { position: absolute; inset-inline-end: -100px; top: -150px; width: 390px; height: 390px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 50%; content: ""; box-shadow: 0 0 0 45px rgba(255, 255, 255, .035), 0 0 0 95px rgba(255, 255, 255, .025); }
.k-gift-banner__art { position: relative; z-index: 1; width: 165px; height: 184px; display: grid; align-content: center; justify-items: center; gap: 15px; margin: auto; border: 9px solid #fff6e5; border-radius: 6px 15px 15px 6px; background: #bc6849; box-shadow: -10px 13px 0 #e7bd82, 0 19px 27px rgba(15, 35, 24, .2); color: #fff7e8; transform: rotate(7deg); }
.k-gift-banner__art span { font: 700 1.55rem 'Aref Ruqaa', serif; }
.k-gift-banner__art i { color: #f0cd8e; font-size: 1.7rem; font-style: normal; }
.k-gift-banner__copy { position: relative; z-index: 1; max-width: 650px; }
.k-gift-banner__copy .k-eyebrow { color: #f0c88e; }
.k-gift-banner__copy .k-title { margin: 0 0 8px; color: #fff; font-size: clamp(2rem, 3.7vw, 3rem); }
.k-gift-banner__copy > p:not(.k-eyebrow) { max-width: 520px; margin: 0 0 18px !important; color: #d8e3d9 !important; }
.k-gift-banner .k-btn-light { border-color: rgba(255, 255, 255, .4); background: #fff; color: #264b39; }
.k-publishers-section { padding-bottom: 55px; }
.k-publisher-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.k-publisher-list a { display: inline-flex; align-items: center; gap: 12px; padding: 11px 16px; border: 1px solid #e9e5db; border-radius: 12px; background: #fffdfa; color: #34483a; font-weight: 800; text-decoration: none; transition: border-color .2s ease, transform .2s ease; }
.k-publisher-list a:hover { transform: translateY(-2px); border-color: #b7c7b3; }
.k-publisher-list span { color: #77776e; font-size: .78rem; font-weight: 500; }
.k-trust-card { border-color: #eae7de; background: #fffdfa; }
.k-trust-card .k-icon { color: #bd6042; }
.site-footer { position: relative; overflow: hidden; margin-top: 30px; padding: 58px 0 21px; background: #1e3d31; }
.site-footer::before { position: absolute; inset-inline-end: -170px; top: -265px; width: 430px; height: 430px; border: 1px solid rgba(245, 228, 194, .1); border-radius: 50%; content: ""; box-shadow: 0 0 0 48px rgba(245, 228, 194, .025), 0 0 0 98px rgba(245, 228, 194, .02); }
.footer-inner { position: relative; z-index: 1; grid-template-columns: 1.35fr 1fr .9fr; gap: clamp(25px, 5vw, 70px); }
.footer-about { max-width: 365px; }
.footer-brand { display: inline-flex; align-items: center; gap: 11px; color: #fff; font: 700 1.8rem 'Aref Ruqaa', serif; text-decoration: none; }
.footer-brand .site-brand__mark { width: 43px; height: 43px; flex-basis: 43px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .09); box-shadow: none; }
.footer-about > p { max-width: 340px; color: #c4d2c8; line-height: 1.9; }
.footer-gift-link { display: inline-flex; align-items: center; gap: 8px; color: #f1cc98 !important; font-weight: 800; text-decoration: none; }
.footer-inner h2 { margin: 4px 0 9px; color: #f6e7cc; font: 700 1.08rem 'Tajawal', sans-serif; }
.footer-inner .menu { gap: 10px; }
.footer-inner .menu a, .footer-help a, .footer-about > a:not(.footer-brand) { color: #d0ddd3; text-decoration: none; transition: color .2s ease; }
.footer-inner .menu a:hover, .footer-help a:hover, .footer-about > a:not(.footer-brand):hover { color: #f1cc98; }
.footer-bottom { position: relative; z-index: 1; margin-top: 40px; padding-top: 19px; border-color: rgba(255, 255, 255, .17); color: #c2d0c5; font-size: .87rem; }
.mobile-nav { border-color: #e6e5dc; background: rgba(255, 253, 249, .98); backdrop-filter: blur(14px); }
.mobile-nav a { color: #345d47; }
.mobile-nav a[aria-current="page"] { color: #b95135; }

@media (max-width: 900px) {
	.header-inner { gap: 10px; }
	.header-actions { gap: 6px; }
	.search-form { min-width: 190px; }
	.header-gift-link { padding-inline: 11px; }
	.k-hero-grid { grid-template-columns: 1fr .85fr; }
	.k-hero-art, .k-hero-grid { min-height: 390px; }
	.k-hero-book { width: 175px; height: 245px; }
	.k-hero-art::before { width: 310px; height: 310px; }
	.k-hero-art::after { width: 390px; height: 390px; }
	.k-people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
	.site-header { position: sticky; }
	.header-inner { grid-template-columns: 1fr auto; }
	.site-brand { gap: 8px; }
	.site-brand__mark { width: 40px; height: 40px; flex-basis: 40px; border-radius: 13px; }
	.site-brand__mark svg { width: 25px; height: 25px; }
	.site-brand__name { font-size: 1.55rem; }
	.site-brand__tagline { display: block; font-size: .72rem; }
	.menu-toggle { border-color: #e6e5dc; background: #fffdfa; }
	.header-actions { grid-template-columns: minmax(0, 1fr) auto auto; }
	.search-form { min-width: 0; }
	.search-form input[type="search"] { min-height: 42px; padding-inline: 12px 42px; border-radius: 12px; }
	.site-header .search-form .button { width: 36px; min-width: 36px; min-height: 36px; }
	.language-switcher a { min-height: 42px; padding-inline: 6px; font-size: .83rem; }
	.header-link { min-height: 42px; padding-inline: 6px; }
	.header-navigation { display: block; }
	.primary-nav { display: none; }
	.primary-nav.is-open { display: block; }
	.primary-nav ul { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-block: 8px 10px; }
	.primary-nav a { min-height: 43px; justify-content: center; background: #f7f6f0; }
	.header-gift-link { display: none; }
	.k-hero-section { padding-block: 20px 22px; }
	.k-hero-grid { grid-template-columns: 1fr; min-height: 0; border-radius: 25px; }
	.k-hero-copy { padding: 29px 25px 25px; }
	.k-hero-copy .k-eyebrow { margin-bottom: 13px; font-size: .82rem; }
	.k-hero-copy .k-title { max-width: 520px; margin-bottom: 9px; font-size: clamp(2.4rem, 10vw, 3.65rem); }
	.k-hero-copy .k-lead { margin-bottom: 5px !important; font-size: 1rem !important; }
	.k-hero-actions { width: 100%; }
	.k-hero-actions .k-btn { flex: 1; padding-inline: 12px; }
	.k-hero-notes { gap: 9px 15px; margin-top: 17px; font-size: .8rem; }
	.k-hero-art { min-height: 300px; }
	.k-hero-book { width: 144px; height: 197px; border-width: 7px; box-shadow: -9px 13px 0 #bd7359, 0 24px 32px rgba(63, 43, 33, .23); }
	.k-hero-art::before { width: 260px; height: 260px; }
	.k-hero-art::after { width: 330px; height: 330px; }
	.k-hero-art__halo { width: 205px; height: 205px; }
	.k-hero-caption { inset-inline-start: 5%; bottom: 8%; max-width: 160px; padding: 10px 12px; }
	.k-hero-stamp { inset-inline-end: 7%; top: 8%; width: 73px; height: 73px; font-size: .67rem; }
	.k-hero-stamp span { font-size: 1.18rem; }
	.k-service-strip { grid-template-columns: 1fr; gap: 0; margin-bottom: 4px; padding: 9px 16px; border-radius: 17px; }
	.k-service-strip > div { padding: 10px 2px; }
	.k-service-strip > div + div { border-top: 1px solid #e9e6dd; border-inline-start: 0; }
	.k-service-strip > div > span { width: 38px; height: 38px; flex-basis: 38px; }
	.k-service-strip small { font-size: .78rem; }
	.k-section-heading { align-items: start; }
	.k-section-heading .k-title { font-size: 1.85rem; }
	.k-text-link { max-width: 136px; padding-top: 9px; font-size: .83rem; }
	.k-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.k-category-card { min-height: 132px; padding: 17px; }
	.k-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.k-product-card { gap: 9px; padding: 11px; border-radius: 17px; }
	.k-product-card .k-title { margin-top: 8px; font-size: 1rem; }
	.k-product-card .k-btn { padding-inline: 8px; font-size: .88rem; }
	.k-product-card .k-product-price { font-size: .92rem !important; }
	.k-people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
	.k-person-card { gap: 6px; padding: 17px 9px; border-radius: 16px; }
	.k-person-card img, .k-person-initial { width: 60px; height: 60px; }
	.k-person-card strong { font-size: .93rem; }
	.k-gift-banner { grid-template-columns: 1fr; gap: 22px; margin-inline: -4px; padding: 31px 24px; border-radius: 23px; text-align: center; }
	.k-gift-banner__art { width: 112px; height: 132px; border-width: 7px; }
	.k-gift-banner__art span { font-size: 1.2rem; }
	.k-gift-banner__art i { font-size: 1.3rem; }
	.k-gift-banner__copy .k-title { font-size: 2rem; }
	.k-gift-banner__copy > p:not(.k-eyebrow) { font-size: .95rem !important; }
	.k-publisher-list { gap: 8px; }
	.k-publisher-list a { gap: 7px; padding: 9px 11px; font-size: .88rem; }
	.footer-inner { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
	.footer-about { grid-column: 1 / -1; }
	.footer-bottom { align-items: center; text-align: center; }
}

@media (max-width: 380px) {
	.site-brand__tagline { display: none; }
	.header-actions { grid-template-columns: minmax(0, 1fr) auto; }
	.language-switcher { display: none; }
	.k-section-heading { display: block; }
	.k-section-heading .k-text-link { margin-top: 9px; padding: 0; }
	.k-hero-actions { flex-direction: column; }
	.k-hero-actions .k-btn { width: 100%; }
	.k-people-grid { grid-template-columns: 1fr 1fr; }
	.footer-inner { grid-template-columns: 1fr; }
	.footer-about { grid-column: auto; }
}

/* BookGift visual system and complete page-form styling */
:root {
	--bg-main: var(--color-paper, #F7F8FC);
	--text-main: var(--color-ink, #172B46);
	--text-muted: #5D6B7D;
	--color-primary: var(--color-green, #173F72);
	--color-accent: var(--color-brass, #C49A37);
	--card-bg: #FFFFFF;
	--shadow-base: 0 10px 30px rgba(23, 43, 70, .07);
	--shadow-hover: 0 20px 40px rgba(23, 43, 70, .13);
}

body,
button,
input,
select,
textarea {
	font-family: var(--font-ui, "Tajawal", sans-serif) !important;
}

h1,
h2,
h3,
h4,
.k-title,
.site-brand__name,
.footer-brand,
.k-hero-book--placeholder span,
.k-hero-book--placeholder strong {
	font-family: var(--font-editorial, "Tajawal", sans-serif) !important;
}

.sr-only {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.site-header {
	background: rgba(255, 255, 255, .97);
	border-color: rgba(23, 63, 114, .12);
}

.header-inner {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: clamp(14px, 2vw, 30px);
}

.site-brand {
	min-width: 0;
	color: var(--color-primary);
}

.site-brand__name {
	font-size: clamp(1.45rem, 2.2vw, 1.85rem);
	white-space: nowrap;
}

.site-brand__mark {
	background: var(--color-primary);
	color: #fff;
	box-shadow: 0 6px 16px rgba(23, 63, 114, .18);
}

.site-brand__logo {
	display: block;
	width: auto;
	max-width: 190px;
	height: auto;
	max-height: 54px;
	object-fit: contain;
}

.header-actions {
	min-width: 0;
	grid-column: 2;
	display: flex;
	flex-wrap: nowrap;
	gap: clamp(4px, .8vw, 12px);
}

.search-form {
	flex: 1 1 260px;
	min-width: 0;
	gap: 5px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(104px, 142px) 42px;
}

.search-form input[type="search"] {
	grid-column: 1;
	width: auto;
	min-width: 0;
	background: #F5F7FB;
	border-color: #D8E0EC;
}

.search-form select {
	grid-column: 2;
	width: 100%;
	min-width: 0;
	height: 44px;
	padding: 0 8px;
	border: 1px solid #D8E0EC;
	border-radius: 10px;
	background: #fff;
	color: var(--text-main);
	font-size: .86rem;
}

.site-header .search-form .button {
	position: static;
	grid-column: 3;
	grid-row: 1;
	width: 42px;
	min-width: 42px;
	min-height: 44px;
	padding: 8px;
	border: 0;
	background: var(--color-primary);
	color: #fff;
}

.site-header .search-form .button:hover {
	background: #102F58;
}

.site-header .search-form .button .k-icon {
	width: 20px;
	height: 20px;
}

.site-header .button,
.header-link {
	border-color: rgba(23, 63, 114, .18);
	color: var(--color-primary);
}

.header-link:hover,
.language-switcher a:hover {
	background: var(--color-sage, #EAF0F7);
}

.cart-count {
	background: var(--color-accent);
	color: #172B46;
}

.header-navigation {
	border-color: rgba(23, 63, 114, .1);
}

.primary-nav a {
	color: var(--text-main);
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a {
	background: var(--color-sage, #EAF0F7);
	color: var(--color-primary);
}

.header-gift-link {
	background: #F7F0DF;
	color: #705316;
}

.header-gift-link:hover {
	background: #EFE2BE;
}

.announcement {
	background: var(--color-sage, #EAF0F7);
	color: var(--color-primary);
}

.k-hero-grid {
	background: #EAF0F7;
}

.k-hero-copy .k-eyebrow,
.k-hero-notes,
.k-service-strip > div > span,
.k-category-arrow,
.k-product-card .k-badge {
	color: var(--color-primary);
}

.k-hero-copy .k-title {
	color: var(--color-primary);
}

.k-hero-copy .k-eyebrow span,
.k-hero-notes span span,
.k-category-mark {
	color: var(--color-accent);
}

.k-btn {
	border-color: var(--color-primary);
	color: var(--color-primary);
}

.k-btn:hover {
	background: var(--color-primary);
	color: #fff;
}

.k-btn-accent {
	border-color: var(--color-primary);
	background: var(--color-primary);
	color: #fff;
}

.k-btn-accent:hover {
	border-color: #102F58;
	background: #102F58;
	color: #fff;
}

.k-btn-light {
	border-color: rgba(23, 63, 114, .2);
	color: var(--color-primary);
}

.k-hero-art {
	background:
		radial-gradient(ellipse at 52% 44%, #F6EBCF 0 19%, transparent 19.5%),
		linear-gradient(145deg, #D9E5F2 0%, #C3D4E8 48%, #A8BFDA 100%);
}

.k-hero-book {
	background: var(--color-primary);
	box-shadow: -13px 20px 0 #C49A37, 0 32px 44px rgba(23, 43, 70, .2);
}

.k-hero-caption strong {
	color: var(--color-primary);
}

.k-hero-stamp {
	background: #F5E9C9;
	color: #705316;
}

.k-service-strip > div > span {
	background: var(--color-sage, #EAF0F7);
}

.k-service-strip > div:nth-child(2) > span {
	background: #F7F0DF;
	color: #80611D;
}

.k-text-link {
	color: var(--color-primary);
}

.k-text-link:hover {
	color: #8A681D;
}

.k-category-card:nth-child(4n+1) { background: #EEF3FA; }
.k-category-card:nth-child(4n+2) { background: #F8F3E7; }
.k-category-card:nth-child(4n+3) { background: #F1F4F8; }
.k-category-card:nth-child(4n) { background: #F7F7F3; }

.k-category-card > a {
	display: grid;
	justify-items: center;
	align-content: center;
	text-align: center;
}

.k-category-card .k-category-image {
	display: block;
	width: 72px;
	height: 72px;
	margin: 0 auto 8px;
	border: 1px solid rgba(23, 63, 114, .1);
	border-radius: 16px;
	background: rgba(255, 255, 255, .8);
	object-fit: contain;
	box-shadow: none;
}

.k-category-card .k-category-mark {
	display: grid;
	width: 72px;
	height: 72px;
	place-items: center;
	margin: 0 auto 8px;
	border: 1px solid rgba(23, 63, 114, .1);
	border-radius: 16px;
	background: rgba(255, 255, 255, .8);
	font-size: 1.8rem;
}

.k-category-card .k-title {
	color: var(--color-primary);
}

.k-person-card {
	color: var(--text-main);
	border-color: #E1E6EE;
}

.k-person-card img,
.k-person-initial {
	border-color: #EAF0F7;
	background: #EAF0F7;
	color: var(--color-primary);
	font-family: var(--font-ui, "Tajawal", sans-serif) !important;
}

.k-person-card:nth-child(4n+2) .k-person-initial,
.k-person-card:nth-child(4n+3) .k-person-initial {
	background: #F7F0DF;
	color: #705316;
}

.k-gift-banner,
.site-footer {
	background: #173F72;
}

.k-gift-banner__art {
	background: #315B86;
	box-shadow: -10px 13px 0 #C49A37, 0 19px 27px rgba(15, 35, 24, .2);
}

.k-gift-banner .k-eyebrow,
.footer-inner h2 {
	color: #F1D89A;
}

.footer-brand .site-brand__mark {
	background: rgba(255, 255, 255, .1);
}

.footer-brand .site-brand__logo {
	max-height: 46px;
}

.site-footer .footer-gift-link,
.site-footer a:hover {
	color: #F1D89A !important;
}

.content-card {
	margin-block: clamp(24px, 5vw, 56px);
	padding: clamp(22px, 4vw, 48px);
	border: 1px solid #E1E6EE;
	border-radius: 24px;
	background: #fff;
	box-shadow: var(--shadow-base);
}

.content-card > h1,
.page-intro h1 {
	margin: 0 0 12px;
	color: var(--color-primary);
	font-size: clamp(2rem, 4vw, 2.8rem);
	line-height: 1.35;
}

.content-card > p,
.page-intro > p {
	color: var(--text-muted);
	line-height: 1.8;
}

.content-card [data-gift-form] {
	display: grid;
	gap: 20px;
	max-width: 780px;
	margin: 26px auto 0;
}

.content-card .form-field,
.gift-fields .form-field {
	display: grid;
	gap: 8px;
}

.content-card label,
.gift-fields legend {
	color: var(--text-main);
	font-weight: 700;
}

.content-card input:not([type="checkbox"]),
.content-card select,
.content-card textarea,
.gift-fields input:not([type="checkbox"]),
.gift-fields select,
.gift-fields textarea {
	width: 100%;
	min-height: 46px;
	padding: 10px 13px;
	border: 1px solid #CDD7E5;
	border-radius: 10px;
	background: #FAFBFD;
	color: var(--text-main);
	font: inherit;
}

.content-card textarea,
.gift-fields textarea {
	min-height: 120px;
	resize: vertical;
}

.content-card input:focus,
.content-card select:focus,
.content-card textarea:focus {
	border-color: var(--color-primary);
	outline: 3px solid rgba(23, 63, 114, .12);
}

.gift-fields {
	display: grid;
	gap: 18px;
	margin: 0;
	padding: clamp(18px, 3vw, 28px);
	border: 1px solid #DCE4EF;
	border-radius: 16px;
	background: #F8FAFD;
}

.gift-fields legend {
	padding-inline: 8px;
	color: var(--color-primary);
	font-size: 1.1rem;
}

.gift-check {
	display: flex;
	align-items: center;
	gap: 10px;
}

.gift-check input[type="checkbox"] {
	width: 18px;
	height: 18px;
	accent-color: var(--color-primary);
}

.gift-summary {
	padding: 16px 18px;
	border-inline-start: 4px solid var(--color-accent);
	border-radius: 10px;
	background: #F8F3E7;
	color: var(--text-main);
}

.gift-summary p,
.content-card .muted,
.content-card .notice {
	margin-block: 8px 0;
	color: var(--text-muted);
}

.content-card > form > .button,
.content-card [data-gift-form] > .button {
	min-height: 48px;
	padding: 11px 24px;
	border: 0;
	border-radius: 11px;
	background: var(--color-primary);
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.content-card [data-gift-form] > .button:hover {
	background: #102F58;
}

.page-intro,
.section {
	margin-block: clamp(24px, 5vw, 52px);
}

.page-intro {
	text-align: center;
}

.page-intro .eyebrow {
	color: #8A681D;
	font-weight: 700;
}

.contributor-portrait {
	display: block;
	width: clamp(112px, 18vw, 170px);
	height: clamp(112px, 18vw, 170px);
	margin: 20px auto;
	border: 5px solid #EAF0F7;
	border-radius: 50%;
	object-fit: cover;
}

.people-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
	gap: 18px;
}

.person-card {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
	padding: 18px;
	border: 1px solid #E1E6EE;
	border-radius: 16px;
	background: #fff;
	color: var(--text-main);
	text-decoration: none;
}

.person-card__image,
.person-card__mark {
	width: 64px;
	height: 64px;
	flex: 0 0 64px;
	border: 3px solid #EAF0F7;
	border-radius: 50%;
	object-fit: cover;
}

.person-card__mark {
	display: grid;
	place-items: center;
	background: #EAF0F7;
	color: var(--color-primary);
	font-size: 1.4rem;
	font-weight: 700;
}

.person-card > span:last-child {
	display: grid;
	gap: 5px;
	min-width: 0;
}

.person-card small {
	color: var(--text-muted);
	line-height: 1.5;
}

@media (max-width: 1100px) and (min-width: 701px) {
	.header-inner {
		grid-template-columns: auto minmax(0, 1fr);
	}

	.header-actions {
		flex-wrap: wrap;
	}

	.search-form {
		flex-basis: 100%;
		order: 0;
	}
}

@media (max-width: 700px) {
	.header-inner {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.header-actions {
		display: grid;
		grid-column: 1 / -1;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 4px;
	}

	.search-form {
		grid-column: 1 / -1;
		grid-template-columns: minmax(0, 1fr) minmax(92px, 118px) 42px;
	}

	.header-actions > .language-switcher,
	.header-actions > .header-link {
		min-width: 0;
		justify-content: center;
	}

	.header-account-label,
	.header-wishlist-label,
	.header-actions > .header-link .cart-label {
		display: none;
	}

	.header-actions > .header-link {
		padding-inline: 4px;
	}

	.language-switcher {
		justify-content: center;
	}

	.language-switcher a {
		padding-inline: 4px;
		font-size: .8rem;
	}

	.content-card {
		padding: 20px 16px;
		border-radius: 17px;
	}
}

@media (max-width: 380px) {
	.search-form select {
		font-size: .75rem;
	}
}

.checkout-intro {
	margin: clamp(22px, 4vw, 40px) 0 22px;
	padding: clamp(20px, 3vw, 30px);
	border: 1px solid #DCE4EF;
	border-radius: 18px;
	background: linear-gradient(120deg, #fff 0%, #EEF3FA 100%);
}

.checkout-intro p {
	margin: 0 0 6px;
	color: #80611D;
	font-size: .9rem;
	font-weight: 700;
}

.checkout-intro h1 {
	margin: 0 0 7px;
	color: var(--color-primary);
	font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.checkout-intro span {
	color: var(--text-muted);
	line-height: 1.7;
}

.woocommerce-checkout .woocommerce form.checkout {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(290px, .85fr);
	align-items: start;
	gap: 20px 26px;
}

.woocommerce-checkout #customer_details {
	grid-column: 1;
	grid-row: 1 / span 3;
	min-width: 0;
	padding: clamp(18px, 3vw, 28px);
	border: 1px solid #E1E6EE;
	border-radius: 16px;
	background: #fff;
}

.woocommerce-checkout #customer_details .col-1,
.woocommerce-checkout #customer_details .col-2 {
	float: none;
	width: 100%;
}

.woocommerce-checkout #order_review_heading,
.woocommerce-checkout #order_review {
	grid-column: 2;
	min-width: 0;
	margin: 0;
	padding: clamp(18px, 3vw, 26px);
	border: 1px solid #E1E6EE;
	border-radius: 16px;
	background: #fff;
}

.woocommerce-checkout #order_review_heading {
	align-self: end;
	padding-bottom: 0;
	border-bottom: 0;
	color: var(--color-primary);
	font-size: 1.3rem;
}

.woocommerce-checkout #order_review {
	grid-row: 2;
}

.woocommerce-checkout #payment {
	grid-column: 2;
	padding: 18px;
	border: 1px solid #DCE4EF;
	border-radius: 14px;
	background: #F7F9FC;
}

.woocommerce-checkout #payment ul.payment_methods {
	border-color: #DCE4EF;
}

.woocommerce-checkout #payment .payment_box {
	border-radius: 10px;
	background: #EAF0F7;
	color: var(--text-main);
}

.woocommerce-checkout #payment .payment_box::before {
	border-bottom-color: #EAF0F7;
}

.woocommerce-checkout .form-row label {
	margin-bottom: 6px;
	color: var(--text-main);
	font-weight: 700;
}

.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row textarea,
.woocommerce-checkout .select2-container--default .select2-selection--single {
	min-height: 46px;
	padding: 10px 12px;
	border: 1px solid #CDD7E5;
	border-radius: 10px;
	background: #FAFBFD;
	color: var(--text-main);
	font: inherit;
}

.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
	line-height: 24px;
}

.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
	height: 44px;
}

.woocommerce-checkout .shop_table,
.woocommerce-cart .shop_table {
	border-collapse: separate;
	border-spacing: 0;
	border-color: #E1E6EE;
	border-radius: 12px;
	overflow: hidden;
}

.woocommerce-checkout .shop_table th,
.woocommerce-checkout .shop_table td,
.woocommerce-cart .shop_table th,
.woocommerce-cart .shop_table td {
	padding: 12px;
	border-color: #E8EDF3;
}

.woocommerce-checkout #place_order,
.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
	min-height: 48px;
	border: 0;
	border-radius: 11px;
	background: var(--color-primary);
	color: #fff;
	font: inherit;
	font-weight: 700;
}

.woocommerce-checkout #place_order:hover,
.woocommerce-cart .wc-proceed-to-checkout .checkout-button:hover {
	background: #102F58;
	color: #fff;
}

.woocommerce-checkout .woocommerce-info,
.woocommerce-checkout .woocommerce-message,
.woocommerce-checkout .woocommerce-error {
	border-top-color: var(--color-accent);
	border-radius: 10px;
}

@media (max-width: 850px) {
	.woocommerce-checkout .woocommerce form.checkout {
		grid-template-columns: minmax(0, 1fr);
	}

	.woocommerce-checkout #customer_details,
	.woocommerce-checkout #order_review_heading,
	.woocommerce-checkout #order_review,
	.woocommerce-checkout #payment {
		grid-column: 1;
		grid-row: auto;
	}
}

@media (max-width: 700px) {
	.woocommerce-checkout #customer_details,
	.woocommerce-checkout #order_review_heading,
	.woocommerce-checkout #order_review,
	.woocommerce-checkout #payment {
		padding: 16px;
		border-radius: 13px;
	}

	.woocommerce-checkout .shop_table th,
	.woocommerce-checkout .shop_table td,
	.woocommerce-cart .shop_table th,
	.woocommerce-cart .shop_table td {
		padding: 9px 7px;
		font-size: .9rem;
	}
}