/* Fonts */


@font-face {
    font-family: "dana-black";
    src: url("../fonts/dana-black.ttf") format("truetype");
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: "dana-bold";
    src: url("../fonts/dana-bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: "dana-medium";
    src: url("../fonts/dana-medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: "dana-light";
    src: url("../fonts/dana-light.ttf") format("truetype");
    font-weight: 300;
    font-style: normal;
}

/* Reset & Base Styles */

:root {
    --container-max: 1440px;
    --container-padding: clamp(1rem, 5vw, 3rem);
    --border-radius: clamp(0.5rem, 2vw, 1rem);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-primary: 'dana-medium', system-ui, -apple-system, sans-serif;
}


/* Apply font to all elements */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-primary);
}

body {
    line-height: 1.5;
    color: #333;
    background: #fff;
}


/* Container Setup */

.hero-container,
.nav-container,
.main-container,
.footer-container {
    width: 100%;
    container-type: inline-size;
}

.hero-container {
    container-name: hero;
}

.nav-container {
    container-name: nav;
}

.main-container {
    container-name: main;
}

.footer-container {
    container-name: footer;
}


/* Container Content */

.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 5vw, 3rem);
}


/* Hero Section */

.hero {
    width: 100%;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(2rem, 5vh, 3rem) 0;
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.1;
    z-index: 0;
}

.hero > .container,
.hero > .container * {
    position: relative;
    z-index: 1;
}

.hero-content {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 5vw, 3rem);
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: #2d3748;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    font-weight: 400;
    color: #4a5568;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}


/* Section Titles */

.section-title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.section-subtitle {
    font-size: clamp(0.875rem, 1.25vw, 1rem);
    font-weight: 400;
    color: #4a5568;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}


/* Header Styles */

header {
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.header-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 1rem clamp(1rem, 5vw, 3rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f59d10;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo img {
    width: 2rem;
    height: 2rem;
    object-fit: contain;
}


/* Navigation */

.nav {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav.hidden {
    transform: translateY(-100%);
}

.nav.visible {
    transform: translateY(0);
}

.nav.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-content {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 5vw, 3rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 70px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}


/*@media (max-width: 768px) {*/
/*    .nav-content {*/
/*        padding: 0.6rem 1rem;*/
/*        .logo {*/
/*            font-size: 1.2rem;*/
/*        }*/
/*        .nav-link {*/
/*            font-size: 13px;*/
/*        }*/
/*    }*/

/*    .nav-links {*/

/*    }*/

/*    .mobile-menu-btn {*/
/*        display: block;*/
/*    }*/
/*}*/

@media (max-width: 768px) {
    .nav-content {
        padding: 0.6rem 1rem;
    }
    .logo {
        font-size: 1.2rem;
    }

    .nav-link {
        font-size: 13px;
    }

    .nav-content {
        padding: 0.6rem 1rem;
    }
}


@media (max-width: 370px) {
    
    .nav-content {
        padding: 0.4rem 0.6rem;
    }
    .logo {
        font-size: 0.8rem;
    }

    .nav-link {
        font-size: 8px;
    }

    .nav-content {
        padding: 0.4rem 0.6rem;
    }
}

@media (max-width: 300px) {
    .nav-content {
        padding: 0.2rem 0.4rem;
    }
  .nav-link {
    font-size: 6px;
  }

  .logo {
            font-size: 0.7rem;
  }
}

/* Mobile Menu Button */

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: #1a202c;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: currentColor;
    margin: 4px 0;
    transition: all 0.3s ease;
}


/* Main Content */

.main-content {
    padding: 2rem 0;
    background: #fff;
    position: relative;
    z-index: 2;
}


/* Products Grid */

.products-grid {
    display: grid;
    gap: 2rem;
    padding: 1rem;
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
}


/* Responsive Grid Layout */

@media (min-width: 1400px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) and (max-width: 1399px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .products-grid {
        grid-template-columns: 1fr;
        padding: 0.5rem;
    }
}


/* Product Section */

.product-section {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: clamp(0.5rem, 2vw, 1rem);
}

.product-section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}


/* Product Cards */

.product-card {
    width: 100%;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.product-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-image {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    position: relative;
    background: #f8f9fa;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    background: linear-gradient(to bottom, #fff, #fafafa);
    text-align: center;
    min-height: 200px;
}

.product-title {
    cursor: pointer;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f59d10;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.unit {
    font-size: 0.875rem;
    color: #4a5568;
    font-weight: 500;
    margin-top: -0.25rem;
}

.min-order {
    font-size: 0.875rem;
    color: #4a5568;
    font-weight: 500;
    margin-top: 0.25rem;
}

.product-description {
    font-size: 0.875rem;
    color: #4a5568;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}


/* Remove order button styles */

.order-btn,
.order-btn::before,
.order-btn:hover,
.order-btn:active {
    display: none;
}


/* Responsive Styles for Product Cards */

@media (max-width: 1023px) {
    .product-info {
        padding: 1.25rem;
        min-height: 180px;
    }

    .product-title {
        font-size: 1.125rem;
    }

    .price {
        font-size: 1.375rem;
    }
}

@media (max-width: 767px) {
    .product-info {
        padding: 1rem;
        min-height: 160px;
    }

    .product-title {
        font-size: 1rem;
    }

    .price {
        font-size: 1.25rem;
    }

    .unit,
    .min-order {
        font-size: 0.8125rem;
    }

    .product-description {
        font-size: 0.8125rem;
    }
}


/* Animation for product cards */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.5s ease forwards;
}


/* Footer */

.footer {
    background: #1a202c;
    color: #e2e8f0;
    padding: 4rem 0;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
}

.footer-section p {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #cbd5e0;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-section ul li {
    font-size: 0.9375rem;
    color: #cbd5e0;
}

.footer-section ul li a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.875rem;
    color: #a0aec0;
}


/* Responsive Styles */

@media (max-width: 768px) {
    .footer {
        padding: 3rem 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-section {
        text-align: center;
    }

    .footer-section ul {
        align-items: center;
    }
}


/* Utility Classes */

.w-full {
    width: 100%;
}

.min-w-full {
    min-width: 100%;
}

.max-w-full {
    max-width: 100%;
}

.min-w-0 {
    min-width: 0;
}

.max-w-container {
    max-width: 1440px;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.p-responsive {
    padding: clamp(1rem, 5vw, 3rem);
}

.gap-responsive {
    gap: clamp(1rem, 3vw, 2rem);
}


/* Animations */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}


/* Container Query Fallbacks */

@supports not (container-type: inline-size) {
    .hero-container,
    .nav-container,
    .main-container,
    .footer-container,
    .products-grid,
    .product-card,
    .footer-grid {
        width: 100%;
    }

    @media (min-width: 1200px) {
        .products-grid {
            grid-template-columns: repeat(4, 1fr);
        }
    }
    @media (min-width: 768px) and (max-width: 1199px) {
        .products-grid {
            grid-template-columns: repeat(3, 1fr);
        }
    }
    @media (min-width: 480px) and (max-width: 767px) {
        .products-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }
    @media (max-width: 479px) {
        .products-grid {
            grid-template-columns: 1fr;
        }
    }
    @media (min-width: 1024px) {
        .footer-grid {
            grid-template-columns: repeat(3, 1fr);
        }
    }
    @media (min-width: 640px) and (max-width: 1023px) {
        .footer-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }
    @media (max-width: 639px) {
        .footer-grid {
            grid-template-columns: 1fr;
        }
    }
}


/* Button Styles */

.btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0.75rem, 2vw, 1rem) clamp(1.5rem, 3vw, 2rem);
    border-radius: clamp(0.5rem, 2vw, 1rem);
    font-weight: 600;
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background: #f59d10;
    color: white;
    border: none;
    box-shadow: 0 4px 6px rgba(255, 77, 109, 0.2);
}

.btn-primary:hover {
    background: #f59d10;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(255, 77, 109, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #f59d10;
    border: 2px solid #ff4d6d;
}

.btn-secondary:hover {
    background: #fff5f5;
    transform: translateY(-2px);
}


/* Navigation Link Styles */

.nav-link {
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem 1rem;
    font-size: 1.125rem;
}

.nav-link:hover {
    color: #f59d10;
}

.nav-link.active {
    color: #f59d10;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #f59d10;
    border-radius: 2px;
}


/* Footer Styles */

.footer-title {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 700;
    color: white;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-link {
    color: #cbd5e0;
    text-decoration: none;
    transition: var(--transition);
    display: block;
    padding: 0.5rem 0;
}

.footer-link:hover {
    color: white;
    transform: translateX(4px);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    color: #cbd5e0;
    transition: var(--transition);
}

.social-link:hover {
    color: white;
    transform: translateY(-2px);
}

.footer-description {
    color: #cbd5e0;
    margin-top: 1rem;
    line-height: 1.6;
    font-weight: 400;
}


/* Tabs Container */

.tabs-container {
    width: 100%;
    position: relative;
}

.product-section {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.product-section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}


/* Update font weights for specific elements */

.nav-link {
    font-weight: 500;
}

.hero-title {
    font-weight: 800;
}

.hero-subtitle {
    font-weight: 400;
}

.product-title {
    font-weight: 600;
}

.product-description {
    font-weight: 400;
}

.price {
    font-weight: 600;
}

.min-order {
    font-weight: 500;
}

.footer-title {
    font-weight: 700;
}

.footer-description {
    font-weight: 400;
}


/* Category Navigation */

.category-nav {
    width: 100%;
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    padding: 1rem 0;
    overflow-x: auto;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
    scroll-behavior: smooth;
    position: relative;
}

.category-nav::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.category-btn {
    flex: 0 0 auto;
    width: 120px;
    height: 160px;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
}

.category-btn-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    border: 1px solid #f59d10;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.category-btn-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-btn-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #4a5568;
    text-align: center;
    transition: color 0.3s ease;
    width: 100%;
    padding: 0 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-btn:hover .category-btn-image img {
    transform: scale(1.1);
}

.category-btn:hover .category-btn-title {
    color: #f59d10;
}

.category-btn.active .category-btn-image {
    border: 3px solid;
    border-color: #f59d10;
    box-shadow: 0 4px 12px rgba(255, 77, 109, 0.2);
}

.category-btn.active .category-btn-title {
    color: #f59d10;
    font-weight: 700;
}


/* Responsive Styles */

@media (max-width: 768px) {
    .category-nav {
        margin: 1.5rem 0;
        padding: 0.75rem 0;
        gap: 0.75rem;
    }

    .category-btn {
        width: 100px;
        height: 140px;
    }

    .category-btn-image {
        width: 100px;
        height: 100px;
    }

    .category-btn-title {
        font-size: 0.8125rem;
    }
}

@media (max-width: 480px) {
    .category-nav {
        margin: 1rem 0;
        padding: 0.5rem 0;
        gap: 0.5rem;
    }

    .category-btn {
        width: 90px;
        height: 130px;
    }

    .category-btn-image {
        width: 90px;
        height: 90px;
    }

    .category-btn-title {
        font-size: 0.75rem;
    }
}


/* Main Container */

.main-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2rem);
}


/* Responsive Styles */

@media (max-width: 1024px) {
    .main-container {
        padding: 0 clamp(0.75rem, 2.5vw, 1.5rem);
    }
}

@media (max-width: 768px) {
    .main-container {
        padding: 0 clamp(0.5rem, 2vw, 1rem);
    }
}

@media (max-width: 480px) {
    .main-container {
        padding: 0 clamp(0.25rem, 1.5vw, 0.75rem);
    }
}


/* Product Modal */

.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-modal.active {
    opacity: 1;
    visibility: visible;
}

.product-modal.closing {
    opacity: 0;
    visibility: hidden;
}

.product-modal-content {
    background: white;
    border-radius: 24px;
    width: 100%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.product-modal.active .product-modal-content {
    transform: translateY(0);
}

.product-modal .modal-close-btn {
    position: sticky;
    top: 1rem;
    right: 1rem;
    left: auto;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(0, 0, 0, 0.1);
    color: #1a202c;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    margin-left: auto;
    display: block;
}

.modal-close-btn {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(0, 0, 0, 0.1);
    color: #1a202c;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    padding: 6px;
}

.modal-close-btn:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg);
}

.product-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background: white;
}

.product-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.5rem;
}

.product-modal-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.product-modal-body {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.product-modal-image {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 16px;
    overflow: hidden;
}

.product-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-modal-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-modal-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #4a5568;
}

.product-modal-meta {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.product-modal-gallery {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 1rem;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}


.product-gallery-item {
    flex: 0 0 auto;
    width: 200px;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    overflow: hidden;
    scroll-snap-align: start;
}

.product-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


.product-modal-gallery::-webkit-scrollbar {
    height: 6px;
}

.product-modal-gallery::-webkit-scrollbar-thumb {
    background: #f59d10;
    border-radius: 3px;
}

.product-modal-gallery::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}


/* Responsive Styles */

@media (max-width: 1024px) {
    .product-modal-body {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .product-modal-content {
        max-width: 90vw;
    }

    .product-gallery-item {
        flex: 0 0 160px;
    }
}

@media (max-width: 768px) {
    .product-modal-header {
        padding: 1rem;
    }

    .product-modal-title {
        font-size: 1.25rem;
    }

    .product-modal-body {
        padding: 1rem;
    }

    .product-modal-gallery {
        padding: 1rem;
    }

    .product-gallery-item {
        flex: 0 0 140px;
    }
}

@media (max-width: 480px) {
    .product-modal {
        padding: 0.5rem;
    }

    .product-modal-header {
        padding: 0.75rem;
    }

    .product-modal-title {
        font-size: 1.125rem;
    }

    .product-modal-body {
        padding: 0.75rem;
        gap: 1rem;
    }

    .product-modal-gallery {
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .product-gallery-item {
        flex: 0 0 120px;
    }

    .modal-close-btn {
        top: 0.5rem;
        right: 0.5rem;
        width: 28px;
        height: 28px;
        font-size: 1.25rem;
    }

    .modal-close-btn {
        top: 0.5rem;
        left: 0.5rem;
        width: 28px;
        height: 28px;
        font-size: 1.25rem;
    }
}


/* Tab Content */

.tab-content {
    display: none;
    padding: 1.5rem;
    background: white;
    border-radius: 0 0 24px 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.tab-content img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.tab-content img:hover {
    transform: scale(1.02);
}

.tab-button {
    padding: 1rem;
    background: white;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    text-align: right;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.tab-button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #4a5568;
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: right;
}

.tab-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.tab-button:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.tab-button.active {
    background: #f7fafc;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.tab-button.active::after {
    transform: scaleX(1);
    background: #2d3748;
}

.category-nav-content {
    display: none;
    padding: 1.5rem;
    background: white;
    border-radius: 0 0 24px 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-nav-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.category-nav-content img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.category-nav-content img:hover {
    transform: scale(1.02);
}

.category-nav-button {
    padding: 1rem;
    background: white;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    text-align: right;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.category-nav-button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #4a5568;
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: right;
}

.category-nav-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.category-nav-button:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.category-nav-button.active {
    background: #f7fafc;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.category-nav-button.active::after {
    transform: scaleX(1);
    background: #2d3748;
}


/* Image Modal */

.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-modal.active {
    opacity: 1;
    visibility: visible;
}

.image-modal.closing {
    opacity: 0;
    visibility: hidden;
}

.image-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-modal.active .image-modal-content {
    transform: scale(1);
}

.image-modal-content img {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.image-modal .modal-close-btn {
    position: absolute;
    top: -40px;
    right: 0;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.image-modal .modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Loader Wrapper */
#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}


.loader {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #f59d10;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}


@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(90deg);
    }
    50% {
        transform: rotate(180deg);
    }
    75% {
        transform: rotate(270deg);
    }
    100% {
        transform: rotate(360deg);
    }
}


.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.pagination-container nav {
    display: inline-flex;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.page-btn {
    text-decoration: none;
    font-size: 15px;
    padding: 0.5rem 1rem;
    border: 0;
    background: white;
    color: #444;
    cursor: pointer;
    transition: background 0.3s;
}

.page-btn:first-child,
.page-btn:last-child {
    background: #f97316;
    color: white;
    border-left: none;
}

.page-btn:first-child:hover,
.page-btn:last-child:hover {
    background: #ea580c;
}

.page-btn:hover {
    background: #fff7ed;
}

.link-back {
    display: block;
    text-decoration: none;
    margin-top: -10px;
    color: #f59d10;
    border: 0;
    background: white;
    cursor: pointer;
}

button, a, .btn, h3 {
    -webkit-tap-highlight-color: transparent;
}

/* custom alert start */
.custom-alert-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.custom-alert-box {
    background: #fff;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    max-width: 90%;
    width: 320px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    font-family: 'Vazirmatn', sans-serif;
    animation: fadeInUp 0.3s ease;
}

.custom-alert-box h2 {
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
    color: #333;
}

.custom-alert-box p {
    color: #555;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.custom-alert-box button {
    background-color: #f59d10;
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s ease;
}

.custom-alert-box button:hover {
    background-color: #885301;
}

@keyframes fadeInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.tel-phone {
  color: #f59d10;
  text-decoration: underline;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.tel-phone:hover {
  color: #7a4c06;
}

/* custom alert end */

/*product-order-btn start */
@keyframes glowing-border {
    0% {
        box-shadow: 0 0 0px #ffcf7a;
    }
    50% {
        box-shadow: 0 0 15px 8px #ffcf7a;
    }
    100% {
        box-shadow: 0 0 0px #ffcf7a;
    }
}

.product-order-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background-color: #f59d10;
    color: white;
    padding: 0.6rem 1rem;
    font-size: 1rem;
    border: 2px solid #ffcf7a;
    border-radius: 0.6rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    animation: glowing-border 2s infinite ease-in-out;
}

.product-order-btn:hover {
    background-color: #7a4c06;
}

.product-order-btn svg {
    width: 20px;
    height: 20px;
    fill: white;
    flex-shrink: 0;
}

/*product-order-btn end */


