.video-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-desktop {
    display: block;
}

.video-mobile {
    display: none;
}

@media (max-width: 768px) {
    .video-desktop {
        display: none;
    }

    .video-mobile {
        display: block;
    }

    .gold-title {
        font-size: 16px !important;
        color: #471010;
    }

    .gold-price {
        font-size: 15px !important;
        color: #471010;
    }
}

.next-section {
    padding: 100px 20px;
    background-color: #f4f4f4;
    text-align: center;
    font-family: sans-serif;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    left: -350px;
    width: 300px;
    height: 100%;
    background-color: #fff;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    z-index: 1050;
    transition: left 0.3s ease;
}

.cart-sidebar.open {
    left: 0;
}

.first-color {
    color: #471010 !important;
}

.second-color {
    color: #E0D9C8;
}

.second-color:hover {
    color: gold;
}

.third-color {
    color: #E5E2DD;
}

.bg-first-color {
    background-color: #471010;
}

.bg-second-color {
    background-color: #E5E2DD;
}

.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65px;
    border-top: 1px solid #e0e0e0;
    z-index: 1050;
}

.mobile-bottom-nav .nav-item {
    flex: 1;
    color: #E5E2DD;
    font-size: 11px;
    transition: color 0.2s ease;
    padding-top: 6px;
}

.mobile-bottom-nav .nav-item i {
    display: block;
    font-size: 20px;
    margin-bottom: 2px;
}

.mobile-bottom-nav .nav-item span {
    display: block;
    font-weight: 400;
}

.mobile-bottom-nav .nav-item:active,
.mobile-bottom-nav .nav-item:focus {
    color: gold;
    text-decoration: none;
}

.cart-badge {
    position: absolute;
    top: 4px;
    right: 22%;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 10px;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background-color: #471010;
    z-index: 1060;
    transition: right 0.3s ease-in-out;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
}

.mobile-menu-overlay.open {
    right: 0;
}

.mobile-cart-overlay {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 1060;
    transition: left 0.3s ease-in-out;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
}

.mobile-cart-overlay.open {
    left: 0;
}

.cart-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

.btn-remove {
    font-size: 18px;
    padding: 4px 10px;
    line-height: 1;
}

.image-back-section {
    background-image: url("../img/back1.webp");
    background-size: cover; /* 👈 به جای object-fit */
    background-repeat: no-repeat;
    background-position: center;

    width: 100%;
    height: 800px;
}

.gold-card {
    padding: 10px;
    height: auto;
    position: relative;
    text-align: center;
    background-color: #F2F2F3;
}

.gold-btn {
    margin-top: auto;
    width: 97%;
    display: flex;
    justify-content: center;
}

.gold-btn a {
    width: 100%;
    text-align: center;
}

.image {
    border-radius: 15px;
}

.gold-title {
    font-size: 15px;
    color: #471010;
}

.gold-price {
    font-size: 15px;
    color: #471010;
}

.mega-menu-modern {
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: absolute;
    width: 100%;
    z-index: 1000;
    animation: fadeInDown 0.3s ease forwards;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-sidebar {
    border-right: 1px solid #eee;
}

.category-item {
    padding: 12px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s, color 0.2s;
}

.category-item:hover,
.category-item.active {
    background: #f5f5f5;
    color: #d4af37; /* طلایی */
}

.subcategory-content h5 {
    margin-bottom: 20px;
    color: #333;
    font-weight: bold;
}

.subcategory-card {
    background: #fafafa;
    padding: 15px;
    border-radius: 8px;
    transition: box-shadow 0.3s;
}

.subcategory-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.subcategory-card h6 {
    font-weight: bold;
    margin-bottom: 10px;
}

.subcategory-card a {
    display: block;
    color: #555;
    text-decoration: none;
    margin-bottom: 5px;
}

.subcategory-card a:hover {
    color: #d4af37;
}

.filter-group {
    max-width: 400px;
    margin-bottom: 40px;
    background: #fff;
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgb(0 0 0 / 0.1);
}

h3 {
    margin-bottom: 25px;
    color: #333;
    text-align: center;
}

#priceSlider, #weightSlider {
    margin: 20px 0;
}

.values {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    font-size: 1.1rem;
    color: #444;
}

.values span {
    background: #efefef;
    padding: 6px 14px;
    border-radius: 6px;
    min-width: 60px;
    text-align: center;
    box-shadow: inset 0 0 5px rgb(0 0 0 / 0.05);
}

.pagination {
    justify-content: center;
}

.fade-slider {
  position: relative;
  border-radius: 25px;
  width: 80%;
  margin: auto;
  height: auto;
}

.fade-img {
  position: absolute;
  border-radius: 10px;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  animation: fadeAnimation 12s infinite;
}

.fade-slider img:first-child {
  position: relative; /* اولین عکس جای خودش باشه تا ارتفاع بده */
}

.fade-img:nth-child(1) { animation-delay: 0s; }
.fade-img:nth-child(2) { animation-delay: 4s; }
.fade-img:nth-child(3) { animation-delay: 8s; }

@keyframes fadeAnimation {
  0% { opacity: 0; }
  10% { opacity: 1; }
  30% { opacity: 1; }
  40% { opacity: 0; }
  100% { opacity: 0; }
}



