@font-face {
    font-family: vazir;
    src: url(Vazirmatn-Light.woff2) format('woff2');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

body {
    margin: 0;
    font-family: vazir;
    scroll-behavior: smooth;
    direction: rtl;
    background-color: #004d4d;
}

.horizontal-menu {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    background-color: #002f2f;
    border-bottom: 1px solid #ccc;
    padding: 10px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.horizontal-menu a {
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    color: #fff;
    flex-shrink: 0;
    transition: background 0.3s;
}

.horizontal-menu a:hover {
    background-color: #008080;
    border-radius: 10px;
}

.section {
    height: 100vh;
    padding: 40px;
    border-bottom: 1px solid #ccc;
    background-color: #004d4d;
}

.product-box {
    text-align: center;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    max-width: 300px;
    margin: 10px auto;
    position: relative;
}

.product-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.product-details {
    padding: 15px;
}

.product-title {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #008080;
}

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

.product-price {
    font-size: 1rem;
    font-weight: 600;
    color: #00A3A3;
}

.section-title {
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    font-size: 22px;
    margin: 40px 0;
}

.section-title::before,
.section-title::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid white;
}

.section-title:not(:empty)::before {
    margin-left: 10px;
}

.section-title:not(:empty)::after {
    margin-right: 10px;
}

.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #002f2f;
    color: #e0f7f7;
    text-align: center;
    padding: 12px 0;
    font-size: 14px;
    z-index: 1000;
    box-shadow: 0 -2px 6px rgba(0,0,0,0.3);
}

.site-footer a {
    color: #66ffff;
    text-decoration: none;
    font-weight: bold;
}

.site-footer a:hover {
    color: #fff;
}

#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #004d4d;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: #fff;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    z-index: 9999;
}

#loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.cup {
    width: 80px;
    height: 60px;
    border: 5px solid #fff;
    border-radius: 0 0 20px 20px;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.steam {
    position: absolute;
    top: -30px;
    left: 50%;
    width: 10px;
    height: 30px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    animation: rise 2s infinite ease-in-out;
}

.steam:nth-child(2) { left: 45%; animation-delay: 0.3s; }
.steam:nth-child(3) { left: 55%; animation-delay: 0.6s; }

@keyframes rise {
    0% { transform: translateY(0) scaleX(1); opacity: 0.5; }
    50% { transform: translateY(-20px) scaleX(1.2); opacity: 1; }
    100% { transform: translateY(-40px) scaleX(1); opacity: 0; }
}

.loading-text {
    font-size: 1.2rem;
    letter-spacing: 1px;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0.3; }
}

.menu-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    margin-left: 8px;
    vertical-align: middle;
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    width: 100%;
    text-align: center;
    background-color: #f5f5f5;
}

.product-image {
    max-width: 100%;
    height: auto;
    display: inline-block;
    transition: transform 0.4s ease;
    border-radius: 12px;
}

.product-image-wrapper:hover .product-image {
    transform: scale(1.02);
}

.product-image-wrapper::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent, #fff 40%);
}

.soldout-ribbon {
    position: absolute;
    top: 10px;
    right: -40px;
    transform: rotate(45deg);
    background: #ff0000;
    color: #fff;
    font-weight: bold;
    text-align: center;
    width: 140px;
    padding: 5px 0;
    font-size: 0.9rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    letter-spacing: 1px;
    z-index: 3;
    text-shadow: 0 0 3px rgba(0,0,0,0.4);
}

.product-box.unavailable {
    opacity: 0.85;
    filter: grayscale(40%);
}

.product-box.unavailable .product-image-wrapper:hover .product-image {
    transform: none;
}