@font-face {
    font-family: 'iran_yekan';
    src: URL('fonts/IRANSansWeb.ttf') format('truetype');
}
@font-face {
    font-family: 'iran_sans';
    src: URL('fonts/IRANSansWeb.ttf') format('truetype');
}
html, body {
    background-color: #fff;
    color: #000;
    font-weight: 100;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    /*overflow: hidden;*/
}

h1, h2, h3, h4, h5, h6, input, textarea , button, span, div {
    font-family: 'iran_yekan' !important;
}

/* Make all text elements black and undraggable */
h1, h2, h3, h4, h5, h6, p, span, div, a, li, label {
    color: #000 !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
}

/* Make the main heading more black and prominent */
.display-6.text-center {
    color: #000 !important;
    font-weight: 900 !important;
    text-shadow: 0 0 1px rgba(0,0,0,0.1);
}

/* Make the paragraph text black */
p.text-center.text-muted {
    color: #000 !important;
    font-weight: 500 !important;
    font-size: 0.9rem !important;
    margin-top: 1rem !important;
    margin-bottom: 2rem !important;
    line-height: 1.6 !important;
}

/* Add top margin for smaller screens */
@media (max-width: 767px) {
    .display-5.text-center {
        margin-top: 2rem !important;
        font-size: 1.8rem !important;
    }
    
    p.text-center.text-muted {
        margin-top: 0.5rem !important;
        font-size: 1rem !important;
    }
}

@media (max-width: 576px) {
    .display-5.text-center {
        font-size: 1.6rem !important;
    }
    
    p.text-center.text-muted {
        font-size: 0.9rem !important;
    }
}

/* Override Bootstrap text-muted class */
.text-muted {
    color: #000 !important;
}

/* Make all text in the page black and undraggable */
body, .container, section, article, aside, nav, header, footer, main {
    color: #000 !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
}

/* Responsive text sizing for main paragraph */
@media (max-width: 991px) {
    .text-center[style*="color: #666666"] {
        font-size: 0.9rem !important;
    }
}

@media (max-width: 767px) {
    .text-center[style*="color: #666666"] {
        font-size: 0.8rem !important;
    }
}

@media (max-width: 576px) {
    .text-center[style*="color: #666666"] {
        font-size: 0.7rem !important;
    }
}

/* Custom primary background class */
.custom-primary-bg {
    background-color: rgb(239, 231, 223) !important;
    background: rgb(239, 231, 223) !important;
}

/* Ensure navbar matches body exactly */
.navbar {
    background-color: rgb(239, 231, 223) !important;
    background: rgb(239, 231, 223) !important;
    border: none !important;
    box-shadow: none !important;
}

.custom-primary-bg .navbar-brand,
.custom-primary-bg .navbar-nav .nav-link,
.custom-primary-bg .navbar-nav .nav-link.text-white,
.custom-primary-bg .navbar-brand.text-white {
    color: black !important;
}

/* Force black color for all navbar text elements */
.navbar .navbar-brand,
.navbar .nav-link,
.navbar .nav-link.active,
.navbar .nav-link.dropdown-toggle {
    color: black !important;
}

/* Navbar layout improvements */
.navbar .container-fluid {
    position: relative;
}

.navbar-brand.order-2 {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.navbar-toggler.order-1 {
    z-index: 2;
}

/* Ensure proper spacing on mobile */
@media (max-width: 991px) {
    .navbar-brand.order-2 {
        position: static;
        transform: none;
        margin: 0 auto;
    }
    
    .navbar .container-fluid {
        justify-content: space-between;
    }
    
    .navbar-toggler.order-1 {
        order: 1;
    }
    
    .navbar-brand.order-2 {
        order: 2;
    }
    
    .d-flex.order-3 {
        order: 3;
    }
    
    .navbar-collapse.order-4 {
        order: 4;
        width: 100%;
        margin-top: 1rem;
    }
}

/* Remove card borders and hover effects */
.card {
    border: none !important;
    box-shadow: none !important;
    transition: none !important;
}

.card:hover {
    border: none !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Remove any Bootstrap card styling */
.card,
.card:hover,
.card:focus {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Remove all possible borders and lines from cards */
.card,
.card-body,
.card-img-top,
.card-title,
.card-text {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Ensure all product images have consistent size */
.card-img-top {
    height: 250px !important;
    width: 100% !important;
    object-fit: cover !important;
    border-top-left-radius: 48% !important;
    border-top-right-radius: 48% !important;
}



/* Remove any remaining Bootstrap card styling */
.card {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    width: 14rem !important;
}

.card-body {
    border: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

/* Custom color for specific section */
.col-12.col-md-6.custom-primary-bg {
    background-color: #003e29 !important;
    background: #003e29 !important;
    color: white !important;
}

/* Investment section text styling */
.col-12.col-md-6.custom-primary-bg {
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
}

.col-12.col-md-6.custom-primary-bg h2,
.col-12.col-md-6.custom-primary-bg p,
.col-12.col-md-6.custom-primary-bg .lead {
    color: white !important;
    font-size: 0.9em !important;
    text-align: center !important;
}

.col-12.col-md-6.custom-primary-bg h2.display-5 {
    font-size: 1.8rem !important;
    text-align: center !important;
}

.col-12.col-md-6.custom-primary-bg p.lead {
    font-size: 1rem !important;
    text-align: center !important;
}

.col-12.col-md-6.custom-primary-bg .text-center {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    flex-wrap: wrap !important;
}

.col-12.col-md-6.custom-primary-bg .btn {
    margin: 0.5rem !important;
}

/* Remove margin between the two divs */
.col-12.col-md-6 {
    margin: 0 !important;
    padding: 0 !important;
}

/* Remove any Bootstrap column spacing */
.row {
    margin: 0 !important;
}

.row > .col-12.col-md-6 {
    padding: 0 !important;
    margin: 0 !important;
}

/* Hide scrollbar for product lists */
#list_newest,
#list_special_offers {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

#list_newest::-webkit-scrollbar,
#list_special_offers::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Footer styling */
footer {
    background-color: rgb(10, 55, 59) !important;
    color: white !important;
}

footer h2,
footer h3,
footer p,
footer a {
    color: white !important;
}

footer a:hover {
    color: #ccc !important;
}

/* Accordion collapse icon positioning */
.accordion-button {
    justify-content: flex-start !important;
    text-align: right !important;
    position: relative;
    padding: 0.75rem 1.5rem 0.75rem 3rem !important;
    background-color: white !important;
    border-color: #dee2e6 !important;
    color: #000 !important;
    border-radius: 25px !important;
}

/* Make accordion icon muted when button has text-muted class */
.accordion-button.text-muted::after {
    filter: opacity(0.6) !important;
}

.accordion-button:not(.collapsed) {
    background-color: white !important;
    border-color: #dee2e6 !important;
    color: #000 !important;
    box-shadow: none !important;
    border-radius: 25px !important;
}

.accordion-button:focus {
    background-color: white !important;
    border-color: #dee2e6 !important;
    color: #000 !important;
    box-shadow: none !important;
}

.accordion-button:hover {
    background-color: white !important;
    border-color: #dee2e6 !important;
    color: #000 !important;
}

.accordion-button::after {
    position: absolute !important;
    left: 1rem !important;
    right: auto !important;
    margin: 0 !important;
    order: -1;
    transform: none !important;
}

.accordion-button:not(.collapsed)::after {
    position: absolute !important;
    left: 1rem !important;
    right: auto !important;
    margin: 0 !important;
    order: -1;
    transform: rotate(180deg) !important;
}

/* Accordion item styling */
.accordion-item {
    border-radius: 25px !important;
    margin-bottom: 0.5rem !important;
    border: 1px solid #dee2e6 !important;
}

/* Accordion positioning with equal top and bottom margins */
.accordion {
    margin: 2rem auto 0.5rem auto !important;
}

/* Accordion width for medium and large screens */
@media (min-width: 768px) {
    .accordion {
        width: 50% !important;
        margin: 2rem auto 0.25rem auto !important;
    }
}

/* Ensure consistent sizing for md and lg screens */
@media (min-width: 768px) and (max-width: 1199px) {
    .accordion {
        width: 50% !important;
        margin: 2rem auto 0.25rem auto !important;
    }
}

@media (min-width: 1200px) {
    .accordion {
        width: 50% !important;
        margin: 2rem auto 0.5rem auto !important;
    }
}

.accordion-collapse {
    border-radius: 0 0 8px 8px !important;
}

.accordion-body {
    border-radius: 0 0 8px 8px !important;
}



/* Animations */
@keyframes bg {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Flickity Button Styles */
.flickity-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.flickity-button:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.flickity-button.previous { 
    left: -22px; 
}

.flickity-button.next { 
    right: -22px; 
}

.flickity-button-icon {
    width: 20px;
    height: 20px;
    fill: #333;
}

.flickity-button.next .flickity-button-icon {
    transform: rotate(180deg);
}

/* Category Buttons Styling */
#categoriesContainer {
    text-align: center !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

#categoriesContainer .btn {
    background-color: rgb(212, 172, 111) !important;
    border-color: rgb(212, 172, 111) !important;
    color: white !important;
    border: none !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 25px !important;
    transition: all 0.3s ease;
    margin: 0.25rem !important;
}

#categoriesContainer .btn:hover {
    background-color: rgb(202, 162, 101) !important;
    border-color: rgb(202, 162, 101) !important;
    color: white !important;
}

#categoriesContainer .btn:focus {
    background-color: rgb(212, 172, 111) !important;
    border-color: rgb(212, 172, 111) !important;
    color: white !important;
    box-shadow: 0 0 0 0.2rem rgba(212, 172, 111, 0.25) !important;
}

/* Gold Price Display Styles */
#goldPriceDisplay {
    padding: 4px 8px;
    transition: all 0.3s ease;
    background-color: white;
    border-radius: 4px;
}

#goldPrice {
    font-size: 0.9rem;
    font-weight: bold;
    color: #003e29;
}

#lastUpdate {
    font-size: 0.7rem;
}

/* Investment section responsive text sizing */
@media (max-width: 768px) {
    .col-12.col-md-6.custom-primary-bg {
        padding: 2rem 1rem !important;
    }
    
    .col-12.col-md-6.custom-primary-bg h2.display-5 {
        font-size: 1.6rem !important;
        margin-top: 0.5rem !important;
    }
    
    .col-12.col-md-6.custom-primary-bg p.lead {
        font-size: 0.95rem !important;
        margin-top: 0.25rem !important;
    }
    
    .col-12.col-md-6.custom-primary-bg .btn {
        font-size: 1rem !important;
        padding: 0.5rem 1rem !important;
    }
}

@media (max-width: 576px) {
    .col-12.col-md-6.custom-primary-bg h2.display-5 {
        font-size: 1.4rem !important;
    }
    
    .col-12.col-md-6.custom-primary-bg p.lead {
        font-size: 0.85rem !important;
    }
    
    .col-12.col-md-6.custom-primary-bg .btn {
        font-size: 0.9rem !important;
        padding: 0.4rem 0.8rem !important;
    }
}

/* مشاهده بیشتر text and icon alignment */
.d-flex.align-items-center small[style*="color: rgb(212, 172, 111)"] {
    margin-top: 0.5rem !important;
}

.d-flex.align-items-center svg[fill="rgb(212, 172, 111)"] {
    margin-top: 0.5rem !important;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1rem !important;
    }
    
    #goldPriceDisplay {
        font-size: 0.75rem;
        padding: 2px 4px;
        white-space: nowrap;
    }
    
    .carousel-item img {
        height: 200px;
        object-fit: cover;
    }
    
    .display-6 {
        font-size: 1.5rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .card {
        width: 14rem !important;
    }
    
    .btn {
        font-size: 1rem !important;
        padding: 0.375rem 0.75rem;
    }
    
    /* Make category buttons text bigger on smaller screens */
    #categoriesContainer .btn {
        font-size: 1rem !important;
    }
    
    .flickity-button { 
        display: none; 
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-item {
        margin: 0.5rem 0;
    }
    
    .dropdown-menu {
        text-align: center;
        border: none;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    .accordion-button {
        font-size: 1.1rem;
        padding: 0.75rem 1rem;
    }
    
    .card-img-top {
        height: 200px;
        width: 100%;
        object-fit: cover;
        border-top-left-radius: 48% !important;
        border-top-right-radius: 48% !important;
    }
    
    .card-title {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .card-text {
        font-size: 0.8rem;
    }
    
    /* Touch-friendly improvements for mobile */
    .btn {
        min-height: 44px;
        min-width: 44px;
        margin-bottom: 0.5rem;
    }
    
    .nav-link {
        padding: 0.75rem 1rem;
    }
    
    .dropdown-item {
        padding: 0.75rem 1rem;
    }
    
    .flickity-button {
        width: 50px;
        height: 50px;
    }
    
    .flickity-button-icon {
        width: 24px;
        height: 24px;
    }
    

}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 0.9rem !important;
    }
    
    #goldPriceDisplay {
        font-size: 0.65rem;
        padding: 1px 2px;
        white-space: nowrap;
    }
    
    .carousel-item img {
        height: 150px;
    }
    
    .display-6 {
        font-size: 1.25rem;
    }
    
    .display-5 {
        font-size: 1.5rem;
    }
    
    .card {
        width: 14rem !important;
    }
    
    .btn {
        font-size: 0.95rem !important;
        padding: 0.25rem 0.5rem;
    }
    
    /* Make category buttons text bigger on smaller screens */
    #categoriesContainer .btn {
        font-size: 0.95rem !important;
    }
    
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .accordion-button {
        font-size: 1rem;
        padding: 0.5rem 0.75rem;
    }
    
    .card-img-top {
        height: 200px;
        width: 100%;
        object-fit: cover;
        border-top-left-radius: 48% !important;
        border-top-right-radius: 48% !important;
    }
    
    .card-title {
        font-size: 0.8rem;
    }
    
    .card-text {
        font-size: 0.7rem;
    }
    
    .btn {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    footer h2 {
        font-size: 1.5rem;
    }
    
    footer h3 {
        font-size: 1.25rem;
    }
    
    footer p {
        font-size: 0.9rem;
    }
    
    /* Improved spacing for mobile */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .p-3 {
        padding: 1rem !important;
    }
    
    .mb-4 {
        margin-bottom: 1.5rem !important;
    }
    
    .mt-4 {
        margin-top: 1.5rem !important;
    }
}

/* Product Title Styling */
.card-title {
    color: rgb(212, 172, 111) !important;
    margin-top: 1rem !important;
    margin-bottom: 0.5rem !important;
    text-align: center !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    max-width: 100% !important;
}

/* Responsive product title sizing for different screen sizes */
@media (min-width: 768px) {
    .card-title {
        font-size: 1rem !important;
    }
}

@media (max-width: 767px) {
    .card-title {
        font-size: 1rem !important;
    }
}

@media (max-width: 576px) {
    .card-title {
        font-size: 1.05rem !important;
    }
}

/* Weight Options Styling */
.weight-options {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.weight-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.85rem;
    gap: 0.5rem;
}

.weight-option:last-child {
    border-bottom: none;
}

.weight-label {
    color: #666666 !important;
    font-weight: 500;
    margin-left: 0.5rem;
    margin-right: 1rem;
}

.price-label {
    color: #666666 !important;
    font-weight: bold;
    font-size: 0.9rem;
    margin-left: 1rem;
}

.price-label::after {
    content: " تومان";
    font-size: 0.7rem;
    font-weight: normal;
}

/* Responsive weight options */
@media (max-width: 768px) {
    .weight-option {
        font-size: 0.8rem;
        padding: 0.2rem 0;
    }
    
    .price-label {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .weight-option {
        font-size: 0.75rem;
        padding: 0.15rem 0;
    }
    
    .price-label {
        font-size: 0.8rem;
    }
}

/* Smile Image Button Overlay */
.smile-button-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.search-engine-btn {
    background-color: rgb(212, 172, 111) !important;
    border-color: rgb(212, 172, 111) !important;
    color: white !important;
    font-weight: bold !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 25px !important;
    font-size: 1rem !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.3s ease !important;
}

.search-engine-btn:hover {
    background-color: rgb(202, 162, 101) !important;
    border-color: rgb(202, 162, 101) !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4) !important;
}

.search-engine-btn:focus {
    background-color: rgb(212, 172, 111) !important;
    border-color: rgb(212, 172, 111) !important;
    color: white !important;
    box-shadow: 0 0 0 0.2rem rgba(212, 172, 111, 0.25) !important;
}

/* Responsive button sizing */
@media (max-width: 768px) {
    .search-engine-btn {
        font-size: 0.9rem !important;
        padding: 0.6rem 1.2rem !important;
    }
}

@media (max-width: 576px) {
    .search-engine-btn {
        font-size: 0.8rem !important;
        padding: 0.5rem 1rem !important;
    }
}

/* Fix fringe/gap issues for mobile smile image */
@media (max-width: 767.98px) {
    .w-100.w-md-25.w-lg-15 {
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        outline: none !important;
        line-height: 0 !important;
        font-size: 0 !important;
        border-radius: 50% !important;
        overflow: hidden !important;
    }
    
    .w-100.w-md-25.w-lg-15 img {
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        outline: none !important;
        display: block !important;
        vertical-align: top !important;
        border-radius: 50% !important;
    }
    
    .smile-button-overlay {
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        outline: none !important;
        border-radius: 50% !important;
        overflow: hidden !important;
    }
}







