﻿html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/*.........................*/
.hero-section {
    height: 90vh;
    background: url('/images/coffee-hero.jpg') center center / cover no-repeat;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.7));
    z-index: 0;
}

.hero-content {
    z-index: 1;
    animation: slideUp 1s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

.hero-section h1 {
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

.hero-section p {
    color: #f1f1f1;
}

.hero-section .btn-warning {
    font-weight: 600;
    transition: 0.3s ease;
}

    .hero-section .btn-warning:hover {
        background-color: #e0a800;
        box-shadow: 0 0 15px rgba(255, 193, 7, 0.5);
    }

/* انیمیشن ورود */
@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*........................*/
.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: transparent;
    border-radius: 50%;
    text-decoration: none;
    color: #333;
    transition: transform 0.3s ease;
}

    .category-card img {
        width: 160px;
        height: 160px;
        border-radius: 50%;
        object-fit: cover;
        box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.2), /* حلقه مشکی در لایت مود */
        0 4px 12px rgba(0, 0, 0, 0.15); /* سایه زیر تصویر */
        transition: transform 0.4s ease, box-shadow 0.4s ease;
    }

    .category-card h5 {
        margin-top: 12px;
        font-weight: 600;
        font-size: 1rem;
        transition: color 0.3s ease;
        text-align: center;
    }

    .category-card:hover {
        transform: translateY(-5px);
    }

        .category-card:hover img {
            transform: scale(1.05);
            box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.2), 0 0 15px rgba(255, 193, 7, 0.5); /* سایه طلایی هنگام هاور */
        }

        .category-card:hover h5 {
            color: #ffc107;
        }

/* دارک مود */
body.dark-mode .category-card {
    color: #f1f1f1;
}

    body.dark-mode .category-card h5 {
        color: #f1f1f1;
    }

    body.dark-mode .category-card:hover h5 {
        color: #ffc107;
    }

    body.dark-mode .category-card img {
        box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3), /* حلقه سفید در دارک مود */
        0 4px 12px rgba(255, 255, 255, 0.1);
    }

    body.dark-mode .category-card:hover img {
        box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3), 0 0 15px rgba(255, 193, 7, 0.5);
    }




@media (max-width: 768px) {
    .category-card {
        border-radius: 50%;
        padding: 0;
        box-shadow: none;
        background-color: transparent;
        text-align: center;
    }

        .category-card img {
            width: 140px;
            height: 140px;
            border-radius: 50%;
            object-fit: cover;
            box-shadow: 0 4px 12px rgba(0,0,0,0.2);
            margin: 0 auto;
            transition: transform 0.3s ease;
        }

        .category-card h5 {
            margin-top: 10px;
            font-size: 0.9rem;
            font-weight: 600;
            color: #333;
        }

    .row.g-4 {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        justify-items: center;
    }
}

    /*...................*/

.product-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

    .product-card img {
        width: 100%;
        height: 220px;
        object-fit: cover;
        transition: transform 0.4s ease;
    }

.product-info {
    padding: 15px;
}

    .product-info h5 {
        font-weight: 600;
        margin-bottom: 10px;
    }

    .product-info .price {
        color: #555;
        font-size: 0.9rem;
        margin-bottom: 10px;
    }

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

    .product-card:hover img {
        transform: scale(1.05);
    }

/* دارک مود */
body.dark-mode .product-card {
    background-color: #1f1f1f;
    color: #f1f1f1;
}

body.dark-mode .product-info .price {
    color: #ccc;
}

/*...............*/

.product-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

    .product-card img {
        width: 100%;
        height: 240px;
        object-fit: cover;
        transition: transform 0.4s ease;
    }

.product-info {
    padding: 15px;
}

    .product-info h5 {
        font-weight: 600;
        margin-bottom: 10px;
    }

    .product-info .price {
        color: #555;
        font-size: 0.9rem;
        margin-bottom: 10px;
    }

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

    .product-card:hover img {
        transform: scale(1.05);
    }

/* دارک مود */
body.dark-mode .product-card {
    background-color: #1f1f1f;
    color: #f1f1f1;
}

body.dark-mode .product-info .price {
    color: #ccc;
}

/*..................*/

.about-section {
    direction: rtl;
}

.about-title {
    font-size: 2rem;
    color: #333;
    text-align: right;
}

.about-text {
    font-size: 1.1rem;
    color: #555;
    line-height: 2;
    white-space: pre-line;
    text-align: right;
}

.about-img {
    border-radius: 16px;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.3), /* حلقه مشکی در لایت مود */
    0 8px 20px rgba(0, 0, 0, 0.15); /* سایه زیر تصویر */
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

    .about-img:hover {
        transform: scale(1.02);
        box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.3), 0 12px 30px rgba(255, 193, 7, 0.5); /* سایه طلایی هنگام هاور */
    }

/* دارک مود */
body.dark-mode .about-title {
    color: #ffffff;
}

body.dark-mode .about-text {
    color: #dddddd;
}

body.dark-mode .about-img {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3), 0 8px 20px rgba(255, 255, 255, 0.1);
}

    body.dark-mode .about-img:hover {
        box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3), 0 12px 30px rgba(255, 193, 7, 0.5);
    }


   /* ...............*/

.testimonial-card {
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .testimonial-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    }

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 3px #ffc107;
}

.testimonial-text {
    font-size: 1rem;
    color: #555;
    line-height: 1.8;
    min-height: 100px;
}

.testimonial-stars {
    font-size: 1.2rem;
    color: #ffc107;
}

/* دارک مود */
body.dark-mode .testimonial-card {
    background-color: #1f1f1f;
    color: #f1f1f1;
}

body.dark-mode .testimonial-text {
    color: #ccc;
}

/*............*/

.testimonial-card {
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .testimonial-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    }

.testimonial-text {
    font-size: 1rem;
    color: #555;
    line-height: 1.8;
    min-height: 100px;
}

.testimonial-stars {
    font-size: 1.2rem;
    color: #ffc107;
}

/* دارک مود */
body.dark-mode .testimonial-card {
    background-color: #1f1f1f;
    color: #f1f1f1;
}

body.dark-mode .testimonial-text {
    color: #ccc;
}
/*......................*/

.search-bar input {
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 1rem;
}

.search-bar button {
    border-radius: 8px;
    font-weight: 600;
}

/*......................*/

.testimonial-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 3px #ffc107;
    transition: transform 0.3s ease;
}

    .testimonial-avatar:hover {
        transform: scale(1.05);
    }

body.dark-mode .testimonial-avatar {
    box-shadow: 0 0 0 3px #ffc107;
}





.dk-slider-container {
    position: relative;
    overflow: hidden;
}

.dk-slider {
    display: flex;
    gap: 1.2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 20px;
}

    .dk-slider::-webkit-scrollbar {
        display: none;
    }

.dk-item {
    min-width: 220px;
    flex: 0 0 auto;
    transition: transform 0.3s;
}

    .dk-item:hover {
        transform: translateY(-5px);
    }

.dk-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .dk-btn i {
        font-size: 1.5rem;
    }

.dk-left {
    right: 10px;
}

.dk-right {
    left: 10px;
}

.product-card {
    border-radius: 12px;
    overflow: hidden;
    transition: .3s;
}

    .product-card:hover {
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    }


@keyframes tickerScroll {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

#price-ticker {
    font-size: 0.9rem;
    border-bottom: 2px solid #ffa500;
    direction: ltr;
}

#ticker-content span {
    margin-right: 40px;
}

