:root {
    --light-green: #91ef18;
    --dark-green: #144434;
    --lime-green: #eaff1d;
}

@font-face {
    font-family: "Allenoire";
    src: url("../assets/fonts/allenoire-allenoire-regular-400.woff2");
}

@font-face {
    font-family: "playfair";
    src: url("../assets/fonts/DMSans-VariableFont_opsz-wght.woff2");
}

@font-face {
    font-family: "Alexandria";
    src: url(../assets/fonts/Alexandria-VariableFont_wght.woff2);
}
@font-face {
    font-family: "Tajawal";
    src: url(../assets/fonts/Tajawal-Regular.woff2);
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "playfair", serif;
}

body,
html {
    width: 100%;
    height: 100%;
    /* overflow-x: hidden; */
}

body.rtl p,
body.rtl h2,
body.rtl h3,
body.rtl span,
body.rtl a,
body.rtl button,
body.rtl td,
body.rtl th {
    font-family: "Tajawal", sans-serif !important;
}
body.rtl h1 {
    font-family: "Alexandria", sans-serif !important;
    line-height: 1.5;
}

#main {
    width: 100%;
    min-height: 100vh;
    scroll-behavior: smooth;
}

#products-hero {
    width: 100%;
    height: 50vh;
    background: url("../assets/images/hero/brandGuideline.webp") no-repeat center
        center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    background-attachment: fixed;
}

#products-hero #content {
    width: 100%;
    height: 100%;
    background-color: rgba(20, 68, 52, 0.9);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: center;
    padding-bottom: 20px;
    /* color: var(--light-green); */
}

#products-hero #content h1 {
    font-size: 3rem;
    font-family: "Allenoire", sans-serif;
    margin-bottom: 10px;
}

/* ===== PRODUCT CATEGORIES SECTION ===== */

#product-categories {
    padding: 4rem 6vw;
    background: white;
    z-index: 10;
    position: relative;
}

.categories-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.categories-top {
    text-align: center;
    /* margin-bottom: 3rem; */
}

.categories-left {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.categories-left #dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--light-green);
    position: relative;
}

.categories-left #dot::before {
    content: "";
    position: absolute;
    top: -5px;
    left: -5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--light-green);
    opacity: 0.3;
    animation: dotRipple 2s ease-in-out infinite;
}

.categories-left h2 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--light-green);
    font-family: "Allenoire", sans-serif;
}

.categories-top h1 {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--dark-green);
    margin-bottom: 1rem;
    font-family: "Allenoire", sans-serif;
}

.categories-top p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Category Pills Design */
.categories-pills {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.category-pill {
    background: white;
    border: 2px solid #e5e5e5;
    border-radius: 50px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
}

.category-pill:before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(145, 239, 24, 0.1),
        transparent
    );
    transition: left 0.5s;
}

.category-pill:hover {
    border-color: var(--light-green);
    color: var(--dark-green);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(145, 239, 24, 0.15);
}

.category-pill:hover:before {
    left: 100%;
}

.category-pill.active {
    background: linear-gradient(135deg, var(--light-green), #7ed321);
    border-color: var(--light-green);
    color: var(--dark-green);
    font-weight: 600;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(145, 239, 24, 0.25);
}

.category-pill.active:before {
    display: none;
}

.pill-text {
    position: relative;
    z-index: 1;
}

/* Mobile Dropdown */
.categories-dropdown {
    display: none;
    margin-top: 2rem;
    position: relative;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.dropdown-button {
    width: 100%;
    background: white;
    border: 2px solid #e5e5e5;
    border-radius: 50px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    position: relative;
    overflow: hidden;
}

.dropdown-button:before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(145, 239, 24, 0.1),
        transparent
    );
    transition: left 0.5s;
}

.dropdown-button:hover {
    border-color: var(--light-green);
    color: var(--dark-green);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(145, 239, 24, 0.15);
}

.dropdown-button:hover:before {
    left: 100%;
}

.dropdown-button.active {
    background: linear-gradient(135deg, var(--light-green), #7ed321);
    border-color: var(--light-green);
    color: var(--dark-green);
    font-weight: 600;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(145, 239, 24, 0.25);
}

.dropdown-button.active:before {
    display: none;
}

.dropdown-arrow {
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.dropdown-button.open .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e5e5e5;
    border-radius: 20px;
    margin-top: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.dropdown-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-option {
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    position: relative;
}

.dropdown-option:last-child {
    border-bottom: none;
}

.dropdown-option:first-child {
    border-radius: 18px 18px 0 0;
}

.dropdown-option:last-child {
    border-radius: 0 0 18px 18px;
}

.dropdown-option:only-child {
    border-radius: 18px;
}

.dropdown-option:hover {
    background: rgba(145, 239, 24, 0.1);
    color: var(--dark-green);
}

.dropdown-option.active {
    background: linear-gradient(135deg, var(--light-green), #7ed321);
    color: var(--dark-green);
    font-weight: 600;
}

/* ===== PRODUCTS GRID SECTION ===== */

#products-grid {
    position: relative;
    z-index: 1;

    padding: 1rem 6vw 3rem 6rem;
    background: white;
}

.products-wrapper {
    max-width: 1400px;
    margin: 0 auto;
}

.products-top {
    text-align: center;
    margin-bottom: 4rem;
}

.products-left {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.products-left #dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--light-green);
    position: relative;
}

.products-left #dot::before {
    content: "";
    position: absolute;
    top: -5px;
    left: -5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--light-green);
    opacity: 0.3;
    animation: dotRipple 2s ease-in-out infinite;
}

.products-left h2 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--light-green);
    /* font-family: "Allenoire", sans-serif; */
}

.products-top h1 {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--dark-green);
    margin-bottom: 1rem;
    font-family: "Allenoire", sans-serif;
}

.products-container {
    display: flex;
    flex-wrap: wrap;
    /* grid-template-columns: repeat(auto-fit, minmax(400px, 0fr)); */
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    width: 400px;
    position: relative;
    transition: all ease 0.3s;
}

.product-card #pcardbtn {
    position: absolute;
    top: 1.25vw;
    right: 1.5vw;
    width: 2.5vw;
    height: 2.5vw;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100%;
    background-color: var(--light-green);
    color: var(--dark-green);
    /* font-size: 0.25vw; */
    cursor: pointer;
}

.product-card #pcardbtn svg {
    transform: scale(0.4);
    transition: all ease-in-out 0.3s;
}

.product-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 20px 50px rgba(20, 68, 52, 0.15);
}

.product-card:hover #pcardbtn svg {
    transform: scale(0.5);
}
.product-card:hover .product-info h3 {
    color: var(--light-green);
    transition: all ease 0.3s;
}
.product-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform ease 0.2s;
}

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

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-badge.featured {
    background-color: var(--light-green);
    color: var(--dark-green);
}

.product-badge.new {
    background: #ff6b6b;
    color: white;
}

.product-badge.premium {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: var(--dark-green);
}

.product-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem;
    height: calc(100% - 300px);
}

.product-info h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--dark-green);
    /* margin-bottom: 1rem; */
    /* font-family: "Allenoire", sans-serif; */
}

.product-description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.product-specs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.npk-ratio,
.product-type {
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.npk-ratio {
    background: var(--light-green);
    color: var(--dark-green);
}

.product-type {
    background: #f0f0f0;
    color: #666;
}

.package-sizes {
    margin-bottom: 2rem;
}

.size-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-green);
    margin-bottom: 0.8rem;
}

.size-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.size-btn {
    padding: 8px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    background: white;
    color: #666;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.size-btn:hover {
    border-color: var(--light-green);
    color: var(--dark-green);
}

.size-btn.active {
    border-color: var(--light-green);
    background: var(--light-green);
    color: var(--dark-green);
}

.product-actions {
    display: flex;
    gap: 1rem;
}

.btn-primary {
    flex: 1;
    padding: 12px 20px;
    background: var(--dark-green);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--light-green);
    color: var(--dark-green);
}

.btn-secondary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    color: var(--dark-green);
    border: 2px solid var(--dark-green);
    border-radius: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--dark-green);
    color: white;
}

@media (max-width: 1024px) {
    .product-card #pcardbtn {
        width: 38px;
        height: 38px;
        top: 4vw;
        right: 5vw;
    }
    .product-card #pcardbtn svg {
        transform: scale(0.3);
    }
    .product-card:hover #pcardbtn svg {
        transform: scale(0.4);
    }
}
/* ===== DOWNLOAD CENTER SECTION ===== */

#download-center {
    background: url("../assets/images/hero/brandGuideline.webp");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    position: relative;
}

.download-wrapper {
    padding: 6rem 6vw;
    background-color: rgba(20, 68, 52, 0.9);
    backdrop-filter: blur(4px);
    position: relative;
}

.download-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 4rem;
    align-items: center;
}

.download-info h1 {
    font-size: 2.8rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1.5rem;
    font-family: "Allenoire", sans-serif;
    line-height: 1.2;
}

.download-info p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.download-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(145, 239, 24, 0.15);
    color: var(--lime-green);
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.catalog-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.feature svg {
    width: 16px;
    height: 16px;
    transform: rotate(-90deg);
    color: var(--light-green);
}

.catalog-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.catalog-meta span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    font-weight: 600;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
}

.download-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.catalog-preview {
    position: relative;
}

.preview-icon {
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.download-btn-main {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--light-green);
    color: var(--dark-green);
    border: none;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.download-btn-main:before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s;
}

.download-btn-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(145, 239, 24, 0.4);
}

.download-btn-main:hover:before {
    left: 100%;
}

.download-btn-main:active {
    transform: translateY(-1px);
}

/* Responsive Design for Download Section */
@media (max-width: 1024px) {
    .download-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .download-info h1 {
        font-size: 2.4rem;
    }

    .catalog-features {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto 2rem;
    }
}

/* Animation keyframes */
@keyframes dotRipple {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.1;
    }
    100% {
        transform: scale(1);
        opacity: 0.3;
    }
}

/* ===== ANIMATIONS AND INTERACTIONS ===== */

@keyframes dotRipple {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.4);
        opacity: 0.1;
    }
    100% {
        transform: scale(1);
        opacity: 0.3;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.section-fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.section-fade-in.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Category card hover effects */
.category-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0);
    will-change: transform, box-shadow;
}

.category-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(20, 68, 52, 0.15);
}

.category-card:active {
    transform: translateY(-4px) scale(1.01);
}

.category-card.active {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(145, 239, 24, 0.25);
}

/* Product card image zoom effect */
.product-image {
    overflow: hidden;
    border-radius: 15px 15px 0 0;
}

.product-image img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

/* Size button ripple effect */
.size-btn {
    position: relative;
    overflow: hidden;
}

.size-btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(145, 239, 24, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
}

.size-btn:active::before {
    width: 100px;
    height: 100px;
}

/* Download card pulse animation */
.download-card {
    transition: all 0.3s ease;
}

.download-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(255, 255, 255, 0.1);
}

/* Button loading animation */
.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Focus states for accessibility */
.category-card:focus-visible,
.product-card:focus-visible,
.size-btn:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.download-btn:focus-visible {
    outline: 3px solid var(--light-green);
    outline-offset: 2px;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet Styles */
@media (max-width: 1024px) {
    #product-categories,
    #products-grid {
        padding: 4rem 5vw;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .products-container {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 2rem;
    }

    .download-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

/* Mobile Landscape and Smaller Tablets */
@media (max-width: 768px) {
    #products-hero #content h1 {
        font-size: 2.5rem;
    }

    #product-categories,
    #products-grid {
        padding: 3rem 5vw;
    }

    .categories-top,
    .products-top,
    .download-top {
        margin-bottom: 3rem;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .category-card {
        padding: 1.5rem;
    }

    .categories-top h1 {
        font-size: 2rem;
    }

    .categories-pills {
        display: none;
    }

    .categories-dropdown {
        display: block;
    }

    .products-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-card {
        max-width: 500px;
        width: 350px;
        margin: 0 auto;
    }

    .product-image {
        height: 250px;
    }

    .product-info {
        padding: 1.5rem;
    }

    .product-actions {
        flex-direction: column;
        gap: 0.8rem;
    }

    .btn-secondary {
        justify-content: center;
    }

    .download-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .download-card {
        padding: 1.5rem;
    }

    .file-info {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Mobile Portrait */
@media (max-width: 480px) {
    #products-hero {
        height: 40vh;
    }

    #products-hero #content h1 {
        font-size: 2rem;
    }

    #product-categories,
    #products-grid {
        padding: 2.5rem 4vw;
    }

    .categories-top h1,
    .products-top h1,
    .download-top h1 {
        font-size: 2rem;
        line-height: 1.3;
    }

    .categories-top p,
    .download-top p {
        font-size: 1rem;
    }

    .category-card,
    .download-card {
        padding: 1.2rem;
    }

    .category-card h3,
    .download-card h3 {
        font-size: 1.1rem;
    }

    .product-info h3 {
        font-size: 1.2rem;
    }

    .product-description {
        font-size: 0.9rem;
    }

    .size-options {
        gap: 0.3rem;
    }

    .size-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .btn-primary,
    .btn-secondary,
    .download-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

/* Very Small Mobile Devices */
@media (max-width: 360px) {
    #product-categories,
    #products-grid {
        padding: 2rem 3vw;
    }

    #products-hero #content h1 {
        font-size: 1.8rem;
    }

    .categories-top h1,
    .products-top h1,
    .download-top h1 {
        font-size: 1.6rem;
    }

    .product-image {
        height: 180px;
    }

    .product-info {
        padding: 1.2rem;
    }

    .size-options {
        justify-content: center;
    }
}

/* ===== PRODUCT MODAL STYLES ===== */
.product-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-modal.active {
    display: flex;
    opacity: 1;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: white;
    width: 95%;
    max-width: 1200px;
    max-height: 90vh;
    margin: auto;
    border-radius: 20px;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-modal.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-header {
    padding: 2rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8fffe 0%, #f0f8f5 100%);
}

.modal-title-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.modal-header h2 {
    font-size: 2rem;
    color: #144434;
    font-weight: 700;
    margin: 0;
}

.modal-npk-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--light-green), #7ed321);
    color: var(--dark-green);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 8px rgba(145, 239, 24, 0.3);
}

.modal-close {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(20, 68, 52, 0.1);
}

.modal-close svg {
    color: #144434;
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

.modal-left {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal-image-container {
    position: relative;
    background: #f8fffe;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 1;
}

.modal-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-badges {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.modal-badges .product-badge {
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 0.5rem;
}

.modal-gallery img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease;
    border: 2px solid transparent;
}

.modal-gallery img:hover {
    transform: scale(1.05);
}

.modal-gallery img.active {
    border-color: #4a7c59;
}

.modal-right {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.modal-section h3 {
    color: #144434;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #4a7c59;
}

.modal-section p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.key-benefits-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 1rem;
    background: #f8fffe;
    border-radius: 10px;
    border-left: 4px solid #4a7c59;
}

.benefit-icon {
    color: #4a7c59;
    font-size: 1.2rem;
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.benefit-text {
    color: #666;
    line-height: 1.5;
    flex: 1;
}

.package-sizes-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.package-size-item {
    background: #f8fffe;
    border: 2px solid #e5f2e9;
    border-radius: 25px;
    padding: 0.8rem 1.5rem;
    color: #4a7c59;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.package-size-item:hover {
    border-color: #4a7c59;
    background: #e5f2e9;
}

.suitable-for-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.suitable-item {
    background: linear-gradient(135deg, #4a7c59 0%, #65a572 100%);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.specifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.spec-item {
    background: #f8fffe;
    padding: 1.2rem;
    border-radius: 10px;
    border: 1px solid #e5f2e9;
}

.spec-label {
    color: #144434;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.spec-value {
    color: #4a7c59;
    font-weight: 700;
    font-size: 1.1rem;
}

.application-info {
    background: #f8fffe;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e5f2e9;
}

.application-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.application-item h4 {
    color: #144434;
    font-weight: 600;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.application-item ul {
    list-style: none;
    padding: 0;
}

.application-item li {
    color: #666;
    margin-bottom: 0.5rem;
    padding-left: 1.2rem;
    position: relative;
}

.application-item li::before {
    content: "•";
    color: #4a7c59;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.package-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.package-option {
    background: #f8fffe;
    border: 2px solid #e5f2e9;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.package-option:hover {
    border-color: #4a7c59;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(74, 124, 89, 0.1);
}

.package-option.selected {
    border-color: #4a7c59;
    background: linear-gradient(135deg, #4a7c59 0%, #65a572 100%);
    color: white;
}

.package-size {
    font-size: 1.5rem;
    font-weight: 700;
    color: #144434;
    margin-bottom: 0.5rem;
}

.package-option.selected .package-size {
    color: white;
}

.package-type {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.package-option.selected .package-type {
    color: rgba(255, 255, 255, 0.9);
}

.modal-actions {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    margin-top: auto;
}

.modal-actions .btn-primary,
.modal-actions .btn-secondary {
    flex: 1;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.modal-actions .btn-primary {
    background: linear-gradient(135deg, #4a7c59 0%, #65a572 100%);
    color: white;
}

.modal-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 124, 89, 0.3);
}

.modal-actions .btn-secondary {
    background: #f8fffe;
    color: #4a7c59;
    border: 2px solid #e5f2e9;
}

.modal-actions .btn-secondary:hover {
    border-color: #4a7c59;
    background: #e5f2e9;
}

/* Modal Responsive Design */
@media (max-width: 768px) {
    .modal-content {
        width: 98%;
        max-height: 95vh;
        margin: 1rem auto;
    }

    .modal-body {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .modal-header {
        padding: 1.5rem;
    }

    .modal-title-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .modal-header h2 {
        font-size: 1.5rem;
    }

    .modal-npk-badge {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }

    .specifications-grid {
        grid-template-columns: 1fr;
    }

    .application-grid {
        grid-template-columns: 1fr;
    }

    .package-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .modal-actions {
        flex-direction: column;
    }
}

/* ===== COMPOSITION TABLE STYLES ===== */

.composition-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.composition-table thead {
    background: linear-gradient(135deg, var(--dark-green), #1a5a42);
}

.composition-table thead th {
    color: white;
    padding: 1rem;
    font-weight: 600;
    text-align: left;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.composition-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.composition-table tbody tr:last-child {
    border-bottom: none;
}

.composition-table tbody tr:hover {
    background-color: rgba(145, 239, 24, 0.05);
}

.composition-table tbody td {
    padding: 0.875rem 1rem;
    font-size: 1.1rem;
    color: #333;
}

.composition-table tbody td:first-child {
    font-weight: 500;
    color: var(--dark-green);
}

.composition-table tbody td:last-child {
    font-weight: 600;
    color: var(--dark-green);
    text-align: right;
}

/* RTL Support for Composition Table */
body.rtl .composition-table thead th {
    text-align: right;
}

body.rtl .composition-table tbody td {
    text-align: right;
}

body.rtl .composition-table tbody td:last-child {
    text-align: left;
}

/* Mobile Responsive for Table */
@media (max-width: 768px) {
    .composition-table {
        font-size: 0.85rem;
    }

    .composition-table thead th,
    .composition-table tbody td {
        padding: 0.75rem 0.5rem;
    }
}

/* ===== RTL LANGUAGE SUPPORT ===== */

/* RTL Hero Section */
body.rtl #products-hero #content h1 {
    font-family: "Alexandria", sans-serif !important;
    line-height: 1.2;
}

/* RTL Category Pills Section */
body.rtl .categories-left {
    /* flex-direction: row-reverse; */
}

body.rtl .categories-left #dot {
    margin-left: 1rem;
    margin-right: 0;
}

body.rtl .category-pill {
    text-align: center;
}

body.rtl .dropdown-button {
    text-align: right;
}

body.rtl .dropdown-menu {
    text-align: right;
}

/* RTL Products Grid Section */
body.rtl .products-left {
    /* flex-direction: row-reverse; */
}

body.rtl .products-left #dot {
    margin-left: 1rem;
    margin-right: 0;
}

body.rtl .products-container {
    /* flex-direction: row-reverse; */
}

body.rtl .product-card {
    text-align: right;
}

body.rtl .product-card #pcardbtn {
    right: auto;
    left: 1.5vw;
}

body.rtl .product-badge {
    left: auto;
    right: 15px;
    font-family: "Tajawal";
}

body.rtl .product-specs {
    flex-direction: row-reverse;
}

body.rtl .size-options {
    flex-direction: row-reverse;
}

body.rtl .product-actions {
    flex-direction: row-reverse;
}

/* RTL Download Center Section */
body.rtl .download-content {
    grid-template-columns: 400px 1fr;
    direction: rtl;
}

body.rtl .download-info {
    text-align: right;
}

body.rtl .download-badge {
    /* flex-direction: row-reverse; */
    gap: 0.75rem;
}

body.rtl .catalog-features {
    direction: rtl;
}

body.rtl .feature {
    /* flex-direction: row-reverse; */
    text-align: right;
}

body.rtl .feature svg {
    transform: rotate(90deg);
}

body.rtl .catalog-meta {
    flex-direction: row-reverse;
    justify-content: flex-end;
    width: max-content;
}

/* RTL Modal Styles */
body.rtl .modal-header {
    /* flex-direction: row-reverse; */
}

body.rtl .modal-title-wrapper {
    /* flex-direction: row-reverse; */
}

body.rtl .modal-header h2 {
    text-align: right;
}

body.rtl .modal-npk-badge {
    font-family: "Tajawal", sans-serif;
}

body.rtl .modal-body {
    direction: rtl;
}

body.rtl .modal-left {
    text-align: right;
}

body.rtl .modal-badges {
    right: auto;
    left: 1rem;
}

body.rtl .modal-section {
    text-align: right;
}

body.rtl .modal-section h3 {
    text-align: right;
    border-bottom: 2px solid #4a7c59;
    border-right: none;
}

body.rtl .benefit-item {
    /* flex-direction: row-reverse; */
    text-align: right;
    border-left: none;
    border-right: 4px solid #4a7c59;
}

body.rtl .benefit-icon {
    margin-right: 0;
    margin-left: 0.8rem;
}

body.rtl .package-sizes-list {
    flex-direction: row-reverse;
}

body.rtl .suitable-for-list {
    flex-direction: row-reverse;
}

body.rtl .application-item h4 {
    flex-direction: row-reverse;
}

body.rtl .application-item li {
    padding-left: 0;
    padding-right: 1.2rem;
    text-align: right;
}

body.rtl .application-item li::before {
    left: auto;
    right: 0;
}

body.rtl .modal-actions {
    flex-direction: row-reverse;
}

/* RTL Font Support */
body.rtl #products-hero #content h1,
body.rtl .categories-top h1,
body.rtl .products-top h1,
body.rtl .download-info h1 {
    font-family: "Alexandria", sans-serif !important;
}

body.rtl .categories-left h2,
body.rtl .products-left h2,
body.rtl .category-pill,
body.rtl .dropdown-button,
body.rtl .dropdown-option,
body.rtl .product-info h3,
body.rtl .product-description,
body.rtl .size-btn,
body.rtl .btn-primary,
body.rtl .btn-secondary,
body.rtl .download-info p,
body.rtl .feature,
body.rtl .modal-header h2,
body.rtl .modal-section h3,
body.rtl .modal-section p,
body.rtl .benefit-text,
body.rtl .package-size-item,
body.rtl .suitable-item,
body.rtl .spec-label,
body.rtl .spec-value,
body.rtl .application-item h4,
body.rtl .application-item li {
    font-family: "Tajawal", sans-serif !important;
}

/* RTL Responsive Adjustments */
@media (max-width: 1024px) {
    body.rtl .product-card #pcardbtn {
        left: 2.5vw;
        right: auto;
    }

    body.rtl .download-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    body.rtl .download-info {
        text-align: center;
    }

    body.rtl .download-badge,
    body.rtl .feature,
    body.rtl .catalog-meta {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    body.rtl .categories-left,
    body.rtl .products-left {
        justify-content: center;
    }

    body.rtl .categories-pills {
        justify-content: center;
    }

    body.rtl .products-container {
        flex-direction: column;
        align-items: center;
    }

    body.rtl .product-actions {
        flex-direction: column;
    }

    body.rtl .modal-actions {
        flex-direction: column;
    }

    body.rtl .benefit-item {
        flex-direction: row-reverse;
    }
    body.rtl .catalog-meta {
        width: 100%;
    }
}

@media (max-width: 480px) {
    body.rtl .download-info {
        text-align: center;
    }

    body.rtl .catalog-features {
        grid-template-columns: 1fr;
    }

    body.rtl .feature {
        justify-content: center;
    }
}
