@font-face {
    font-family: "UKIJ CJK";
    src: url("UKIJCJK.woff2") format("woff2"), url("UKIJCJK.ttf") format("truetype");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* =========================
   رەڭ ئۆلچىمى
========================= */

:root {

    --bg: #f6f0e5;
    --bg-soft: #fbf8f2;

    --header: #4b3327;

    --text: #44352d;
    --text-soft: #806f62;

    --card: #fffdf9;

    --button: #70503d;
    --button-hover: #5b4030;

    --border: #e8dccb;

    --about: #4b3327;
    --footer: #39261d;

    --shadow: rgba(75, 51, 39, 0.08);
}


/* =========================
   KECHILIK HALITI
========================= */

body.dark-mode {

    --bg: #211b18;
    --bg-soft: #29221e;

    --header: #171311;

    --text: #f1e7da;
    --text-soft: #bcae9f;

    --card: #302824;

    --button: #8d6b52;
    --button-hover: #a27d61;

    --border: #4a3b33;

    --about: #171311;
    --footer: #100e0d;

    --shadow: rgba(0, 0, 0, 0.25);
}


/* =========================
   GENERAL
========================= */

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

html {
    scroll-behavior: smooth;
}

body {

    font-family: "UKIJ CJK", Arial, sans-serif;

    background: var(--bg);

    color: var(--text);

    line-height: 1.8;

    direction: rtl;

    transition:
        background-color 0.3s ease,
        color 0.3s ease;
}

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


/* =========================
   HEADER
========================= */

header {

    width: 100%;

    min-height: 70px;

    background: var(--header);

    color: white;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 0 7%;

    transition:
        background-color 0.3s ease;
}

.logo {

    color: white;

    font-size: 21px;

    font-weight: bold;

    white-space: nowrap;
}

nav {

    display: flex;

    align-items: center;

    gap: 25px;
}

nav a {

    color: #fffaf2;

    font-size: 15px;

    transition: 0.2s;
}

nav a:hover {

    color: #e2c98d;
}


/* =========================
   DAY / NIGHT BUTTON
========================= */

.theme-button {

    border: 1px solid rgba(255,255,255,0.25);

    background: rgba(255,255,255,0.08);

    color: white;

    width: 42px;
    height: 42px;

    border-radius: 50%;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 20px;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.theme-button:hover {

    background: rgba(255,255,255,0.18);

    transform: scale(1.05);
}


/* =========================
   HERO
========================= */

.hero {

    min-height: 430px;

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;

    padding: 70px 20px;

    background: var(--bg);

    transition:
        background-color 0.3s ease;
}

.hero-content {

    max-width: 800px;
}

.hero h1 {

    font-size: 48px;

    font-weight: bold;

    margin-bottom: 20px;
}

.hero p {

    font-size: 18px;

    color: var(--text-soft);

    margin-bottom: 30px;
}


/* =========================
   MAIN BUTTON
========================= */

.button {

    display: inline-block;

    background: var(--button);

    color: white;

    padding: 13px 32px;

    border-radius: 7px;

    font-size: 16px;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.button:hover {

    background: var(--button-hover);

    transform: translateY(-2px);
}


/* =========================
   BOOK SECTION
========================= */

.section {

    width: 100%;

    max-width: 1150px;

    margin: 0 auto;

    padding: 45px 25px 100px;
}

.section h2 {

    text-align: center;

    font-size: 32px;

    margin-bottom: 45px;
}


/* =========================
   BOOK CARDS
========================= */

.cards {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 22px;
}


/* =========================
   CARD
========================= */

.card {

    background: var(--card);

    min-height: 220px;

    border: 1px solid var(--border);

    border-radius: 14px;

    padding: 32px 25px;

    text-align: center;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: flex-start;

    box-shadow:
        0 5px 20px var(--shadow);

    transition:
        background-color 0.3s ease,
        border-color 0.3s ease,
        color 0.3s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.card:hover {

    transform: translateY(-6px);

    box-shadow:
        0 12px 28px var(--shadow);
}

.card .icon {

    font-size: 42px;

    line-height: 1;

    margin-bottom: 22px;
}

.card h3 {

    font-size: 21px;

    margin-bottom: 10px;

    color: var(--text);
}

.card p {

    font-size: 14px;

    color: var(--text-soft);

    line-height: 1.9;
}


/* =========================
   7-چى كارتا
========================= */

.card:last-child {

    grid-column: 2;
}


/* =========================
   ABOUT
========================= */

.about {

    width: 100%;

    background: var(--about);

    color: white;

    text-align: center;

    padding: 75px 25px;

    transition:
        background-color 0.3s ease;
}

.about h2 {

    font-size: 31px;

    margin-bottom: 22px;
}

.about p {

    max-width: 850px;

    margin: 0 auto;

    color: #eee;

    font-size: 16px;

    line-height: 2;
}


/* =========================
   CONTACT
========================= */

.contact {

    width: 100%;

    background: var(--bg-soft);

    text-align: center;

    padding: 60px 25px;

    transition:
        background-color 0.3s ease;
}

.contact h2 {

    font-size: 29px;

    margin-bottom: 15px;
}

.contact p {

    color: var(--text-soft);

    font-size: 15px;
}


/* =========================
   FOOTER
========================= */

footer {

    width: 100%;

    background: var(--footer);

    color: #c8b9aa;

    text-align: center;

    padding: 20px;

    font-size: 13px;
}


/* =========================
   TABLET
========================= */

@media (max-width: 850px) {

    header {

        padding: 18px 5%;

        flex-direction: column;

        gap: 15px;
    }

    nav {

        gap: 15px;

        flex-wrap: wrap;

        justify-content: center;
    }

    .hero {

        min-height: 360px;
    }

    .hero h1 {

        font-size: 38px;
    }

    .cards {

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

    .card:last-child {

        grid-column: 1 / -1;

        width: calc(50% - 11px);

        justify-self: center;
    }
}


/* =========================
   PHONE
========================= */

@media (max-width: 550px) {

    header {

        padding: 16px 4%;
    }

    .logo {

        font-size: 18px;
    }

    nav {

        gap: 12px;
    }

    nav a {

        font-size: 13px;
    }

    .theme-button {

        width: 38px;

        height: 38px;

        font-size: 18px;
    }

    .hero {

        min-height: 330px;

        padding: 55px 20px;
    }

    .hero h1 {

        font-size: 31px;
    }

    .hero p {

        font-size: 14px;
    }

    .button {

        font-size: 14px;

        padding: 11px 26px;
    }

    .section {

        padding: 35px 15px 70px;
    }

    .section h2 {

        font-size: 26px;

        margin-bottom: 30px;
    }

    .cards {

        grid-template-columns: 1fr;

        gap: 17px;
    }

    .card {

        min-height: 190px;

        width: 100% !important;

        grid-column: auto !important;
    }

    .card h3 {

        font-size: 19px;
    }

    .card p {

        font-size: 13px;
    }

    .about {

        padding: 55px 20px;
    }

    .about h2 {

        font-size: 26px;
    }

    .contact {

        padding: 45px 20px;
    }

    .contact h2 {

        font-size: 25px;
    }
}


/* =========================
   KITAP SEARCH
========================= */

.search-box {
    max-width: 720px;
    margin: 0 auto 30px;
    display: flex;
    gap: 10px;
}

.search-box input {
    flex: 1;
    min-width: 0;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--card);
    color: var(--text);
    font-family: inherit;
    font-size: 16px;
    outline: none;
}

.search-box input:focus {
    border-color: var(--button);
}

.search-box button {
    border: 0;
    background: var(--button);
    color: #fff;
    padding: 0 24px;
    border-radius: 9px;
    font-family: inherit;
    font-size: 15px;
    cursor: pointer;
    white-space: nowrap;
}

.search-box button:hover {
    background: var(--button-hover);
}

.search-results {
    max-width: 720px;
    margin: 0 auto 35px;
}

.search-result {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 10px;
    color: var(--text);
    transition: 0.2s ease;
}

.search-result-image {
    width: 58px;
    height: 78px;
    flex: 0 0 58px;
    object-fit: contain;
    object-position: center;
    background: #eee9e1;
    border-radius: 5px;
    border: 1px solid var(--border);
}

.search-result-content {
    min-width: 0;
    flex: 1;
}

.search-result:hover {
    transform: translateY(-2px);
    border-color: var(--button);
}

.search-result-title {
    font-size: 18px;
    font-weight: bold;
}

.search-result-author,
.search-result-category {
    color: var(--text-soft);
    font-size: 13px;
}

.search-empty {
    text-align: center;
    color: var(--text-soft);
    padding: 18px;
}

@media (max-width: 550px) {
    .search-box {
        flex-direction: column;
    }

    .search-box button {
        min-height: 46px;
    }
}



/* =========================================================
   باش بەت يېڭى لايىھىسى — بوش يەرنى ئازايتىش + كۆرۈنۈشتىنلا كىتابخانا
   ========================================================= */

.home-bookstore-hero{
    min-height: 340px;
    padding: 34px max(5%,20px);
    text-align: right;
    background:
        radial-gradient(circle at 18% 25%, rgba(226,201,141,.22), transparent 32%),
        var(--bg);
}

.home-hero-inner{
    width: min(1180px,100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(320px,460px);
    align-items: center;
    gap: 52px;
}

.home-hero-copy{
    max-width: 650px;
}

.home-hero-symbols{
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 31px;
    line-height: 1;
}

.home-hero-eyebrow{
    display: inline-block;
    margin-bottom: 6px;
    color: var(--text-soft);
    font-size: 14px;
    font-weight: 700;
}

.home-bookstore-hero h1{
    margin-bottom: 8px;
    font-size: clamp(36px,5vw,52px);
    line-height: 1.25;
}

.home-bookstore-hero p{
    margin-bottom: 20px;
    font-size: 17px;
}

.home-hero-actions{
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.home-hero-secondary{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 10px 22px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card);
    color: var(--text);
    font-weight: 700;
}

.bookstore-scene{
    position: relative;
    min-height: 250px;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 18px;
    background: var(--card);
    box-shadow: 0 18px 45px var(--shadow);
    overflow: hidden;
}

.bookstore-scene::after{
    content: "";
    position: absolute;
    right: -42px;
    bottom: -58px;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: rgba(226,201,141,.18);
}

.store-scene-top{
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    border-radius: 12px 12px 7px 7px;
    background: var(--header);
    box-shadow: inset 0 -4px rgba(255,255,255,.06);
}

.store-icon{
    font-size: 30px;
    line-height: 1;
}

.store-icon.open{
    transform: rotate(-7deg);
}

.store-window{
    position: relative;
    margin-top: 12px;
    padding: 12px 14px 15px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-soft);
}

.store-shelf{
    height: 42px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 5px;
    padding: 0 8px 5px;
    border-bottom: 7px solid #8a6047;
}

.book-spine{
    display: block;
    width: 20px;
    border-radius: 3px 3px 1px 1px;
    box-shadow: inset -3px 0 rgba(255,255,255,.18);
}

.b1,.b8{height:28px;background:#8f4d3e}
.b2,.b10{height:34px;background:#476b67}
.b3,.b7{height:24px;background:#b48b43}
.b4,.b12{height:31px;background:#665687}
.b5,.b9{height:37px;background:#46729a}
.b6,.b11{height:26px;background:#9d6b55}

.store-display{
    height: 110px;
    display: grid;
    grid-template-columns: 86px 1fr 72px;
    align-items: center;
    gap: 15px;
    padding: 9px 10px 4px;
}

.real-cover-wrap{
    height: 94px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.real-cover-wrap img{
    display: block;
    max-width: 72px;
    max-height: 94px;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 8px 18px rgba(0,0,0,.16);
}

.book-stack{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.book-stack span{
    display: block;
    height: 16px;
    border-radius: 3px;
    box-shadow: inset 0 -3px rgba(0,0,0,.08);
}

.book-stack span:nth-child(1){width:92px;background:#b48b43}
.book-stack span:nth-child(2){width:112px;background:#6d8066}
.book-stack span:nth-child(3){width:82px;background:#8f4d3e}

.store-cart{
    font-size: 46px;
    transform: scaleX(-1);
}

.store-shelf.lower{
    height: 35px;
    align-items: flex-end;
}

.home-main-section{
    padding-top: 28px;
    padding-bottom: 72px;
}

.home-main-section > h2{
    margin-bottom: 20px;
}

.home-search-heading,
.home-category-heading{
    max-width: 860px;
    margin: 0 auto 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.home-search-heading h2,
.home-category-heading h2{
    margin: 0;
    font-size: 29px;
}

.home-search-heading p,
.home-category-heading p{
    margin: 2px 0 0;
    color: var(--text-soft);
    font-size: 13px;
}

.home-heading-icon{
    font-size: 32px;
    line-height: 1;
}

.home-main-section .search-box{
    margin-bottom: 12px;
}

#advancedSearchPanel{
    margin-top: 10px !important;
    margin-bottom: 24px !important;
}

.home-featured-section{
    width: 100%;
    max-width: 980px;
    margin: 26px auto 28px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--card);
    box-shadow: 0 8px 26px var(--shadow);
}

.home-featured-head{
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 15px;
}

.home-featured-head h3{
    margin: 0;
    font-size: 23px;
}

.home-featured-head p{
    margin: 3px 0 0;
    color: var(--text-soft);
    font-size: 12px;
}

.home-featured-all{
    color: var(--button);
    font-size: 13px;
    font-weight: 700;
}

.home-featured-grid{
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 12px;
}

.home-feature-card{
    position: relative;
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-soft);
    transition: transform .2s ease, border-color .2s ease;
}

.home-feature-card:hover{
    transform: translateY(-3px);
    border-color: var(--button);
}

.home-feature-cover{
    position: relative;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(135deg, rgba(112,80,61,.08), transparent 55%),
        var(--bg-soft);
    overflow: hidden;
}

.home-feature-placeholder{
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 58px;
    opacity: .72;
}

.home-feature-cover img{
    position: relative;
    z-index: 1;
    max-width: 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.home-feature-info{
    padding: 11px 11px 12px;
}

.home-feature-title{
    min-height: 45px;
    font-weight: 800;
    line-height: 1.55;
}

.home-feature-author{
    margin-top: 4px;
    color: var(--text-soft);
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-feature-bottom{
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
}

.home-feature-price{
    font-weight: 800;
}

.home-feature-cart{
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    font-size: 16px;
}

.home-feature-heart{
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 4;
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 50%;
    background: var(--card);
    color: var(--text);
    border: 1px solid var(--border);
}

.home-category-heading{
    margin-top: 34px;
    margin-bottom: 20px;
}

.home-main-section .cards{
    margin-top: 0;
}

#homeShopSections{
    margin-top: 20px;
    margin-bottom: 6px;
}

@media (max-width: 900px){
    .home-hero-inner{
        grid-template-columns: 1fr 340px;
        gap: 26px;
    }
    .home-featured-grid{
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

@media (max-width: 700px){
    .home-bookstore-hero{
        min-height: auto;
        padding: 30px 18px 26px;
    }

    .home-hero-inner{
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .home-hero-copy{
        text-align: center;
        margin: 0 auto;
    }

    .home-hero-symbols,
    .home-hero-actions{
        justify-content: center;
    }

    .bookstore-scene{
        display:none;
    }

    .home-main-section{
        padding-top: 22px;
    }
}

@media (max-width: 500px){
    .home-bookstore-hero h1{
        font-size: 34px;
    }

    .home-hero-secondary,
    .home-hero-actions .button{
        flex: 1 1 140px;
    }

    .store-display{
        grid-template-columns: 70px 1fr 55px;
        gap: 8px;
    }

    .store-cart{
        font-size: 38px;
    }

    .home-featured-section{
        padding: 13px;
    }

    .home-featured-grid{
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 9px;
    }

    .home-feature-cover{
        height: 145px;
    }

    .home-featured-head{
        align-items: flex-start;
        flex-direction: column;
    }

    .home-search-heading,
    .home-category-heading{
        align-items: flex-start;
        text-align: right;
        justify-content: flex-start;
    }
}

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


/* ===== لوگو چوڭلۇق ئاخىرقى تۈزىتىشى ===== */
header{
    min-height:64px !important;
    height:auto !important;
    overflow:visible !important;
}
header .logo{
    display:inline-flex !important;
    align-items:center !important;
    gap:9px !important;
    width:auto !important;
    height:54px !important;
    max-height:54px !important;
    overflow:hidden !important;
    flex:0 0 auto !important;
}
header .logo img.kutadgu-site-logo{
    display:block !important;
    width:38px !important;
    height:38px !important;
    min-width:38px !important;
    min-height:38px !important;
    max-width:38px !important;
    max-height:38px !important;
    object-fit:contain !important;
    object-position:center !important;
    margin:0 !important;
    padding:0 !important;
    flex:0 0 38px !important;
}
header .kutadgu-brand-text{
    display:inline-block !important;
    line-height:1.25 !important;
    white-space:nowrap !important;
}
@media (max-width:850px){
    header{
        min-height:auto !important;
    }
    header .logo{
        height:46px !important;
        max-height:46px !important;
    }
    header .logo img.kutadgu-site-logo{
        width:32px !important;
        height:32px !important;
        min-width:32px !important;
        min-height:32px !important;
        max-width:32px !important;
        max-height:32px !important;
        flex-basis:32px !important;
    }
}


/* =========================================================
   PROFESSIONAL COMPACT HOME — ئاخىرقى كەڭ/رەتلىك باش بەت
   ========================================================= */

/* Header */
header{
    position:sticky;
    top:0;
    z-index:900;
    min-height:62px !important;
    padding:0 clamp(18px,4vw,62px) !important;
    box-shadow:0 4px 18px rgba(35,22,16,.12);
}
header .logo{
    height:52px !important;
    max-height:52px !important;
}
header nav{
    gap:18px;
}
header nav a{
    font-size:14px;
    font-weight:700;
}

/* Hero — shorter + wider */
.home-bookstore-hero{
    min-height:260px !important;
    padding:24px clamp(22px,5vw,74px) 26px !important;
    background:
        radial-gradient(circle at 15% 25%, rgba(226,201,141,.18), transparent 30%),
        linear-gradient(180deg,var(--bg-soft),var(--bg)) !important;
}
.home-hero-inner{
    width:min(1320px,100%) !important;
    grid-template-columns:minmax(0,1.05fr) minmax(360px,.95fr) !important;
    gap:42px !important;
}
.home-hero-copy{
    max-width:720px !important;
}
.home-hero-symbols{
    font-size:25px !important;
    margin-bottom:5px !important;
}
.home-hero-eyebrow{
    font-size:13px !important;
    margin-bottom:3px !important;
}
.home-bookstore-hero h1{
    font-size:clamp(34px,3.6vw,48px) !important;
    margin-bottom:5px !important;
}
.home-bookstore-hero p{
    margin-bottom:15px !important;
    font-size:15px !important;
}
.home-hero-actions .button,
.home-hero-secondary{
    min-height:42px !important;
    padding:8px 20px !important;
    font-size:14px !important;
}
.bookstore-scene{
    min-height:205px !important;
    padding:12px !important;
    border-radius:16px !important;
    box-shadow:0 12px 32px var(--shadow) !important;
}
.store-scene-top{
    height:37px !important;
}
.store-icon{
    font-size:23px !important;
}
.store-window{
    margin-top:8px !important;
    padding:8px 12px 10px !important;
}
.store-shelf{
    height:33px !important;
}
.store-display{
    height:83px !important;
}
.real-cover-wrap{
    height:76px !important;
}
.real-cover-wrap img{
    max-height:76px !important;
    max-width:58px !important;
}
.store-cart{
    font-size:34px !important;
}
.store-shelf.lower{
    height:29px !important;
}

/* Main layout */
.section.home-main-section{
    width:min(1320px,calc(100% - 40px)) !important;
    max-width:1320px !important;
    padding:30px 0 64px !important;
}
.home-search-heading,
.home-category-heading{
    max-width:1120px !important;
    margin:0 auto 12px !important;
}
.home-search-heading h2,
.home-category-heading h2{
    font-size:25px !important;
}
.home-search-heading p,
.home-category-heading p{
    font-size:12px !important;
}
.home-heading-icon{
    font-size:27px !important;
}

/* Search area wider */
.home-main-section .search-box{
    max-width:980px !important;
    width:100% !important;
    margin:0 auto 8px !important;
}
.home-main-section .search-box input{
    min-height:48px !important;
}
.home-main-section .search-box button{
    min-width:120px !important;
}
#advancedSearchPanel{
    width:min(1120px,100%) !important;
    max-width:1120px !important;
    margin:8px auto 14px !important;
    padding:12px !important;
}
.advanced-search-panel{
    box-shadow:0 7px 20px var(--shadow) !important;
}

/* Remove unnecessary vertical gaps */
#searchResults{
    margin-top:8px !important;
}
#homeShopSections{
    margin:12px auto 0 !important;
    max-width:1120px !important;
}
.home-category-heading{
    margin-top:24px !important;
}

/* Featured books — full professional strip */
.home-featured-section{
    width:100% !important;
    max-width:1180px !important;
    margin:20px auto 18px !important;
    padding:18px !important;
    border-radius:14px !important;
    box-shadow:0 8px 24px var(--shadow) !important;
}
.home-featured-head{
    margin-bottom:12px !important;
}
.home-featured-head h3{
    font-size:21px !important;
}
.home-featured-grid{
    grid-template-columns:repeat(6,minmax(0,1fr)) !important;
    gap:11px !important;
}
.home-feature-card{
    border-radius:10px !important;
}
.home-feature-cover{
    height:160px !important;
}
.home-feature-info{
    padding:9px 9px 10px !important;
}
.home-feature-title{
    min-height:42px !important;
    font-size:13px !important;
}
.home-feature-author{
    font-size:10px !important;
}
.home-feature-price{
    font-size:13px !important;
}
.home-feature-heart{
    width:30px !important;
    height:30px !important;
    top:6px !important;
    left:6px !important;
}
.home-feature-cart{
    width:32px !important;
    height:32px !important;
}

/* Categories — compact visual tiles */
.home-main-section .cards{
    width:min(1180px,100%) !important;
    margin:0 auto !important;
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    gap:14px !important;
}
.home-main-section .card{
    min-height:155px !important;
    padding:20px 16px !important;
    border-radius:12px !important;
    box-shadow:0 5px 16px var(--shadow) !important;
    justify-content:center !important;
}
.home-main-section .card .icon{
    font-size:34px !important;
    margin-bottom:12px !important;
}
.home-main-section .card h3{
    font-size:17px !important;
    margin-bottom:5px !important;
}
.home-main-section .card p{
    font-size:11px !important;
    line-height:1.7 !important;
}

/* About/contact/footer: less empty */
.about,
.contact{
    padding-top:52px !important;
    padding-bottom:52px !important;
}
footer{
    padding-top:28px !important;
    padding-bottom:28px !important;
}

/* Tablet */
@media (max-width:1050px){
    .home-hero-inner{
        grid-template-columns:1fr 360px !important;
        gap:24px !important;
    }
    .home-featured-grid{
        grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    }
    .home-main-section .cards{
        grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    }
}

/* Mobile */
@media (max-width:700px){
    header{
        position:relative;
        padding:8px 14px !important;
    }
    header nav{
        gap:10px !important;
    }
    .home-bookstore-hero{
        padding:22px 16px 20px !important;
    }
    .home-hero-inner{
        grid-template-columns:1fr !important;
        gap:16px !important;
    }
    .bookstore-scene{
        width:min(100%,390px) !important;
        min-height:190px !important;
    }
    .section.home-main-section{
        width:min(100% - 24px,1320px) !important;
        padding-top:20px !important;
    }
    .home-main-section .cards{
        grid-template-columns:repeat(2,minmax(0,1fr)) !important;
        gap:10px !important;
    }
    .home-featured-grid{
        grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    }
    .home-feature-cover{
        height:145px !important;
    }
}

@media (max-width:420px){
    .home-main-section .card{
        min-height:140px !important;
        padding:16px 10px !important;
    }
    .home-main-section .card p{
        display:none;
    }
}


/* =========================================================
   WIDE PROFESSIONAL HOME — كەڭ، زىچ، كەسپىي باش بەت
   ========================================================= */

:root{
    --home-max: 1540px;
}

/* Header نى كەڭ ئېكرانغا ياخشى تارقىتىش */
header{
    padding-left: clamp(22px, 3vw, 56px) !important;
    padding-right: clamp(22px, 3vw, 56px) !important;
}
header .header-inner,
header .nav-inner,
header > .container{
    width:min(var(--home-max),100%) !important;
    max-width:var(--home-max) !important;
    margin-inline:auto !important;
}

/* Hero: بەك تار مەركەز ئەمەس */
.home-bookstore-hero{
    padding:22px clamp(24px,3.5vw,64px) 22px !important;
    min-height:245px !important;
}
.home-hero-inner{
    width:min(var(--home-max),100%) !important;
    max-width:var(--home-max) !important;
    grid-template-columns:minmax(460px,1fr) minmax(430px,560px) !important;
    gap:72px !important;
}
.home-hero-copy{
    max-width:780px !important;
}
.bookstore-scene{
    width:100% !important;
    max-width:560px !important;
    justify-self:start !important;
}

/* ئاساسىي مەزمۇن: 1540px كەڭلىك */
.section.home-main-section{
    width:min(var(--home-max),calc(100% - 48px)) !important;
    max-width:var(--home-max) !important;
    padding-top:24px !important;
    padding-bottom:48px !important;
}

/* Search + filter */
.home-search-heading{
    max-width:1260px !important;
    margin-bottom:10px !important;
}
.home-main-section .search-box{
    max-width:1180px !important;
}
#advancedSearchPanel,
.advanced-search-panel{
    width:min(1280px,100%) !important;
    max-width:1280px !important;
}
.advanced-search-panel{
    grid-template-columns:1.15fr 1fr 1fr 1.15fr auto !important;
    align-items:end !important;
    gap:10px !important;
}

/* يېڭى كىتابلار — تېخىمۇ كەڭ */
.home-featured-section{
    max-width:1380px !important;
    width:100% !important;
    margin:18px auto 14px !important;
    padding:18px 20px !important;
}
.home-featured-grid{
    grid-template-columns:repeat(6,minmax(0,1fr)) !important;
    gap:14px !important;
}
.home-feature-cover{
    height:185px !important;
}
.home-feature-title{
    font-size:14px !important;
}
.home-feature-info{
    padding:10px 11px 11px !important;
}

/* كىتاب تاللاش / Home sections */
#homeShopSections{
    width:min(1360px,100%) !important;
    max-width:1360px !important;
    margin:10px auto 0 !important;
}

/* Category */
.home-category-heading{
    max-width:1300px !important;
    margin-top:18px !important;
    margin-bottom:14px !important;
}
.home-main-section .cards{
    width:min(1400px,100%) !important;
    max-width:1400px !important;
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    gap:16px !important;
}
.home-main-section .card{
    min-height:145px !important;
    padding:18px 16px !important;
}

/* Footer/about/contact كىچىك بوشلۇق */
.about,
.contact{
    padding-top:42px !important;
    padding-bottom:42px !important;
}

/* چوڭ ئېكراندا ئىككى يان بوشلۇقنى تېخىمۇ ئازايتىش */
@media (min-width:1600px){
    .section.home-main-section{
        width:min(1600px,calc(100% - 56px)) !important;
        max-width:1600px !important;
    }
    .home-hero-inner{
        width:min(1600px,100%) !important;
        max-width:1600px !important;
    }
    .home-featured-section{
        max-width:1450px !important;
    }
    .home-main-section .cards{
        max-width:1480px !important;
    }
}

/* Tablet */
@media (max-width:1100px){
    .home-hero-inner{
        grid-template-columns:1fr 390px !important;
        gap:28px !important;
    }
    .advanced-search-panel{
        grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    }
    .home-featured-grid{
        grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    }
    .home-main-section .cards{
        grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    }
}

/* Mobile */
@media (max-width:700px){
    .section.home-main-section{
        width:min(100% - 22px,1540px) !important;
        padding-top:18px !important;
    }
    .home-hero-inner{
        grid-template-columns:1fr !important;
        gap:16px !important;
    }
    .bookstore-scene{
        max-width:430px !important;
        justify-self:center !important;
    }
    .advanced-search-panel{
        grid-template-columns:1fr !important;
    }
    .home-featured-grid{
        grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    }
    .home-main-section .cards{
        grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    }
}


/* =========================================================
   كىتاب تۈرلىرى — 7 كارتا كەسپىي 4 + 3 رەت
   ========================================================= */
@media (min-width:1101px){
    .home-main-section .cards{
        display:grid !important;
        grid-template-columns:repeat(8,minmax(0,1fr)) !important;
        gap:16px !important;
        max-width:1400px !important;
        margin-inline:auto !important;
    }
    .home-main-section .cards .card{
        grid-column:span 2 !important;
        width:100% !important;
        min-width:0 !important;
        min-height:148px !important;
    }

    /* 5-، 6-، 7- كارتا ئىككىنچى قۇرغا تەڭ مەركەزلەشتۈرۈلىدۇ */
    .home-main-section .cards .card:nth-child(5){
        grid-column:2 / span 2 !important;
    }
    .home-main-section .cards .card:nth-child(6){
        grid-column:4 / span 2 !important;
    }
    .home-main-section .cards .card:nth-child(7){
        grid-column:6 / span 2 !important;
    }
}

/* ===== HERO دىكى كىتاب مۇقاۋىسىنىڭ ئورنىغا ماركا لوگوسى ===== */
.real-cover-wrap{
    height:94px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
}
.real-cover-wrap img.hero-scene-logo{
    display:block !important;
    width:78px !important;
    height:78px !important;
    max-width:78px !important;
    max-height:78px !important;
    object-fit:contain !important;
    border-radius:0 !important;
    box-shadow:none !important;
    filter:drop-shadow(0 4px 7px rgba(0,0,0,.14)) !important;
}
@media (max-width:700px){
    .real-cover-wrap img.hero-scene-logo{
        width:66px !important;
        height:66px !important;
        max-width:66px !important;
        max-height:66px !important;
    }
}



/* ===== HERO LOGO UI FIX — 2026-08-22 ===== */
/* Hero نىڭ ئوڭ تەرىپىدىكى پەرقلىق رەڭلىك چەمبەرنى يوقىتىش */
.bookstore-scene::after{
    display:none !important;
    content:none !important;
}

/* Hero دىكى logo رايونى باشقا يەر بىلەن ئوخشاش كۆرۈنسۇن */
.real-cover-wrap{
    background:transparent !important;
}
.real-cover-wrap img.hero-scene-logo{
    background:transparent !important;
    filter:drop-shadow(0 3px 6px rgba(0,0,0,.12)) !important;
}

/* Shop header controls are unified in shop.css (account / cart / favorites). */



/* ===== HOME HEADER POLISH — 2026-08-22 ===== */
/* Header نى تېخىمۇ مۇكەممەل، رەتلىك ۋە بىرخىل ئۇسلۇبتا قىلىش */
header{
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 26px rgba(0,0,0,.10);
}

header nav{
    gap: 14px !important;
    flex-wrap: wrap;
    padding-left: 82px; /* سول تەرەپتىكى fixed theme button ئۈچۈن بوش ئورۇن */
}

header nav a{
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

/* سېۋەت / ياقتۇرغانلىرىم / ھېساب — بىر header control ئائىلىسى */
header nav a[href="cart.html"],
header nav a[href="favorites.html"],
header nav a[href="account.html"]{
    height: 36px;
    min-height: 36px;
    min-width: 36px;
    padding: 0 12px;
    margin: 0;
    gap: 6px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.16);
    box-shadow: none;
    color: #fff;
}

header nav a[href="cart.html"]:hover,
header nav a[href="favorites.html"]:hover,
header nav a[href="account.html"]:hover{
    background: rgba(255,255,255,.16);
    color: #ffffff;
}

/* theme button نى باشقا icon لار بىلەن ماسلاشتۇرۇش */
.theme-button{
    top: 14px !important;
    left: 14px !important;
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    border-color: rgba(226,201,141,.45) !important;
    box-shadow:
        0 8px 24px rgba(0,0,0,.20),
        inset 0 0 0 1px rgba(255,255,255,.05) !important;
}

/* كۈندۈزلۈك ۋە كېچىلىك ھالەتتە logo رايونى رەڭ پەرقلىق بولماسۇن */
.bookstore-scene,
.store-window,
.real-cover-wrap{
    background-clip: padding-box;
}

@media (max-width: 980px){
    header{
        padding: 14px 16px !important;
        min-height: auto;
        align-items: flex-start;
        gap: 12px;
        flex-wrap: wrap;
    }
    .logo{
        font-size: 18px;
    }
    header nav{
        width: 100%;
        justify-content: flex-start;
        row-gap: 10px;
        column-gap: 12px !important;
        padding-left: 70px;
    }
}

@media (max-width: 600px){
    header nav{
        padding-left: 58px;
        gap: 10px !important;
    }
    header nav a{
        font-size: 14px;
    }
    header nav a[href="cart.html"],
    header nav a[href="favorites.html"],
    header nav a[href="account.html"]{
        height: 36px;
        min-height: 36px;
        min-width: 36px;
        padding: 0 12px;
        margin: 0;
    }
}


/* ===== HERO ئارقا رەڭ ئاخىرقى تۈزىتىشى ===== */
/* كۈندۈز / كېچە ھەر ئىككى ھالەتتە Hero ئارقا كۆرۈنۈشى
   پۈتۈن بەت بىلەن دەل بىر رەڭ بولىدۇ */
.home-bookstore-hero,
section.home-bookstore-hero,
body.dark-mode .home-bookstore-hero,
body.dark-mode section.home-bookstore-hero{
    background: var(--bg) !important;
    background-color: var(--bg) !important;
    background-image: none !important;
}

/* Hero ئاستى-ئۈستىدە يوشۇرۇن gradient ياكى glow قالماسۇن */
.home-bookstore-hero::before,
.home-bookstore-hero::after{
    content: none !important;
    display: none !important;
}


/* ===== Featured book cover size fix ===== */
/* باش بەتتىكى featured كىتاب رەسىملىرىنىڭ چوڭ-كىچىكلىكىنى بىردەك قىلىش */
.home-feature-cover{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
}

.home-feature-cover img{
    width:auto !important;
    height:auto !important;
    max-width:100% !important;
    max-height:100% !important;
    object-fit:contain !important;
    display:block !important;
    margin:0 auto !important;
}

/* placeholder بىلەن ماس كەلسۇن */
.home-feature-placeholder{
    font-size:60px !important;
}



/* ===== FEATURED BOOKS FINAL — icon only + balanced cover frame ===== */
.home-featured-section{
    border-radius:18px !important;
    box-shadow:0 10px 28px rgba(0,0,0,.06) !important;
}
.home-featured-grid{align-items:stretch !important;}
.home-feature-card{
    display:flex !important;
    flex-direction:column !important;
    height:100% !important;
    min-height:0 !important;
    border-radius:16px !important;
    box-shadow:0 4px 14px rgba(0,0,0,.04) !important;
}
.home-feature-card>a{
    display:flex !important;
    flex-direction:column !important;
    height:100% !important;
    color:inherit !important;
    text-decoration:none !important;
}

/* پەقەت يۈرەك ئايكونى — خەت چىقمايدۇ */
.home-feature-heart{
    position:absolute !important;
    top:10px !important;
    left:10px !important;
    z-index:5 !important;
    width:34px !important;
    height:34px !important;
    min-width:34px !important;
    min-height:34px !important;
    padding:0 !important;
    margin:0 !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    overflow:hidden !important;
    border-radius:50% !important;
    font-size:18px !important;
    line-height:1 !important;
    white-space:nowrap !important;
    text-indent:0 !important;
}

/* مۇقاۋا رايونى — پاكىز ۋە بىردەك */
.home-feature-cover{
    height:auto !important;
    min-height:0 !important;
    padding:4px 6px 4px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    background:transparent !important;
}

/* مۇقاۋا رامكىسى: كارتا كەڭلىكىنى تولدۇرىدۇ، 2:3 نىسبەت ساقلىنىدۇ */
.home-feature-cover-frame{
    position:relative !important;
    width:100% !important;
    height:auto !important;
    aspect-ratio:2 / 3 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    padding:2px !important;
    border:1px solid rgba(112,80,61,.20) !important;
    border-radius:8px !important;
    background:rgba(255,255,255,.34) !important;
    box-shadow:0 5px 12px rgba(0,0,0,.045) !important;
    overflow:hidden !important;
}
body.dark-mode .home-feature-cover-frame{
    background:rgba(255,255,255,.025) !important;
    border-color:var(--border) !important;
}
.home-feature-cover-frame img{
    display:block !important;
    width:100% !important;
    height:100% !important;
    max-width:100% !important;
    max-height:100% !important;
    object-fit:contain !important;
    object-position:center !important;
    margin:0 auto !important;
    border-radius:4px !important;
}
.home-feature-cover-frame.is-placeholder{
    background:rgba(112,80,61,.035) !important;
    border-style:dashed !important;
}
.home-feature-placeholder{
    position:absolute !important;
    inset:0 !important;
    width:100% !important;
    height:100% !important;
    max-width:100% !important;
    max-height:100% !important;
    box-sizing:border-box !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    font-size:48px !important;
    line-height:1 !important;
    opacity:.46 !important;
}
.home-feature-placeholder[hidden]{display:none !important;}

.home-feature-info{
    display:flex !important;
    flex-direction:column !important;
    flex:1 1 auto !important;
    padding:12px 12px 13px !important;
}
.home-feature-title{
    min-height:48px !important;
    line-height:1.55 !important;
    display:-webkit-box !important;
    -webkit-line-clamp:2 !important;
    -webkit-box-orient:vertical !important;
    overflow:hidden !important;
}
.home-feature-author{min-height:18px !important;margin-top:5px !important;}
.home-feature-bottom{
    margin-top:auto !important;
    padding-top:10px !important;
    border-top:1px solid rgba(112,80,61,.12) !important;
}
.home-feature-price{font-size:22px !important;font-weight:800 !important;}
.home-feature-cart{width:38px !important;height:38px !important;}

@media(max-width:700px){
    .home-feature-card{min-height:0 !important;}
    .home-feature-cover{height:auto !important;min-height:0 !important;padding:4px 5px 4px !important;}
    .home-feature-cover-frame{width:100% !important;height:auto !important;aspect-ratio:2 / 3 !important;padding:2px !important;}
    .home-feature-cover-frame img{max-width:100% !important;max-height:100% !important;}
    .home-feature-placeholder{width:100% !important;height:100% !important;font-size:52px !important;}
}



/* ===== HERO FINAL PROPORTIONS — desktop professional balance ===== */
@media (min-width:1101px){
    .home-bookstore-hero{
        min-height:260px !important;
        padding-top:26px !important;
        padding-bottom:26px !important;
    }

    .home-hero-inner{
        width:min(1120px,100%) !important;
        max-width:1120px !important;
        grid-template-columns:repeat(2,minmax(0,1fr)) !important;
        gap:clamp(48px,4vw,72px) !important;
        align-items:center !important;
        justify-content:center !important;
    }

    .home-hero-copy{
        width:min(100%,460px) !important;
        max-width:460px !important;
        justify-self:left !important;
    }

    .bookstore-scene{
        width:100% !important;
        max-width:520px !important;
        min-height:215px !important;
        justify-self:right !important;
    }
}


/* ===== COMPACT TRUST / SERVICE STRIP ===== */
section.home-trust-strip{
    width:min(1120px,calc(100% - 44px));
    max-width:1120px;
    margin:14px auto 0;
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    grid-auto-rows:1fr;
    background:var(--card);
    border:1px solid var(--border);
    border-radius:14px;
    box-shadow:0 6px 18px var(--shadow);
    overflow:hidden;
}

section.home-trust-strip > .home-trust-item{
    min-width:0;
    min-height:62px;
    padding:8px 14px;
    display:grid;
    grid-template-columns:auto minmax(0,1fr);
    align-items:center;
    align-content:center;
    justify-content:stretch;
    gap:9px;
    color:var(--text);
    text-align:right;
    overflow:hidden;
}

section.home-trust-strip > .home-trust-item + .home-trust-item{
    border-right:0;
    border-inline-start:1px solid rgba(112,80,61,.14);
}

section.home-trust-strip .home-trust-icon{
    flex:0 0 auto;
    font-size:21px;
    line-height:1;
}

section.home-trust-strip .home-trust-item > div{
    min-width:0;
}

section.home-trust-strip .home-trust-item strong,
section.home-trust-strip .home-trust-item small{
    display:block;
    overflow:hidden;
    text-overflow:ellipsis;
}

section.home-trust-strip .home-trust-item strong{
    font-size:13px;
    line-height:1.5;
    white-space:nowrap;
}

section.home-trust-strip .home-trust-item small{
    margin-top:2px;
    color:var(--muted);
    font-size:10.5px;
    line-height:1.45;
    white-space:nowrap;
}

section.home-trust-strip > .home-trust-item--whatsapp{
    background:var(--card);
    box-shadow:none;
}

.home-trust-strip + .home-book-carousel{
    margin-top:14px !important;
}

/* Carousel نى RTL ياكى كونا margin قائىدىلىرى سۈرۈپ كەتمىسۇن. */
#newBooksCarousel{
    display:block !important;
    margin:14px auto 6px !important;
    margin-inline:auto !important;
    justify-self:center !important;
    grid-column:1 / -1 !important;
    float:none !important;
    clear:both !important;
    inset:auto !important;
}

#newBooksCarousel .home-carousel-inner{
    width:100% !important;
    margin-inline:auto !important;
}

@media (max-width:1024px) and (min-width:821px){
    section.home-trust-strip > .home-trust-item{
        padding-inline:10px;
        gap:7px;
    }
    section.home-trust-strip .home-trust-icon{
        font-size:19px;
    }
    section.home-trust-strip .home-trust-item strong{
        font-size:11.5px;
    }
    section.home-trust-strip .home-trust-item small{
        font-size:9.5px;
    }
}

@media (max-width:820px){
    #newBooksCarousel{
        margin:10px auto 6px !important;
    }

    section.home-trust-strip{
        width:calc(100% - 24px);
        margin-top:10px;
        grid-template-columns:1fr;
        border-radius:12px;
    }
    section.home-trust-strip > .home-trust-item{
        min-height:54px;
        padding:8px 13px;
        justify-content:stretch;
        text-align:right;
    }
    section.home-trust-strip > .home-trust-item + .home-trust-item{
        border-right:0;
        border-inline-start:0;
        border-top:1px solid rgba(112,80,61,.14);
    }
    section.home-trust-strip .home-trust-item strong{
        font-size:12.5px;
    }
    section.home-trust-strip .home-trust-item small{
        font-size:10px;
    }
}

/* ===== ABOUT + CONTACT: scoped visual balance ===== */
section.about-pro,
section.contact-pro{
    width:min(92%,1120px) !important;
    max-width:1120px !important;
    border:1px solid var(--border) !important;
    border-radius:16px !important;
    background:var(--card) !important;
    box-shadow:0 8px 24px var(--shadow) !important;
    text-align:right !important;
}

section.about-pro{
    margin:30px auto 16px !important;
    padding:28px 30px 26px !important;
}

section.contact-pro{
    margin:16px auto 30px !important;
    padding:28px 30px !important;
}

section.about-pro > .section-copy,
section.contact-pro > .section-copy{
    max-width:720px !important;
    margin:0 auto 17px !important;
    text-align:center !important;
}

section.about-pro > .section-copy h2,
section.contact-pro > .section-copy h2{
    margin:5px 0 6px !important;
    line-height:1.45 !important;
}

section.about-pro > .section-copy p,
section.contact-pro > .section-copy p{
    margin:0 !important;
    line-height:1.8 !important;
}

section.about-pro .about-points{
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    grid-auto-rows:1fr;
    gap:12px !important;
}

section.about-pro .about-points > div{
    min-width:0;
    min-height:92px;
    padding:14px 16px !important;
    display:grid !important;
    grid-template-columns:auto minmax(0,1fr) !important;
    grid-template-rows:auto auto;
    align-content:center;
    align-items:center;
    column-gap:10px !important;
    row-gap:3px !important;
    border:1px solid var(--border) !important;
    border-radius:12px !important;
    background:var(--bg-soft) !important;
    box-shadow:0 4px 13px rgba(75,51,39,.045) !important;
    text-align:right !important;
}

section.about-pro .about-points > div > span{
    grid-row:1 / 3 !important;
    font-size:24px !important;
    line-height:1 !important;
}

section.about-pro .about-points strong{
    min-width:0;
    font-size:14px !important;
    line-height:1.5 !important;
}

section.about-pro .about-points small{
    min-width:0;
    color:var(--text-soft) !important;
    font-size:11px !important;
    line-height:1.65 !important;
}

section.contact-pro .contact-details{
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    gap:12px !important;
}

section.contact-pro .contact-card{
    min-width:0;
    min-height:88px !important;
    padding:14px 16px !important;
    display:grid !important;
    grid-template-columns:auto minmax(0,1fr) !important;
    align-items:center !important;
    align-content:center;
    gap:11px !important;
    border:1px solid var(--border) !important;
    border-radius:12px !important;
    background:var(--bg-soft) !important;
    box-shadow:0 4px 13px rgba(75,51,39,.045) !important;
    color:var(--text) !important;
    text-align:right !important;
    overflow:hidden;
    transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease !important;
}

section.contact-pro .contact-card:hover,
section.contact-pro .contact-card:focus-visible{
    transform:translateY(-2px);
    border-color:rgba(112,80,61,.35) !important;
    box-shadow:0 7px 18px rgba(75,51,39,.085) !important;
}

section.contact-pro .contact-card > span{
    font-size:24px !important;
    line-height:1 !important;
}

section.contact-pro .contact-card > div{
    min-width:0;
    display:grid !important;
    gap:3px !important;
}

section.contact-pro .contact-card strong{
    font-size:14px !important;
    line-height:1.45 !important;
}

section.contact-pro .contact-card small{
    min-width:0;
    color:var(--text-soft) !important;
    font-size:11.5px !important;
    line-height:1.55 !important;
}

section.contact-pro .contact-card .contact-number-ltr{
    direction:ltr !important;
    unicode-bidi:isolate !important;
    display:block !important;
    width:100%;
    text-align:right;
}

section.contact-pro .contact-card[href*="instagram.com"] .contact-number-ltr{
    white-space:nowrap !important;
    overflow:visible !important;
    overflow-wrap:normal !important;
    word-break:normal !important;
}

section.contact-pro .contact-whatsapp{
    border-color:rgba(52,137,82,.34) !important;
    box-shadow:inset 0 2px 0 rgba(52,137,82,.22),0 4px 13px rgba(75,51,39,.045) !important;
}

section.contact-pro .contact-address{
    grid-column:1 / -1 !important;
    min-height:70px !important;
}

section.contact-pro .contact-address small{
    direction:ltr;
    unicode-bidi:isolate;
    text-align:left;
    font-size:13px !important;
    line-height:1.6 !important;
    overflow-wrap:anywhere;
}

@media (max-width:900px) and (min-width:701px){
    section.about-pro,
    section.contact-pro{
        width:calc(100% - 32px) !important;
        padding:24px 22px !important;
    }

    section.about-pro .about-points,
    section.contact-pro .contact-details{
        gap:10px !important;
    }

    section.about-pro .about-points > div,
    section.contact-pro .contact-card{
        padding:11px 10px !important;
        gap:8px !important;
    }

    section.contact-pro .contact-card > span{
        font-size:22px !important;
    }

    section.contact-pro .contact-card small{
        font-size:10.5px !important;
    }

    section.contact-pro .contact-card[href*="instagram.com"] .contact-number-ltr{
        font-size:10.5px !important;
    }
}

@media (max-width:700px){
    section.about-pro,
    section.contact-pro{
        width:calc(100% - 22px) !important;
        padding:20px 15px !important;
        border-radius:14px !important;
    }

    section.about-pro{
        margin:22px auto 10px !important;
    }

    section.contact-pro{
        margin:10px auto 22px !important;
    }

    section.about-pro > .section-copy,
    section.contact-pro > .section-copy{
        margin-bottom:13px !important;
        text-align:right !important;
    }

    section.about-pro .about-points,
    section.contact-pro .contact-details{
        grid-template-columns:1fr !important;
        gap:8px !important;
    }

    section.about-pro .about-points > div,
    section.contact-pro .contact-card{
        min-height:72px !important;
        padding:11px 13px !important;
    }

    section.contact-pro .contact-address{
        grid-column:auto !important;
        min-height:72px !important;
    }

    section.contact-pro .contact-card[href*="instagram.com"] .contact-number-ltr{
        font-size:11px !important;
    }

    section.contact-pro .contact-address small{
        font-size:11.5px !important;
    }
}


/* ===== MOBILE TOUCH: accidental double-tap zoom نى ئازايتىش ===== */
html,
body,
button,
a,
input,
select,
textarea,
label {
    touch-action: manipulation;
}

/* Homepage lower sections: fill cover area (Recently Added + shop selector grids) */
#homeShopSections .shop-mini-card img{
    height:auto !important;
    aspect-ratio:2 / 3 !important;
    padding:4px !important;
    object-fit:contain !important;
    object-position:center !important;
    box-sizing:border-box !important;
}
@media (max-width:650px){
    #homeShopSections .shop-mini-card img{
        height:auto !important;
        padding:4px !important;
    }
}
