@font-face {
    font-family: "IRANSansWeb";
    src: url("../fonts/IRANSansWeb.woff2") format("woff2");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "IRANSansWeb";
    src: url("../fonts/IRANSansWeb_Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: "IRANSansWeb";
    src: url("../fonts/IRANSansWeb_Bold.woff2") format("woff2");
    font-weight: bold;
    font-style: normal;
}

body {
    font-family: "IRANSansWeb", sans-serif !important;
}

html {
    overflow-x: hidden;
}

:root {
    --bs-primary: #ef394e;
    /* Digikala Red */
    --bs-danger: #ef394e;
    --bs-body-bg: #f5f5f5;
}

body {
    font-family: "IRANSansWeb", sans-serif !important;
    background-color: var(--bs-body-bg);
    color: #424750;
    line-height: normal;
    font-size: 14px;
    /* Standard web size */
}

/* Navbar */
.navbar-custom {
    background-color: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    padding: 0;
}

.navbar-brand {
    align-items: center;
    color: var(--bs-primary) !important;
    display: inline-flex;
    font-weight: 900;
    line-height: 1;
}

.brand-logo {
    display: block;
    aspect-ratio: 1;
    height: clamp(40px, 3.3vw, 48px);
    max-width: clamp(40px, 3.3vw, 48px);
    object-fit: contain;
    width: clamp(40px, 3.3vw, 48px);
}

/* Card Improvements */
.product-card {
    background: #fff;
    border: 1px solid #f0f0f1;
    border-radius: 8px;
    /* Slightly less rounded */
    overflow: hidden;
    transition: box-shadow 0.2s;
    height: 100%;
    /* Keep height 100% for grid alignment but handle content better */
    display: flex;
    flex-direction: column;
}

/* Grayscale Utility */
.grayscale {
    filter: grayscale(100%);
    -webkit-filter: grayscale(100%);
}

.hover-shadow {
    transition: box-shadow 0.3s;
}

.hover-shadow:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.fw-black {
    font-weight: 900;
}

.product-card:hover {
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.card-img-top {
    height: 180px;
    /* Fixed height for consistency */
    width: 100%;
    background-color: #fce8eb;
    /* Placeholder color */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.card-img-top img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Ensure whole image shows */
    padding: 10px;
    transition: transform 0.3s;
}

.product-card:hover .card-img-top img {
    transform: scale(1.05);
}

.card-body {
    padding: 12px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-title {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #000;
    margin-bottom: 10px;
    height: 42px;
    /* Fixed height for 2 lines */
    overflow: hidden;
}

.price {
    font-size: 1.1rem;
    font-weight: 800;
    color: #000;
}

.price-currency {
    font-size: 0.75rem;
    /* Smaller "Toman" */
    font-weight: 400;
}

/* Hero Section Refined */
.hero-section {
    background: #fff;
    /* Clean white background */
    padding: 40px 0;
}

.search-box-container {
    background: #f0f0f1;
    border-radius: 8px;
    padding: 8px;
    display: flex;
    align-items: center;
}

.search-input {
    background: transparent;
    border: none;
    outline: none;
    width: 100%;
    padding: 0 10px;
}

/* Admin Styles (Compact) */
.admin-sidebar {
    background: #1e293b;
    color: #fff;
    min-height: 100vh;
    box-shadow: -4px 0 10px rgba(0, 0, 0, 0.1);
    /* Shadow on left for RTL */
}

.admin-sidebar .sidebar-link {
    color: #cbd5e1;
    display: flex;
    align-items: center;
    padding: 12px 20px;
    margin-bottom: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    gap: 12px;
    /* Space between icon and text */
}

.admin-sidebar .sidebar-link i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.admin-sidebar .sidebar-link:hover,
.admin-sidebar .sidebar-link.active {
    background: #334155;
    color: #fff;
    transform: translateX(-5px);
    /* Move left on hover in RTL */
}

/* Responsive Typography & Fluid Fonts */
h1,
.h1 {
    font-size: calc(1.2rem + 0.8vw) !important;
}
h2,
.h2 {
    font-size: calc(1.15rem + 0.6vw) !important;
}
h3,
.h3 {
    font-size: calc(1.1rem + 0.5vw) !important;
}
h4,
.h4 {
    font-size: calc(1.05rem + 0.4vw) !important;
}
h5,
.h5 {
    font-size: calc(1rem + 0.3vw) !important;
}
h6,
.h6 {
    font-size: calc(0.95rem + 0.2vw) !important;
}

.display-4 {
    font-size: calc(1.5rem + 1.2vw) !important;
}
.fs-3 {
    font-size: calc(1.25rem + 0.7vw) !important;
}
.fs-4 {
    font-size: calc(1.15rem + 0.5vw) !important;
}
.fs-5 {
    font-size: calc(1.05rem + 0.4vw) !important;
}
.fs-6 {
    font-size: calc(0.95rem + 0.2vw) !important;
}

/* Category Circle Default */
.category-circle {
    width: 80px;
    height: 80px;
}

/* Product Image Default */
.product-image-container {
    height: 200px;
}

.product-image-container-large {
    height: 400px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    body {
        font-size: 13px; /* Slightly smaller base font for mobile */
    }

    .navbar-brand {
        font-size: 1.3rem !important;
    }

    h1,
    .h1 {
        font-size: 1.3rem !important;
    }
    h2,
    .h2 {
        font-size: 1.2rem !important;
    }
    h3,
    .h3 {
        font-size: 1.1rem !important;
    }
    h4,
    .h4 {
        font-size: 1rem !important;
    }
    h5,
    .h5 {
        font-size: 0.95rem !important;
    }
    h6,
    .h6 {
        font-size: 0.9rem !important;
    }

    .display-4 {
        font-size: 1.5rem !important;
    }
    .fs-3 {
        font-size: 1.2rem !important;
    }
    .fs-4 {
        font-size: 1.1rem !important;
    }
    .fs-5 {
        font-size: 1rem !important;
    }
    .fs-6 {
        font-size: 0.9rem !important;
    }

    .lead {
        font-size: 0.95rem !important;
    }

    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .category-circle {
        width: 60px !important;
        height: 60px !important;
    }

    .category-circle i {
        font-size: 1.5rem !important;
    }

    .product-image-container {
        height: 140px !important;
    }

    .product-image-container-large {
        height: 250px !important;
    }

    .card-img-top {
        height: 130px !important;
    }

    .card-title {
        font-size: 0.85rem !important;
        height: 38px;
        margin-bottom: 5px;
    }

    .product-card .card-body {
        padding: 10px !important;
    }

    /* Make padding and margins tighter on mobile to avoid cramped but keep breathing room */
    .py-5,
    .my-5,
    .mb-5,
    .mt-5 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
        margin-top: 0.5rem !important;
        margin-bottom: 1.5rem !important;
    }

    .p-5 {
        padding: 1.5rem !important;
    }

    .p-4 {
        padding: 1.2rem !important;
    }
}

/* Refined storefront UI */
:root {
    --gg-brand: #ef394e;
    --gg-text: #3f4652;
    --gg-heading: #303743;
    --gg-muted: #697386;
    --gg-border: #e8edf3;
    --gg-soft: #f7f8fa;
    --gg-card: #ffffff;
    --bs-body-color: var(--gg-text);
    --bs-heading-color: var(--gg-heading);
}

body {
    background-color: var(--gg-soft);
    color: var(--gg-text);
    font-size: clamp(13px, 0.82rem + 0.08vw, 15px);
    line-height: 1.85;
    overflow-x: hidden;
}

.text-dark,
.text-black,
.card-title,
.navbar .nav-link,
.breadcrumb-item.active {
    color: var(--gg-heading) !important;
}

.text-muted {
    color: var(--gg-muted) !important;
}

h1,
.h1 {
    font-size: clamp(1.35rem, 1.1rem + 0.9vw, 2rem) !important;
    color: var(--gg-heading);
}

h2,
.h2 {
    font-size: clamp(1.2rem, 1rem + 0.65vw, 1.65rem) !important;
    color: var(--gg-heading);
}

h3,
.h3 {
    font-size: clamp(1.05rem, 0.95rem + 0.45vw, 1.35rem) !important;
    color: var(--gg-heading);
}

h4,
.h4 {
    font-size: clamp(1rem, 0.92rem + 0.3vw, 1.2rem) !important;
    color: var(--gg-heading);
}

h5,
.h5,
h6,
.h6 {
    font-size: clamp(0.9rem, 0.84rem + 0.22vw, 1.05rem) !important;
    color: var(--gg-heading);
}

.display-4 {
    font-size: clamp(1.55rem, 1.2rem + 1.4vw, 2.55rem) !important;
}

.fs-5 {
    font-size: clamp(0.9rem, 0.84rem + 0.25vw, 1.05rem) !important;
}

main .card.rounded-4 {
    border-radius: 8px !important;
}

.navbar-custom {
    box-shadow: 0 1px 0 rgba(27, 31, 36, 0.08);
}

.home-hero {
    background:
        linear-gradient(135deg, rgba(239, 57, 78, 0.98) 0%, rgba(199, 31, 52, 0.98) 58%, rgba(149, 24, 42, 0.98) 100%);
    color: #fff;
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
    gap: clamp(22px, 4vw, 56px);
    padding: clamp(26px, 4vw, 54px);
    border-radius: 12px !important;
    isolation: isolate;
}

.home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 54px 54px;
    opacity: 0.22;
    pointer-events: none;
    z-index: 0;
}

.home-hero-copy,
.home-hero-notes {
    min-width: 0;
}

.home-hero-kicker {
    color: rgba(255, 255, 255, 0.86);
    display: inline-flex;
    font-size: clamp(0.78rem, 0.72rem + 0.18vw, 0.92rem);
    font-weight: 700;
    margin-bottom: 0.7rem;
}

.home-hero-title {
    color: #fff !important;
    font-size: clamp(1.75rem, 1.2rem + 2vw, 3.05rem) !important;
    line-height: 1.35;
    max-width: 760px;
    text-wrap: balance;
}

.home-hero-lead {
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(0.92rem, 0.84rem + 0.28vw, 1.1rem);
    line-height: 2;
    max-width: 680px;
}

.home-hero-search {
    align-items: center;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.68);
    border-radius: 999px;
    box-shadow: 0 16px 30px rgba(82, 20, 32, 0.18);
    direction: rtl;
    gap: 8px;
    margin-bottom: 1rem;
    max-width: 560px;
    padding: 7px;
}

.home-hero-search .form-control {
    background: transparent;
    border: 0;
    border-radius: 999px;
    color: #354052;
    font-size: clamp(0.82rem, 0.78rem + 0.18vw, 0.96rem);
    min-height: 42px;
    padding-inline: 1rem;
}

.home-hero-search .form-control::placeholder {
    color: #7b8494;
}

.home-hero-search .btn {
    align-items: center;
    background: var(--gg-brand);
    border: 0;
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    height: 42px;
    justify-content: center;
    min-width: 58px;
}

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

.home-hero-primary,
.home-hero-secondary {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: clamp(0.82rem, 0.78rem + 0.15vw, 0.96rem);
    font-weight: 800;
    min-height: 42px;
    padding: 0.68rem 1.1rem;
    text-decoration: none;
}

.home-hero-primary {
    background: #fff;
    color: #d9273d;
    box-shadow: 0 12px 24px rgba(82, 20, 32, 0.18);
}

.home-hero-secondary {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.36);
    color: #fff;
}

.home-hero-visual {
    display: none !important;
}

.home-hero-notes {
    align-self: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 370px;
}

.home-hero-note {
    align-items: center;
    backdrop-filter: blur(10px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    box-shadow: 0 18px 34px rgba(94, 10, 26, 0.12);
    color: rgba(255, 255, 255, 0.9);
    display: grid;
    font-size: clamp(0.78rem, 0.74rem + 0.16vw, 0.92rem);
    font-weight: 800;
    gap: 10px;
    grid-template-columns: 38px minmax(0, 1fr);
    min-height: 58px;
    padding: 0.72rem 0.78rem;
    text-align: right;
}

.home-hero-note i {
    align-items: center;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    display: inline-flex;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.home-hero-note span {
    align-self: center;
    line-height: 1.65;
    min-width: 0;
}

.home-hero-note:nth-child(2) {
    transform: translateX(-20px);
}

.home-hero-note:nth-child(3) {
    transform: translateX(16px);
}

.home-categories-section {
    scroll-margin-top: 95px;
}

.home-trust-section {
    padding-top: clamp(4px, 1.2vw, 14px);
}

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

.home-trust-item {
    align-items: center;
    background: #fff;
    border: 1px solid var(--gg-border);
    border-radius: 8px;
    display: grid;
    gap: 3px 12px;
    grid-template-columns: auto minmax(0, 1fr);
    padding: 15px;
}

.home-trust-icon {
    align-items: center;
    background: #fff1f3;
    border-radius: 8px;
    color: var(--gg-brand);
    display: inline-flex;
    grid-row: span 2;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.home-trust-item strong {
    color: var(--gg-heading);
    font-size: clamp(0.86rem, 0.8rem + 0.16vw, 1rem);
}

.home-trust-item small {
    color: var(--gg-muted);
    font-size: clamp(0.72rem, 0.68rem + 0.12vw, 0.84rem);
    line-height: 1.8;
}

.home-seo-section {
    color: var(--gg-text);
}

.home-seo-copy,
.home-faq {
    background: #fff;
    border: 1px solid var(--gg-border);
    border-radius: 8px;
    padding: clamp(18px, 2vw, 28px);
}

.home-seo-copy p,
.home-faq p {
    color: #4f5b6d;
    font-size: clamp(0.84rem, 0.8rem + 0.14vw, 0.96rem);
    line-height: 2.1;
}

.home-faq details {
    border-top: 1px solid #edf1f6;
    padding: 13px 0;
}

.home-faq details:first-of-type {
    border-top: 0;
}

.home-faq summary {
    color: var(--gg-heading);
    cursor: pointer;
    font-weight: 800;
    list-style: none;
}

.home-faq summary::-webkit-details-marker {
    display: none;
}

.category-card {
    background: var(--gg-card);
    border: 1px solid var(--gg-border) !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 28px rgba(31, 41, 55, 0.055) !important;
    color: var(--gg-text);
    padding: 14px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.category-card:hover {
    border-color: #dde5ef !important;
    box-shadow: 0 14px 30px rgba(31, 41, 55, 0.085) !important;
    transform: translateY(-4px);
}

.category-card-media {
    aspect-ratio: 16 / 9;
    background: #f8fafc;
    border: 1px solid #eef2f6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(8px, 1vw, 14px);
    overflow: hidden;
}

.category-card-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

.category-icon-wrapper {
    aspect-ratio: 16 / 9;
    background: #2f6f9f;
    border-radius: 8px;
}

.category-card-title {
    color: var(--gg-heading);
    display: -webkit-box;
    font-size: clamp(0.82rem, 0.78rem + 0.18vw, 0.98rem) !important;
    line-height: 1.6;
    min-height: 2.9em;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.category-card-badges {
    min-height: 26px;
}

.category-badge-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e8edf3;
    box-shadow: 0 3px 8px rgba(31, 41, 55, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.category-badge-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 3px;
}

.category-badge-fallback {
    color: #637083;
    font-size: 0.78rem;
}

.product-image-container {
    aspect-ratio: 4 / 3;
    background: #f8fafc !important;
    height: auto !important;
    padding: 14px !important;
}

.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
}

.product-image-container-large {
    aspect-ratio: 1 / 1;
    background: #f8fafc;
    height: auto !important;
    max-height: clamp(260px, 42vw, 430px);
    min-height: 0 !important;
    padding: clamp(14px, 2vw, 22px);
}

.product-image-container-large img {
    height: 100% !important;
    object-fit: contain !important;
    padding: 8px;
}

.product-detail-media-card {
    aspect-ratio: 16 / 10;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: none;
    min-height: clamp(220px, 28vw, 360px) !important;
    padding: clamp(14px, 1.8vw, 22px) !important;
}

.product-detail-media-card img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-height: 100%;
    object-fit: contain !important;
    padding: 0;
}

.site-footer {
    background: #202733;
    border-top: 1px solid #303a49;
    color: #d8dee8;
    padding: clamp(34px, 4vw, 54px) 0 20px;
}

.site-footer-main {
    display: grid;
    grid-template-columns: minmax(260px, 1.3fr) minmax(150px, 0.7fr) minmax(190px, 0.95fr) minmax(210px, 0.95fr);
    gap: clamp(22px, 3vw, 38px);
}

.site-footer-logo {
    align-items: center;
    color: #fff;
    display: inline-flex;
    margin-bottom: 14px;
    text-decoration: none;
}

.brand-logo {
    height: 90px !important;
    width: auto !important;
    max-width: 320px;
    object-fit: contain;
}

@media (max-width: 991.98px) {
    .brand-logo {
        height: 75px !important;
    }
}

.footer-brand-logo {
    display: block;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.18));
    height: clamp(48px, 4vw, 58px) !important;
    max-width: 250px !important;
    object-fit: contain;
    width: auto !important;
}

.site-footer-brand p,
.site-footer-seo p {
    color: #aeb7c5;
    font-size: clamp(0.8rem, 0.76rem + 0.12vw, 0.92rem);
    line-height: 2;
    margin: 0;
}

.site-footer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.site-footer-actions a,
.site-footer-keywords a {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 800;
    gap: 7px;
    min-height: 38px;
    padding: 0.55rem 0.85rem;
    text-decoration: none;
}

.site-footer-actions a:first-child {
    background: #fff;
    color: #d9273d;
}

.site-footer-actions a:last-child {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
}

.site-footer-col h2 {
    color: #fff;
    font-size: clamp(0.95rem, 0.88rem + 0.18vw, 1.1rem) !important;
    font-weight: 900;
    margin-bottom: 14px;
}

.site-footer-col a {
    color: #bac4d2;
    display: block;
    font-size: clamp(0.78rem, 0.74rem + 0.12vw, 0.9rem);
    line-height: 1.8;
    margin-bottom: 9px;
    text-decoration: none;
    transition: color 0.18s ease, transform 0.18s ease;
}

.site-footer-col a:hover {
    color: #fff;
    transform: translateX(-3px);
}

.site-footer-categories-list {
    display: block;
}

.site-footer-badges {
    display: grid;
    gap: 9px;
}

.site-footer-badges span {
    align-items: center;
    background: rgba(255, 255, 255, 0.065);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
    color: #d8dee8;
    display: flex;
    font-size: 0.84rem;
    gap: 9px;
    min-height: 40px;
    padding: 0.55rem 0.7rem;
}

.site-footer-badges i {
    color: #ff6b7a;
    min-width: 18px;
    text-align: center;
}

.site-footer-seo {
    align-items: center;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1.1fr) minmax(240px, 0.9fr);
    margin-top: clamp(26px, 3vw, 38px);
    padding: clamp(16px, 2vw, 22px);
}

.site-footer-seo strong {
    color: #fff;
    display: block;
    font-size: 0.98rem;
    margin-bottom: 7px;
}

.site-footer-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.site-footer-keywords a {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    min-height: 34px;
    padding: 0.42rem 0.75rem;
}

.site-footer-bottom {
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #9faaba;
    display: flex;
    font-size: 0.78rem;
    gap: 16px;
    justify-content: space-between;
    margin-top: 22px;
    padding-top: 18px;
}

.site-footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.site-footer-bottom a {
    color: #b8c1ce;
    text-decoration: none;
}

.card-title,
.price {
    color: var(--gg-heading);
}

@media (max-width: 768px) {
    .home-hero-section {
        margin-top: 0.85rem !important;
    }

    .home-hero {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 22px 16px;
        text-align: center;
        width: 100%;
    }

    .home-hero-title {
        font-size: clamp(1.28rem, 1.08rem + 0.95vw, 1.58rem) !important;
        line-height: 1.55;
        margin-inline: auto;
        max-width: 100%;
        overflow-wrap: break-word;
        text-wrap: initial;
    }

    .home-hero-lead {
        line-height: 1.95;
        margin-inline: auto;
        max-width: 100%;
    }

    .home-hero-search {
        border-radius: 14px;
        flex-direction: row;
        margin-inline: auto;
        max-width: 100%;
        padding: 6px;
        width: 100%;
    }

    .home-hero-search .form-control {
        min-height: 44px;
        min-width: 0;
        padding-inline: 0.75rem;
    }

    .home-hero-search .btn {
        height: 44px;
        min-width: 50px;
    }

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

    .home-hero-primary,
    .home-hero-secondary {
        justify-content: center;
        min-height: 42px;
        padding: 0.6rem 0.95rem;
    }

    .home-hero-visual {
        display: none !important;
    }

    .home-hero-notes {
        gap: 8px;
        margin-inline: auto;
        max-width: 100%;
        width: 100%;
    }

    .home-hero-note,
    .home-hero-note:nth-child(2),
    .home-hero-note:nth-child(3) {
        font-size: 0.78rem;
        grid-template-columns: 34px minmax(0, 1fr);
        min-height: 48px;
        padding: 0.58rem 0.62rem;
        transform: none !important;
    }

    .home-hero-note i {
        height: 34px;
        width: 34px;
    }

    .home-trust-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .home-trust-item {
        padding: 12px;
    }

    .home-seo-copy,
    .home-faq {
        padding: 16px;
    }

    .home-categories-section .row,
    .home-seo-section .row {
        margin-left: 0;
        margin-right: 0;
        --bs-gutter-x: 0.9rem;
    }

    .category-card {
        padding: 10px;
    }

    .category-badge-icon {
        width: 22px;
        height: 22px;
    }

    .product-image-container {
        height: auto !important;
    }

    .product-image-container-large {
        max-height: 300px;
    }

    .product-detail-media-card {
        aspect-ratio: 4 / 3;
        min-height: 210px !important;
        max-height: none;
    }

    .site-footer {
        margin-top: 2rem !important;
        padding: 28px 0 18px;
    }

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

    .site-footer-main {
        gap: 22px;
    }

    .site-footer-brand,
    .site-footer-col {
        background: rgba(255, 255, 255, 0.045);
        border: 1px solid rgba(255, 255, 255, 0.07);
        border-radius: 8px;
        padding: 15px;
    }

    .site-footer-actions,
    .site-footer-keywords {
        justify-content: flex-start;
    }

    .site-footer-categories-list {
        display: grid;
        gap: 2px 12px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-footer-categories-list a {
        margin-bottom: 5px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .site-footer-actions a {
        flex: 1 1 140px;
        justify-content: center;
    }

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

    .site-footer-seo {
        padding: 15px;
    }

    .site-footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* RTL Form Select Fixes */
.form-select {
    background-position: left 0.75rem center !important;
    padding-right: 1rem !important;
    padding-left: 2.25rem !important;
}

/* RTL Input Group Fixes */
.input-group > :not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback) {
    margin-left: 0;
    margin-right: -1px;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-top-left-radius: var(--bs-border-radius, 0.375rem) !important;
    border-bottom-left-radius: var(--bs-border-radius, 0.375rem) !important;
}

.input-group > :not(:last-child):not(.dropdown-toggle) {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-top-right-radius: var(--bs-border-radius, 0.375rem) !important;
    border-bottom-right-radius: var(--bs-border-radius, 0.375rem) !important;
}

.input-group > :not(:first-child):not(:last-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback) {
    border-radius: 0 !important;
}


.accordion-button {
    display: block !important;
    text-align: right !important;
    position: relative;
    padding-left: 3rem !important;
}
.accordion-body { text-align: right !important; }
.accordion-button::after {
    position: absolute !important;
    left: 1.25rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
}
.accordion-button:not(.collapsed)::after {
    transform: translateY(-50%) rotate(-180deg) !important;
}

