/* Variables */
:root {
    --color-light: #fff;
    --color-dark: #1c1c21;
    --color-dark-do: #555;
    --color-primary: #ffb8c0; 
    --color-primary-hover: #ff868e; 
    --color-secondary: #61dafb; 
    --color-secondary-hover: #21a1f1; 
    --color-secondary-ax: #b8b8e0;  
    --color-bg-light: #f1f3f5; 
    --success-color: #2ecc71;
    --success-hover: #27ae60;
    --danger-color: #e74c3c;
    --danger-hover: #c0392b;
    --modal-overlay-bg: rgba(0,0,0,0.6);
    --color-dk: #000; 
    --color-bg-as: #e0e0e0; 
    --color-bg-dark: #282c34;
    --border-color-g: #f0f0f0;
    --border-color-fs: #b7c1cb;
    --bg-color: #f7f7f7;
    --text-color: #333;
    --text-color-df: #444;
    --border-color: #ddd;
    --border-color-c: #ccc;
    --border-color-bz: #1f1f1f;
    --transition: 0.3s ease;
    --font-size-base: 1rem;
    --font-size-small: 0.9rem;
    --font-size-large: 1.2rem;
    --font-size-xlarge: 1.5rem;
    --font-size-xxlarge: 2rem;
    --border-radius: 8px;
    --transition-fast: 0.3s;
    --transition-medium: 0.5s;
    --input-padding: 10px;
    --border-radius: 6px;
}

/* Import custom fonts */
@font-face {
    font-family: 'IRANSansWeb';
    src: url('../fonts/IRANSansWeb.eot');
    src: url('../fonts/IRANSansWeb.eot?#iefix') format('embedded-opentype'),
         url('../fonts/IRANSansWeb.woff2') format('woff2'),
         url('../fonts/IRANSansWeb.woff') format('woff'),
         url('../fonts/IRANSansWeb.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'IRANSansWeb';
    src: url('../fonts/IRANSansWeb-Bold.eot');
    src: url('../fonts/IRANSansWeb-Bold.eot?#iefix') format('embedded-opentype'),
         url('../fonts/IRANSansWeb-Bold.woff2') format('woff2'),
         url('../fonts/IRANSansWeb-Bold.woff') format('woff'),
         url('../fonts/IRANSansWeb-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

html, body {
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Base Styles */
body {
    background-color: var(--color-bg-light);
    color: var(--color-dark);
    font-family: 'IRANSansWeb', sans-serif;
    font-size: var(--font-size-base);
    transition: background-color var(--transition), color var(--transition);
    overflow-x: hidden; 
    margin: 0; 
    direction: ltr; 
}

body.dark-mode {
    background-color: var(--color-bg-dark);
    color: var(--color-light);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-primary-hover);
}

button {
    background: none;
    border: none;
    cursor: pointer;
    transition: background-color var(--transition), transform var(--transition);
}

button:hover {
    transform: scale(1.1);
}

/* Footer */
.footer {
    width: 100%; 
    background-color: var(--color-bg-light); 
    color: var(--color-dark);
    padding: 0 0 20px;
    text-align: center;
    position: relative;
}

body.dark-mode .footer {
    background-color: var(--color-bg-dark);
    color: var(--color-light);
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    padding: 0;
    width: 100%; 
    background-color: var(--color-bg-light);
    color: var(--color-dark);
    transition: background-color var(--transition);
}

body.dark-mode .footer-content {
    background-color: var(--color-bg-dark);
    color: var(--color-light);
}

.footer-section {
    margin: 20px;
    padding: 20px;
    border-radius: 5px;
    transition: background-color var(--transition), transform var (--transition);
}

.footer-section:hover {
    transform: scale(1.05);
}

.footer-section h3 {
    margin-bottom: 15px;
    font-size: var(--font-size-xlarge);
}

.footer-section p, .footer-section a {
    margin: 5px 0;
    font-size: var(--font-size-base);
    color: var(--color-primary); 
}

.footer-section a:hover {
    color: var(--color-primary-hover);
}

body.dark-mode .footer-section a {
    color: var(--color-secondary); 
}

body.dark-mode .footer-section a:hover {
    color: var(--color-secondary-hover);
}

.language-link {
    display: inline-block;
    margin: 5px;
    padding: 5px 10px;
    border-radius: 5px;
    transition: transform var(--transition);
    color: var(--color-primary); 
}

.language-link:hover {
    background-color: var(--color-primary);
    color: var(--color-light);
    transform: scale(1.1);
}

body.dark-mode .language-link {
    color: var(--color-secondary); 
}

body.dark-mode .language-link:hover {
    color: var(--color-secondary-hover);
}

.language-transition {
    transition: all var(--transition);
}

.theme-toggle-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
}

.theme-toggle-btn img {
    width: 30px;
    height: 30px;
}

/* Bottom Navigation */
.bottom-nav {
    width: 100%; 
    height: 152px;
    background-color: var(--color-bg-light); 
    color: var(--color-dark);
    padding: 10px 0;
    text-align: center;
    position: relative;
    background-image: none;
}

body.dark-mode .bottom-nav {
    background-color: var(--color-bg-dark);
    color: var(--color-light);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%; 
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px; 
    margin-right: 140px;              
}

.nav-link {
    color: var(--color-primary); 
    text-decoration: none;
    font-size: var(--font-size-large);
    margin: 0 10px;
    transition: color var(--transition), transform var(--transition);
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

.nav-link:hover {
    color: var(--color-primary-hover); 
    transform: translateY(5px);
}

body.dark-mode .nav-link {
    color: var(--color-secondary); 
}

body.dark-mode .nav-link:hover {
    color: var(--color-secondary-hover); 
}

.search-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: auto;
    margin-right: auto;
    margin-left: 20px;
    margin-top: 80px;
}

.search-input {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid var(--border-color-c);
    font-size: var(--font-size-base);
    margin-right: 10px;
    background-color: var(--border-color-g);
    color: var(--color-dark);
    transition: background-color var(--transition), color var(--transition);
}

.search-input:focus {
    background-color: var(--color-bg-as);
    outline: none;
}

body.dark-mode .search-input {
    background-color: var(--text-color);
    color: var(--color-secondary);
}

body.dark-mode .search-input:focus {
    background-color: var(--text-color-df);
}

.search-btn {
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
    background-color: var(--color-primary); 
    color: var(--color-light);
    cursor: pointer;
    transition: background-color var(--transition), transform var(--transition);
}

.search-btn:hover {
    background-color: var(--color-primary-hover); 
}

body.dark-mode .search-btn {
    background-color: var(--color-secondary); 
}

body.dark-mode .search-btn:hover {
    background-color: var(--color-secondary-hover); 
}

.new-buttons {
    position: absolute;
    top: -20px;
    left: 20px;
    display: flex;
    gap: 0.1px;
    margin-bottom: 10px; 
}

.new-btn {
    color: var(--color-primary); 
    text-decoration: none;
    font-size: var(--font-size-large);
    padding: 10px 20px;
    border-radius: 5px;
    background-color: transparent;
    border: none;
    transition: color var(--transition), transform var(--transition);
    animation: pulse 2s infinite;
}

.new-btn:hover {
    color: var(--color-primary-hover);
    transform: translateY(5px);
}

body.dark-mode .new-btn {
    color: var(--color-secondary); 
}

body.dark-mode .new-btn:hover {
    color: var(--color-secondary-hover); 
}

.pattern {
    width: 30px;
    background: url('../images/lego/c7892ebbb139886662c6f2fc8c450710.png') no-repeat;
    margin-left: 10px;
}

.separator {
    align-self: center;
    margin: 0 5px; 
}

/* Logo */
.logo-container {
    position: absolute;
    right: 100px;
    top: 50%;
    transform: translateY(-50%);
}

.logo {
    width: 50px;
    height: 72px;
}

/* Advertisement Slider */
.ad-slider {
    position: relative;
    width: 100%; 
    height: 600px;
    overflow: hidden;
    margin: 0; 
    padding: 0; 
    border: none;
    border-radius: 0; 
    box-shadow: none;
}

.ad-slide {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.5s ease-in-out;
}

.ad-slide img {
    width: 100%;
    height: 100%;
    display: block;   
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-light);
    border: none;
    padding: 10px;
    cursor: pointer;
    transition: background-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

#prev-btn {
    left: 10px;
    animation: prevBtnAnimation 1s infinite alternate;
}

#next-btn {
    right: 10px;
    animation: nextBtnAnimation 1s infinite alternate;
}

@keyframes prevBtnAnimation {
    0% {
        transform: translateY(-50%) scale(1);
    }
    100% {
        transform: translateY(-50%) scale(1.1);
    }
}

@keyframes nextBtnAnimation {
    0% {
        transform: translateY(-50%) scale(1);
    }
    100% {
        transform: translateY(-50%) scale(1.1);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* New Section Below Slider */
.new-section {
    width: 100% !important;
    background-color: var(--color-bg-light);
    padding: 25px;
    margin: 0px auto;
    text-align: center;
    color: var(--color-dark);
    margin-bottom: 5px;
}

body.dark-mode .new-section {
    background-color: var(--color-bg-dark);
    color: var(--color-light);
}

/* New Section Below the Line */
.new-section-below {
    width: 100%;
    background-color: #262626;
}

/* New Black Section Below the Red Section */
.new-black-section {
    width: 100%;
    height: 52px;
    background-color: var(--color-bg-light); 
}

body.dark-mode .new-black-section {
    background-color: var(--border-color-bz); 
}

/* New Black Section Below the Red Section */
.new-black-sectionn {
    width: 100%;
    height: 52px;
    margin: 20px 0; 
    background-color: var(--color-bg-light); 
    margin-bottom: 0;
}

body.dark-mode .new-black-sectionn {
    background-color: var(--border-color-bz); 
}

/* Product Carousel */
.product-carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 0; 
    transition: background-color var(--transition);
}

body.dark-mode .product-carousel {
    background-color: var(--color-bg-dark);
}

.product-carousel .product-container {
    display: flex;
    justify-content: center; 
    flex-wrap: nowrap; 
    overflow: hidden; 
    gap: 10px; 
    height: auto; 
}

body.fa .product-container {
    flex-direction: row-reverse;
}

.product-carousel .product-card {
    width: 350px; 
    height: auto; 
    margin: 0 5px;
    background-color: var(--color-dark);
    color: var(--color-secondary-ax);
    border-radius: 5px;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    border: 1px solid var(--color-dark);
    flex: 0 0 280px; 
    text-align: center; 
    display: none; 
    flex-direction: column;
    justify-content: flex-start; 
}

body.dark-mode .product-carousel .product-card {
    background-color: var(--color-dark);
}

.product-carousel .product-card img {
    width: 280px; 
    height: 280px; 
    display: block;
    margin: 0 auto; 
}

.product-carousel .product-card h3 {
    font-size: var(--font-size-large);
    margin: 10px 0;
}

.product-carousel .product-card p {
    font-size: var(--font-size-base);
    padding: 8px 10px;
}

.product-carousel .product-card .product-price {
    color: var(--border-color-fs); 
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-carousel .product-card .product-price .price {
    margin-right: 5px; 
}

.product-carousel .product-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.product-carousel .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent;
    color: var(--color-light);
    border: none;
    padding: 10px;
    cursor: pointer;
    transition: background-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.product-carousel .carousel-btn:hover {
    background-color: transparent;
    transform: scale(1.2);
    box-shadow: none;
}

body.dark-mode .product-carousel .carousel-btn {
    background-color: transparent;
}

body.dark-mode .product-carousel .carousel-btn:hover {
    background-color: transparent;
    box-shadow: none;
}

.product-carousel #prev-page-btn {
    left: 130px; 
    animation: prevBtnAnimation 1s infinite alternate;
}

.product-carousel #next-page-btn {
    right: 130px; 
    animation: nextBtnAnimation 1s infinite alternate;
}

/* New Product Carousel Section Below the Last Black Line */
.new-product-carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 0; 
    transition: background-color var(--transition);
}

body.dark-mode .new-product-carousel {
    background-color: var(--color-bg-dark);
}

.new-product-carousel .product-container {
    display: flex;
    justify-content: center; 
    flex-wrap: nowrap; 
    overflow: hidden; 
    gap: 10px; 
    height: auto; 
}

body.fa .new-product-container {
    flex-direction: row-reverse;
}

.new-product-carousel .product-card {
    width: 350px;
    height: auto; 
    margin: 0 5px;
    background-color: var(--color-dark);
    color: var(--color-secondary-ax);
    border-radius: 5px;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    border: 1px solid var(--color-dark);
    flex: 0 0 280px; 
    text-align: center; 
    display: none; 
    flex-direction: column;
    justify-content: flex-start; 
}

body.dark-mode .new-product-carousel .product-card {
    background-color: var(--color-dark);
}

.new-product-carousel .product-card img {
    width: 280px; 
    height: 280px; 
    display: block;
    margin: 0 auto; 
}

.new-product-carousel .product-card h3 {
    font-size: var(--font-size-large);
    margin: 10px 0;
}

.new-product-carousel .product-card p {
    font-size: var(--font-size-base);
    padding: 8px 10px;
}

.new-product-carousel .product-card .product-price {
    color: var(--border-color-fs); 
    display: flex;
    justify-content: center;
    align-items: center;
}

.new-product-carousel .product-card .product-price .price {
    margin-right: 5px; 
}

.new-product-carousel .product-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.new-product-carousel .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent;
    color: var(--color-light);
    border: none;
    padding: 10px;
    cursor: pointer;
    transition: background-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.new-product-carousel .carousel-btn:hover {
    background-color: transparent;
    transform: scale(1.2);
    box-shadow: none;
}

body.dark-mode .new-product-carousel .carousel-btn {
    background-color: transparent;
}

body.dark-mode .new-product-carousel .carousel-btn:hover {
    background-color: transparent;
    box-shadow: none;
}

.new-product-carousel #prev-new-page-btn {
    left: 130px;
    animation: prevBtnAnimation 1s infinite alternate;
}

.new-product-carousel #next-new-page-btn {
    right: 38px; 
    animation: nextBtnAnimation 1s infinite alternate;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .product-carousel #prev-page-btn,
    .new-product-carousel #prev-new-page-btn {
        left: 100px; 
    }

    .product-carousel #next-page-btn,
    .new-product-carousel #next-new-page-btn {
        right: 100px; 
    }
}

@media (max-width: 768px) {
    .product-carousel #prev-page-btn,
    .new-product-carousel #prev-new-page-btn {
        left: 70px; 
    }

    .product-carousel #next-page-btn,
    .new-product-carousel #next-new-page-btn {
        right: 70px; 
    }
}

@media (max-width: 480px) {
    .product-carousel #prev-page-btn,
    .new-product-carousel #prev-new-page-btn {
        left: 40px; 
    }

    .product-carousel #next-page-btn,
    .new-product-carousel #next-new-page-btn {
        right: 40px; 
    }
}

/* Responsive Design */
@media (max-width: 600px) {
    .product-carousel .product-card,
    .new-product-carousel .product-card {
        flex: 0 0 48%; 
        width: 48%; 
        margin: 0 1%; 
    }

    .product-carousel .product-card img,
    .new-product-carousel .product-card img {
        width: 100%; 
        height: auto; 
    }

    .product-carousel .product-card h3,
    .new-product-carousel .product-card h3 {
        font-size: var(--font-size-small); 
    }

    .product-carousel .product-card p,
    .new-product-carousel .product-card p {
        font-size: var(--font-size-small);
    }

    .product-carousel .product-card .product-price,
    .new-product-carousel .product-card .product-price {
        font-size: var(--font-size-small); 
    }
}

/* Responsive Design */
@media (max-width: 600px) {
    .product-carousel .product-card,
    .new-product-carousel .product-card {
        flex: 0 0 48%; 
        width: 48%; 
        margin: 0 1%; 
        box-sizing: border-box; 
    }

    .product-carousel .product-card img,
    .new-product-carousel .product-card img {
        width: 100%; 
        height: auto; 
        object-fit: cover; 
        display: block;
        margin: 0 auto;
    }

    .product-carousel .product-card h3,
    .new-product-carousel .product-card h3,
    .product-carousel .product-card p,
    .new-product-carousel .product-card p,
    .product-carousel .product-card .product-price,
    .new-product-carousel .product-card .product-price {
        font-size: var(--font-size-small); 
        margin: 10px 0; 
    }
}

/* Ensure consistent size for product cards, images, text, and prices */
.product-carousel .product-card,
.new-product-carousel .product-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
    margin-top: 30px;
}

.product-carousel .product-card img,
.new-product-carousel .product-card img {
    width: 100%;
    height: auto;
    object-fit: cover; 
    display: block;
    margin: 0 auto; 
}

.product-carousel .product-card h3,
.new-product-carousel .product-card h3,
.product-carousel .product-card p,
.new-product-carousel .product-card p,
.product-carousel .product-card .product-price,
.new-product-carousel .product-card .product-price {
    margin: 10px 0;
}

/* Add styles for the new text */
.category-title {
    text-align: center; 
    font-size: var(--font-size-xlarge);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

.category-title > p {
    margin-top: 0;
    margin-bottom: 0;
}

.category-title .line {
    flex: 1;
    background-color: var(--color-secondary-ax);
    margin: 0 10px;
}

/* Add styles for the new text */
.category-title {
    text-align: center;
    font-size: var(--font-size-xlarge);
    color: var(--color-primary);
    margin-bottom: 20px; 
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    margin-top: 0;

}

.category-title .line {
    flex: 1;
    background-color: var(--color-secondary-ax);
    margin: 0 10px;
}

body.dark-mode .category-title {
    color: var(--color-secondary);
}

body.dark-mode .category-title .line {
    background-color: var(--color-secondary);
}

/* New Black Line Below Product Categories */
.new-black-line {
    width: 100%;
    height: 52px;
    background-color: var(--color-bg-light); 
    margin: 20px 0; 
    text-align: center;
    color: var (--color-dark);
    margin-bottom: 0px;
}

body.dark-mode .new-black-line {
    background-color: var(--border-color-bz); 
}

/* Styles for images between the black lines */
.images-between-lines {
    display: flex;
    justify-content: center; 
    align-items: center;
    gap: 25px; 
    margin: 0 10px; 
}

.images-between-lines img {
    width: 385px; 
    height: 171px; 
    object-fit: cover;
    border-radius: 10px;
    margin: 0;
    text-align: center;
}

@media (max-width: 1300px) {
    .images-between-lines {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 10px;
        justify-items: center; 
    }

    .images-between-lines img:first-child {
        grid-column: 1 / -1;
        width: 100%; 
        max-width: 400px; 
    }

    .images-between-lines img:nth-child(2),
    .images-between-lines img:nth-child(3) {
        width: calc(100% - 2px); 
        height: auto; 
    }
}

/* New Product Carousel Section Below the Last Black Line */
.new-product-carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 0; 
    transition: background-color var(--transition);
}

body.dark-mode .new-product-carousel {
    background-color: var(--color-bg-dark);
}

.new-product-carousel .product-container {
    display: flex;
    justify-content: center; 
    flex-wrap: nowrap; 
    overflow: hidden; 
    gap: 10px; 
    height: auto; 
}

body.fa .new-product-container {
    flex-direction: row-reverse;
}

.new-product-carousel .product-card {
    width: 350px; 
    height: auto; 
    margin: 0 5px;
    background-color: var(--color-dark);
    color: var(--color-secondary-ax);
    border-radius: 5px;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    border: 1px solid var(--color-dark);
    flex: 0 0 280px; 
    text-align: center; 
    display: none; 
    flex-direction: column;
    justify-content: flex-start; 
}

body.dark-mode .new-product-carousel .product-card {
    background-color: var(--color-dark);
}

.new-product-carousel .product-card img {
    width: 280px; 
    height: 280px; 
    display: block;
    margin: 0 auto; 
}

.new-product-carousel .product-card h3 {
    font-size: var(--font-size-large);
    margin: 10px 0;
}

.new-product-carousel .product-card p {
    font-size: var(--font-size-base);
    padding: 8px 10px;
}

.new-product-carousel .product-card .product-price {
    color: var(--border-color-fs); 
    display: flex;
    justify-content: center;
    align-items: center;
}

.new-product-carousel .product-card .product-price .price {
    margin-right: 5px; 
}

.new-product-carousel .product-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.new-product-carousel .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent;
    color: var(--color-light);
    border: none;
    padding: 10px;
    cursor: pointer;
    transition: background-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.new-product-carousel .carousel-btn:hover {
    background-color: transparent;
    transform: scale(1.2);
    box-shadow: none;
}

body.dark-mode .new-product-carousel .carousel-btn {
    background-color: transparent;
}

body.dark-mode .new-product-carousel .carousel-btn:hover {
    background-color: transparent;
    box-shadow: none;
}

.new-product-carousel #prev-new-page-btn {
    left: 130px;
    animation: prevBtnAnimation 1s infinite alternate;
}

.new-product-carousel #next-new-page-btn {
    right: 130px; 
    animation: nextBtnAnimation 1s infinite alternate;
}

/* Another New Product Carousel Section */
.another-new-product-carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 0; 
    transition: background-color var(--transition);
}

body.dark-mode .another-new-product-carousel {
    background-color: var(--color-bg-dark);
}

.another-new-product-carousel .product-container {
    display: flex;
    justify-content: center; 
    flex-wrap: nowrap; 
    overflow: hidden;
    gap: 10px; 
    height: auto; 
}

body.fa .another-new-product-container {
    flex-direction: row-reverse;
}

.another-new-product-carousel .product-card {
    width: 350px; 
    height: auto; 
    margin: 0 5px;
    background-color: var(--color-dark);
    color: var(--color-secondary-ax);
    border-radius: 5px;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    border: 1px solid var(--color-dark);
    flex: 0 0 280px; 
    text-align: center; 
    display: none; 
    flex-direction: column;
    justify-content: flex-start; 
}

body.dark-mode .another-new-product-carousel .product-card {
    background-color: var(--color-dark);
}

.another-new-product-carousel .product-card img {
    width: 280px; 
    height: 280px;
    display: block;
    margin: 0 auto; 
}

.another-new-product-carousel .product-card h3 {
    font-size: var(--font-size-large);
    margin: 10px 0;
}

.another-new-product-carousel .product-card p {
    font-size: var(--font-size-base);
    padding: 8px 10px;
}

.another-new-product-carousel .product-card .product-price {
    color: var(--border-color-fs);
    display: flex;
    justify-content: center;
    align-items: center;
}

.another-new-product-carousel .product-card .product-price .price {
    margin-right: 5px; 
}

.another-new-product-carousel .product-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.another-new-product-carousel .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent;
    color: var(--color-light);
    border: none;
    padding: 10px;
    cursor: pointer;
    transition: background-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.another-new-product-carousel .carousel-btn:hover {
    background-color: transparent;
    transform: scale(1.2);
    box-shadow: none;
}

body.dark-mode .another-new-product-carousel .carousel-btn {
    background-color: transparent;
}

body.dark-mode .another-new-product-carousel .carousel-btn:hover {
    background-color: transparent;
    box-shadow: none;
}

.another-new-product-carousel #prev-another-new-page-btn {
    left: 130px; 
    animation: prevBtnAnimation 1s infinite alternate;
}

.another-new-product-carousel #next-another-new-page-btn {
    right: 130px; 
    animation: nextBtnAnimation 1s infinite alternate;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .another-new-product-carousel #prev-another-new-page-btn {
        left: 100px; 
    }

    .another-new-product-carousel #next-another-new-page-btn {
        right: 100px; 
    }
}

@media (max-width: 768px) {
    .another-new-product-carousel #prev-another-new-page-btn {
        left: 70px;
    }

    .another-new-product-carousel #next-another-new-page-btn {
        right: 70px; 
    }
}

@media (max-width: 480px) {
    .another-new-product-carousel #prev-another-new-page-btn {
        left: 40px;
    }

    .another-new-product-carousel #next-another-new-page-btn {
        right: 40px; 
    }
}

/* Responsive Design */
@media (max-width: 600px) {
    .another-new-product-carousel .product-card {
        flex: 0 0 48%; 
        width: 48%; 
        margin: 0 1%; 
    }

    .another-new-product-carousel .product-card img {
        width: 100%; 
        height: auto; 
    }

    .another-new-product-carousel .product-card h3 {
        font-size: var(--font-size-small); 
    }

    .another-new-product-carousel .product-card p {
        font-size: var(--font-size-small); 
    }

    .another-new-product-carousel .product-card .product-price {
        font-size: var(--font-size-small); 
    }
}

/* Responsive Design */
@media (max-width: 600px) {
    .another-new-product-carousel .product-card {
        flex: 0 0 48%; 
        width: 48%; 
        margin: 0 1%; 
        box-sizing: border-box; 
    }

    .another-new-product-carousel .product-card img {
        width: 100%; 
        height: auto; 
        object-fit: cover; 
        display: block;
        margin: 0 auto;
    }

    .another-new-product-carousel .product-card h3,
    .another-new-product-carousel .product-card p,
    .another-new-product-carousel .product-card .product-price {
        font-size: var(--font-size-small); 
        margin: 10px 0; 
    }
}

/* Ensure consistent size for product cards, images, text, and prices */
.another-new-product-carousel .product-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
    margin-top: 30px;
}

.another-new-product-carousel .product-card img {
    width: 100%;
    height: auto;
    object-fit: cover; 
    display: block;
    margin: 0 auto; 
}

.another-new-product-carousel .product-card h3,
.another-new-product-carousel .product-card p,
.another-new-product-carousel .product-card .product-price {
    margin: 10px 0;
}

/* Fixed Product Carousel Section */
.fixed-product-carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 0; 
    transition: background-color var(--transition);
}

body.dark-mode .fixed-product-carousel {
    background-color: var(--color-bg-dark);
}

.fixed-product-carousel .product-container {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    overflow: hidden;
    gap: 10px; 
    height: auto; 
}

body.fa .fixed-product-container {
    flex-direction: row-reverse;
}

.fixed-product-carousel .product-card {
    width: 350px; 
    height: auto; 
    margin: 0 5px;
    background-color: var(--color-dark);
    color: var(--color-secondary-ax);
    border-radius: 5px;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    border: 1px solid var(--color-dark);
    flex: 0 0 280px; 
    text-align: center; 
    display: none; 
    flex-direction: column;
    justify-content: flex-start; 
}

body.dark-mode .fixed-product-carousel .product-card {
    background-color: var(--color-dark);
    color: var(--color-light);
}

.fixed-product-carousel .product-card img {
    width: 280px; 
    height: 280px; 
    display: block;
    margin: 0 auto; 
}

.fixed-product-carousel .product-card h3 {
    font-size: var(--font-size-large);
    margin: 10px 0;
}

.fixed-product-carousel .product-card p {
    font-size: var(--font-size-base);
    padding: 8px 10px;
}

.fixed-product-carousel .product-card .product-price {
    color: var(--border-color-fs); 
    display: flex;
    justify-content: center;
    align-items: center;
}

.fixed-product-carousel .product-card .product-price .price {
    margin-right: 5px; 
}

.fixed-product-carousel .product-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 600px) {
    .fixed-product-carousel .product-card {
        flex: 0 0 48%; 
        width: 48%; 
        margin: 0 1%; 
    }

    .fixed-product-carousel .product-card img {
        width: 100%; 
        height: auto; 
    }

    .fixed-product-carousel .product-card h3 {
        font-size: var(--font-size-small); 
    }

    .fixed-product-carousel .product-card p {
        font-size: var(--font-size-small); 
    }

    .fixed-product-carousel .product-card .product-price {
        font-size: var(--font-size-small); 
    }
}

/* Ensure consistent size for product cards, images, text, and prices */
.fixed-product-carousel .product-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
}

.fixed-product-carousel .product-card img {
    width: 100%;
    height: auto;
    object-fit: cover; 
    display: block;
    margin: 0 auto; 
}

.fixed-product-carousel .product-card h3,
.fixed-product-carousel .product-card p,
.fixed-product-carousel .product-card .product-price {
    margin: 10px 0;
}

/* Second Fixed Product Carousel Section */
.second-fixed-product-carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 0; 
    transition: background-color var(--transition);
}

body.dark-mode .second-fixed-product-carousel {
    background-color: var(--color-bg-dark);
}

.second-fixed-product-carousel .product-container {
    display: flex;
    justify-content: center; 
    flex-wrap: wrap;
    overflow: hidden; 
    gap: 10px; 
    height: auto; 
}

body.fa .second-fixed-product-container {
    flex-direction: row-reverse;
}

.second-fixed-product-carousel .product-card {
    width: 350px; 
    height: auto; 
    margin: 0 5px;
    background-color: var(--color-dark);
    color: var(--color-secondary-ax);
    border-radius: 5px;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    border: 1px solid var(--color-dark);
    flex: 0 0 280px; 
    text-align: center; 
    display: none; 
    flex-direction: column;
    justify-content: flex-start; 
}

body.dark-mode .second-fixed-product-carousel .product-card {
    background-color: var(--color-dark);
    color: var (--color-light);
}

.second-fixed-product-carousel .product-card img {
    width: 280px; 
    height: 280px; 
    display: block;
    margin: 0 auto; 
}

.second-fixed-product-carousel .product-card h3 {
    font-size: var(--font-size-large);
    margin: 10px 0;
}

.second-fixed-product-carousel .product-card p {
    font-size: var(--font-size-base);
    padding: 8px 10px;
}

.second-fixed-product-carousel .product-card .product-price {
    color: var(--border-color-fs); 
    display: flex;
    justify-content: center;
    align-items: center;
}

.second-fixed-product-carousel .product-card .product-price .price {
    margin-right: 5px; 
}

.second-fixed-product-carousel .product-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Center and stack every four products */
.second-fixed-product-carousel .product-container {
    justify-content: center; 
}

.second-fixed-product-carousel .product-card:nth-child(1),
.second-fixed-product-carousel .product-card:nth-child(2),
.second-fixed-product-carousel .product-card:nth-child(3),
.second-fixed-product-carousel .product-card:nth-child(4) {
    display: flex;
    margin-top: 30px;
}

.second-fixed-product-carousel .product-card:nth-child(5),
.second-fixed-product-carousel .product-card:nth-child(6),
.second-fixed-product-carousel .product-card:nth-child(7),
.second-fixed-product-carousel .product-card:nth-child(8) {
    display: flex;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 600px) {
    .second-fixed-product-carousel .product-card {
        flex: 0 0 90%;
        width: 48%; 
        margin: 0 1%;
    }

    .second-fixed-product-carousel .product-card img {
        width: 100%; 
        height: auto;
    }

    .second-fixed-product-carousel .product-card h3 {
        font-size: var(--font-size-small); 
    }

    .second-fixed-product-carousel .product-card p {
        font-size: var(--font-size-small); 
    }

    .second-fixed-product-carousel .product-card .product-price {
        font-size: var(--font-size-small); 
    }
}

/* Ensure consistent size for product cards, images, text, and prices */
.second-fixed-product-carousel .product-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
}

.second-fixed-product-carousel .product-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

.second-fixed-product-carousel .product-card h3,
.second-fixed-product-carousel .product-card p,
.second-fixed-product-carousel .product-card .product-price {
    margin: 10px 0;
}

/* Template Section */
.template-section {
    width: 100%;
    background-color: ver(--color-bg-light);
    padding: 20px 0;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

body.dark-mode .template-section {
    background-color: var(--border-color-bz); 
}

/* FAQ Section */
.faq-section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 10px;
    padding: 20px;
    
}

.faq-item {
    margin-bottom: 10px;
}

.faq-question {
    width: 100%;
    background-color: var(--color-dark);
    color: #acacd2;
    padding: 10px;
    text-align: left;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: none;
    border: 1px solid #cccccc26;
    border-radius: 5px;
}

.faq-icon {
    font-size: 1.5rem;
    background-color: #262626;
    color: var(--color-light);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s, color 0.3s;
}

.faq-icon:hover {
    background-color: #661921;
    color: var(--color-light);
}

.faq-answer {
    display: none;
    padding: 18px 10px 10px 10px; 
    align-items: center;
    justify-content: center;
    text-align: center; 
    direction: ltr; 
    background-color: var(--border-color-bz);
    color: #afafd6;
    border: 1px solid #cccccc26;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: none;
    display: flex;
    flex-direction: column; 
}


.faq-question, .faq-answer {
    min-height: 64px;
    box-sizing: border-box;
}

.faq-question:hover, .faq-answer:hover {
    transform: none;
}

body.fa .faq-question, body.fa .faq-answer {
    direction: rtl;
    text-align: right; 
}

/* FAQ Section */
.faq-section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 10px;
    padding: 20px;
}

.faq-item {
    margin-bottom: 10px;
}

.faq-question {
    width: 100%;
    background-color: var(--color-dark);
    color: #acacd2;
    padding: 10px;
    text-align: left;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: none;
    border: 1px solid #cccccc26;
    border-radius: 5px;
}

.faq-icon {
    font-size: 1.5rem;
    background-color: #ff8a9a;
    color: var(--color-light);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s, color 0.3s;
}

.faq-icon:hover {
    background-color: #20afff;
    color: var(--color-light);
}

.faq-answer {
    display: none;
    padding-left: 10px; 
    padding-right: 10px; 
    align-items: center;
    transition: none;
    background-color: var(--border-color-bz);
    color: #afafd6;
    border: 1px solid #cccccc26;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: left; 
    direction: ltr; 
}

.faq-question, .faq-answer {
    min-height: 64px;
    box-sizing: border-box;
}

.faq-question:hover, .faq-answer:hover {
    transform: none;
}

body.fa .faq-question, body.fa .faq-answer {
    direction: rtl;
    text-align: right; 
}

body:not(.dark-mode) .faq-question, body:not(.dark-mode) .faq-answer {
    background-color: #f9f9f9f3;
    color: #32325a;
}

/* Hamburger Menu */
.hamburger-menu {
    display: none; 
    position: fixed;
    top: 20px;
    right: 20px;
    cursor: pointer;
    z-index: 1000;
}

.hamburger-menu .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--color-dk);
}

.hamburger-menu.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Overlay Menu */
.overlay-menu {
    position: fixed;
    top: 0;
    right: -100%; 
    width: 100%; 
    height: 100%;
    background-color: var(--bg-color);
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: right 0.3s ease-in-out;
}

.overlay-menu.active {
    right: 0; 
}

.overlay-menu a {
    padding: 15px 20px;
    text-align: center;
    width: 100%;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s ease;
    padding-left: 0;
    padding-right: 0;
    background: #f2f2f2;

}

.overlay-menu a:hover {
    color: var(--color-primary-hover);
}

/* Center text of buttons */
.auth-buttons,
.menu-buttons {
    text-align: center;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.auth-buttons {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px; 
    margin-top: 75px;
}

.separator {
    margin: 0 5px; 
}

@media (max-width: 768px) {
    .hamburger-menu {
        display: block;
    }

    .nav-links {
        display: none; 
    }
}


@media (max-width: 1200px) {
    .nav-links,
    .new-buttons {
        display: none; 
    }

    .hamburger-menu {
        display: block; 
    }

    .search-container {
        margin-top: 0; 
    }

    .logo-container {
        right: 20px; 
    }
}


/* Responsive Design */
@media (max-width: 1202px) {
    .bottom-nav {
        width: 100%; 
        height: 100px;
        background-color: var(--color-bg-light); 
        color: var(--color-dark);
        padding: 10px 0;
        text-align: center;
        position: fixed;
        background-image: none;
        z-index: 100;
    }
    .nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%; 
        text-align: center;
        position: fixed;
        top: 6%;
        left: 49%;
        transform: translate(-50%, -50%);

    }
    .logo-container {
        position: absolute;
        right: 100px;
        top: 25%;
        transform: translateY(-50%);
    }
    .faq-section {
        padding-left: 0;
        padding-right: 0;
    }
    .product-gallery {
        width: 100%; 
        padding: 100px 10px 0 10px; 
    }

    .product-info {
        width: 100%; 
        padding: 0px 10px; 
    }
    .cart-buttons {
        margin-left: -250px;
        margin-top: -35px;
    }
    .cart-sidebar {
        width: 100%;
    }
    .sd-btn {
        position: absolute;
        top: 60%;
        transform: translateY(-50%);
        color: var(--color-light);
        border: none;
        padding: 10px;
        cursor: pointer;
        transition: background-color var(--transition), transform var(--transition), box-shadow var(--transition);
    }
}

@media (max-width: 768px) {
    .bottom-nav {
        width: 100%; 
        height: 100px;
        background-color: var(--color-bg-light); 
        color: var(--color-dark);
        padding: 10px 0;
        text-align: center;
        position: fixed;
        background-image: none;
        z-index: 100;
        
    }
    .nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%; 
        text-align: center;
        position: absolute;
        top: 70%;
        left: 49%;
        transform: translate(-50%, -50%);
    }
    .logo-container {
        position: absolute;
        right: 100px;
        top: 25%;
        transform: translateY(-50%);
    }
    .faq-section {
        padding-left: 0;
        padding-right: 0;
    }
    .cart-buttons {
        margin-left: -250px;
        margin-top: -35px;
    }
    .cart-sidebar {
        width: 100%;
    }
    .sd-btn {
        position: absolute;
        top: 60%;
        transform: translateY(-50%);
        color: var(--color-light);
        border: none;
        padding: 10px;
        cursor: pointer;
        transition: background-color var(--transition), transform var(--transition), box-shadow var(--transition);
    }
}

@media (max-width: 600px) {
    .second-fixed-product-carousel .product-card p {
        font-size: var(--font-size-base);
        padding: 20px 10px;
    }
    .second-fixed-product-carousel .product-card h3 {
        padding-top: 6px;
    }
}

@media (max-width: 480px) {
    .bottom-nav {
        width: 100%; 
        height: 100px;
        background-color: var (--color-bg-light); 
        color: var(--color-dark);
        padding: 10px 0;
        text-align: center;
        position: fixed;
        background-image: none;
        padding-top: 0;
        padding-bottom: 0;

        /* position: fixed; */
        top: 0;
        left: 0;
        width: 100%; 
        z-index: 100; 
        background-color: var(--color-light); 
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);  
    }
    .nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%; 
        text-align: center;
        position: absolute;
        top: 70%;
        left: 49%;
        transform: translate(-50%, -50%);
    }
    .logo-container {
        position: absolute;
        right: 50px;
        top: 40%;
        transform: translateY(-50%);
    }
    .logo {
        width: 35px;
        height: 55px;
    }
    .hamburger-menu {
        top: 10px;
    }
    .faq-section {
        padding-left: 0;
        padding-right: 0;
        padding-bottom: 0;
    }
    .search-input {
        height: 40%;
    }
    .second-fixed-product-carousel .product-card p {
        font-size: var(--font-size-base);
        padding: 20px 10px;
    }
    .second-fixed-product-carousel .product-card h3 {
        padding-top: 6px;
    }
    .cart-buttons {
        margin-left: -250px;
        margin-top: -35px;
    }
    .cart-sidebar {
        width: 100%;
    }
    .cart-buttons {
        margin-left: -250px;
        margin-top: -35px;
    }
    .cart-sidebar {
        width: 100%;
    }
    .sd-btn {
        position: absolute;
        top: 60%;
        transform: translateY(-50%);
        color: var(--color-light);
        border: none;
        padding: 10px;
        cursor: pointer;
        transition: background-color var(--transition), transform var(--transition), box-shadow var(--transition);
    }
    .stepper {
        margin-top: 4rem;
    }

}

/* Responsive Design for Cake Category */
@media (max-width: 480px) {
    .new-product-carousel .product-card {
        flex: 0 0 48%; 
        width: 48%; 
        margin: 0 1%; 
        box-sizing: border-box; 
    }

    .new-product-carousel .product-card img {
        width: 100%; 
        height: auto; 
        object-fit: cover; 
        display: block;
        margin: 0 auto; 
    }

    .new-product-carousel .product-card h3,
    .new-product-carousel .product-card p,
    .new-product-carousel .product-card .product-price {
        font-size: var(--font-size-small); 
        margin: 10px 0; 
    }

  
    .new-product-carousel #prev-new-page-btn {
        left: 38px;
        animation: prevBtnAnimation 1s infinite alternate;
    }
    
    .new-product-carousel #next-new-page-btn {
        right: 38px; 
        animation: nextBtnAnimation 1s infinite alternate;
    }
    .second-fixed-product-carousel .product-card p {
        font-size: var(--font-size-base);
        padding: 20px 10px;
    }
    .second-fixed-product-carousel .product-card h3 {
        padding-top: 6px;
    }
    .top-tilte {
        margin-top: 120px;
    }
}

/* Ensure consistent size for product cards, images, text, and prices */
.new-product-carousel .product-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
    margin-top: 30px;
}

.new-product-carousel .product-card img {
    width: 100%;
    height: auto;
    object-fit: cover; 
    display: block;
    margin: 0 auto; 
}

.new-product-carousel .product-card h3,
.new-product-carousel .product-card p,
.new-product-carousel .product-card .product-price {
    margin: 10px 0;
}

/* Prevent horizontal scroll on all screen sizes */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Ensure all elements fit within the viewport */
* {
    box-sizing: border-box;
}

/* Restrict large elements from causing horizontal scroll */
.container, .wrapper, .content {
    max-width: 100%;
    overflow: hidden;
}

/* Prevent elements from extending beyond the screen width */
img, video, iframe {
    max-width: 100%;
    height: auto;
}

/* Login Page Styles */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: var(--color-bg-light);
}

body.dark-mode .login-container {
    background-color: var(--color-bg-dark);
}

.login-form {
    background-color: var(--color-light);
    padding: 0 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 100%;
    max-width: 400px;
    position: relative;
}

body.dark-mode .login-form {
    background-color: var(--text-color);
    color: var(--color-light);
}

.login-form h2 {
    margin-bottom: 20px;
    font-size: 24px;
    color: var(--text-color);
}

body.dark-mode .login-form h2 {
    color: var(--color-light);
}

.login-form input {
    width: 100%;
    padding: 15px 10px; 
    margin-bottom: 20px;
    border: 1px solid var(--border-color-c);
    border-radius: 5px;
    font-size: 16px;
}

body.dark-mode .login-form input {
    background-color: var(--text-color-df);
    color: var(--color-light);
    border: 1px solid var(--color-dark-do);
}

.login-form button {
    width: 100%;
    padding: 13px; 
    margin-bottom: 20px;
    border: none;
    border-radius: 5px;
    background-color: var(--color-primary);
    color: var(--color-light);
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.login-form button:hover {
    background-color: var(--color-primary-hover);
}

body.dark-mode .login-form button {
    background-color: var(--color-secondary);
}

body.dark-mode .login-form button:hover {
    background-color: var(--color-secondary-hover);
}

.auth-links a {
    margin: 0 10px;
    color: var(--color-primary);
    text-decoration: none;
    font-size: 16px;
}

body.dark-mode .auth-links a {
    color: var(--color-secondary);
}

.auth-links a:hover {
    text-decoration: underline;
}

.login-form h2 {
    margin-bottom: 10px;
    font-size: 24px;
    color: var(--text-color);
    font-weight: bold;
}

.input-instruction {
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 18px;
    color: #666;
}

body.dark-mode .input-instruction {
    color: var(--color-light);
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #aaa;
}

.close-btn:hover {
    color: var(--color-dk);
}

.product-card a {
    color: inherit; 
    text-decoration: none; 
}

.container {
    display: flex;
    justify-content: center;
}

.product-page {
    background: var(--bg-color);
    padding: 20px;
    max-width: 1100px;
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: row-reverse; 
    gap: 40px;
}

body.dark-mode .product-page {
    background-color: #444a53; 
}

.product-info {
    flex: 1;
    padding: 20px;
}

.breadcrumb {
    font-size: 14px;
    color: #090926b7;
    margin-bottom: 10px;
}

.product-title {
    font-size: 28px;
    color: #32325d;
    margin-bottom: 10px;
}

.product-price {
    color: var(--color-primary-hover);
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

.add-to-cart {
    background: var(--color-primary);
    color: var(--bg-color);
    border: none;
    padding: 12px 24px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 18px;
    transition: background-color var(--transition), transform var(--transition);
}

.add-to-cart:hover {
    background: var(--color-primary-hover);
}

.product-description {
    font-size: 16px;
    color: #0c0a50;
    margin-top: 15px;
}

.product-gallery {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
}

.thumbnail-container {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.thumbnail-container img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 5px;
    transition: transform 0.3s;
}

.thumbnail-container img:hover {
    transform: scale(1.1);
}

/* Responsive Design for Tablets (iPad) */
@media (max-width: 768px) {
    .product-page {
        flex-direction: column; 
        align-items: center; 
        padding: 10px; 
    }

    .product-gallery {
        width: 100%; 
        padding: 100px 10px 0 10px; 
    }

    .product-info {
        width: 100%; 
        padding: 0px 10px; 
    }

    .main-image img {
        max-width: 100%; 
    }

    .thumbnail-container {
        justify-content: center; 
    }

    .thumbnail-container img {
        width: 60px; 
        height: 60px; 
    }

    .breadcrumb, .product-title, .product-price, .add-to-cart, .product-description {
        text-align: center; 
    } 
}

/* Responsive Design for Mobile Devices */
@media (max-width: 480px) {
    .product-page {
        flex-direction: column; 
        align-items: center; 
        padding: 10px; 
    }

    .product-gallery {
        width: 100%; 
        padding: 100px 10px 0 10px; 
    }

    .product-info {
        width: 100%; 
        padding: 0px 10px; 
    }

    .main-image img {
        max-width: 100%; 
    }

    .thumbnail-container {
        justify-content: center; 
    }

    .thumbnail-container img {
        width: 50px; 
        height: 50px; 
    }

    .breadcrumb, .product-title, .product-price, .add-to-cart, .product-description {
        text-align: center; 
    }

    .add-to-cart {
        width: 100%; 
        padding: 10px; 
    }
}

/* Contact Form Styles */
.contact-form {
    width: 35%;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: var(--color-bg-light);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: background-color var(--transition), color var(--transition);
}

body.dark-mode .contact-form {
    background-color: var(--color-bg-dark);
    color: var(--color-light);
}

.contact-form h2 {
    font-size: var(--font-size-xlarge);
    margin-bottom: 20px;
    color: var(--color-dark);
}

body.dark-mode .contact-form h2 {
    color: var(--color-light);
}

.contact-form label {
    display: block;
    font-size: var(--font-size-base);
    margin-bottom: 5px;
    color: var(--color-dark);
}

body.dark-mode .contact-form label {
    color: var(--color-light);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color-c);
    border-radius: 5px;
    font-size: var(--font-size-base);
    background-color: var(--border-color-g);
    color: var(--color-dark);
    transition: background-color var(--transition), color var(--transition);
}

body.dark-mode .contact-form input,
body.dark-mode .contact-form textarea {
    background-color: var(--text-color);
    color: var(--color-light);
    border: 1px solid var(--color-dark-do);
}

.contact-form input:focus,
.contact-form textarea:focus {
    background-color: var(--color-bg-as);
    outline: none;
}

body.dark-mode .contact-form input:focus,
body.dark-mode .contact-form textarea:focus {
    background-color: var(--text-color-df);
}

.contact-form button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 5px;
    background-color: var(--color-primary);
    color: var(--color-light);
    font-size: var(--font-size-large);
    cursor: pointer;
    transition: background-color var(--transition), transform var(--transition);
}

.contact-form button:hover {
    background-color: var(--color-primary-hover);
}

body.dark-mode .contact-form button {
    background-color: var(--color-secondary);
}

body.dark-mode .contact-form button:hover {
    background-color: var(--color-secondary-hover);
}

.contact-color {
    color: inherit !important;
}

/* Contact Page Icons */
.contact-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.contact-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: var(--color-dark);
    transition: color var(--transition);
}

.contact-icon i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.contact-icon:hover {
    color: var(--color-primary-hover);
}

body.dark-mode .contact-icon {
    color: var(--color-light);
}

body.dark-mode .contact-icon:hover {
    color: var(--color-secondary-hover);
}

/* Contact Page Map */
.contact-map {
    width: 100%;
    height: 400px;
    margin-top: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow var(--transition);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
}

.contact-map:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Bootstrap Icons */
.bi {
    font-size: 1.5rem;
    color: var(--color-dark);
    transition: color var(--transition);
}

.bi:hover {
    color: var(--color-primary-hover);
}

body.dark-mode .bi {
    color: var(--color-light);
}

body.dark-mode .bi:hover {
    color: var(--color-secondary-hover);
}

/* Contact Box Styles */
.contact-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border: 1px solid var(--color-dark);
    border-radius: 10px;
    background-color: var(--color-bg-light);
    color: var(--color-dark);
    transition: background-color var(--transition), color var(--transition);
}

body.dark-mode .contact-box {
    background-color: var(--color-bg-dark);
    color: var(--color-light);
    border: 1px solid var(--color-light);
}

.contact-box h3 {
    font-size: var(--font-size-large);
    margin-bottom: 10px;
}

.contact-box p {
    font-size: var(--font-size-base);
    text-align: center;
    margin-bottom: 10px;
}

.contact-box a {
    color: var(--color-primary);
    text-decoration: none;
    font-size: var(--font-size-base);
    transition: color var(--transition);
}

.contact-box a:hover {
    color: var(--color-primary-hover);
}

body.dark-mode .contact-box a {
    color: var(--color-secondary);
}

body.dark-mode .contact-box a:hover {
    color: var(--color-secondary-hover);
}

/* Contact Form Section */
.contact-form-section {
    padding: 20px 0;
    background-color: var(--color-bg-light);
    text-align: center;
}

.contact-form-section h2 {
    font-size: var(--font-size-xxlarge);
    margin-bottom: 20px;
    color: var(--color-dark);
}

.contact-form-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.contact-info-left {
    flex: 1 1 300px;
    position: relative;
}

.contact-info-left img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.contact-form {
    flex: 1 1 300px;
    padding: 30px;
    background-color: var(--color-light);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: absolute;
    top: 65%;
    left: 81%;
    transform: translate(-50%, -50%);
}

.contact-form label {
    display: block;
    font-size: var(--font-size-large);
    margin-bottom: 10px;
    color: var(--color-dark);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color-c);
    border-radius: 5px;
    font-size: var(--font-size-base);
    background-color: var(--border-color-g);
    color: var(--color-dark);
    transition: background-color var(--transition), color var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    background-color: var(--color-bg-as);
    outline: none;
}

.contact-form button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 5px;
    background-color: var(--color-primary);
    color: var(--color-light);
    font-size: var(--font-size-large);
    cursor: pointer;
    transition: background-color var(--transition), transform var(--transition);
}

.contact-form button:hover {
    background-color: var(--color-primary-hover);
}

/* Responsive Design for Contact Form */
@media (max-width: 1024px) {
    .contact-form-wrapper {
        flex-direction: column;
    }

    .contact-form {
        position: static;
        transform: none;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .contact-form-wrapper {
        flex-direction: column;
    }

    .contact-form {
        position: static;
        transform: none;
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .contact-form-wrapper {
        flex-direction: column;
    }

    .contact-form {
        position: static;
        transform: none;
        margin-top: 20px;
        width: 90%; 
        padding: 20px; 
    }
}

/* Contact Information Section */
.contact-info-section {
    padding: 50px 0;
    background-color: var(--color-bg-dark);
    text-align: center;
}

.contact-info-section .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
}

.contact-box {
    flex: 1 1 300px;
    padding: 30px;
    background-color: var(--color-light);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    color: var(--color-dark);
    transition: transform var(--transition);
}

.contact-box:hover {
    transform: scale(1.05);
}

.contact-box h3 {
    font-size: var(--font-size-xlarge);
    margin-bottom: 20px;
}

.contact-box p,
.contact-box a {
    font-size: var(--font-size-base);
    margin-bottom: 10px;
    color: var(--color-dark);
    text-decoration: none;
}

.contact-box a:hover {
    color: var (--color-primary-hover);
}

.contact-icon {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--font-size-large);
}

.contact-map {
    width: 100%;
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
}

.contact-map:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Bootstrap Icons */
.bi {
    font-size: 1.5rem;
    color: var(--color-dark);
    transition: color var(--transition);
}

.bi:hover {
    color: var(--color-primary-hover);
}

body.dark-mode .bi {
    color: var(--color-light);
}

body.dark-mode .bi:hover {
    color: var(--color-secondary-hover);
}

/* Contact Box Styles */
.contact-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border: 1px solid var(--color-dark);
    border-radius: 10px;
    background-color: var(--color-bg-light);
    color: var(--color-dark);
    transition: background-color var(--transition), color var(--transition);
}

body.dark-mode .contact-box {
    background-color: var(--color-bg-dark);
    color: var(--color-light);
    border: 1px solid var(--color-light);
}

.contact-box h3 {
    font-size: var(--font-size-large);
    margin-bottom: 10px;
}

.contact-box p {
    font-size: var(--font-size-base);
    text-align: center;
    margin-bottom: 10px;
}

.contact-box a {
    color: var(--color-primary);
    text-decoration: none;
    font-size: var(--font-size-base);
    transition: color var(--transition);
}

.contact-box a:hover {
    color: var(--color-primary-hover);
}

body.dark-mode .contact-box a {
    color: var(--color-secondary);
}

body.dark-mode .contact-box a:hover {
    color: var(--color-secondary-hover);
}

/* Contact Form Section */
.contact-form-section {
    padding: 20px 0;
    background-color: var(--color-bg-light);
    text-align: center;
}

.contact-form-section h2 {
    font-size: var(--font-size-xxlarge);
    margin-bottom: 20px;
    color: var(--color-dark);
}

.contact-form-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.contact-info-left {
    flex: 1 1 300px;
    position: relative;
}

.contact-info-left img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.contact-form {
    flex: 1 1 300px;
    padding: 30px;
    background-color: var(--color-light);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: absolute;
    top: 65%;
    left: 81%;
    transform: translate(-50%, -50%);
}

.contact-form label {
    display: block;
    font-size: var(--font-size-large);
    margin-bottom: 10px;
    color: var(--color-dark);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color-c);
    border-radius: 5px;
    font-size: var(--font-size-base);
    background-color: var(--border-color-g);
    color: var(--color-dark);
    transition: background-color var(--transition), color var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    background-color: var(--color-bg-as);
    outline: none;
}

.contact-form button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 5px;
    background-color: var(--color-primary);
    color: var(--color-light);
    font-size: var(--font-size-large);
    cursor: pointer;
    transition: background-color var(--transition), transform var(--transition);
}

.contact-form button:hover {
    background-color: var(--color-primary-hover);
}

/* Responsive Design for Contact Form */
@media (max-width: 1024px) {
    .contact-form-wrapper {
        flex-direction: column;
    }

    .contact-form {
        position: static;
        transform: none;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .contact-form-wrapper {
        flex-direction: column;
    }

    .contact-form {
        position: static;
        transform: none;
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .contact-form-wrapper {
        flex-direction: column;
    }

    .contact-form {
        position: static;
        transform: none;
        margin-top: 20px;
        width: 90%; 
        padding: 20px; 
    }
}

/* Contact Information Section */
.contact-info-section {
    padding: 50px 0;
    background-color: var(--color-bg-dark);
    text-align: center;
}

.contact-info-section .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
}

.contact-box {
    flex: 1 1 300px;
    padding: 30px;
    background-color: var(--color-light);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    color: var(--color-dark);
    transition: transform var(--transition);
}

.contact-box:hover {
    transform: scale(1.05);
}

.contact-box h3 {
    font-size: var(--font-size-xlarge);
    margin-bottom: 20px;
}

.contact-box p,
.contact-box a {
    font-size: var(--font-size-base);
    margin-bottom: 10px;
    color: var(--color-dark);
    text-decoration: none;
}

.contact-box a:hover {
    color: var(--color-primary-hover);
}

.contact-icon {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--font-size-large);
}

.contact-map {
    width: 100%;
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
}

.contact-map:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Bootstrap Icons */
.bi {
    font-size: 1.5rem;
    color: var(--color-dark);
    transition: color var(--transition);
}

.bi:hover {
    color: var(--color-primary-hover);
}

body.dark-mode .bi {
    color: var(--color-light);
}

body.dark-mode .bi:hover {
    color: var(--color-secondary-hover);
}

/* Contact Box Styles */
.contact-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border: 1px solid var(--color-dark);
    border-radius: 10px;
    background-color: var(--color-bg-light);
    color: var(--color-dark);
    transition: background-color var(--transition), color var(--transition);
}

body.dark-mode .contact-box {
    background-color: var(--color-bg-dark);
    color: var(--color-light);
    border: 1px solid var(--color-light);
}

.contact-box h3 {
    font-size: var(--font-size-large);
    margin-bottom: 10px;
}

.contact-box p {
    font-size: var(--font-size-base);
    text-align: center;
    margin-bottom: 10px;
}

.contact-box a {
    color: var(--color-primary);
    text-decoration: none;
    font-size: var(--font-size-base);
    transition: color var(--transition);
}

.contact-box a:hover {
    color: var(--color-primary-hover);
}

body.dark-mode .contact-box a {
    color: var(--color-secondary);
}

body.dark-mode .contact-box a:hover {
    color: var(--color-secondary-hover);
}

/* Contact Form Section */
.contact-form-section {
    padding: 20px 0;
    background-color: var(--color-bg-light);
    text-align: center;
}

.contact-form-section h2 {
    font-size: var(--font-size-xxlarge);
    margin-bottom: 20px;
    color: var(--color-dark);
}

.contact-form-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.contact-info-left {
    flex: 1 1 300px;
    position: relative;
}

.contact-info-left img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.contact-form {
    flex: 1 1 300px;
    padding: 30px;
    background-color: var(--color-light);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: absolute;
    top: 65%;
    left: 81%;
    transform: translate(-50%, -50%);
}

.contact-form label {
    display: block;
    font-size: var(--font-size-large);
    margin-bottom: 10px;
    color: var(--color-dark);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color-c);
    border-radius: 5px;
    font-size: var(--font-size-base);
    background-color: var(--border-color-g);
    color: var(--color-dark);
    transition: background-color var(--transition), color var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    background-color: var(--color-bg-as);
    outline: none;
}

.contact-form button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 5px;
    background-color: var(--color-primary);
    color: var(--color-light);
    font-size: var(--font-size-large);
    cursor: pointer;
    transition: background-color var(--transition), transform var(--transition);
}

.contact-form button:hover {
    background-color: var(--color-primary-hover);
}

/* Responsive Design for Contact Form */
@media (max-width: 1024px) {
    .contact-form-wrapper {
        flex-direction: column;
    }

    .contact-form {
        position: static;
        transform: none;
        margin-top: 20px;
        width: 100%; 
    }
    .contact-info-left img {
        margin-top: 100px;
    }
}

@media (max-width: 768px) {
    .contact-form-wrapper {
        flex-direction: column;
    }

    .contact-form {
        position: static;
        transform: none;
        margin-top: 20px;
        width: 100%; 
    }
    .contact-info-left img {
        margin-top: 100px;
    }
}

@media (max-width: 480px) {
    .contact-form-wrapper {
        flex-direction: column;
    }

    .contact-form {
        position: static;
        transform: none;
        margin-top: 20px;
        width: 100%; 
        padding: 20px; 
        margin-top: 0;
    }
    .contact-info-left img {
        margin-top: 100px;
    }
}

/* Contact Information Section */
.contact-info-section {
    padding: 50px 0;
    background-color: var(--color-bg-dark);
    text-align: center;
}

.contact-info-section .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
}

.contact-box {
    flex: 1 1 300px;
    padding: 30px;
    background-color: var(--color-light);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    color: var(--color-dark);
    transition: transform var(--transition);
}

.contact-box:hover {
    transform: scale(1.05);
}

.contact-box h3 {
    font-size: var(--font-size-xlarge);
    margin-bottom: 20px;
}

.contact-box p,
.contact-box a {
    font-size: var(--font-size-base);
    margin-bottom: 10px;
    color: var(--color-dark);
    text-decoration: none;
}

.contact-box a:hover {
    color: var(--color-primary-hover);
}

.contact-icon {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--font-size-large);
}

.contact-map {
    width: 100%;
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
}

.contact-map:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Bootstrap Icons */
.bi {
    font-size: 1.5rem;
    color: var(--color-dark);
    transition: color var(--transition);
}

.bi:hover {
    color: var(--color-primary-hover);
}

body.dark-mode .bi {
    color: var(--color-light);
}

body.dark-mode .bi:hover {
    color: var(--color-secondary-hover);
}

/* Contact Box Styles */
.contact-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border: 1px solid var(--color-dark);
    border-radius: 10px;
    background-color: var(--color-bg-light);
    color: var(--color-dark);
    transition: background-color var(--transition), color var(--transition);
}

body.dark-mode .contact-box {
    background-color: var(--color-bg-dark);
    color: var(--color-light);
    border: 1px solid var(--color-light);
}

.contact-box h3 {
    font-size: var(--font-size-large);
    margin-bottom: 10px;
}

.contact-box p {
    font-size: var(--font-size-base);
    text-align: center;
    margin-bottom: 10px;
}

.contact-box a {
    color: var(--color-primary);
    text-decoration: none;
    font-size: var(--font-size-base);
    transition: color var(--transition);
}

.contact-box a:hover {
    color: var(--color-primary-hover);
}

body.dark-mode .contact-box a {
    color: var(--color-secondary);
}

body.dark-mode .contact-box a:hover {
    color: var(--color-secondary-hover);
}

/* Contact Form Section */
.contact-form-section {
    padding: 20px 0;
    background-color: var(--color-bg-light);
    text-align: center;
}

.contact-form-section h2 {
    font-size: var(--font-size-xxlarge);
    margin-bottom: 20px;
    color: var(--color-dark);
}

.contact-form-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.contact-info-left {
    flex: 1 1 300px;
    position: relative;
}

.contact-info-left img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.contact-form {
    flex: 1 1 300px;
    padding: 30px;
    background-color: var(--color-light);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: absolute;
    top: 65%;
    left: 81%;
    transform: translate(-50%, -50%);
}

.contact-form label {
    display: block;
    font-size: var(--font-size-large);
    margin-bottom: 10px;
    color: var(--color-dark);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color-c);
    border-radius: 5px;
    font-size: var(--font-size-base);
    background-color: var(--border-color-g);
    color: var(--color-dark);
    transition: background-color var(--transition), color var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    background-color: var(--color-bg-as);
    outline: none;
}

.contact-form button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 5px;
    background-color: var(--color-primary);
    color: var(--color-light);
    font-size: var(--font-size-large);
    cursor: pointer;
    transition: background-color var(--transition), transform var(--transition);
}

.contact-form button:hover {
    background-color: var(--color-primary-hover);
}

/* Responsive Design for Contact Form */
@media (max-width: 1024px) {
    .contact-form-wrapper {
        flex-direction: column;
    }

    .contact-form {
        position: static;
        transform: none;
        margin-top: 20px;
        width: 100%; 
    }
    .contact-info-left img {
        margin-top: 90px;
    }
}

@media (max-width: 768px) {
    .contact-form-wrapper {
        flex-direction: column;
    }

    .contact-form {
        position: static;
        transform: none;
        margin-top: 20px;
        width: 100%; 
    }
    .contact-info-left img {
        margin-top: 90px;
    }
}

@media (max-width: 480px) {
    .contact-form-wrapper {
        flex-direction: column;
    }

    .contact-form {
        position: static;
        transform: none;
        margin-top: 20px;
        width: 100%; 
        padding: 20px; 
        margin-top: 0;
    }
    .contact-info-left img {
        margin-top: 90px;
    }
}

/* Contact Information Section */
.contact-info-section {
    padding: 50px 0;
    background-color: var(--color-bg-dark);
    text-align: center;
}

.contact-info-section .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
}

.contact-box {
    flex: 1 1 300px;
    padding: 30px;
    background-color: var(--color-light);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    color: var(--color-dark);
    transition: transform var(--transition);
}

.contact-box:hover {
    transform: scale(1.05);
}

.contact-box h3 {
    font-size: var(--font-size-xlarge);
    margin-bottom: 20px;
}

.contact-box p,
.contact-box a {
    font-size: var(--font-size-base);
    margin-bottom: 10px;
    color: var(--color-dark);
    text-decoration: none;
}

.contact-box a:hover {
    color: var(--color-primary-hover);
}

.contact-icon {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--font-size-large);
}

.contact-map {
    width: 100%;
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
}

.contact-map:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Bootstrap Icons */
.bi {
    font-size: 1.5rem;
    color: var(--color-dark);
    transition: color var(--transition);
}

.bi:hover {
    color: var(--color-primary-hover);
}

body.dark-mode .bi {
    color: var(--color-light);
}

body.dark-mode .bi:hover {
    color: var(--color-secondary-hover);
}

/* Contact Box Styles */
.contact-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border: 1px solid var(--color-dark);
    border-radius: 10px;
    background-color: var(--color-bg-light);
    color: var(--color-dark);
    transition: background-color var(--transition), color var(--transition);
}

body.dark-mode .contact-box {
    background-color: var(--color-bg-dark);
    color: var(--color-light);
    border: 1px solid var(--color-light);
}

.contact-box h3 {
    font-size: var(--font-size-large);
    margin-bottom: 10px;
}

.contact-box p {
    font-size: var(--font-size-base);
    text-align: center;
    margin-bottom: 10px;
}

.contact-box a {
    color: var(--color-primary);
    text-decoration: none;
    font-size: var(--font-size-base);
    transition: color var(--transition);
}

.contact-box a:hover {
    color: var(--color-primary-hover);
}

body.dark-mode .contact-box a {
    color: var(--color-secondary);
}

body.dark-mode .contact-box a:hover {
    color: var(--color-secondary-hover);
}

/* Contact Form Section */
.contact-form-section {
    padding: 20px 0;
    background-color: var(--color-bg-light);
    text-align: center;
}

.contact-form-section h2 {
    font-size: var(--font-size-xxlarge);
    margin-bottom: 20px;
    color: var(--color-dark);
}

.contact-form-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.contact-info-left {
    flex: 1 1 300px;
    position: relative;
}

.conta
.contact-info-left img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.contact-form {
    flex: 1 1 300px;
    padding: 30px;
    background-color: var(--color-light);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: absolute;
    top: 65%;
    left: 81%;
    transform: translate(-50%, -50%);
}

.contact-form label {
    display: block;
    font-size: var(--font-size-large);
    margin-bottom: 10px;
    color: var(--color-dark);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color-c);
    border-radius: 5px;
    font-size: var(--font-size-base);
    background-color: var(--border-color-g);
    color: var(--color-dark);
    transition: background-color var(--transition), color var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    background-color: var(--color-bg-as);
    outline: none;
}

.contact-form button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 5px;
    background-color: var(--color-primary);
    color: var(--color-light);
    font-size: var(--font-size-large);
    cursor: pointer;
    transition: background-color var(--transition), transform var(--transition);
}

.contact-form button:hover {
    background-color: var(--color-primary-hover);
}

/* Responsive Design for Contact Form */
@media (max-width: 1024px) {
    .contact-form-wrapper {
        flex-direction: column;
    }

    .contact-form {
        position: static;
        transform: none;
        margin-top: 20px;
        width: 100%; 
    }
    .contact-info-left img {
        margin-top: 90px;
    }
}

@media (max-width: 768px) {
    .contact-form-wrapper {
        flex-direction: column;
    }

    .contact-form {
        position: static;
        transform: none;
        margin-top: 20px;
        width: 100%; 
    }
    .contact-info-left img {
        margin-top: 90px;
    }
}

@media (max-width: 480px) {
    .contact-form-wrapper {
        flex-direction: column;
    }

    .contact-form {
        position: static;
        transform: none;
        margin-top: 20px;
        width: 100%; 
        padding: 20px; 
        margin-top: 0;
    }
    .contact-info-left img {
        margin-top: 90px;
    }
}

/* Contact Information Section */
.contact-info-section {
    padding: 50px 0;
    background-color: var(--color-bg-dark);
    text-align: center;
}

.contact-info-section .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
}

.contact-box {
    flex: 1 1 300px;
    padding: 30px;
    background-color: var(--color-light);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    color: var(--color-dark);
    transition: transform var(--transition);
}

.contact-box:hover {
    transform: scale(1.05);
}

.contact-box h3 {
    font-size: var(--font-size-xlarge);
    margin-bottom: 20px;
}

.contact-box p,
.contact-box a {
    font-size: var(--font-size-base);
    margin-bottom: 10px;
    color: var(--color-dark);
    text-decoration: none;
}

.contact-box a:hover {
    color: var(--color-primary-hover);
}

.contact-icon {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--font-size-large);
}

.contact-map {
    width: 100%;
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
}

.contact-map:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Bootstrap Icons */
.bi {
    font-size: 1.5rem;
    color: var(--color-dark);
    transition: color var(--transition);
}


.bi:hover {
    color: var(--color-primary-hover);
}

body.dark-mode .bi {
    color: var(--color-light);
}

body.dark-mode .bi:hover {
    color: var(--color-secondary-hover);
}

/* Contact Box Styles */
.contact-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border: 1px solid var(--color-dark);
    border-radius: 10px;
    background-color: var(--color-bg-light);
    color: var(--color-dark);
    transition: background-color var(--transition), color var(--transition);
}

body.dark-mode .contact-box {
    background-color: var(--color-bg-dark);
    color: var(--color-light);
    border: 1px solid var(--color-light);
}

.contact-box h3 {
    font-size: var(--font-size-large);
    margin-bottom: 10px;
}

.contact-box p {
    font-size: var(--font-size-base);
    text-align: center;
    margin-bottom: 10px;
}

.contact-box a {
    color: var(--color-primary);
    text-decoration: none;
    font-size: var(--font-size-base);
    transition: color var(--transition);
}

.contact-box a:hover {
    color: var(--color-primary-hover);
}

body.dark-mode .contact-box a {
    color: var(--color-secondary);
}

body.dark-mode .contact-box a:hover {
    color: var(--color-secondary-hover);
}

/* Contact Form Section */
.contact-form-section {
    padding: 20px 0;
    background-color: var(--color-bg-light);
    text-align: center;
}

.contact-form-section h2 {
    font-size: var(--font-size-xxlarge);
    margin-bottom: 20px;
    color: var(--color-dark);
}

.contact-form-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.contact-info-left {
    flex: 1 1 300px;
    position: relative;
}
ct-info-left img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.contact-form {
    flex: 1 1 300px;
    padding: 30px;
    background-color: var(--color-light);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: absolute;
    top: 65%;
    left: 81%;
    transform: translate(-50%, -50%);
}

.contact-form label {
    display: block;
    font-size: var(--font-size-large);
    margin-bottom: 10px;
    color: var(--color-dark);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color-c);
    border-radius: 5px;
    font-size: var(--font-size-base);
    background-color: var(--border-color-g);
    color: var(--color-dark);
    transition: background-color var(--transition), color var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    background-color: var(--color-bg-as);
    outline: none;
}

.contact-form button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 5px;
    background-color: var(--color-primary);
    color: var(--color-light);
    font-size: var(--font-size-large);
    cursor: pointer;
    transition: background-color var(--transition), transform var(--transition);
}

.contact-form button:hover {
    background-color: var(--color-primary-hover);
}

/* Responsive Design for Contact Form */
@media (max-width: 1024px) {
    .contact-form-wrapper {
        flex-direction: column;
    }

    .contact-form {
        position: static;
        transform: none;
        margin-top: 20px;
        width: 100%; 
    }
    .contact-info-left img {
        margin-top: 90px;
    }
}

@media (max-width: 768px) {
    .contact-form-wrapper {
        flex-direction: column;
    }

    .contact-form {
        position: static;
        transform: none;
        margin-top: 20px;
        width: 100%; 
    }
    .contact-info-left img {
        margin-top: 90px;
    }
}

@media (max-width: 480px) {
    .contact-form-wrapper {
        flex-direction: column;
    }
    .contact-form {
        position: static;
        transform: none;
        margin-top: 20px;
        width: 100%; 
        padding: 20px; 
        margin-top: 0;
    }
    .contact-info-left img {
        margin-top: 90px;
    }
    .ma-h2 {
        margin-top: 0;
    }
}

/* Contact Information Section */
.contact-info-section {
    padding: 50px 0;
    background-color: var(--color-bg-dark);
    text-align: center;
}

.contact-info-section .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
}

.contact-box {
    flex: 1 1 300px;
    padding: 30px;
    background-color: var(--color-light);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    color: var(--color-dark);
    transition: transform var(--transition);
}

.contact-box:hover {
    transform: scale(1.05);
}

.contact-box h3 {
    font-size: var(--font-size-xlarge);
    margin-bottom: 20px;
}

.contact-box p,
.contact-box a {
    font-size: var(--font-size-base);
    margin-bottom: 10px;
    color: var(--color-dark);
    text-decoration: none;
}

.contact-box a:hover {
    color: var(--color-primary-hover);
}

.contact-icon {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--font-size-large);
}

.contact-map {
    width: 100%;
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
}

.contact-map:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Bootstrap Icons */
.bi {
    font-size: 1.5rem;
    color: var(--color-primary-hover);
    transition: color var(--transition);
}

/* body.dark-mode .bi {
    color: var(--color-secondary);
} */

/* .bi:hover {
    color: var(--color-primary-hover);
} */

body.dark-mode .bi {
    color: var(--color-secondary-hover);
}

body.dark-mode .bi:hover {
    color: var(--color-secondary-hover);
}

body.dark-mode {
    background-color: var(--color-bg-dark);
    color: var(--color-light);
}

body.dark-mode a:hover {
    color: var(--color-secondary-hover);
}

body a:hover {
    color: var(--color-primary-hover);
}

body.dark-mode button {
    color: var(--color-light);
}

body.dark-mode .footer {
    background-color: var(--color-bg-dark);
    color: var(--color-light);
}

body.dark-mode .footer-content {
    background-color: var(--color-bg-dark);
    color: var(--color-light);
}

body.dark-mode .footer-section a {
    color: var(--color-secondary);
}

body.dark-mode .footer-section a:hover {
    color: var(--color-secondary-hover);
}

body.dark-mode .language-link {
    color: var(--color-secondary);
}

body.dark-mode .language-link:hover {
    color: var(--color-secondary-hover);
}

body.dark-mode .bottom-nav {
    background-color: var(--color-bg-dark);
    color: var(--color-light);
}

body.dark-mode .nav-link {
    color: var(--color-secondary);
}

body.dark-mode .nav-link:hover {
    color: var(--color-secondary-hover);
}

body.dark-mode .search-input {
    background-color: var(--text-color);
    color: var(--color-secondary);
}

body.dark-mode .search-input:focus {
    background-color: var(--text-color-df);
}

body.dark-mode .search-btn {
    background-color: var(--color-secondary);
}

body.dark-mode .search-btn:hover {
    background-color: var(--color-secondary-hover);
}

body.dark-mode .new-btn {
    color: var(--color-secondary);
}

body.dark-mode .new-btn:hover {
    color: var(--color-secondary-hover);
}

body.dark-mode .product-carousel {
    background-color: var(--color-bg-dark);
}

body.dark-mode .product-carousel .product-card {
    background-color: var(--color-dark);
}

body.dark-mode .new-product-carousel {
    background-color: var(--color-bg-dark);
}

body.dark-mode .new-product-carousel .product-card {
    background-color: var (--color-dark);
}

body.dark-mode .another-new-product-carousel {
    background-color: var(--color-bg-dark);
}

body.dark-mode .another-new-product-carousel .product-card {
    background-color: var(--color-dark);
}

body.dark-mode .fixed-product-carousel {
    background-color: var(--color-bg-dark);
}

body.dark-mode .fixed-product-carousel .product-card {
    background-color: var(--color-dark);
}

body.dark-mode .second-fixed-product-carousel {
    background-color: var(--color-bg-dark);
}

body.dark-mode .second-fixed-product-carousel .product-card {
    background-color: var(--color-dark);
}

body.dark-mode .template-section {
    background-color: var(--border-color-bz);
}

body.dark-mode .faq-question, body.dark-mode .faq-answer {
    background-color: var(--border-color-bz);
    color: #afafd6;
}

body.dark-mode .hamburger-menu .bar {
    background-color: var(--color-light);
}

body.dark-mode .overlay-menu {
    background-color: var(--color-bg-dark);
}

body.dark-mode .overlay-menu a {
    background: #4b4a4a30;
    color: var(--color-secondary);
}

body.dark-mode .overlay-menu a:hover {
    color: var(--color-secondary-hover);
}

body.dark-mode .category-title {
    color: var(--color-secondary);
}

body.dark-mode .category-title .line {
    background-color: var(--color-secondary);
}

body.dark-mode .new-black-line {
    background-color: var(--border-color-bz);
}

body.dark-mode .contact-form {
    background-color: var(--color-bg-dark);
    color: var(--color-light);
}

body.dark-mode .contact-form h2 {
    color: var(--color-light);
}

body.dark-mode .contact-form label {
    color: var(--color-light);
}

body.dark-mode .contact-form input,
body.dark-mode .contact-form textarea {
    background-color: var(--text-color);
    color: var(--color-light);
    border: 1px solid var(--color-dark-do);
}

body.dark-mode .contact-form input:focus,
body.dark-mode .contact-form textarea:focus {
    background-color: var(--text-color-df);
}

body.dark-mode .contact-form button {
    background-color: var(--color-secondary);
}

body.dark-mode .contact-form button:hover {
    background-color: var(--color-secondary-hover);
}

body.dark-mode .contact-icon {
    color: var(--color-light);
}

body.dark-mode .contact-icon:hover {
    color: var(--color-secondary-hover);
}

body.dark-mode .contact-box {
    background-color: var(--color-bg-dark);
    color: var(--color-light);
    border: 1px solid var(--color-light);
}

body.dark-mode .contact-box a {
    color: var(--color-secondary);
}

body.dark-mode .contact-box a:hover {
    color: var(--color-secondary-hover);
}

body.dark-mode .contact-info-section {
    background-color: var(--color-bg-dark);
}

body.dark-mode .bi {
    color: var(--color-secondary-hover);
}

body.dark-mode .bi:hover {
    color: var(--color-secondary-hover);
}

.article-text {
    margin-left: 100px;
    margin-right: 100px;
    text-align: justify;
    margin-top: 0;
}

.about-us-section h1, .about-us-section h2 {
    color: var(--text-color-df);
    margin-bottom: 25px;
}

.team-section {
    margin-top: 50px;
    text-align: center; 
}

.values-section {
    margin-top: 100px; 
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.values-section h2 {
    margin-bottom: 15px;
    margin-left: 12px;
}

.values-list {
    list-style-type: none;
    padding: 0;
}

.values-list li {
    background-color: var(--color-light);
    color: var(--text-color-df);
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid var(--border-color-c);
}

.about-image-section {
    text-align: center;
    margin-top: 50px;
    width: 100%; 
}

.about-image-section img {
    width: 90%;
    max-width: 100%;
    border-radius: 10px;
}

body.dark-mode .about-us-section {
    background-color: var(--text-color);
    color: var(--border-color);
    border: 1px solid var(--color-dark-do);
}

body.dark-mode .about-us-section h1, body.dark-mode .about-us-section h2 {
    color: #ffb8c0;
}

body.dark-mode .about-text {
    color: var(--border-color-c);
}

body.dark-mode .values-section {
    background-color: var(--color-bg-dark);
    color: var(--border-color);
}

body.dark-mode .values-list li {
    background-color: #3f3f3fce;
    color: var(--border-color);
}

body.dark-mode .about-image-section img {
    border: 1px solid var(--color-dark-do);
}

.about-m {
    margin-top: 120px;
}

.centered-heading {
    text-align: center;
    margin-bottom: 0;
}

@media (max-width: 1024px) {
    .article-text {
        margin-left: 15px;
        margin-right: 15px;
    }
}

@media (max-width: 768px) {
    .article-text {
        margin-left: 15px;
        margin-right: 15px;
    }
}

@media (max-width: 480px) {
    .article-text {
        margin-left: 15px;
        margin-right: 15px;
    }
}

body.dark-mode .add-to-cart {
    background-color: var(--color-secondary);
}
body.dark-mode .add-to-cart:hover {
    background-color: var(--color-secondary-hover);
}

body.dark-mode .product-price {
    color: var(--color-secondary-hover);
}

body.dark-mode .tem-dark {
   color: var(--color-secondary); 
}

body.dark-mode .product-title {
   color: var(--color-light); 
}
body.dark-mode .product-description {
   color: var(--color-light); 
}

body .centered-heading {
    color: var(--color-primary);
}

body.dark-mode .centered-heading {
    color: var(--color-secondary);
}

.body-error {
    font-family: 'IRANSansWeb';
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: var(--color-light);
    overflow: hidden;
}

.dark-mode .body-error {
    background: var(--color-dk); 
}
 
.error-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    max-width: 600px;
    width: 100%;
    position: relative;
}

.error-content h1 {
    font-size: 3.5rem;
    font-weight: bold;
    color: var(--color-primary);
    margin-bottom: 10px;
    animation: fadeIn 1s ease-in;
    margin-top: 40px;
}

body.dark-mode .error-content h1 {
    color: var(--color-secondary);
}

.error-content h2 {
    font-size: 7rem;
    color: var(--color-primary-hover);
    font-weight: 900;
    margin-bottom: 15px;
    animation: fadeIn 1s ease-in 0.5s;
}

body.dark-mode .error-content h2 {
    color: var(--color-secondary-hover);
}

.error-content p {
    font-size: 1.2rem;
    color: var(--color-dk);
    margin-bottom: 30px;
    animation: fadeIn 1s ease-in 1s;
}

body.dark-mode .error-content p { 
    color: var(--color-light);
}

.button-error {
    padding: 12px 25px;
    background: var(--color-primary);
    border: none;
    color: var(--color-light);
    font-size: 1.1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
}

.button-error:hover {
    background: var(--color-secondary-hover);
}

body.dark-mode .button-error {
    background: var(--color-secondary); 
    color: var(--color-light);
}


body.dark-mode .button-error:hover {
    background: var(--color-primary-hover);
}

/* Chocolate or sugar sprinkling animation */
.sweet-animation {
    position: relative;
    margin-top: 30px;
    width: 200px;
    height: 200px;
    animation: moveUpDown 2s ease-in-out infinite;
}

.cake {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--color-secondary-hover), var(--color-primary-hover));
    border-radius: 15px;
    animation: bounceCake 1.5s ease-in-out infinite, rotateCake 3s infinite linear;
}

/* sprinkle chocolatee */
.sprinkle-effect {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.5) 5%, transparent 5%) repeat;
    animation: sprinkle 1s infinite linear;
    opacity: 0.2;
    z-index: -1;
}

.shine-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.7) 10%, transparent 70%);
    transform: translate(-50%, -50%);
    opacity: 0.3;
    animation: shine 3s ease-in-out infinite;
}

.message {
    position: absolute;
    bottom: 20px;
    font-size: 1.5rem;
    color: #e74c3c;
    animation: fadeInMessage 2s ease-in-out infinite;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceCake {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-30px);
    }
}

@keyframes rotateCake {
    0% {
        transform: translateX(-50%) translateY(0) rotate(0deg);
    }
    100% {
        transform: translateX(-50%) translateY(0) rotate(360deg);
    }
}

@keyframes moveUpDown {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes sprinkle {
    0% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(10px);
    }
}

@keyframes shine {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
}

@keyframes fadeInMessage {
    0%, 100% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
}

@media (max-width: 3840px) {
    .product-carousel #prev-page-btn {
        left: 640px; 
        animation: prevBtnAnimation 1s infinite alternate;
        z-index: 1;
    }
    .product-carousel #next-page-btn {
        right: 640px; 
        animation: prevBtnAnimation 1s infinite alternate;
    }
    .new-product-carousel #prev-new-page-btn {
        left: 640px; 
        animation: prevBtnAnimation 1s infinite alternate;
        z-index: 1;
    }
    .new-product-carousel #next-new-page-btn {
        right: 640px; 
        animation: prevBtnAnimation 1s infinite alternate;
    }
    .another-new-product-carousel #prev-another-new-page-btn {
        left: 640px; 
        animation: prevBtnAnimation 1s infinite alternate;
        z-index: 1;
    }
    .another-new-product-carousel #next-another-new-page-btn {
        right: 640px; 
        animation: prevBtnAnimation 1s infinite alternate;
    }
}

@media (max-width: 2550px) {
    .product-carousel #prev-page-btn {
        left: 640px; 
        animation: prevBtnAnimation 1s infinite alternate;
        z-index: 1;
    }
    .product-carousel #next-page-btn {
        right: 640px; 
        animation: prevBtnAnimation 1s infinite alternate;
    }
    .new-product-carousel #prev-new-page-btn {
        left: 640px; 
        animation: prevBtnAnimation 1s infinite alternate;
        z-index: 1;
    }
    .new-product-carousel #next-new-page-btn {
        right: 640px; 
        animation: prevBtnAnimation 1s infinite alternate;
    }
    .another-new-product-carousel #prev-another-new-page-btn {
        left: 640px; 
        animation: prevBtnAnimation 1s infinite alternate;
        z-index: 1;
    }
    .another-new-product-carousel #next-another-new-page-btn {
        right: 640px; 
        animation: prevBtnAnimation 1s infinite alternate;
    }
}

@media (max-width: 1920px) {
    .product-carousel #prev-page-btn {
        left: 135px; 
        animation: prevBtnAnimation 1s infinite alternate;
        z-index: 1;
    }
    .product-carousel #next-page-btn {
        right: 135px; 
        animation: prevBtnAnimation 1s infinite alternate;
}
    .new-product-carousel #prev-new-page-btn {
        left: 135px; 
        animation: prevBtnAnimation 1s infinite alternate;
        z-index: 1;
    }
    .new-product-carousel #next-new-page-btn {
        right: 135px; 
        animation: prevBtnAnimation 1s infinite alternate;
    }
    .another-new-product-carousel #prev-another-new-page-btn {
        left: 135px; 
        animation: prevBtnAnimation 1s infinite alternate;
        z-index: 1;
    }
    .another-new-product-carousel #next-another-new-page-btn {
        right: 135px; 
        animation: prevBtnAnimation 1s infinite alternate;
    }
}

@media (max-width: 1280px) {
    .product-carousel #prev-page-btn {
        left: 15px; 
        animation: prevBtnAnimation 1s infinite alternate;
        z-index: 1;
    }
    .product-carousel #next-page-btn {
        right: 15px; 
        animation: prevBtnAnimation 1s infinite alternate;
}
    .new-product-carousel #prev-new-page-btn {
        left: 15px; 
        animation: prevBtnAnimation 1s infinite alternate;
        z-index: 1;
    }
    .new-product-carousel #next-new-page-btn {
        right: 15px; 
        animation: prevBtnAnimation 1s infinite alternate;
    }
    .another-new-product-carousel #prev-another-new-page-btn {
        left: 15px; 
        animation: prevBtnAnimation 1s infinite alternate;
        z-index: 1;
    }
    .another-new-product-carousel #next-another-new-page-btn {
        right: 15px; 
        animation: prevBtnAnimation 1s infinite alternate;
    }
}

@media (max-width: 884px) {
    .product-carousel #prev-page-btn {
        left: 120px; 
        animation: prevBtnAnimation 1s infinite alternate;
        z-index: 1;
    }
    .product-carousel #next-page-btn {
        right: 120px; 
        animation: prevBtnAnimation 1s infinite alternate;
}
    .new-product-carousel #prev-new-page-btn {
        left: 120px; 
        animation: prevBtnAnimation 1s infinite alternate;
        z-index: 1;
    }
    .new-product-carousel #next-new-page-btn {
        right: 120px; 
        animation: prevBtnAnimation 1s infinite alternate;
    }
    .another-new-product-carousel #prev-another-new-page-btn {
        left: 120px; 
        animation: prevBtnAnimation 1s infinite alternate;
        z-index: 1;
    }
    .another-new-product-carousel #next-another-new-page-btn {
        right: 120px; 
        animation: prevBtnAnimation 1s infinite alternate;
    }
}

@media (max-width: 768px) {
    .product-carousel #prev-page-btn {
        left: 60px; 
        animation: prevBtnAnimation 1s infinite alternate;
        z-index: 1;
    }
    .product-carousel #next-page-btn {
        right: 60px; 
        animation: prevBtnAnimation 1s infinite alternate;
}
    .new-product-carousel #prev-new-page-btn {
        left: 60px; 
        animation: prevBtnAnimation 1s infinite alternate;
        z-index: 1;
    }
    .new-product-carousel #next-new-page-btn {
        right: 60px; 
        animation: prevBtnAnimation 1s infinite alternate;
    }
    .another-new-product-carousel #prev-another-new-page-btn {
        left: 60px; 
        animation: prevBtnAnimation 1s infinite alternate;
        z-index: 1;
    }
    .another-new-product-carousel #next-another-new-page-btn {
        right: 60px; 
        animation: prevBtnAnimation 1s infinite alternate;
    }
}

/* general page style */
.body-cart {
    margin: 0;
    font-family: sans-serif;
    background-color: #f5f5f5;
    direction: rtl; 
}
  
/* button to open the shopping cart */
.cart-btn {
    margin: 20px;
    padding: 12px 24px;
    background-color: #ff7f50; 
    color: var(--color-light);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: background-color 0.3s;
}

.cart-btn:hover {
    background-color: #ff9b6f;
}
  
/* indicates the number of items in the shopping cart button */
.cart-count {
    background-color: var(--color-light);
    color: #ff7f50;
    border-radius: 50%;
    padding: 2px 8px;
    margin-right: 8px;
    font-weight: bold;
}
  
/* semi-transparent layer behind the shopping cart */
.cart-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
    z-index: 1000;
}
  
/* Shopping cart sidebar */
.cart-sidebar {
    position: absolute;
    top: 0;
    right: 0;
    width: 360px;
    max-width: 100%;
    height: 100%;
    background: var(--color-light);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    box-shadow: -2px 0 8px rgba(0,0,0,0.2);
}

.cart-sidebar.open {
    transform: translateX(0);
}
  
/* shopping cart header */
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--color-primary);
    color: var(--color-light);
    padding: 16px;
}

body.dark-mode .cart-header {
    background: var(--color-secondary); 
}

body.dark-mode .cart-sidebar {
    background: var(--color-bg-dark); 
}

body.dark-mode .price-info li {
    color: #f1f3f5; 
}

.cart-header h2 {
    margin: 0;
    font-size: 18px;
}

.close-btnn {
    background: transparent;
    border: none;
    font-size: 24px;
    color: var(--color-light);
    cursor: pointer;
    transition: transform 0.2s;
}

.close-btnn:hover {
    transform: scale(1.1);
}
  
/* list of products */
.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.cart-item {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.cart-item img {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
    margin-left: 10px;
}

.item-info {
    flex: 1;
}

.item-info h3 {
    margin: 0 0 6px 0;
    font-size: 16px;
}
  
.item-info p {
    margin: 0 0 8px 0;
}
  
/* Control increasing and decreasing the number */
.quantity-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.minus-btn,
.plus-btn {
    width: 30px;
    height: 30px;
    background: var(--color-secondary);
    border: none;
    cursor: pointer;
    color: var(--color-light);
    font-size: 18px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.minus-btn:hover,
.plus-btn:hover {
    background: var(--color-primary-hover);
}
  
body.dark-mode .minus-btn {
    background: var(--color-primary-hover); 
}

body.dark-mode .plus-btn{
    background: var(--color-primary-hover); 
}

body.dark-mode .minus-btn:hover {
    background: var(--color-secondary-hover); 
}

body.dark-mode .plus-btn:hover {
    background: var(--color-secondary-hover); 
}

/* shopping cart footer */
.cart-footer {
    border-top: 1px solid var(--border-color);
    padding: 16px;
}
  
/* display list of prices and postage */
.price-info {
    list-style: none;
    margin: 0;
    padding: 0;
    margin-bottom: 12px;
}

.price-info li {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 15px;
    color: var(--text-color);
}
  
/* buttons at the bottom of the shopping cart */
.cart-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.checkout-btn,
.view-cart-btn {
    flex: 1;
    padding: 10px 12px;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    color: var(--color-light);
    transition: background-color 0.3s;
}

.checkout-btn {
    background: var(--color-primary); 
}

.checkout-btn:hover {
    background: var(--color-primary-hover);
}

.view-cart-btn {
    background: var(--color-secondary); 
}

.view-cart-btn:hover {
    background: var(--color-secondary-hover);
}

.cart-buttons {
    position: absolute;
    top: -10px;
    left: 270px;
    display: flex;
    gap: 0.1px;
    margin-bottom: 10px; 
    text-decoration: none;
    font-size: var(--font-size-large);
    background-color: transparent;
    border: none;
    transition: color var(--transition), transform var(--transition);
}

.new-btn-cart:hover {
    color: var(--color-primary-hover); 
    transform: translateY(5px);
}

body.dark-mode .new-btn-cart{
    color: var(--color-secondary); 
}

body.dark-mode .new-btn-cart:hover {
    color: var(--color-secondary-hover); 
}

/* shopping cart button style */
.cart-button {
    display: inline-flex;
    align-items: center;
    gap: 8px; 
    background-color: var(--color-primary);
    color: var(--color-light);
    border: none;
    border-radius: 8px;
    padding: 8px 8px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.cart-button:hover {
    background-color: var(--color-primary-hover);
}

body.dark-mode .cart-button{
    background-color: var(--color-secondary); 
}

body.dark-mode .cart-button:hover {
    background-color: var(--color-secondary-hover); 
}

  
/* input field style */
#search-input {
    width: 100%;
    padding: 10px;
    padding-right: 60px;
    font-size: 16px;
    border: 1px solid var(--border-color-c);
    border-radius: 10px;
    outline: none;
    transition: border-color 0.3s;
}
  
/* change the color of the input border in focus mode */
#search-input:focus {
    border-color: var(--color-primary);
}
  
/* search button style */
.search-btnt {
    position: absolute;
    top: 88%;
    left: 240px; 
    transform: translateY(-50%);
    border: none;
    background: none;
    cursor: pointer;
    outline: none;
}
  
/* SVG icon style in the search button */
.search-btnt svg {
    width: 32px;
    height: 32px;
    fill: #666;
    transition: fill 0.3s;
}
  
/* change the color of the icon when hovering */
.search-btnt:hover svg {
    fill: var(--color-primary-hover);
}
  
body.dark-mode .search-btnt:hover svg {
    fill: var(--color-secondary-hover); 
}

body.dark-mode #search-input:focus {
    border-color: var(--color-secondary); 
}

@media (max-width: 1280px) {
    .search-btnt {
        position: absolute;
        top: 88%;
        left: 210px; 
        transform: translateY(-50%);
        border: none;
        background: none;
        cursor: pointer;
        outline: none;
    }
    #search-input {
        padding-right: 45px; 
    }
}  

@media (max-width: 884px) {
    .search-btnt {
        position: absolute;
        top: 67%;
        left: 230px; 
        transform: translateY(-50%);
        border: none;
        background: none;
        cursor: pointer;
        outline: none;
    }
    #search-input {
        padding-right: 45px; 
    }
}  

@media (max-width: 820px) {
    .search-btnt {
        position: absolute;
        top: 65%;
        left: 230px; 
        transform: translateY(-50%);
        border: none;
        background: none;
        cursor: pointer;
        outline: none;
    }
    #search-input {
        padding-right: 45px; 
    }
}  

@media (max-width: 768px) {
    .search-btnt {
        position: absolute;
        top: 65%;
        left: 230px; 
        transform: translateY(-50%);
        border: none;
        background: none;
        cursor: pointer;
        outline: none;
    }
    #search-input {
        padding-right: 45px; 
    }
}  

@media (max-width: 480px) {
    .search-btnt {
        position: absolute;
        top: 65%;
        left: 255px; 
        transform: translateY(-50%);
        border: none;
        background: none;
        cursor: pointer;
        outline: none;
    }
    #search-input {
        padding-right: 45px; 
    }
    .cart-sidebar {
        width: 100%;
    }
}  

@media (max-width: 360px) {
    .search-btnt {
        position: absolute;
        top: 65%;
        left: 255px; 
        transform: translateY(-50%);
        border: none;
        background: none;
        cursor: pointer;
        outline: none;
    }
    #search-input {
        padding-right: 45px; 
    }
    .cart-sidebar {
        width: 100%;
    }
    
}  

/* @media (max-width: 360px) {
    .ad-slider {
        position: relative;
        width: 100%; 
        height: 600px;
        overflow: hidden;
        margin: 0; 
        padding: 0; 
        border: none;
        border-radius: 0; 
        box-shadow: none;
    }
    
    .ad-slide {
        display: none;
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        transition: opacity 0.5s ease-in-out;
    }
    
    .ad-slide img {
        width: 100%;
        height: 100%;
        display: block;
       
        
    }
}   */

/* update message */
#updateMessage {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--color-primary);
  color: var(--color-light);
  padding: 10px 20px;
  border-radius: 5px;
  z-index: 9999;
  opacity: 0;
}

body.dark-mode #updateMessage {
    background: var(--color-secondary); 
}

.container-custom {
  width: 95%;
  max-width: 1200px;
  margin: 2rem auto;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  animation: fadeIn var(--transition-medium) ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* multi-step progress bar (Stepper) */
.stepper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  position: relative;
}

.stepper::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 7%;
  right: 7%;
  height: 3px;
  background-color: var(--border-color-c);
  z-index: 0;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  flex: 1;
  z-index: 1;
}

.circle {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--color-primary-hover); 
  transition: color var(--transition-fast);
}

body.dark-mode .circle {
    color: var(--color-secondary-hover); 
}

.label {
  font-size: 0.9rem;
  color: var(--color-primary-hover);
}

body.dark-mode .label {
    color: var(--color-secondary-hover); 
}

.active .circle {
  color: var(--danger-color);
  animation: bounceIn var(--transition-fast) ease;
}

@keyframes bounceIn {
  0% {
    transform: scale(0.5);
  }
  70% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

/* Shopping cart content (products next to order summary) */
.cart-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.cart-items-as {
  flex: 1 1 60%;
  animation: fadeIn var(--transition-medium) ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cart-item-ss {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--color-dark);
  border-radius: var(--border-radius);
  padding: 1rem;
  margin-bottom: 1rem;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  position: relative;
  animation: slideUp var(--transition-fast) ease;
}

.cart-item-ss:hover {
  transform: scale(1.01);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.item-info-ds {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.item-image img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--border-radius);
}

.item-details {
  display: flex;
  flex-direction: column;
  color: #c3c3ed;
}

.item-details h3 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.item-details .price {
  color: var(--color-primary-hover);
  font-weight: bold;
  font-size: 0.9rem;
}

body.dark-mode .item-details .price {
    color: var(--color-secondary-hover); 
}

/* count control */
.quantity-control-za {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.quantity-control-za button {
  background: var(--color-secondary);
  color: var(--color-light);
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.quantity-control-za button:hover {
  background: var(--color-primary-hover);
  color: var(--color-light);
}

body.dark-mode .quantity-control-za button {
    background-color: var(--color-primary-hover); 
}

body.dark-mode .quantity-control-za button:hover {
    background-color: var(--color-secondary); 
}

.quantity-control-za span {
  min-width: 20px;
  text-align: center;
  color: var(--color-light);
}

.quantity-control-za button:active::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.5);
  left: 0;
  top: 0;
  border-radius: inherit;
  animation: ripple var(--transition-fast) ease;
}

@keyframes ripple {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* Remove product button */
.remove-btn {
  color: #999;
  cursor: pointer;
  transition: color var(--transition-fast);
  font-size: 1.2rem;
  position: relative;
}

.remove-btn:hover {
  color: var(--color-primary-hover);
}

.remove-btn::after {
  content: "حذف محصول";
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--text-color);
  color: var(--color-light);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
  white-space: nowrap;
}

.remove-btn:hover::after {
  opacity: 1;
}

/* order summary */
.cart-summary {
  flex: 1 1 35%;
  background-color: var(--color-dark);
  border-radius: var(--border-radius);
  padding: 1rem;
  animation: fadeIn var(--transition-medium) ease;
}

.summary-title {
  color: #c3c3ed;  
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  color: var(--color-light);
}

.summary-item span {
  font-size: 0.95rem;
}

.summary-total {
  font-size: 1rem;
  font-weight: bold;
  color: var(--text-color);
  margin-top: 1rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
  color: var(--bg-color);
}

/* discount code section */
.discount-code {
  display: flex;
  margin: 1rem 0;
  gap: 0.5rem;
}

.discount-code input {
  flex: 1;
  padding: 0.5rem;
  border-radius: 4px;
  border: 1px solid var(--border-color-c);
  outline: none;
  transition: border-color var(--transition-fast);
}

.discount-code input:focus {
  border-color: var(--main-color);
}

.discount-code button {
  background-color: var(--color-primary);
  color: var(--color-light);
  border: none;
  padding: 0 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.discount-code button:hover {
  background-color: var(--color-primary-hover);
}

body.dark-mode .discount-code button {
    background-color: var(--color-secondary); 
}

body.dark-mode .discount-code button:hover {
    background-color: var(--color-secondary-hover); 
}

.discount-code button:active::after {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  animation: ripple var(--transition-fast) ease;
}

/* checkout button */
.checkout-btn-cs {
  display: inline-block;
  width: 100%;
  text-align: center;
  background-color: var(--color-primary);
  color: var(--color-light);
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 1rem;
  font-size: 1rem;
  transition: background-color var(--transition-fast);
  position: relative;
  overflow: hidden;
}

body.dark-mode .checkout-btn-cs {
    background-color: var(--color-secondary); 
}

body.dark-mode .checkout-btn-cs:hover {
    background-color: var(--color-secondary-hover);  
}



.checkout-btn-cs:hover {
  background-color: var(--color-primary-hover);
}

.checkout-btn-cs:active::after {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  animation: ripple var(--transition-fast) ease;
}

/* @import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&display=swap'); */

.check-by {
  font-family: 'Roboto', sans-serif;
  color: var(--text-color);
  direction: rtl;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  overflow: visible;
  position: relative;
}

/* Form with entry animation (Fade In + Slide Up) */
.form-container {
  background: var(--color-light);
  padding: 30px;
  border-radius: calc(var(--border-radius) + 2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 600px;
  opacity: 0;
  transform: translateY(20px);
  animation: formFadeIn 1s ease-out forwards;
  position: relative;
  z-index: 1;
}

body.dark-mode .form-container {
    background: var(--text-color); 
}

@keyframes formFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.text-h {
  text-align: center;
  margin-bottom: 20px;
  color: var(--color-primary);
  font-size: 1.6rem;
}

body.dark-mode .text-h {
    color: var(--color-secondary); 
}

.form-group {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 15px;
  justify-content: space-between;
}

.form-group .field {
  flex: 1 1 calc(50% - 10px);
}

.label-cv {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 5px;
  font-weight: 500;
}

body.dark-mode .label-cv  {
    color: var(--bg-color); 
}

.input-cv,
.select-sv,
.textarea-sv {
  width: 100%;
  padding: var(--input-padding);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: border-color var(--transition-fast) ease, box-shadow var(--transition-fast) ease;
}

.input-cv:focus,
.select-sv:focus,
.textarea-sv:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 8px rgba(230, 74, 25, 0.2);
  outline: none;
}

body.dark-mode .input-cv {
    background: var(--color-bg-dark); 
    color: var(--bg-color);
}

body.dark-mode .textarea-sv {
    background: var(--color-bg-dark); 
    color: var(--bg-color);
}

body.dark-mode .input-cv:focus {
    border-color: var(--color-secondary); 
    box-shadow: 0 0 8px rgba(230, 74, 25, 0.2);
    outline: none;
}
body.dark-mode .select-sv:focus {
    border-color: var(--color-secondary); 
    box-shadow: 0 0 8px rgba(230, 74, 25, 0.2);
    outline: none;
}
body.dark-mode .textarea-sv:focus {
    border-color: var(--color-secondary); 
    box-shadow: 0 0 8px rgba(230, 74, 25, 0.2);
    outline: none;
}

.textarea-sv {
  resize: vertical;
  min-height: 80px;
}

.full-width {
  flex: 1 1 100%;
}

.submit-btn {
  width: 100%;
  background-color: var(--color-primary);
  color: var(--color-light);
  padding: 12px;
  border: none;
  font-size: 1rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: background var(--transition-fast) ease, transform 0.2s ease;
}

.submit-btn:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px) scale(1.03);
}

body.dark-mode .submit-btn {
    background-color: var(--color-secondary); 
}

body.dark-mode .submit-btn:hover {
    background-color: var(--color-secondary-hover); 
}

@media (max-width: 480px) {
  .form-group .field {
    flex: 1 1 100%;
  }
}

/* ensure that the select drop-down menu is displayed */
.select-sv {
  position: relative;
  z-index: 1000;
}

/* Confetti Animation */
.confetti {
  position: absolute;
  top: 0;
  width: 8px;
  height: 8px;
  pointer-events: none;
  animation: confettiFall linear forwards;
}

@keyframes confettiFall {
  0% {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translate(var(--finalX), 120vh) rotate(360deg);
  }
}

/* Success Message Animation */
.success-message {
  text-align: center;
  color: var(--color-primary-hover);
  font-size: 1.8rem;
  opacity: 0;
  transform: scale(0.5);
  animation: popIn 0.7s ease-out forwards;
}

body.dark-mode .success-message{
    color: var(--color-secondary-hover);
}

@keyframes popIn {
  0% { opacity: 0; transform: scale(0.5); }
  60% { opacity: 1; transform: scale(1.3); }
  100% { opacity: 1; transform: scale(1); }
}

@media (max-width: 480px) {
    .form-container {
        margin-top: 50px;
    }
}

@media (max-width: 360px) {
    .form-container {
        margin-top: 50px;
    }
}

/* We make each product card relative so we can place the button in it absolutely */
.product-card {
  position: relative;
  width: 200px; 
  margin: 0 10px; 
}

/* Product image */
.product-card .product-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Add to Cart icon button */
.icon-add-to-cart {
  position: absolute;
  top: 8px;  
  left: 8px;   
  width: 32px; 
  height: 32px;
  border: none;
  background-color: transparent;
  cursor: pointer;
  z-index: 2; 
  background: url('../images/Shopping cart icon/business_chip_24dp_FF7A83_FILL0_wght400_GRAD0_opsz24.svg') no-repeat center center;
  background-size: contain;
}

/* Add to Cart icon button dark */
body.dark-mode .icon-add-to-cart {
  position: absolute;
  top: 8px;    
  left: 8px;   
  width: 32px; 
  height: 32px;
  border: none;
  background-color: transparent;
  cursor: pointer;
  z-index: 2; 
  background: url('../images/Shopping cart icon/business_chip_24dp_66E9FF_FILL0_wght400_GRAD0_opsz24.svg') no-repeat center center;
  background-size: contain;
}

.icon-add-to-cart:hover {
  opacity: 0.8;
}

/* We make each product card relative so we can place the button in it absolutely */
.product-card {
  position: relative;
  width: 200px; 
  margin: 0 10px; 
}

/* Product image */
.product-card .product-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Add to Cart icon button */
.add-to-favorites-icon {
  position: absolute;
  top: 8px;  
  left: 40px;   
  width: 32px; 
  height: 32px;
  border: none;
  background-color: transparent;
  cursor: pointer;
  z-index: 2; 
  background: url('../images/Add to Favorites icon/bookmark_heart_24dp_FF818B_FILL0_wght400_GRAD0_opsz24.svg') no-repeat center center;
  background-size: contain;
}

/* Add to Cart icon button dark */
body.dark-mode .add-to-favorites-icon {
  position: absolute;
  top: 8px;    
  left: 40px;   
  width: 32px; 
  height: 32px;
  border: none;
  background-color: transparent;
  cursor: pointer;
  z-index: 2; 
  background: url('../images/Add to Favorites icon/bookmark_heart_24dp_80E9FB_FILL0_wght400_GRAD0_opsz24.svg') no-repeat center center;
  background-size: contain;
}

.add-to-favorites-icon:hover {
  opacity: 0.8;
}
  
/* wishlist */
.body-wishlist {
  font-family: "IRANSansWeb", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Enter animation: fadeInUp */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Main container */
.container-cr {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Section title with color change on hover */
.wishlist-h {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  text-align: center;
  font-weight: 600;
  animation: fadeInUp 0.6s ease-out both;
  transition: color 0.3s ease;
}

/* Favorites list in grid format */
.wishlist {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  list-style: none;
}

/* Item card */
.wishlist-item {
  background-color: var(--bg-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  animation: fadeInUp 0.5s ease-out both;
}

body.dark-mode .wishlist-item {
    background-color: var(--color-dark);
}

/* Add delay for card animation */
.wishlist-item:nth-child(1) { animation-delay: 0.2s; }
.wishlist-item:nth-child(2) { animation-delay: 0.4s; }
.wishlist-item:nth-child(3) { animation-delay: 0.6s; }
.wishlist-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

/* Image section with zoom effect and light gradient */
.item-image-ie {
  width: 100%;
  height: 200px;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.item-image-ie img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.wishlist-item:hover .item-image-ie img {
  transform: scale(1.1);
}

.item-image-ie::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(transparent, rgba(0,0,0,0.2));
  opacity: 0;
  transition: opacity 0.5s ease;
}

.wishlist-item:hover .item-image-ie::after {
  opacity: 1;
}

/* Card description section */
.item-details-is {
  padding: 15px;
  flex: 1;
}

.item-details-is h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  transition: color 0.3s ease;
  color: var(--color-secondary-ax);
}

.wishlist-item:hover .item-details-is h3 {
  color: var(--color-primary-hover);
}

body.dark-mode .item-details-is h3 {
    color: var(--color-secondary-ax);
}

body.dark-mode .wishlist-item:hover .item-details-is h3 {
    color: var(--color-secondary-hover);
}

/* Warehouse status indicator */
.badge-green {
  display: inline-block;
  background-color: var(--success-color);
  color: var(--bg-color);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.85rem;
  /* margin-bottom: 10px; */
  opacity: 0;
  animation: fadeInUp 0.5s ease-out forwards;
  animation-delay: 0.6s;
}

/* Product price */
.item-price {
  font-weight: bold;
  margin-top: 10px;
  font-size: 1rem;
  color: var(--color-primary-hover);
  opacity: 0;
  animation: fadeInUp 0.5s ease-out forwards;
  animation-delay: 0.7s;
}

body.dark-mode .item-price {
    color: var(--color-secondary-hover);
}

/* Bottom of the card: button and product code */
.wishlist-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  border-top: 1px solid #eee;
  opacity: 0;
  animation: fadeInUp 0.5s ease-out forwards;
  animation-delay: 0.8s;
}

/* Add to Cart button with hover and shake effects */
.btn-add {
  background-color: var(--color-primary);
  color: var(--bg-color);
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-add:hover {
  background-color: var(--color-primary-hover);
  transform: scale(1.05);
}

body.dark-mode .btn-add {
    background-color: var(--color-secondary);
} 

body.dark-mode .btn-add:hover {
    background-color: var(--color-secondary-hover);
}   

/* Responsiveness on mobile */
@media (max-width: 480px) {
  .item-image-ie {
    height: 150px;
  }
  .wishlist {
    margin-top: 60px;
    padding-left: 20px;
    padding-right: 20px;
  }
}

.body-views {
  direction: rtl;
  /* background: var(--bg-color); */
  font-family: 'IRANSansWeb';
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 40px;
}

.comments-section {
  width: 100%;
  max-width: 800px;
  /* background-color: var(--bg-color); */
  border-radius: 12px;
  /* padding: 30px; */
}

.comments-section h2 {
  text-align: center;
  margin-bottom: 25px;
  font-size: 1.8rem;
  color: #32325d;
}

body.dark-mode .comments-section h2 {
    color: var(--bg-color);
}

.comments-container {
  margin-bottom: 20px;
}

.comment-item {
  background: #fefefe;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  transition: transform 0.3s, box-shadow 0.3s;
  animation: fadeIn 0.5s ease;
}

body.dark-mode .comment-item {
    background: #444a53;
}

.comment-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.comment-header {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.comment-header img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  margin-left: 10px;
  border: 2px solid #ddd;
}

.comment-author {
  font-weight: 500;
  font-size: 1rem;
  color: var(--text-color);
}

.comment-date {
  font-size: 0.85rem;
  color: #888;
  margin-right: auto;
}

.comment-message {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-color);
  margin-bottom: 10px;
}

body.dark-mode .comment-message {
    color: var(--border-color);
}

body.dark-mode .comment-author  {
    color: var(--border-color);
}

.comment-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.comment-actions button {
  border: none;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.3s;
  color: var(--bg-color);
}

.edit-btn { background-color: var(--color-primary); }
.edit-btn:hover { background-color: var(--color-primary-hover); }
.delete-btn { background-color: var(--danger-color); }
.delete-btn:hover { background-color: var(--danger-hover); }

body.dark-mode .edit-btn {
    background-color: var(--color-secondary);
}

body.dark-mode .edit-btn:hover {
    background-color: var(--color-secondary-hover);
}

.like-btn {
  background-color: var(--color-secondary-hover);
  display: flex;
  align-items: center;
  justify-content: center;
}

.like-btn:hover { background-color: var(--color-secondary-hover); }
.like-count {
  font-size: 0.85rem;
  color: var(--text-color);
  margin-left: 5px;
  align-self: center;
}

body.dark-mode .like-count {
    color: var(--border-color);
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
}

.pagination button {
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 1rem;
  cursor: pointer;
  background-color: var(--color-primary);
  color: var(--bg-color);
  transition: background-color 0.3s;
  margin: 0 5px;
}

.pagination button:hover:not(:disabled) {
  background-color: var(--color-primary-hover);
}

body.dark-mode .pagination button {
    background-color: var(--color-secondary);
}   

body.dark-mode .pagination button:hover:not(:disabled) {
    background-color: var(--color-secondary-hover);
}

.pagination button:disabled {
  background-color: var(--border-color-c);
  cursor: not-allowed;
}

body.dark-mode .pagination button:disabled {
    background-color: var(--border-color-c);
} 

#pageInfo { font-size: 1rem; color: #32325d;; }

body.dark-mode #pageInfo {
    color: var(--bg-color);
} 

.comment-form {
  background: #f7f9fc;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  margin-top: 20px;
}

body.dark-mode .comment-form {
    background: #444a53;
}

.comment-form h3 {
  text-align: center;
  margin-bottom: 15px;
  font-size: 1.4rem;
  color: #32325d;
}

body.dark-mode .comment-form h3 {
    color: var(--bg-color);
} 

.comment-form form {
  display: flex;
  flex-direction: column;
}

.comment-form label {
  margin: 10px 0 5px;
  font-size: 0.95rem;
  color: var(--text-color);
}

.comment-form input,
.comment-form textarea {
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  transition: border-color 0.3s;
}

body.dark-mode .comment-form input{
    background: #282c34;
    color: var(--bg-color);
}

body.dark-mode .comment-form textarea{
    background: #282c34;
    color: var(--bg-color);
}

.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--color-secondary-hover); }
.comment-form textarea { resize: vertical; min-height: 140px; }
.comment-form button {
  width: 150px;
  align-self: center;
  margin-top: 15px;
  padding: 10px;
  font-size: 1rem;
  background-color: var(--color-primary);
  color: var(--bg-color);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.comment-form button:hover { background-color: var(--color-primary-hover);}

body.dark-mode .comment-form button {
    background-color: var(--color-secondary);
}   

body.dark-mode .comment-form button:hover {
    background-color: var(--color-secondary-hover);
}   

/* Toast */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: var(--success-color);
  color: var(--bg-color);
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

.toast.show { animation: slideDown 0.3s ease forwards; }

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.modal-overlay.show {
  display: flex;
  animation: fadeInModal 0.3s ease forwards;
}

.modal {
  background: var(--bg-color);
  border-radius: 10px;
  padding: 20px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  animation: slideDown 0.3s ease forwards;
}

.modal h3 {
  text-align: center;
  margin-bottom: 15px;
  font-size: 1.4rem;
  color: var(--text-color);
}

.modal form {
  display: flex;
  flex-direction: column;
}

.modal form input,
.modal form textarea {
  padding: 10px;
  margin-bottom: 10px;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  transition: border-color 0.3s;
}

.modal form input:focus,
.modal form textarea:focus { border-color: var(--color-secondary-hover); }
.modal-buttons {
  display: flex;
  justify-content: space-between;
}

.modal-buttons button {
  width: 48%;
  padding: 10px;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.save-btn { background-color: var(--success-color); color: var(--bg-color); }
.save-btn:hover { background-color: var(--success-hover); }
.cancel-btn { background-color: var(--danger-color); color: var(--bg-color); }
.cancel-btn:hover { background-color: var(--danger-hover); }

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-10px); }
}
.fade-out { animation: fadeOut 0.3s ease forwards; }
@keyframes slideDown {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Responsive */
@media(max-width: 480px) { .modal { width: 95%; } }




/* Advertising section */
.floating-ad {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 320px;
  background: rgba(33, 161, 241, 0.15);
  /* border: 1px solid rgba(33, 161, 241, 0.3); */
  border-radius: 16px;
  padding: 15px;
 /* Initial state: blue box-shadow */
  box-shadow: 0 0 30px rgba(33, 161, 241, 0.7), 0 0 50px rgba(33, 161, 241, 0.4);
  color: var(--bg-color);
  transition: transform 0.15s, opacity 0.5s ease-in, box-shadow 0.3s ease-in-out;
  transform-style: preserve-3d;
  opacity: 0;
  display: none;
  overflow: hidden;
}

.floating-ad:hover {
  transform: scale(1.02);
}

/* Mouse tracking circle with neon effect */
.mouse-trail {
  position: absolute;
  width: 80px;
  height: 80px;
  background: var(--color-secondary-hover);
  opacity: 0.8;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: left 0.2s ease-out, top 0.2s ease-out, background 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  z-index: 2;
  border-radius: 50%;
  box-shadow: 0 0 30px var(--color-secondary-hover), 0 0 50px var(--color-secondary-hover);
}

/* Other styles */
.close-btnss {
  position: absolute;
  top: 10px;
  left: 10px;
  background: transparent;
  border: none;
  font-size: 22px;
  color: var(--bg-color);
  cursor: pointer;
  transition: transform 0.3s;
  z-index: 3;
}

.close-btnss:hover {
  transform: rotate(90deg);
}

.ad-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.ad-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.ad-content h2 {
  font-size: 20px;
  margin-bottom: 8px;
}

.ad-content p {
  font-size: 16px;
  margin-bottom: 10px;
}

.cta-btn {
  background-color: var(--color-secondary-hover);
  padding: 8px 16px;
  color: var(--bg-color);
  text-decoration: none;
  border-radius: 25px;
  font-size: 16px;
  transition: background-color 0.3s;
}

.cta-btn:hover {
  background-color: var(--color-primary-hover);
}

@media (max-width: 1280px) {
    .floating-ad {
        bottom: 530px;
        right: 60px;
    }
}

@media (max-width: 884px) {
    .floating-ad {
        bottom: 530px;
        right: 60px;
    }
}

@media (max-width: 768px) {
    .floating-ad {
        bottom: 450px;
        right: 80px;
    }
}

@media (max-width: 480px) {
    .floating-ad {
        bottom: 350px;
        right: 50px;
    }
}

@media (max-width: 393px) {
    .floating-ad {
        bottom: 230px auto;
        right: 40px;
    }
}

@media (max-width: 360px) {
    .floating-ad {
        bottom: 220px auto;
        right: 20px;
    }
}

/* Enhanced styles for product cards */
.product-card .original-price {
    color: #999;
    text-decoration: line-through;
    margin-right: 5px;
}

.product-card .discounted-price {
    color: #e60023;
    font-weight: bold;
}
