:root {
    --primary-color: #41261e;
    /* Dark primary color */
    --secondary-color: #ffd8be;
    /* Soft secondary color */
    --second-hover: #ffe7d6;
    /* Second upon hover */
    --accent-color: #ff0800;
    /* Highlight color for badges or special elements */
    --text-color: #333;
    /* General text color */
    --background-color: #ffffff;
    /* Background color */
    --border-color: rgb(200, 200, 200);
    /* Neutral border color */
    --border-radius: 4px;
    /* General border radius */
    --spacing-small: 5px;
    /* Small spacing */
    --spacing-medium: 10px;
    /* Medium spacing */
    --spacing-large: 20px;
    /* Large spacing */
    --font-small: 0.8rem;
    /* Small font size */
    --font-medium: 1rem;
    /* Default font size */
    --font-large: 1.2rem;
    /* Large font size */
    --transition-speed: 0.3s;
    /* Transition speed for smooth effects */
}




/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: ace_sans;
}

body {
    background-color: #f9f9f9 !important;
    color: #333;
}

@font-face {
    font-family: ace_sans;
    src: url(fonts/AceSans-FREE.otf);
}

/* NAV BAR */

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #ffffff;
    padding: 10px 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 10000;
}

/* Logo */
.logo img {
    max-height: 40px;
    width: auto;
}

/* Icons Section */
.icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.icons div {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--secondary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.icons div:hover {
    background-color: var(--second-hover);
}

/* Desktop Navigation Links */
.nav-links-desktop {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.nav-links-desktop button {
    background-color: var(--secondary-color);
    border: none;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    color: var(--primary-color);
    cursor: pointer;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.nav-links-desktop button:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

/* Mobile Scrollable Navigation Links */
.nav-links-mobile {
    display: none;
    overflow-x: auto;
    white-space: nowrap;
    z-index: 1000;
    gap: 10px;
    padding: 10px 20px;
    position: relative;
    margin-left: -15px;
}

.nav-links-mobile button {
    display: inline-block;
    flex-shrink: 0;
    background-color: var(--secondary-color);
    border: none;
    padding: 7px 7px;
    border-radius: 25px;
    font-size: 12px;
    color: var(--primary-color);
    cursor: pointer;
    transition: background-color 0.3s;
}

.nav-links-mobile button:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.nav-links-mobile::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar */
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links-desktop {
        display: none;
        /* Hide desktop navigation links */
    }

    .nav-links-mobile {
        display: flex;
        /* Show mobile navigation links */
    }
}

@media (min-width: 769px) {
    .nav-links-mobile {
        display: none;
        /* Hide mobile navigation links */
    }

    .nav-links-desktop {
        display: flex;
        /* Show desktop navigation links */
    }
}

/* Hide elements with the class "mobile" on larger screens (PC) */
@media (min-width: 769px) {
    .mobile {
        display: none;
    }
}

@media (max-width: 980px) {
    .pc {
        display: none;
    }

    .mobile {
        display: block;
    }
}


/* Hide elements with the class "pc" on smaller screens (Mobile) */
@media (max-width: 768px) {
    .pc {
        display: none;
    }
}

/* SLIDER */

.slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    /* border-radius: 10px; */
    height: 40rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    transition: transform 0.5s ease;
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
}

.arrow.left {
    left: 10px;
}

.arrow.right {
    right: 10px;
}

.arrow svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 768px) {
    .slider {
        max-width: 100%;
        margin-top: -50px;
        height: 30rem;
    }
}

/* CAT */


.photo-grid-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px;
    width: 100%;
    /* Ensure container takes full width */
}

.photo-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    height: 200px;
    cursor: pointer;
    width: calc(50% - 6px);
    /* Two cards per row */
}

.photo-card:hover {
    scale: 1.03;
    transition: all 0.6s;
}


.photo-card p {
    color: white;
    font-size: 1rem;
    font-weight: bold;
    line-height: 1.25;
    margin: 0;
}

.photo-card.overlay {
    background-image: linear-gradient(0deg,
            rgba(0, 0, 0, 0.4) 0%,
            rgba(0, 0, 0, 0) 100%);
}

/* Media query for mobile devices */
@media (max-width: 768px) {
    .photo-grid-container {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        padding: 16px;
        width: 100%;
        /* Ensure container takes full width */
    }

    .photo-card {
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        gap: 12px;
        padding: 16px;
        border-radius: 12px;
        background-size: cover;
        background-position: center;
        height: 200px;
        width: calc(50% - 6px);
        /* Two cards per row */
    }
}

/* Product */

h2 {
    font-weight: 800;
}

.product-grid {
    display: grid;
    gap: 16px;
    padding: 16px;
    grid-template-columns: repeat(4, 1fr);
    /* Default for PC */
}

.product-card {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    background-color: #ffffff;
    /* Light gray background */
    overflow: hidden;
    /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); */
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    position: relative;
    border: 0.5px solid rgb(199, 199, 199);
}

.product-card:hover {
    scale: 1.04;
    transition: all 0.6s;
}


.img_product {
    position: relative;
}

.img_product img {
    width: 100%;
    /* height: 340px; */
    display: block;
}

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--secondary-color);
    /* Red background for discount */
    color: var(--primary-color);
    font-size: 13px;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
}

.text_product {
    padding: 12px;
    font-weight: 100;
}

.product_name {
    font-size: 16px;
    color: #000000;
    margin: 0;
}

.sale_price {
    font-size: 20px;
    color: #ff0000;
    /* Green for sale price */
    font-weight: bold;
    margin: 8px 0 0;
    font-family: Arial, Helvetica, sans-serif;
}

.price st {
    font-size: 14px;
    text-decoration: line-through;
    font-weight: bold;
    font-family: Arial, Helvetica, sans-serif;
    color: #000000;
    /* Gray for original price */
}


/* Responsive Design */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        /* Two items per row on mobile */
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        /* Two items per row on mobile */
    }

}


/* Ensure consistent margin between the two sections */
.margin-top {
    margin-top: 50px;
    /* Adjust this value for the desired spacing */
}

@media (max-width: 768px) {

    /* Optional: Adjust spacing for mobile screens if needed */
    .margin-top {
        margin-top: 50rem;
        /* Smaller spacing for smaller screens */
    }
}

.top_products {
    display: flex;
    justify-content: space-between;
}

.showall {
    margin-right: 20px;
    /* font-weight: bold; */
    background-color: var(--secondary-color);
    color: var(--primary-color);
    height: 40px;
    margin-top: 8px;
    width: 90px;
    padding: 5px;
    border-radius: 50px;
}

.showall:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

/* ANIMATIONS */
/* Initial state of the items (hidden and scaled down) */
.photo-card,
.product-card {
    transform: scale(0.9);
    /* Slightly smaller */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Animate items when they are scrolled into view */
.photo-card.animate,
.product-card.animate {
    opacity: 1;
    transform: scale(1);
    /* Back to normal size */
}

.midalign {
    display: flex;
    width: 100%;
    justify-content: center;
}

.midalign button {
    width: 150px;
}

/* TESTIMONIAL */

.testimonial-container {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    /* Enable horizontal scrolling */
    padding: 16px;
    scrollbar-width: thin;
    /* scrollbar-color: #ccc #f0f0f0; */
    scroll-snap-type: x mandatory;
    /* Smooth snapping effect */
}

.testimonial-container::-webkit-scrollbar {
    height: 8px;
}

.testimonial-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 8px;
}

.testimonial-box {
    flex: 0 0 300px;
    /* Fixed width for horizontal scroll */
    background: #fff;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    scroll-snap-align: start;
    /* Ensures boxes align properly during scrolling */
}

.testimonial-box:hover {
    transform: translateY(-5px);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.user-avatar {
    width: 48px;
    height: 48px;
    background-size: cover;
    background-position: center;
    border-radius: 50%;
}

.user-name {
    font-size: 16px;
    font-weight: bold;
    color: #1c190d;
}

.stars {
    color: #f3cc20;
    margin-bottom: 12px;
}

.testimonial-text {
    font-size: 14px;
    color: #1c190d;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .testimonial-container {
        display: flex;
        gap: 16px;
        overflow-x: auto;
        /* Keep horizontal scrolling for mobile */
        padding: 16px;
        flex-wrap: nowrap;
        /* Prevent wrapping */
    }

    .testimonial-box {
        flex: 0 0 90%;
        /* Allow more space for mobile users */
        margin-right: 8px;
    }
}

.footer p {
    font-family: Arial, Helvetica, sans-serif !important;
}

/* FEAUTRES ATTRIBTUES */
.features-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    /* Ensure content stays centered */
    overflow-x: auto;
    /* Allow horizontal scrolling if necessary */
}

.feature-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 20px;
    width: 120px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
    /* Prevent shrinking of boxes */
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.feature-box svg {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
    transition: width 0.3s ease, height 0.3s ease;
}

.feature-title {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    transition: font-size 0.3s ease;
}

@media (max-width: 590px) {
    .feature-box {
        width: calc(120px * 0.8);
        /* Scale down proportionally */
        padding: calc(20px * 0.8);
    }

    .feature-box svg {
        width: calc(40px * 0.8);
        height: calc(40px * 0.8);
    }

    .feature-title {
        font-size: calc(14px * 0.8);
    }
}

@media (max-width: 400px) {
    .feature-box {
        width: calc(120px * 0.6);
        /* Scale down further */
        padding: calc(20px * 0.6);
    }

    .feature-box svg {
        width: calc(40px * 0.6);
        height: calc(40px * 0.6);
    }

    .feature-title {
        font-size: calc(14px * 0.6) !important;
    }
}


/* Checkout Section */
.checkout-container {
    max-width: 1200px;
    margin: 20px auto;
    /* margin-left: 260px; */
    padding: 2rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.checkout-details,
.cart-summary {
    flex: 1 1 100%;
}

@media (min-width: 768px) {
    .checkout-details {
        flex: 2 1 60%;
    }

    .cart-summary {
        flex: 1 1 35%;
    }

}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.checkout-form h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.checkout-form label {
    font-weight: 500;
    color: #34495e;
}

.payment-method {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.payment-method label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9fafb;
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
}

.payment-method label input[type="radio"] {
    display: none;
}

.payment-method label span {
    margin-left: 0.5rem;
}

.payment-method label:hover {
    background: #eef3f8;
}

.payment-method label.checked {
    background: #dff0d8;
    border-color: #4caf50;
}

.payment-method .disabled {
    opacity: 0.6;
    pointer-events: none;
}

.payment-method .message {
    background: #fff3cd;
    color: #856404;
    padding: 0.5rem;
    border-radius: 8px;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    text-align: center;
    border: 1px solid #ffeeba;
}

.checkout-btn {
    /* width: 100%; */
    height: 35px;
    border: none;
    background-color: #41261e;
    border-radius: 4px;
    color: #ffd8be;
    transition: all 0.4s;
    border-radius: 50px;
}

.checkout-btn:hover {
    background-color: #ffd8be;
    cursor: pointer;
    color: #41261e;
}

.cart-summary {
    background: #f9fafb;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.cart-summary h4 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cart-item-title {
    font-size: 1rem;
    color: #34495e;
}

.cart-item-price {
    font-size: 1.1rem;
    color: #e74c3c;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    font-size: 1.2rem;
    margin-top: 1rem;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .checkout-container {
        margin: 10px;
        width: calc(100% - 20px);
    }

    .checkout-details,
    .cart-summary {
        flex: 1 1 100%;
    }

    .checkout-form h3 {
        font-size: 1.2rem;
    }

    .checkout-btn {
        font-size: 1rem;
    }
}


.filter-panel {
    display: none;
    /* Hidden by default */
    flex-direction: column;
    gap: 15px;
    font-family: Arial, Helvetica, sans-serif;
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    max-width: 100%;
    transition: all 0.3s ease;
}

.filter-panel.open {
    display: flex;
    /* Show the panel */
}

.filterbtn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: auto;
    padding: 3px 26px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    font-size: 16px;
    height: 37px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    top: 15px;
    transition: all 0.3s ease;
}

/* Hover Effect */
.filterbtn:hover {
    background-color: var(--primary-color);
    /* Invert colors on hover */
    color: var(--secondary-color);
    /* Invert colors on hover */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* Add subtle shadow */
}

/* Responsive Design */
@media (max-width: 768px) {
    .filterbtn {
        font-size: 14px;
        /* Smaller font size on mobile */
        padding: 8px 15px;
        /* Adjust padding */
    }
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 10px;
}

/* Pagination Links */
.pagination a {
    display: inline-block;
    padding: 8px 12px;
    font-size: 14px;
    color: var(--primary-color);
    text-decoration: none;
    border: 1px solid var(--secondary-color);
    border-radius: 4px;
    transition: all 0.3s ease;
}

/* Active Page */
.pagination a.active {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--primary-color);
}

/* Hover Effect */
.pagination a:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Previous and Next Buttons */
.pagination a.prev,
.pagination a.next {
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pagination {
        flex-wrap: wrap;
        gap: 5px;
    }

    .pagination a {
        font-size: 12px;
        padding: 6px 10px;
    }
}


.quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fa-minus-circle,
.fa-plus-circle {
    font-size: 18px;
    color: #333;
}

.fa-trash {
    font-size: 18px;
}



