@font-face {
    font-family: 'Montserrat Arabic';
    src: url('../assets/fonts/MontserratArabic-Regular.woff2') format('woff2'),
         url('../assets/fonts/MontserratArabic-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Mobile polish pass: keeps desktop rules intact while improving 320px-768px UX. */
@media screen and (max-width: 768px) {
    *, *::before, *::after {
        min-width: 0;
    }

    :root {
        --main-header-height: 72px;
        --font-xs: clamp(0.72rem, 0.66rem + 0.3vw, 0.82rem);
        --font-sm: clamp(0.84rem, 0.78rem + 0.35vw, 0.95rem);
        --font-md: clamp(0.98rem, 0.92rem + 0.45vw, 1.08rem);
        --font-lg: clamp(1.12rem, 1rem + 0.9vw, 1.42rem);
        --button-font-size: clamp(0.86rem, 0.78rem + 0.35vw, 0.98rem);
        --button-padding-block: 0.68rem;
        --button-padding-inline: 0.95rem;
    }

    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    .top-header {
        padding: 0 12px;
        gap: 8px;
    }

    .offer-text {
        max-width: none;
        min-width: 0;
        line-height: 1.25;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .social-icons,
    [dir="rtl"] .social-icons {
        flex: 0 0 auto;
        margin: 0;
        gap: 10px;
    }

    .lang-btn,
    .site-search-button,
    .modal-close,
    .modal-reserve-button,
    .btn {
        min-width: 44px;
        min-height: 44px;
    }

    header {
        grid-template-columns: 68px minmax(0, 1fr) auto;
        padding: 8px 12px;
        gap: 8px;
        height: var(--main-header-height);
        justify-content: stretch;
    }

    .header-img-link {
        width: 68px;
    }

    .header-img-link img {
        max-height: 48px;
    }

    nav ul {
        gap: clamp(6px, 2vw, 12px);
        justify-content: center;
        overflow: hidden;
    }

    nav ul li a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        font-size: clamp(0.78rem, 0.7rem + 0.45vw, 0.92rem);
        font-weight: 700;
        line-height: 1;
    }

    .language-switcher,
    [dir="rtl"] .language-switcher {
        margin: 0;
        gap: 4px;
    }

    .lang-btn {
        border-radius: 999px;
        padding: 0.42rem 0.58rem;
        min-width: 2.55rem;
        min-height: 38px;
    }

    .welcome-section {
        min-height: auto;
        padding: 28px 0 18px;
        margin: 0;
    }

    .welcome-container {
        width: min(100%, 560px);
        gap: 18px;
        padding: 0 16px;
    }

    .welcome-content h1 {
        margin: 0 0 10px;
        line-height: 1.15;
    }

    .welcome-content p {
        margin: 0 0 12px;
        line-height: 1.55;
    }

    .welcome-image img {
        max-width: min(78vw, 320px);
        aspect-ratio: 1 / 1;
        object-fit: contain;
    }

    .search-section {
        padding: 18px 14px 0;
    }

    .hero-search {
        padding-top: 18px;
    }

    .site-search {
        width: 100%;
        max-width: 440px;
    }

    .site-search-input {
        min-height: 48px;
        padding-top: 0.7rem;
        padding-bottom: 0.7rem;
        padding-right: 3.35rem;
        font-size: 16px;
    }

    [dir="rtl"] .site-search-input {
        padding-right: 1rem;
        padding-left: 3.35rem;
    }

    .site-search-button {
        width: 40px;
        min-width: 40px;
        min-height: 40px;
    }

    .search-results {
        width: 100%;
        max-width: 440px;
        margin: 12px auto 0;
    }

    .search-result-card {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 8px;
        padding: 12px;
    }

    .search-result-card .search-result-link {
        grid-column: auto;
        grid-row: auto;
        justify-self: stretch;
        min-height: 42px;
    }

    #products,
    #birds-products,
    #dogs-products,
    #tortoise-products,
    #cats-products {
        padding: 32px 14px;
        margin-top: 32px;
    }

    .products-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
        padding: 0;
        max-width: 560px;
    }

    .birds-products-container,
    .dogs-products-container,
    .tortoise-products-container,
    .cats-products-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
        padding-top: 22px;
        width: min(100%, 560px);
        margin: 0 auto;
        font-size: inherit;
    }

    .product,
    .product-list {
        width: 100%;
        max-width: none;
        border-radius: 8px;
    }

    .product img,
    .product-list img {
        aspect-ratio: 1 / 1;
        object-fit: cover;
    }

    .product h3,
    .product-list h3 {
        margin: 10px 10px 6px;
        font-size: var(--font-sm);
        line-height: 1.25;
    }

    .product p,
    .product-list p {
        margin: 0 10px 12px;
        line-height: 1.45;
    }

    #modal-container {
        align-items: stretch;
        justify-content: center;
        padding: 10px;
    }

    .modal {
        width: min(100%, 520px);
        max-height: calc(100dvh - 20px);
        padding: calc(14px + env(safe-area-inset-top, 0px)) 14px 14px;
        border-radius: 8px;
    }

    .modal-close {
        top: calc(8px + env(safe-area-inset-top, 0px));
        right: calc(8px + env(safe-area-inset-right, 0px));
        width: 34px;
        height: 34px;
        min-width: 34px;
        min-height: 34px;
        padding: 0.2rem 0.45rem;
        border-radius: 0;
        background: transparent;
        color: var(--color-muted);
        box-shadow: none;
        z-index: 4;
        font-size: 0.95rem;
        line-height: 1;
    }

    .modal-close:hover {
        background: var(--color-danger);
    }

    .modal-content {
        flex-direction: column;
        gap: 12px;
        overflow-y: auto;
        padding: 38px 0 12px;
    }

    .modal-image-container {
        width: 100%;
    }

    .main-image {
        width: 100%;
        max-width: 100%;
        max-height: 32vh;
        object-fit: contain;
    }

    .modal-gallery {
        width: 100%;
        overflow-x: auto;
        padding: 6px 2px 8px;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }

    .gallery-image {
        flex: 0 0 72px;
        width: 72px;
        height: 72px;
        object-fit: cover;
        scroll-snap-align: start;
    }

    .modal-text-container {
        max-height: none;
        overflow: visible;
    }

    .modal-title {
        padding-right: 0;
        margin-top: 0;
        line-height: 1.25;
    }

    [dir="rtl"] .modal-title {
        padding-right: 0;
        padding-left: 0;
    }

    [dir="rtl"] .modal-close {
        right: auto;
        left: calc(8px + env(safe-area-inset-left, 0px));
    }

    .modal-description {
        max-height: none;
        margin-bottom: 0;
        padding-right: 0;
        line-height: 1.6;
    }

    .modal-footer {
        padding-top: 12px;
    }

    .modal-reserve-button {
        width: 100%;
        margin: 0;
        min-height: 48px;
    }

    #about,
    #contact {
        width: min(100% - 28px, 620px);
        padding: 20px 14px;
        line-height: 1.65;
    }

    footer {
        padding: 26px 0 18px;
    }

    .footer-container {
        gap: 18px;
    }

    .footer-section {
        padding: 0 16px 14px;
    }
}

@media screen and (max-width: 480px) {
    :root {
        --top-header-height: 34px;
        --main-header-height: 64px;
    }

    header {
        grid-template-columns: 50px minmax(0, 1fr) auto;
        padding: 6px 8px;
    }

    .header-img-link {
        width: 50px;
    }

    .header-img-link img {
        max-height: 38px;
    }

    nav ul {
        gap: 4px;
    }

    nav ul li a {
        font-size: clamp(0.66rem, 2.5vw, 0.78rem);
        min-height: 40px;
    }

    .lang-btn {
        min-width: 2.15rem;
        min-height: 36px;
        padding: 0.3rem 0.4rem;
        font-size: 0.68rem;
    }

    .welcome-section {
        min-height: 420px;
        padding: 0;
        color: var(--color-on-primary);
    }

    .welcome-container {
        position: relative;
        min-height: 420px;
        width: 100%;
        max-width: none;
        padding: 0;
    }

    .products-container,
    .birds-products-container,
    .dogs-products-container,
    .tortoise-products-container,
    .cats-products-container {
        gap: 10px;
    }

    .product h3,
    .product-list h3 {
        font-size: clamp(0.78rem, 3.2vw, 0.92rem);
    }

    .product p,
    .product-list p {
        font-size: clamp(0.7rem, 3vw, 0.84rem);
    }

    .modal {
        width: 100%;
        max-height: calc(100dvh - 16px);
        padding: calc(12px + env(safe-area-inset-top, 0px)) 12px 12px;
    }

    .modal-close {
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
        top: calc(7px + env(safe-area-inset-top, 0px));
        right: calc(7px + env(safe-area-inset-right, 0px));
        font-size: 0.9rem;
    }

    [dir="rtl"] .modal-close {
        right: auto;
        left: calc(7px + env(safe-area-inset-left, 0px));
    }

    .gallery-image {
        flex-basis: 64px;
        width: 64px;
        height: 64px;
    }
}

@media screen and (max-width: 340px) {
    .products-container,
    .birds-products-container,
    .dogs-products-container,
    .tortoise-products-container,
    .cats-products-container {
        grid-template-columns: 1fr;
        max-width: 260px;
    }

    .offer-text {
        font-size: 0.62rem;
    }

    nav ul li a {
        font-size: 0.62rem;
    }
}

@media screen and (max-width: 768px) and (orientation: landscape) {
    :root {
        --top-header-height: 32px;
        --main-header-height: 58px;
    }

    .welcome-section,
    .welcome-container {
        min-height: 320px;
    }

    .welcome-content {
        transform: none;
    }

    .main-image {
        max-height: 42vh;
    }

    .modal {
        max-height: calc(100dvh - 14px);
    }
}

@font-face {
    font-family: 'Montserrat Arabic';
    src: url('../assets/fonts/MontserratArabic-Bold.woff2') format('woff2'),
         url('../assets/fonts/MontserratArabic-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root[dir="rtl"] {
    direction: rtl;
}
[dir="rtl"] body {
    font-family: 'Montserrat Arabic', 'Tahoma', Arial, sans-serif;
    text-align: right;
}

[dir="rtl"] .product-list-view-link,
[dir="rtl"] .btn,
[dir="rtl"] .modal-reserve-button {
    font-family: 'Montserrat Arabic', 'Tahoma', sans-serif;
}

/* Language Switcher Styles */
.language-switcher {
    display: flex;
    gap: 5px;
    position: relative;
    z-index: 100;
}

.lang-btn {
    padding: calc(var(--button-padding-block) * 0.75) calc(var(--button-padding-inline) * 0.75);
    border: 2px solid var(--color-on-primary);
    background: transparent;
    color: var(--color-on-primary);
    cursor: pointer;
    border-radius: 20px;
    font-weight: 600;
    font-size: var(--font-xs);
    transition: all 0.3s ease;
    text-transform: uppercase;
    min-width: 3rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    box-sizing: border-box;
}

.lang-btn:hover {
    background: rgba(255, 250, 240, 0.14);
}

.lang-btn.active {
    background: var(--color-on-primary);
    color: var(--color-primary-dark);
    box-shadow: var(--shadow-subtle);
}

.lang-btn.active:hover {
    background: var(--color-on-primary);
    transform: none;
}

/* RTL specific adjustments */
[dir="rtl"] .language-switcher {
    margin-left: 0;
    margin-right: 20px;
}
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    scroll-padding-top: calc(var(--top-header-height) + var(--main-header-height) + 20px);
}

:root {
    --color-primary: #3c8e3e;
    --color-primary-dark: #2E7D32;
    --color-secondary: #eef7f0;
    --color-accent: #3c8e3e;
    --color-accent-dark: #2E7D32;
    --color-background: #f5f5f5;
    --color-surface: #ffffff;
    --color-surface-strong: #ffffff;
    --color-text: #333333;
    --color-muted: #666666;
    --color-border: #dfe7df;
    --color-danger: #d32f2f;
    --color-success: #27ae60;
    --color-on-primary: #ffffff;
    --color-focus: rgba(60, 142, 62, 0.22);
    --shadow-soft: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-subtle: 0 2px 6px rgba(0, 0, 0, 0.06);
    --top-header-height: 40px;
    --main-header-height: 86px;
    --font-xs: clamp(0.75rem, 0.7rem + 0.2vw, 0.875rem);
    --font-sm: clamp(0.875rem, 0.82rem + 0.25vw, 1rem);
    --font-md: clamp(1rem, 0.94rem + 0.3vw, 1.125rem);
    --font-lg: clamp(1.125rem, 1rem + 0.7vw, 1.5rem);
    --font-xl: clamp(1.75rem, 1.15rem + 3vw, 3rem);
    --button-font-size: clamp(0.875rem, 0.78rem + 0.4vw, 1.125rem);
    --button-padding-block: clamp(0.55rem, 0.45rem + 0.45vw, 0.8rem);
    --button-padding-inline: clamp(0.85rem, 0.65rem + 1vw, 1.5rem);
    --button-radius: 0.5rem;
    --button-pill-radius: 999px;
}

/* General Styles */
body {
    margin: 0;
    padding-top: calc(var(--top-header-height) + var(--main-header-height));
    position: relative;
    font-family: 'Poppins', 'Roboto', sans-serif;
    font-size: var(--font-md);
    background-color: var(--color-background);
    color: var(--color-text);
    direction: ltr;
    transition: all 0.3s ease;
    width: 100%;   /* Ensures nothing goes beyond the viewport width */
    overflow-x: hidden;
}
.container {
    width: 100%;
    max-width: 100%; /* Prevents overflow */
    padding: 0 15px; /* Adds safe spacing */
    box-sizing: border-box; /* Includes padding in width */
  }
  img, video, iframe {
    max-width: 100%;
    height: auto; /* Maintain aspect ratio */
  }
.top-header {
    
        background-color: var(--color-primary);
        color: var(--color-on-primary);
        font-size: var(--font-xs);
        font-weight: bold;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: var(--top-header-height);
        box-sizing: border-box;
        display: flex;
        justify-content: space-between;
        align-items: center;
        z-index: 1001;
        box-shadow: var(--shadow-subtle);
        transition: all 0.3s ease;
        border-bottom: solid 1px rgba(255, 250, 240, 0.34);
      
}
/* Offer text */
.offer-text {
    flex: 1;
    text-align: center;
}

/* Social Icons */
.social-icons {
    margin-right: 100px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 0 0 auto;
    transition: all 0.3s ease; /* Smooth transition for RTL switch */
}

/* Icon Style */
.icon-link {
    color: var(--color-on-primary);
    font-size: var(--font-md);
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    flex: 0 0 auto;
    transition: color 0.3s ease;
}

.icon-link:hover {
    color: var(--color-secondary);
}
[dir="rtl"] .top-header {
    flex-direction: row-reverse; /* Reverse the order of elements */
}

[dir="rtl"] .social-icons {
    margin-right: 0;
    margin-left: 100px; /* Mirror the margin */
}

[dir="rtl"] .offer-text {
    text-align: center;
    padding: 0 20px; /* Add padding to prevent overlap */
}


/* Header */
/* ===== Main Navigation Header ===== */
header {
    position: fixed;
    top: var(--top-header-height);
    left: 0;
    right: 0;
    width: 100%;
    height: var(--main-header-height);
    box-sizing: border-box;
    background-color: var(--color-primary);
    color: var(--color-on-primary);
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    gap: 20px;
    z-index: 1000;
    box-shadow: var(--shadow-subtle);
    transition: all 0.3s ease;
  }
  main {
    padding-top: 0;
  }

.header-img-link{
    display: flex;
    align-items: center;
    width: 120px;
    max-width: 18%;
    flex-shrink: 0;
}

.header-img-link img {
    display: block;
    width: 100%;
    max-height: 64px;
    object-fit: contain;
}



.welcome-section {
    /*background: 
        linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), /*Dark overlay */
       /* url('../img/Hero-section-background.jpg') center/cover no-repeat;*/
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 50px 0;
    color: var(--color-text);
    position: relative;
    transition: opacity 0.5s ease;
}


/* Ensures content does not overlap */
.welcome-content {
    position: relative;
    z-index: 2;
    transition: transform 0.5s ease;
    flex: 1;
    text-align: left;
}
.welcome-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    max-width: 1200px;
    margin: auto;
}

.welcome-image {
    flex: 1;
}

.welcome-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 0;
    display: block;
    margin-left: 10%;
}

.welcome-content h1 {
    font-size: var(--font-xl);
    margin-bottom: 20px;
}

.welcome-content p {
    font-size: var(--font-md);
    margin-bottom: 30px;
    line-height: 1.6;
}


/* ANIMATIONS */
.fade-in {
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeIn 1.2s ease-out forwards;
}

.slide-up {
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 1.2s ease-out forwards 0.3s;
}

.scale-up {
    opacity: 0;
    transform: scale(0.8);
    animation: scaleUp 1.2s ease-out forwards 0.6s;
}

/* ANIMATION KEYFRAMES */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleUp {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes langSwitch {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}

.lang-btn.active {
    animation: langSwitch 0.3s ease forwards;
}

/* BUTTON */
.btn {
    background: var(--color-accent);
    color: var(--color-on-primary);
    padding: var(--button-padding-block) var(--button-padding-inline);
    border-radius: var(--button-pill-radius);
    text-decoration: none;
    font-size: var(--button-font-size);
    font-weight: bold;
    transition: 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    line-height: 1.2;
    box-sizing: border-box;
    min-height: 44px;
}

.btn:hover {
    background: var(--color-accent-dark);
    transform: scale(1.05);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.search-section {
    padding: 22px 20px 0;
}

.hero-search {
    padding: 18px 0 0;
}

.search-container {
    width: min(900px, 100%);
    margin: 0 auto;
    text-align: center;
}

.hero-search .search-container {
    width: 100%;
    margin: 0;
    text-align: left;
}

.search-container h2 {
    margin: 0 0 15px;
    font-size: var(--font-lg);
}

.hero-search .search-container h2 {
    margin-bottom: 10px;
    font-size: var(--font-md);
}

.site-search {
    position: relative;
    display: flex;
    align-items: center;
}

.site-search-input {
    width: 100%;
    min-height: 44px;
    padding: var(--button-padding-block) calc(var(--button-padding-inline) + 3rem) var(--button-padding-block) var(--button-padding-inline);
    border: 1px solid var(--color-border);
    background: var(--color-surface-strong);
    color: var(--color-text);
    border-radius: var(--button-pill-radius);
    font: inherit;
    font-size: var(--font-sm);
    box-sizing: border-box;
}

.site-search-input:focus {
    outline: 3px solid var(--color-focus);
    border-color: var(--color-accent);
}

.site-search-button,
.search-result-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: var(--button-padding-block) var(--button-padding-inline);
    border: 0;
    border-radius: var(--button-radius);
    background: var(--color-accent);
    color: var(--color-on-primary);
    font-size: var(--button-font-size);
    font-weight: 700;
    line-height: 1.1;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    white-space: nowrap;
}

.site-search-button {
    position: absolute;
    top: 50%;
    right: 5px;
    transform: translateY(-50%);
    width: 36px;
    min-width: 36px;
    min-height: 36px;
    padding: 0;
    border-radius: 50%;
}

.site-search-button span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

[dir="rtl"] .site-search-input {
    padding-right: var(--button-padding-inline);
    padding-left: calc(var(--button-padding-inline) + 3rem);
}

[dir="rtl"] .site-search-button {
    right: auto;
    left: 5px;
}

.site-search-button:hover,
.search-result-link:hover {
    background: var(--color-accent-dark);
}

.search-results {
    display: grid;
    gap: 10px;
    margin-top: 15px;
    text-align: left;
}

.search-result-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-surface);
    box-shadow: var(--shadow-subtle);
}

.search-result-card h3 {
    grid-column: 1;
    min-width: 0;
    margin: 0;
    font-size: var(--font-md);
}

.search-result-card p {
    grid-column: 1;
    min-width: 0;
    margin: 0;
    color: var(--color-muted);
    font-size: var(--font-sm);
    line-height: 1.5;
}

.search-result-card .search-result-link {
    grid-column: 2;
    grid-row: 1 / span 2;
    justify-self: end;
    min-height: 36px;
    padding: 0.45rem 0.8rem;
}

.search-empty {
    margin: 0;
    padding: 12px;
    border-radius: 8px;
    background: var(--color-secondary);
    color: var(--color-primary-dark);
    font-size: var(--font-sm);
    line-height: 1.5;
    box-sizing: border-box;
    width: 100%;
}

[dir="rtl"] .search-results {
    text-align: right;
}

[dir="rtl"] .hero-search .search-container {
    text-align: right;
}

/* Custom Pet Homes Showcase */
.custom-showcase {
    width: 100%;
    margin: clamp(48px, 6vw, 86px) 0 0;
    padding: clamp(56px, 7vw, 92px) 0;
    background: linear-gradient(135deg, #eef7f0 0%, #ffffff 48%, #e7f2e9 100%);
    border-top: 1px solid rgba(60, 142, 62, 0.12);
    border-bottom: 1px solid rgba(60, 142, 62, 0.12);
    overflow: hidden;
}

.custom-showcase-inner {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    gap: clamp(24px, 3vw, 36px);
}

.custom-showcase-heading {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.custom-showcase-heading span {
    display: inline-block;
    margin-bottom: 10px;
    padding: 0.35rem 0.75rem;
    border: 1px solid rgba(60, 142, 62, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    color: var(--color-accent-dark);
    font-weight: 800;
    font-size: var(--font-sm);
    text-transform: uppercase;
    letter-spacing: 0;
}

.custom-showcase-heading h2 {
    margin: 0;
    color: var(--color-text);
    font-size: clamp(2rem, 1.35rem + 2.2vw, 3.2rem);
    line-height: 1.1;
}

.custom-showcase-heading p {
    max-width: 700px;
    margin: 16px auto 0;
    color: var(--color-muted);
    font-size: var(--font-md);
    line-height: 1.7;
}

.custom-carousel {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    width: min(920px, 100%);
    margin: 0 auto;
}

.custom-carousel-viewport {
    overflow: hidden;
    min-width: 0;
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
}

.custom-carousel-viewport.is-dragging {
    cursor: grabbing;
}

.custom-carousel-track {
    display: flex;
    width: 100%;
    transition: transform 0.32s ease;
    will-change: transform;
}

.custom-project-card {
    display: flex;
    flex: 0 0 100%;
    justify-content: center;
    min-width: 100%;
    padding: 8px clamp(10px, 4vw, 28px) 24px;
    box-sizing: border-box;
}

.custom-project-card-frame {
    width: min(100%, 720px);
    overflow: hidden;
    border: 1px solid rgba(60, 142, 62, 0.14);
    border-radius: 24px;
    background: var(--color-surface);
    box-shadow: 0 18px 46px rgba(31, 42, 36, 0.14);
    transform: translateY(0);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.custom-project-card:hover .custom-project-card-frame {
    transform: translateY(-6px);
    border-color: rgba(60, 142, 62, 0.3);
    box-shadow: 0 24px 62px rgba(31, 42, 36, 0.2);
}

.custom-project-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--color-secondary);
}

.custom-project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    user-select: none;
    transform: scale(1);
    transition: transform 0.35s ease;
}

.custom-project-card:hover .custom-project-image img {
    transform: scale(1.035);
}

.custom-project-copy {
    display: grid;
    gap: 10px;
    padding: clamp(18px, 2.4vw, 26px);
    color: var(--color-text);
    background: linear-gradient(180deg, #ffffff 0%, #fbfdfb 100%);
}

.custom-project-copy span {
    display: inline-flex;
    width: fit-content;
    padding: 0.38rem 0.7rem;
    border-radius: 999px;
    background: var(--color-secondary);
    color: var(--color-primary-dark);
    font-size: var(--font-xs);
    font-weight: 800;
}

.custom-project-copy h3 {
    margin: 0;
    color: var(--color-text);
    font-size: clamp(1.35rem, 1.05rem + 1vw, 2rem);
    line-height: 1.15;
}

.custom-project-copy p {
    margin: 0;
    max-width: 34rem;
    color: var(--color-muted);
    font-size: var(--font-sm);
    line-height: 1.55;
}

.custom-similar-button {
    justify-self: start;
    min-height: 42px;
    padding: 0.72rem 1.1rem;
    border: 1px solid rgba(60, 142, 62, 0.28);
    border-radius: 999px;
    background: var(--color-primary);
    color: #ffffff;
    font-size: var(--font-xs);
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(60, 142, 62, 0.18);
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.custom-similar-button:hover,
.custom-similar-button:focus-visible {
    background: var(--color-primary-dark);
    box-shadow: 0 14px 28px rgba(60, 142, 62, 0.24);
    transform: translateY(-1px);
}

.custom-carousel-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(60, 142, 62, 0.24);
    border-radius: 999px;
    color: var(--color-primary-dark);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 22px rgba(31, 42, 36, 0.12);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.custom-carousel-button:hover {
    transform: translateY(-2px);
    border-color: var(--color-accent);
    background: var(--color-secondary);
}

.custom-carousel-dots {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.custom-carousel-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(60, 142, 62, 0.28);
    cursor: pointer;
}

.custom-carousel-dot.is-active,
.custom-carousel-dot:hover {
    background: var(--color-accent);
}

.custom-inquiry-form {
    width: min(920px, 100%);
    margin: 0 auto;
    padding: clamp(22px, 3vw, 34px);
    box-sizing: border-box;
    border: 1px solid rgba(60, 142, 62, 0.18);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 44px rgba(31, 42, 36, 0.1);
}

.custom-inquiry-form * {
    box-sizing: border-box;
}

.custom-inquiry-form h3 {
    margin: 0 0 20px;
    color: var(--color-text);
    font-size: clamp(1.35rem, 1.1rem + 0.8vw, 2rem);
    line-height: 1.2;
}

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

.custom-form-grid label {
    display: grid;
    min-width: 0;
    gap: 8px;
    color: var(--color-text);
    font-weight: 800;
    font-size: var(--font-sm);
}

.custom-form-grid input,
.custom-form-grid textarea {
    width: 100%;
    min-height: 50px;
    border: 1px solid rgba(60, 142, 62, 0.2);
    border-radius: 16px;
    padding: 0.85rem 1rem;
    color: var(--color-text);
    background: var(--color-surface);
    font: inherit;
    box-sizing: border-box;
    outline: none;
    box-shadow: inset 0 1px 0 rgba(31, 42, 36, 0.03);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.custom-form-grid textarea {
    min-height: 150px;
    resize: vertical;
}

.custom-form-grid input:focus,
.custom-form-grid textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 4px var(--color-focus);
}

.custom-details-field {
    grid-column: 1 / -1;
}

.custom-form-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.custom-form-actions button,
.custom-form-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0.8rem 1.25rem;
    border-radius: 999px;
    font-weight: 800;
    font-size: var(--font-sm);
    text-decoration: none;
    text-align: center;
    width: 100%;
    min-width: 0;
    white-space: normal;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.custom-whatsapp-button {
    border: 1px solid #25D366;
    color: var(--color-on-primary);
    background: #25D366;
    box-shadow: 0 10px 22px rgba(37, 211, 102, 0.24);
}

.custom-whatsapp-button:hover {
    background: #1ebe5d;
    transform: translateY(-2px);
}

.custom-email-button {
    color: var(--color-primary-dark);
    background: var(--color-surface);
    border: 1px solid rgba(60, 142, 62, 0.26) !important;
}

.custom-email-button:hover {
    background: var(--color-secondary);
    border-color: var(--color-accent) !important;
    transform: translateY(-2px);
}

.custom-form-message {
    min-height: 1.3em;
    margin: 14px 0 0;
    color: var(--color-danger);
    font-size: var(--font-sm);
    font-weight: 700;
}

.custom-form-message:empty,
.custom-form-message[hidden] {
    display: none;
}

[dir="rtl"] .custom-showcase,
[dir="rtl"] .custom-inquiry-form {
    text-align: right;
}

[dir="rtl"] .custom-showcase-heading {
    text-align: center;
}




nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    
}

nav ul li {
    display: inline-block;
    margin: 0 15px;
}

nav ul li a {
    color: var(--color-on-primary);
    text-decoration: none;
    font-size: clamp(0.8rem, 0.6rem + 1vw, 1.375rem);
    transition: font-size 0.3s ease;
}

/* Products Section */
.container, .products-container, .product-list {
    width: 100%;
}
#products, #birds-products,#dogs-products,#tortoise-products,#cats-products {
    text-align: center;
    padding: 50px 20px;
    margin-top: 70px;
}

.products-container {
    display: grid;
    grid-template-columns: repeat(4, auto);
    justify-content: center;
    gap: 20px;
    margin: auto;
    padding: 0 15px; /* Add padding to prevent edge sticking */
    width: 100%;
    box-sizing: border-box;
}
.birds-products-container,.dogs-products-container,.tortoise-products-container,.cats-products-container {
    display: grid;
    grid-template-columns: repeat(6, auto);
    justify-content: center;
    gap: 20px;
}
.product-list{
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    max-width: 500px;
    display: block;
    background: var(--color-surface);
    padding: 0;
    border-radius: 0;
    box-shadow: var(--shadow-soft);
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}
.product {
    background: var(--color-surface);
    padding: 0;
    border-radius: 0;
    box-shadow: var(--shadow-soft);
    width: 150px;
    text-align: center;
    cursor: pointer;
    justify-content: center;
    overflow: hidden;
}
.product-list img{
    display: block;
    width: 100%;
    margin: 0;
    transition: all 0.2s ease-in-out; /* Smooth transition for all properties */
    transform: scale(1); /* Initial state */
    opacity: 1; /* Initial state */
    
}
.product img {
    display: block;
    width: 100%;
    margin: 0;
    border-radius: 0;
}

.product h3 ,.product-list h3{
    margin: 12px 12px 8px;
}

.product p ,.product-list p{
    margin: 0 12px 14px;
    font-size: var(--font-sm);
    color: var(--color-muted);
}

.product-list-view-link,
.product-details-button {
    display: none;
}

.product a{
    display: none;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    padding: var(--button-padding-block) var(--button-padding-inline);
    background-color: var(--color-accent);
    color: var(--color-on-primary);
    text-decoration: none;
    border-radius: var(--button-radius);
    font-weight: bold;
    font-size: var(--button-font-size);
    line-height: 1.2;
    box-sizing: border-box;
    min-height: 44px;
}

.product a:hover ,.product-list-view-link:hover{
    background-color: var(--color-accent-dark);
}
.product-list img:hover{
    transform: none;
}



/* About & Contact Sections */
#about {
    width: min(92%, 920px);
    text-align: center;
    padding: 42px 28px;
    margin: 70px auto 0;
    border-radius: 0;
    background: var(--color-surface);
    box-shadow: var(--shadow-soft);
}

#about h2 {
    margin: 0 0 18px;
}

.about-content {
    max-width: 760px;
    margin: 0 auto;
    color: var(--color-text);
    font-size: var(--font-md);
    font-weight: 400;
    line-height: 1.75;
    text-align: center;
}

.about-content p {
    margin: 0 0 14px;
}

.about-content p:last-child {
    margin-bottom: 0;
}

[dir="rtl"] .about-content,
.rtl .about-content {
    text-align: center;
}

#contact {
    width: 80%;
    text-align: center;
    padding: 40px 0;
    margin: auto;
 
}
.product-details-button {
    display: none;
    align-items: center;
    justify-content: center;
    background-color: var(--color-accent);
    color: var(--color-on-primary);
    border: none; /* Remove default border */
    padding: var(--button-padding-block) var(--button-padding-inline);
    border-radius: var(--button-radius);
    font-size: var(--button-font-size);
    line-height: 1.2;
    min-height: 44px;
    box-sizing: border-box;
    cursor: pointer; /* Changes cursor to pointer on hover */
    transition: background-color 0.3s; /* Smooth hover effect */
    margin-top: 10px; /* Adds space above the button */
  }
  
  /* Hover effect */
  .product-details-button:hover {
    background-color: var(--color-accent-dark);
  }



/* Modal Overlay */
#modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(43, 38, 33, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1049;
}

#modal-container.is-visible {
    visibility: visible;
    opacity: 1;
}

/* Modal Box */
.modal {
    background: var(--color-surface);
    width: 80%;
    max-width: 900px;
    max-height: 70vh;
    padding: 20px;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1101;
    overflow: hidden; /* Prevents double scrollbars */
}
/* Close Button */
.modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 10px;
    right: 15px;
    color: var(--color-muted);
    border: none;
    font-size: var(--font-sm);
    padding: 0.4rem 0.7rem;
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
    box-sizing: border-box;
}
.modal-close:hover{
    background-color: var(--color-danger);
    opacity: 80%;
    color: var(--color-on-primary);
    transition: background 0.5s;
}

/* Modal Layout */
.modal-content {
    display: flex;
    gap: 20px;
    flex: 1; /* Takes available space */
    overflow-y: hidden;/* Enables scrolling */
    padding-bottom: 20px; /* Space before footer */
}
.modal-footer {
    display: flex;
    justify-content: flex-end; /* Add this to align button to right */
    padding: 15px 0 0;
    border-top: 1px solid var(--color-border);
    margin-top: auto; /* Pushes footer to bottom */
    position: sticky;
    bottom: 0;
    z-index: 2;
}

/* Image Section */
.modal-image-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.modal-title {
    font-size: var(--font-lg);
    font-weight: 900;
    color: var(--color-text);
    margin-bottom: 10px;
}

.modal-description {
    max-height: 300px; /* Adjust as needed */
    padding-right: 10px; /* Prevents text from touching scrollbar */
    margin-bottom: 100px;
}

.modal-price {
    font-size: var(--font-md);
    font-weight: 900 ;
    color: var(--color-success);
    margin-bottom: 10px;
}
.modal-reserve-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--button-padding-block) var(--button-padding-inline);
    font-size: var(--button-font-size);
    color: var(--color-on-primary);
    background-color: var(--color-accent);
    border: none;
    border-radius: var(--button-radius);
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s;
    margin-left: auto;
    min-width: max-content;
    min-height: 44px;
    width: auto;
    box-sizing: border-box;
}

.modal-reserve-button:hover {
    background-color: var(--color-accent-dark);
}

.main-image {
    max-width: 80%;
    height: auto;
    border-radius: 0;
    transition: transform 0.3s ease-in-out;
}
.main-image:hover {
    transform: scale(1.05); /* Zoom in  */
    cursor: zoom-in;
}

/* Thumbnails */
.modal-gallery {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.gallery-image {
    width: 35%;
    height: 35%;
    cursor: pointer;
    border-radius:0;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.gallery-image:hover {
    border-color: var(--color-accent);
}

/* Text Section */
.modal-text-container {
    flex: 1;
    overflow-x: hidden;
    max-height: 80%;
}

.modal-text-container h1 {
    font-size: var(--font-lg);
    margin-bottom: 10px;
}

.modal-text-container p {
    font-size: var(--font-md);
    color: var(--color-text);
}
.rtl-modal {
    direction: rtl;
    text-align: right;
}

.rtl-modal .modal-footer {
    justify-content: flex-start !important;
}

.rtl-modal .modal-reserve-button {
    margin-left: 0;
    margin-right: auto;
}

.rtl-modal .modal-close {
    right: auto;
    left: 15px;
}
/* Footer Styles */
footer {
    background-color: var(--color-primary);
    color: var(--color-on-primary);
    padding: 30px 0;
    text-align: center;
    margin-top: 30px;
    width: 100%;

}


.footer-container {
    display: flex;
    flex-wrap: wrap; /* Allow items to wrap on small screens */
    justify-content: space-around;
    width: 100%;
    max-width: 1200px; /* Optional: Set a max width */
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.footer-section {
    flex: 1;
    min-width: 250px; /* Minimum width before wrapping */
    padding: 20px;
    box-sizing: border-box
}



.footer-section p, 
.footer-section ul {
    font-size: var(--font-sm);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: var(--color-on-primary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--color-secondary);
}

.footer-bottom {
    margin-top: 20px;
    font-size: var(--font-sm);
    border-top: 1px solid rgba(255, 250, 240, 0.34);
    padding-top: 15px;
    width: 100%;
}

.footer-section a {
    color: var(--color-secondary);
    font-weight: bold;
    text-decoration: none;
}

.footer-section a:hover {
    text-decoration: underline;
}
.highlight-text {
    color: var(--color-primary-dark);
    font-weight: bold; /* Makes text bold */
    background-color: var(--color-secondary);
    padding: 5px; /* Adds space inside the element */
    border-radius: 0; /* Soft rounded corners */
    display: inline-block; /* Ensures proper spacing */
}

/* MOBILE RESPONSIVENESS */

@media screen and (max-width: 768px) {
    :root {
        --top-header-height: 38px;
        --main-header-height: 68px;
        --font-xs: clamp(0.68rem, 0.62rem + 0.3vw, 0.78rem);
        --font-sm: clamp(0.78rem, 0.7rem + 0.4vw, 0.9rem);
        --button-font-size: clamp(0.72rem, 0.64rem + 0.4vw, 0.86rem);
        --button-padding-block: clamp(0.45rem, 0.38rem + 0.35vw, 0.6rem);
        --button-padding-inline: clamp(0.65rem, 0.55rem + 0.5vw, 0.95rem);
    }

    body, html {
        margin: 0;
        padding: 0;
        width: 100%;
        overflow-x: hidden; /* Prevents horizontal overflow */
    }

    body {
        padding-top: calc(var(--top-header-height) + var(--main-header-height));
    }
    .top-header {
        height: var(--top-header-height);
        padding: 0 10px;
        text-align: center;
        justify-content: space-between;
        
    }
    .social-icons {
        margin: 0;
        justify-content: center;
        max-width:100%;
        margin-right: 0;
        gap: 8px;
    }
    .icon-link {
        color: var(--color-on-primary);
        font-size: 0.95rem;
        width: 28px;
        height: 28px;
        transition: color 0.3s ease;
    }
    [dir="rtl"] .social-icons {
        margin-left: 0;
    }
    .offer-text {
        flex: 1;
        text-align: center;
        font-size: var(--font-xs);
        max-width: 70%;
    }
    [dir="rtl"] .offer-text {
        margin-left: 0;
    }
    /********************************OKAY************************************/
    header{
        display: grid;
        grid-template-columns: 72px minmax(0, 1fr) auto;
        align-items: center;
        gap: 8px;
        padding: 6px 10px;
        top: var(--top-header-height);
    }
    .language-switcher {
        gap: 3px; /* Reduce space between buttons */
        justify-content: flex-end;
        margin-right: 0;
    }
    [dir="rtl"] .language-switcher  {
        margin-right: 0;
    }
   
    .lang-btn {
        font-size: var(--font-xs);
        padding: 0.3rem 0.55rem;
        min-width: 2.5rem;
        width: auto;
        height: auto;
    }
    
    .header-img-link{
        width: 72px;
        max-width: none;
        margin: 0;
    }

    .header-img-link img {
        max-height: 46px;
    }
    

    .btn {
        padding: var(--button-padding-block) var(--button-padding-inline);
        font-size: var(--button-font-size);
        line-height: 1.1;
    }
    nav {
        width: 100%;
        min-width: 0;
    }
    nav ul {
       
        display: flex; /* Ensure flex layout */
        flex-direction: row; /* Force row layout */
        flex-wrap: nowrap;
        justify-content: center; /* Center items */
        gap: 5px; /* Space between items */
        width: 100%;
        margin-top: 0;
    }
    nav ul li {
        margin: 0; /* Reduce side margins */
    }
    nav ul li a {
        font-size: clamp(0.7rem, 0.58rem + 0.6vw, 0.9rem);
        font-weight: 900;
        white-space: nowrap; /* Prevent text wrapping */
    }
   
    /*******************Okay**********************/

    .welcome-section {
        
       margin-left: -5px;
       width: 100%;
       margin: auto;
       height: auto;
       padding: 25px 0;
       
    }

    .welcome-container {
        flex-direction: column;
        gap: 18px;
        padding: 0 16px;
        box-sizing: border-box;
    }

    .welcome-image,
    .welcome-content {
        width: 100%;
    }

    .welcome-image img {
        max-width: min(82vw, 320px);
        margin: 0 auto;
    }

    .welcome-content {
        text-align: center;
        padding-top: 0;
        margin: 0;
    }
    
    .welcome-content h1 {
        font-size: clamp(1.25rem, 0.95rem + 1.6vw, 2rem);
    }
    .welcome-content p {
        font-size: var(--font-sm);
    }
    .welcome-content .btn {
        padding: var(--button-padding-block) var(--button-padding-inline);
        font-size: var(--button-font-size);
        line-height: 1.1;
    }

    .search-section {
        padding: 14px 12px 0;
    }

    .hero-search {
        padding-top: 16px;
    }

    .hero-search .search-container {
        text-align: center;
    }

    .site-search {
        width: min(92vw, 420px);
        margin: 0 auto;
    }

    .site-search-input,
    .site-search-button {
        font-size: var(--font-xs);
    }

    .site-search-input {
        min-height: 42px;
        padding-block: 0.45rem;
    }

    .site-search-button {
        width: 34px;
        min-width: 34px;
        min-height: 34px;
    }

    .search-container h2 {
        margin-bottom: 8px;
        font-size: var(--font-md);
    }

    .search-result-card {
        grid-template-columns: minmax(0, 1fr) auto;
        padding: 10px;
    }

    .search-result-card .search-result-link {
        min-height: 34px;
        padding: 0.35rem 0.65rem;
    }

  
    .welcome-section.scrolled {
        opacity: 0.7 !important; /* Less fade on mobile */
    }
    
/***************************OKay******************************/
    .product {
        width: 100%;
        max-width: 100%; /* Ensure it respects grid column width */
        box-sizing: border-box; /* Include padding/border in width */
    }

    .product p,
    .product-list p,
    .modal-description,
    .modal-text-container p,
    .footer-section p,
    .footer-section ul {
        font-size: var(--font-sm);
    }

    .btn,
    .product a,
    .product-list-view-link,
    .product-details-button,
    .modal-reserve-button {
        line-height: 1.1;
    }
    .products-container {
        grid-template-columns: repeat(2, minmax(100px, 1fr)); /* One column for smaller screens */
    }
    
    .birds-products-container,
    .dogs-products-container,
    .tortoise-products-container,
    .cats-products-container {
        font-size: 9px;
        grid-template-columns: repeat(3, minmax(100px, 1fr)); /* 2 columns instead of 4 */
        gap: 10px; /* Shorthand for row-gap + column-gap */
        padding-top: 50px;
        width: 100%; /* Full width */
        box-sizing: border-box; /* Include padding in width */
        
    }

    
    .modal {
        width: 80%;
        max-height: 85vh;
        box-sizing: border-box;
    } 
    
    .modal-content {
        flex-direction: column;
    }
    .gallery-image {
        
        overflow-x: scroll;
       
    }
    
    .modal-footer {
        position: sticky;
        padding: 10px 0;
    }
    /***********************************OKAY*****************************/
    #about {
        width: min(100% - 28px, 620px);
        margin-top: 32px;
        padding: 24px 16px;
        font-weight: 400;
        opacity: 1;
    }

    #about h2 {
        margin-bottom: 12px;
    }

    .about-content {
        font-size: var(--font-sm);
        line-height: 1.7;
    }

    #contact {
        width: 95%;
        font-weight: 900;
        opacity: 95%;
        padding: 15px;
        
    }
    .footer-container {
        flex-direction: column; /* Stack sections vertically */
        align-items: center;
        gap: 30px; /* Space between stacked sections */
    }

    .footer-section {
        min-width: 100%; /* Take full width */
        padding: 0 15px 20px;
        text-align: center;
    }

    .footer-section h3 {
        font-size: var(--font-lg);
    }
   
}
@media screen and (max-width: 480px) {
    .footer-section {
        padding: 0 10px 15px;
    }
    
    .footer-section h3 {
        font-size: var(--font-md);
    }
    
    .footer-bottom {
        font-size: var(--font-xs);
    }
}
@media screen and (max-width: 480px) {
    :root {
        --top-header-height: 32px;
        --main-header-height: 58px;
        --font-xs: clamp(0.62rem, 0.56rem + 0.25vw, 0.72rem);
        --font-sm: clamp(0.72rem, 0.64rem + 0.35vw, 0.82rem);
        --button-font-size: clamp(0.68rem, 0.6rem + 0.35vw, 0.78rem);
        --button-padding-block: 0.42rem;
        --button-padding-inline: 0.62rem;
    }

    /* Reset and base styles */
    body, html {
        overflow-x: hidden;
    }

    body {
        padding-top: calc(var(--top-header-height) + var(--main-header-height));
    }

    /* Top Header */
    .top-header {
        padding: 0 8px;
        height: var(--top-header-height);
    }
    
    .social-icons {
        gap: 8px;
    }
    
    [dir="rtl"] .social-icons {
        margin-left: 0;
    }
    
    .offer-text {
        font-size: clamp(0.62rem, 0.56rem + 0.25vw, 0.75rem);
        max-width: 65%;
    }
    
    .icon-link {
        font-size: 0.86rem;
        width: 24px;
        height: 24px;
    }

    /* Main Header */
    header {
        grid-template-columns: 54px minmax(0, 1fr) auto;
        gap: 5px;
        padding: 5px 6px;
        top: var(--top-header-height);
    }
    
    .language-switcher {
        gap: 2px;
        margin-right: 0;
    }
    
    .lang-btn {
        font-size: clamp(0.62rem, 0.56rem + 0.25vw, 0.75rem);
        padding: 0.25rem 0.4rem;
        min-width: 1.9rem;
    }
    
    .header-img-link {
        width: 54px;
        max-width: none;
    }

    .header-img-link img {
        max-height: 38px;
    }

    /* Navigation */
    nav ul {
        gap: 4px;
        margin-top: 0;
    }
    
    nav ul li a {
        font-size: clamp(0.62rem, 0.5rem + 0.6vw, 0.78rem);
    }

    /* Welcome Section */
    .welcome-section {
        min-height: 430px;
        padding: 0;
        overflow: hidden;
        color: var(--color-on-primary);
        align-items: center;
    }

    .welcome-container {
        position: relative;
        min-height: 430px;
        padding: 0;
        width: 100%;
        justify-content: center;
        align-items: center;
    }

    .welcome-container::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 1;
        background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.58),
            rgba(0, 0, 0, 0.28) 48%,
            rgba(0, 0, 0, 0.62)
        );
    }

    .welcome-image {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
    }

    .welcome-image img {
        width: 100%;
        height: 100%;
        max-width: none;
        object-fit: cover;
        object-position: center;
        margin: 0;
    }

    .welcome-content {
        position: relative;
        z-index: 2;
        width: min(92%, 390px);
        padding-top: 0;
        margin: 0 auto;
        text-align: center;
        text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
        transform: translateY(18px);
    }
    
    .welcome-content h1 {
        font-size: clamp(1.45rem, 1.05rem + 1.8vw, 2rem);
        margin-bottom: 10px;
    }
    .welcome-content p {
        font-size: clamp(0.82rem, 0.72rem + 0.5vw, 0.98rem);
        margin-bottom: 8px;
        line-height: 1.45;
    }

    .welcome-content .btn {
        display: none;
    }

    .search-section {
        padding: 14px 0 0;
    }

    .site-search {
        width: 100%;
        margin: 0 auto;
    }

    .site-search-input,
    .site-search-button {
        font-size: var(--font-xs);
    }

    .site-search-input {
        min-height: 42px;
        padding-block: 0.42rem;
        padding-left: 0.85rem;
        padding-right: 2.9rem;
    }

    .site-search-button {
        width: 34px;
        min-width: 34px;
        min-height: 34px;
    }

    [dir="rtl"] .site-search-input {
        padding-right: 0.85rem;
        padding-left: 2.9rem;
    }

    .search-results {
        gap: 8px;
        margin-top: 10px;
        text-shadow: none;
    }

    .search-result-card {
        gap: 5px 8px;
    }

    .search-result-card h3 {
        font-size: var(--font-sm);
    }

    .search-result-card p {
        font-size: var(--font-xs);
    }

    .search-result-card .search-result-link {
        min-height: 32px;
        padding: 0.3rem 0.55rem;
    }

    .search-empty {
        padding: 10px 12px;
        font-size: var(--font-xs);
    }

    .custom-showcase {
        margin-top: 38px;
        padding: 40px 0 46px;
    }

    .custom-showcase-inner {
        width: min(100% - 22px, 680px);
        gap: 20px;
    }

    .custom-showcase-heading {
        max-width: 100%;
    }

    .custom-showcase-heading span {
        font-size: var(--font-xs);
        margin-bottom: 8px;
    }

    .custom-showcase-heading h2 {
        font-size: clamp(1.65rem, 1.25rem + 1.8vw, 2.1rem);
        line-height: 1.15;
    }

    .custom-showcase-heading p {
        margin-top: 10px;
        font-size: var(--font-sm);
        line-height: 1.65;
    }

    .custom-carousel {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .custom-carousel-button {
        display: none;
    }

    .custom-project-card {
        padding: 4px 0 16px;
        min-width: 100%;
    }

    .custom-project-card-frame {
        border-radius: 18px;
    }

    .custom-project-image {
        aspect-ratio: 4 / 3;
    }

    .custom-project-copy {
        padding: 16px;
    }

    .custom-project-copy h3 {
        font-size: 1.25rem;
    }

    .custom-project-copy p {
        max-width: 100%;
        font-size: var(--font-xs);
    }

    .custom-similar-button {
        width: 100%;
        justify-self: stretch;
    }

    .custom-form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .custom-inquiry-form {
        width: 100%;
        padding: 18px;
        border-radius: 18px;
    }

    .custom-inquiry-form h3 {
        margin-bottom: 14px;
        font-size: var(--font-lg);
    }

    .custom-form-grid input,
    .custom-form-grid textarea {
        min-height: 46px;
        border-radius: 14px;
        font-size: 16px;
    }

    .custom-form-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 9px;
        margin-top: 14px;
    }

    .custom-form-actions button,
    .custom-form-actions a {
        width: 100%;
        min-height: 46px;
    }

    .custom-form-message {
        font-size: var(--font-xs);
        line-height: 1.45;
    }

    /* Products */
    .birds-products-container,
    .dogs-products-container,
    .tortoise-products-container,
    .cats-products-container {
        
        gap: 8px;
        padding-top: 30px;
    }
    
    .product {
        padding: 0;
    }

    .product p,
    .product-list p,
    .modal-description,
    .modal-text-container p,
    .footer-section p,
    .footer-section ul {
        font-size: var(--font-sm);
    }

    .btn,
    .product a,
    .product-list-view-link,
    .product-details-button,
    .modal-reserve-button {
        line-height: 1.1;
    }

    /* Modal */
    .modal {
        width: 80%;
        max-height: 90vh;
        padding: 10px;
        box-sizing: border-box;
    }
    
    .modal-title {
        font-size: var(--font-lg);
    }
    
    .modal-reserve-button {
        width: auto;
        padding: var(--button-padding-block) var(--button-padding-inline);
        font-size: var(--button-font-size);
        line-height: 1.1;
    }

    /* About & Contact */
    #about {
        padding: 20px 14px;
        font-size: var(--font-sm);
    }

    #contact {
        padding: 10px;
        font-size: var(--font-sm);
    }

    /* Footer */
    .footer-container {
        gap: 20px;
    }
    
    .footer-section {
        padding: 0 10px 15px;
    }
    
    .footer-section h3 {
        font-size: var(--font-md);
        margin-bottom: 10px;
    }
    
    .footer-bottom {
        font-size: var(--font-xs);
        padding-top: 10px;
    }
}

