/* public/assets/css/limitedEdition.css */
@font-face {
    font-family: "MyCustomFont";
    src: url("../fonts/myfont.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

/* --- CSS Variables for Colors & Fonts --- */
:root {
    --bg-main: #f2ecdd;
    --bg-dark: #0f2a1d;
    --bg-card: #ffffff;
    --bg-grid: #e9e4dd;
    --text-dark: #0f2a1d;
    --text-light: #f5f5f5;
    --text-muted: #0f2a1d;
    --accent-primary: #0f2a1d;
    /* A saddle brown for accents */
    --accent-badge: #d98695;
    --font-primary: "MyCustomFont";
}

/* #0f2a1d -dark ...... #f2ecdd - light */
/* --- General & Reset Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-main);
    color: var(--text-dark);
}

img {
    max-width: 100%;
    display: block;
}

button {
    font-family: var(--font-primary);
    cursor: pointer;
}

/* --- Main Wrapper --- */
.main-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* --- Header: Limited Edition Section --- */
.limited-edition-section {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
}

/* 
.limited-edition-section .text-content {
    flex: 1;
} */

.limited-edition-section h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.limited-edition-section p {
    font-size: 1.5rem;
    line-height: 1.6;
    max-width: 500px;
}

.limited-edition-section .image-content {
    flex: 0 0 500px;
    /* Flex-grow, flex-shrink, flex-basis */
    height: 350px;
}

.limited-edition-section .image-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* --- Product Grid --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

/* --- Product Card --- */
.product-card {
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.product-image {
    position: relative;
    background-color: #f0f0f0;
    /* Fallback for images */
}

.product-image img {
    width: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.badge {
    /* CHANGED: Updated badge style for a different look */
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 15px;
    text-transform: capitalize;
}

.wishlist {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.wishlist:hover {
    color: #e53935;
    /* Red on hover */
}

.product-info {
    padding: 1rem;
}

.product-info h3 {
    /* CHANGED: Updated font style */
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.price-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    /* ADDED: Gap for spacing */
}

.price {
    font-size: 14px;
    font-weight: bold;
    color: #2c3b32;
}

.old-price {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
    margin-left: 6px;
}

.add-to-cart {
    padding: 6px 12px;
    border: 1px solid #2c3b32;
    border-radius: 8px;
    background: transparent;
    color: #2c3b32;
    font-size: 12px;
    cursor: pointer;
    transition: 0.3s ease;
}

.add-to-cart:hover {
    background: #2c3b32;
    color: #fff;
}

/* --- Custom Banner Section --- */
.custom-section {
    position: relative;
    height: 400px;
    border-radius: 8px;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.custom-section img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Overlay for text readability */
.custom-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

/* Adding text content from the image */
.custom-section::after {
    /* Allows \A to work as a line break */
    position: relative;
    z-index: 3;
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.2;
}

/* --- Responsive Design --- */

/* Medium devices (tablets, less than 1024px) */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small devices (large phones, less than 768px) */
@media (max-width: 768px) {
    .main-wrapper {
        padding: 1rem;
    }

    .limited-edition-section {
        flex-direction: column;
        text-align: center;
    }

    .limited-edition-section .text-content,
    .limited-edition-section .image-content {
        flex: 1 1 auto;
        /* Allow items to grow/shrink equally */
        width: 100%;
    }

    .limited-edition-section h1 {
        font-size: 1.6rem;
    }

    .custom-section::after {
        font-size: 1.8rem;
        padding: 0 1rem;
    }

    /* .product-grid {
        padding: 1rem;
    } */
}

/* Extra small devices (phones, less than 480px) */
@media (max-width: 480px) {
    .product-grid {
        /* User requested minimum of 2 columns, so we keep it at 2 */
        gap: 1rem;
    }

    .product-info {
        padding: 0.75rem;
    }

    /* --- START: RESPONSIVE CARD CHANGES --- */

    /* REMOVED the old rules that stacked the button below the price */

    /* ADDED new rules to adjust sizing for smaller screens */
    .price {
        font-size: 0.8rem;
    }

    .old-price {
        font-size: 0.6rem;
    }

    /* --- END: RESPONSIVE CARD CHANGES --- */

    .wishlist {
        width: 24px;
        height: 24px;
    }

    .badge {
        background-color: #4b4849;
        padding: 0.3rem 0.3rem;
        font-size: 0.6rem;
    }

    .limited-edition-section {
        gap: 0;
    }

    .limited-edition-section p {
        display: none;
    }

    .limited-edition-section .image-content {
        height: auto;
    }

    .limited-edition-section .image-content img {
        height: 140px;
    }

    .add-to-cart {
        padding: 2px;
    }

    .old-price {
        font-size: 0.4rem;
    }

    .price {
        font-size: 10px;
    }
}
