/*------------------------------------------------- Variables & Reset --------------------*/
:root {
    /* Colors */
    --color-primary: #800000;
    --color-primary-dark: #600000;
    --color-secondary: #e52d27;
    --color-white: #fff;
    --color-black: #000;
    --color-gray-100: #f5f5f5;
    --color-gray-200: #eee;
    --color-gray-600: #666;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 2px 0 8px rgba(0, 0, 0, 0.1);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    
    /* Transitions */
    --transition-base: 0.3s ease;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 5px;
    --radius-lg: 10px;
    --radius-full: 50%;

    min-width: fit-content;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-white);
    font-family: Arial, sans-serif;
    background-image: url('images/fram.png');
    background-repeat: repeat;
    background-size: auto;
    background-attachment: fixed;
    min-height: 100vh;
}

.title{
    text-align: center;
    padding-top: 50px;
    font-size: large;
    color: #600000;

}

.whatsapp-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 999;
    background-color: #25D366;
    border-radius: 50px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.whatsapp-button:hover {
    transform: scale(1.1);
}

.whatsapp-button a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.whatsapp-button img {
    width: 24px;
    height: 24px;
    margin-right: -14px;
    margin-left: 5px;
}
/*------------------------------------------------- Header & Navigation --------------------*/
.header {
    background-color: var(--color-primary);
    padding: var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1000;
}

/*---------------------------------------------- Announcement Bar Updates -----------------------------------------*/
.announcement-bar {
    background-image: url('images/fram.png');
    background-repeat: repeat;
    background-size: 10%;
    color: var(--color-primary-dark);
    padding: 1rem;
    text-align: center;
    position: relative;
    font-weight: bold;
    font-size: 1.1rem;
    border-bottom: 2px solid var(--color-primary);
    animation: slide-in 0.5s ease-out;
}

.announcement-bar span {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.announcement-close {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition-base);
}

.announcement-close:hover {
    background-color: var(--color-primary-dark);
}

@keyframes slide-in {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

nav {
    background-color: var(--color-primary);
}

nav ul {
    display: flex;
    list-style: none;
    padding: var(--spacing-md);
    justify-content: center;
    gap: var(--spacing-lg);
}

.logo {
    color: var(--color-white);
    font-size: 1.5rem;
    text-decoration: none;
    font-weight: bold;
}

nav a {
    color: var(--color-white);
    text-decoration: none;
    font-size: 1.2rem;
}

/*------------------------------------------------- Main Content --------------------*/
.main-content {
    min-height: calc(100vh - 200px);
    display: flex;
    flex-direction: column;
}

main {
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin: var(--spacing-lg) auto;
    max-width: 1200px;
    box-shadow: var(--shadow-md);
}

/* Buttons & Interactive Elements */
.button-base {
    border: none;
    cursor: pointer;
    transition: background-color var(--transition-base);
}

.menu-button {
    display: block;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 1002;
}

.buy-button{
    background-color: var(--color-white);
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    transition: all var(--transition-base);
    flex: 1;
}

.buy-button:hover{
    background-color: var(--color-primary-dark);
    color: var(--color-white);
}

/* Slider Component */
.slider {
    position: relative;
    width: auto;
    height: auto; /* Adjust height as needed */
    overflow: hidden;
    direction: ltr; /* Important for RTL websites to ensure correct sliding */
}

.slider-images {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.slider-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(128, 0, 0, 0.7);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 2;
    transition: background-color 0.3s ease;
}

.slider-arrow:hover {
    background: rgba(128, 0, 0, 0.9);
}

.slider-arrow.prev {
    left: 20px;
}

.slider-arrow.next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.slider-dot.active {
    background: white;
}

/*---------------------------------------- Modal PopUp ----------------------------- */
.product-modal {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 2000;
        }

        .modal-content {
            background: white;
            padding: 2rem;
            border-radius: 10px;
            max-width: 600px;
            width: 90%;
            max-height: 90vh;
            overflow-y: auto;
            position: relative;
        }

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
        }

        .modal-close {
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
            color: var(--color-primary);
        }

        .modal-image {
            width: 100%;
            max-height: 300px;
            object-fit: contain;
            margin-bottom: 1rem;
        }

        .modal-details {
            margin-bottom: 1rem;
        }

        .modal-price {
            color: var(--color-primary);
            font-size: 1.25rem;
            font-weight: bold;
            margin: 1rem 0;
        }

        .read-more-content {
            max-height: 0;
            overflow: hidden;
            transition: max-height var(--transition-base);
        }

        .read-more-content.expanded {
            max-height: 100%;
        }

        .read-more-btn {
            background: none;
            border: none;
            color: var(--color-primary);
            cursor: pointer;
            padding: 0.5rem 0;
            font-weight: bold;
        }
/*============================================================================================================*/

/* Product Grid */
.products {
    
    padding: var(--spacing-xl);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    max-width: 1400px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0);
}

.product {
    border: #6d0000 solid 2px;
    cursor: pointer;
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base);
    will-change: transform;
    background-color: rgba(255, 255, 255, 0);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.product:hover {
    transform: translateY(-5px);
}

.product h3 {
    color: var(--color-primary);
    font-size: 1.1rem;
    margin: var(--spacing-xs) 0;
}



.button-group {
    display: flex;
    gap: var(--spacing-xs);
    justify-content: center;
}

/* Product Images */
.product-image {
    width: 100%;
    height: auto;
    max-width: 300px;
    aspect-ratio: 1;
    margin: 0 auto;
    display: block;
    object-fit: contain;
    transition: transform var(--transition-base);
    background-color: var(--color-gray-100);
    will-change: transform;
}

.product-image:hover {
    transform: scale(1.05);
}

.product-image:not([loaded]) {
    animation: pulse 1.5s infinite;
}
/* normal price*/
.price {
    color: var(--color-primary);
    font-size: 1.3rem;
    font-weight: bold;
    margin: var(--spacing-xs) 0;
}
.price-container {
    display: flex;
    gap: var(--spacing-xs);
    justify-content: center;
    align-items: center;
    margin: var(--spacing-xs) 0;
}

.price-original {
    color: var(--color-primary);
    font-size: 1rem;
    text-decoration: line-through;
    opacity: 0.7;
}

.price-discounted {
    color: var(--color-primary);
    font-size: 1.3rem;
    font-weight: bold;
}
/*===============================================================*/

/*---------------------------------------- Checkout ----------------------------- */
.item-details {
flex: 1;
margin: 0 15px;
}
.item-details h3 {
margin: 0;
font-size: 16px;
}
.total {
display: flex;
justify-content: space-between;
margin-bottom: 15px;
font-weight: bold;
color: #800000;
}
.shipping-note {
text-align: center;
font-size: 14px;
color: #666;
margin-bottom: 15px;
}
.checkout-btn {
width: 100%;
padding: 12px;
background: #800000;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 16px;
}
.checkout-btn:hover {
background: #600000;
}

/*------------------------------------------- Media Queries ------------------------- */
@media (max-width: 768px) {
    .menu-button {
        display: block;
        background: none;
        border: none;
        color: var(--color-white);
        font-size: 1.8rem;
        cursor: pointer;
        z-index: 1002;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;  /* Changed from -250px to ensure it's fully off screen */
        width: 50%;    /* Changed from fixed 250px to be more responsive */
        height: 100vh;
        background-color: var(--color-primary);
        transition: right 0.3s ease;
        z-index: 1001;
        padding-top: 60px;
        box-shadow: var(--shadow-md);
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        display: flex;
        flex-direction: column;
        gap: var(--spacing-md);
        padding: var(--spacing-lg);
        margin-top: var(--spacing-xl);
    }

 
    .main-nav ul li {
        width: 100%;
        text-align: right;
    }

    .main-nav ul li a {
        display: block;
        padding: var(--spacing-sm) 0;
        font-size: 1.2rem;
    }

    .close-nav {
        position: absolute;
        top: var(--spacing-md);
        left: 10%;
        background: none;
        border: none;
        color: var(--color-white);
        font-size: 2.5rem;
        cursor: pointer;
        padding: var(--spacing-xs);
        z-index: 1002;
    }

    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease;
        z-index: 1000;
    }

    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    .products {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
        padding: var(--spacing-md);
    }

    .product {
        padding: var(--spacing-sm);
    }

    .product-image {
        max-width: 200px;
    }
    .slider {
        height: 200px;
    }
    
    .slider-arrow {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }

}



@media (max-width: 480px) {
    .product-image {
        max-width: 150px;
    }
    .slider {
        height: 150px;
    }
}

@media (min-width: 769px) {
    nav {
        position: static;
        width: auto;
        height: auto;
        background: none;
    }

    nav ul {
        display: flex;
        flex-direction: row;
        padding: var(--spacing-md);
    }

    .menu-button,
    .close-nav {
        display: none;
    }

    .header {
        padding: var(--spacing-md) var(--spacing-xl);
    }

    .logo {
        order: -1;
    }

    .close-nav {
        display: none;
    }
}
.additional-description {
    white-space: pre-line;
    text-align: right;
    line-height: 1.6;
    margin-top: 1rem;
}

.additional-description a {
    color: var(--color-primary);
    text-decoration: none;
}

.additional-description a:hover {
    text-decoration: underline;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--color-primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}
/*---------------------------------------- Footer ----------------------------- */
footer {
background-color: var(--color-primary);
color: var(--color-white);
padding: var(--spacing-xl);
margin-top: var(--spacing-xl);
position: relative; /*Added to ensure footer stays at bottom */
width: 100%;
}
.social-icons {
display: flex;
justify-content: center;
gap: var(--spacing-lg);
margin-top: var(--spacing-md);
}
.social-icon {
width: 40px;
height: 40px;
background: var(--color-white);
border-radius: var(--radius-full);
display: flex;
align-items: center;
justify-content: center;
text-decoration: none;
color: var(--color-primary);
font-size: 1.2rem;
transition: transform var(--transition-base);
}
.social-icon:hover {
transform: translateY(-3px);
}
.text-sm{
    padding-top: 30px;
}