/* General Reset & Body */
body {
    font-family: var(--font-main);
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* RTL Typography enhancements */
html[dir="rtl"] body {
    line-height: 1.8;
    letter-spacing: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-main);
    font-weight: 700;
}

/* Base Utilities */
.min-vh-80 {
    min-height: 80vh;
}

.text-primary-green {
    color: var(--primary-green) !important;
}

.text-brown {
    color: var(--brown-accent) !important;
}

.text-green-accent {
    color: var(--green-accent-1) !important;
}

.bg-primary-green {
    background-color: var(--primary-green) !important;
}

.bg-light-tint {
    background-color: var(--light-tint) !important;
}

.bg-brown {
    background-color: var(--brown-accent) !important;
}

.section-padding {
    padding: 5rem 0;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
    color: white;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--green-accent-1);
    border-color: var(--green-accent-1);
    color: white;
}

.btn-accent {
    background-color: var(--brown-accent);
    border-color: var(--brown-accent);
    color: white;
}

.btn-accent:hover,
.btn-accent:focus {
    background-color: #a66a3b;
    border-color: #a66a3b;
    color: white;
}

/* Salla Button */
.salla-btn {
    background-color: var(--brown-accent);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.salla-btn:hover {
    background-color: #a66a3b;
    color: white;
    transform: translateY(-2px);
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50px;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 100;
    transition: all 0.3s;
    inset-inline-end: 30px;
    /* Logical property handles LTR right, RTL left automatically */
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: #FFF;
}

/* Top Announcement Bar */
.top-bar {
    background-color: var(--primary-green);
    color: white;
    font-size: 0.875rem;
    padding: 0.5rem 0;
}

/* Sticky Navbar */
.sticky-navbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    background: #fff;
    transition: box-shadow 0.3s ease;
}

.sticky-navbar.shadow-active {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.nav-link {
    font-weight: 600;
    color: #555;
    padding: 1rem !important;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-green) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0.5rem;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background-color: var(--primary-green);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link.active::after,
.nav-link:hover::after {
    transform: scaleX(1);
}

html[dir="rtl"] .nav-link::after {
    transform-origin: right;
}

/* Cards */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.category-card {
    border-radius: 15px;
    transition: all 0.3s ease;
}

.category-card:hover {
    background-color: var(--light-tint) !important;
    transform: scale(1.03);
}

/* Custom Lightbox (Vanilla JS) */
.custom-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
}

.custom-lightbox.active {
    display: flex;
}

.custom-lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    inset-inline-end: 30px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    line-height: 1;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

/* Footer Links */
.footer-links a {
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--light-tint) !important;
    padding-inline-start: 8px;
}

.transition {
    transition: all 0.3s ease;
}

.hover-white:hover {
    color: white !important;
}

/* RTL Helpers for directions / icons if Bootstrap falls short */
html[dir="rtl"] .bi-chevron-right::before {
    content: "\F284";
}

html[dir="rtl"] .bi-chevron-left::before {
    content: "\F285";
}

html[dir="rtl"] .bi-arrow-right::before {
    content: "\F12F";
}

html[dir="rtl"] .bi-arrow-left::before {
    content: "\F130";
}

/* Details / Usage Lists */
.benefits-list {
    list-style: none;
    padding-inline-start: 0;
}

.benefits-list li {
    position: relative;
    padding-inline-start: 1.8rem;
    margin-bottom: 0.8rem;
}

.benefits-list li::before {
    content: '\F26E';
    /* bootstrap icon check-circle */
    font-family: bootstrap-icons;
    position: absolute;
    inset-inline-start: 0;
    top: 2px;
    color: var(--primary-green);
    font-size: 1.1rem;
}