
       
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #F8F5F0;
}
header{
    position: sticky;
    top: 0;
    z-index: 9999;
}
.container {
    margin-top: 20px;
    background-color: #F8F5F0;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(26, 49, 44, 0.08);
}
.product-card {
    border: 1px solid #E0E8E0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    background-color: #FFFFFF;
}
.product-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 18px rgba(46, 125, 50, 0.25);
}
.product-image {
    height: 250px;
    border-radius: 10px 10px 0 0;
    background-size: cover;
    background-position: center;
    position: relative;
}
.product-details {
    padding: 15px;
}
.product-title {
    background-color: #1A312C;
    padding: 10px;
    border-radius: 5px;
    color: #FFFFFF;
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.2em;
    transition: background-color 0.3s, color 0.3s;
    font-weight: 700;
    text-decoration: none;
}
.product-details h4 {
    margin: 0;
}
.product-details p {
    font-size: 16px;
    margin-bottom: 15px;
}
.add-cart-btn {
    background-color: #1A312C;
    border: 2px solid #1A312C;
    color: #FFFFFF;
    border-radius: 5px;
    padding: 10px 20px;
    transition: background-color 0.3s, color 0.3s;
    width: 100%;
    font-weight: 800;
}
.add-cart-btn:hover {
    background-color: #2E7D32;
    border-color: #2E7D32;
}
.offer-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #8B0000;
    color: #FFD700;
    padding: 3px 6px;
    border-top-right-radius: 10px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    z-index: 5;
}
.product-description {
    font-size: 14px;
    color: #1D1616;
    margin-bottom: 15px;
    line-height: 1.5;
}
h2 {
    font-weight: 700;
}
.card {
    border: none;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(26, 49, 44, 0.12);
}
.card-body {
    padding: 20px;
    text-align: center;
    background-color: #FFFFFF;
    border-radius: 12px;
}
.card-body h5 {
    font-size: 1.2rem;
    font-weight: 600;
}
.card-body p {
    font-size: 0.95rem;
    color: #1D1616;
}
.img-fluid {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease;
}
.img-fluid:hover {
    transform: scale(1.05);
}
.card h4 {
    font-size: 1.2rem;
    font-weight: bold;
}
.btn-primary:hover {
    background-color: #1A312C;
    border-color: #1A312C;
}
.order-value {
    font-weight: bold;
    color: #1A312C;
}
.price-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.5rem;
    padding-left: 2px;
    padding-right: 2px;
    font-weight: 700;
    margin-top: 5px;
    margin-bottom: 5px;
}
.price-strike {
    text-decoration: line-through;
    color: #666666;
    font-size: 1.5rem;
    margin-top: 5px;
    font-weight: 750;
}
.price-current {
    color: #8B0000;
    font-weight: 800;
    font-size: 1.5rem;
    margin-top: 5px;
}
.product-unit {
    background-color: #1A312C;
    color: #FFFFFF;
    padding-left: 8px;
    padding-right: 8px;
    padding-top: 3px;
    padding-bottom: 3px;
    font-size: 14px;
    border-radius: 8px;
}
.quantity-control {
    display: flex;
    align-items: center;
    width: 100%;
    background: #1A312C;
    border: 2px solid #1A312C;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(26, 49, 44, 0.12);
    overflow: hidden;
    height: 50px;
}
.quantity-control button {
    flex: 1;
    background: #1A312C;
    color: #FFFFFF;
    border: none;
    font-size: 22px;
    font-weight: 600;
    padding: 18px 0;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}
.quantity-control button:hover {
    background: #2E7D32;
    transform: scale(1.02);
}
.quantity-control span {
    flex: 1;
    background: #FFFFFF;
    color: #1A312C;
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    border-left: 2px solid #1A312C;
    border-right: 2px solid #1A312C;
}
.suggestion-section {
    margin-top: 10px;
    padding: 10px;
    border-top: 1px solid #E0E8E0;
}
.suggestion-section h5 {
    font-size: 14px;
    margin-bottom: 10px;
}
.suggestion-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}
.suggestion-item img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}
.suggestion-item span {
    flex-grow: 1;
}
.add-suggestion-btn {
    padding: 5px 10px;
    background-color: #D4A017;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.add-suggestion-btn:hover {
    background-color: #B8860B;
}
@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);
    }
}

.product-card.out-of-stock {
    opacity: 0.72;
}
.product-card.out-of-stock .product-img {
    filter: grayscale(20%);
}
.product-card.out-of-stock .add-cart-btn,
.add-cart-btn.out-of-stock-btn {
    background: #9ca3af !important;
    border-color: #9ca3af !important;
    color: #fff !important;
    cursor: not-allowed !important;
    pointer-events: none;
}


@media (max-width: 360px) {
    .body {
        padding: 15px;
    }
    .container {
        padding: 18px;
        margin-top: 12px;
        box-shadow: none;
    }
    .product-image {
        height: 150px;
        width: 100%;
    }
    .offer-badge {
        font-size: 8px;
        padding: 3px 8px;
    }
    .product-title {
        font-size: 0.70rem;
        padding: 2px;
    }
    .product-details h4 {
        font-size: 0.85rem;
        margin: 0;
    }
    .product-card {
        width: 100%;
        margin: 0 auto;
        margin-bottom: 10px;
        border-radius: 10px;
    }
    .add-cart-btn {
        padding: 2px 3px;
        height: 30px;
        justify-content: center;
        font-size: .85rem;
    }
    .price-container {
        font-size: 0.70rem;
    }
    .quantity-control {
        height: 30px;
        justify-content: center;
    }
    .price-strike,
    .price-current {
        font-size: 0.55rem;
    }
    .quantity-control button {
        font-size: 12px;
        padding: 6px 0;
    }
    .quantity-control span {
        font-size: 12px;
    }
    .product-unit {
        font-size: 0.40rem;
        padding-left: 3px;
        padding-right: 3px;
        border-radius: 5px;
    }
}
@media (min-width: 361px) and (max-width: 414px) {
    .body {
        padding: 15px;
    }
    .container {
        padding: 20px;
        margin-top: 15px;
        box-shadow: none;
    }
    .product-image {
        height: 150px;
        width: 100%;
    }
    .offer-badge {
        font-size: 10px;
        padding: 3px 8px;
    }
    .product-title {
        font-size: 0.75rem;
        padding: 3px;
    }
    .product-details h4 {
        font-size: 0.80rem;
        margin: 0;
    }
    .product-card {
        width: 100%;
        margin: 0 auto;
        margin-bottom: 15px;
        border-radius: 10px;
    }
    .add-cart-btn {
        padding: 6px 10px;
        height: 35px;
    }
    .price-container {
        font-size: 0.75rem;
        font-weight: 700;
    }
    .quantity-control {
        height: 35px;
        justify-content: center;
    }
    .price-strike,
    .price-current {
        font-size: 0.75rem;
    }
    .quantity-control button {
        font-size: 1rem;
        padding: 8px 0;
    }
    .quantity-control span {
        font-size: 1rem;
    }
    .product-unit {
        font-size: 0.42rem;
        padding-left: 2px;
        padding-right: 2px;
        border-radius: 4px;
    }
}
@media (min-width: 415px) and (max-width: 430px) {
    body {
        padding: 15px;
    }
    .container {
        padding: 20px;
        margin-top: 15px;
        box-shadow: none;
    }
    .product-image {
        height: 175px;
        width: 100%;
    }
    .offer-badge {
        font-size: 10px;
        padding: 3px 8px;
    }
    .product-title {
        font-size: 0.80rem;
        padding: 3px;
    }
    .product-details h4 {
        font-size: 0.85rem;
        margin: 0;
    }
    .product-card {
        width: 100%;
        margin: 0 auto;
        margin-bottom: 20px;
        border-radius: 10px;
    }
    .add-cart-btn {
        padding: 6px 10px;
        height: 35px;
    }
    .price-container {
        font-size: 0.75rem;
    }
    .quantity-control {
        height: 35px;
        justify-content: center;
    }
    .price-strike,
    .price-current {
        font-size: 0.75rem;
    }
    .quantity-control button {
        font-size: 15px;
        padding: 8px 0;
    }
    .quantity-control span {
        font-size: 15px;
    }
    .product-unit {
        font-size: 0.55rem;
        padding-left: 3px;
        padding-right: 3px;
        border-radius: 5px;
    }
}
@media (min-width: 431px) and (max-width: 480px) {
    body {
        padding: 15px;
    }
    .container {
        padding: 20px;
        margin-top: 15px;
        box-shadow: none;
    }
    .product-image {
        height: 200px;
        width: 100%;
    }
    .offer-badge {
        font-size: 12px;
        padding: 3px 8px;
    }
    .product-title {
        font-size: 0.80rem;
        padding: 3px;
    }
    .product-details h4 {
        font-size: 0.85rem;
        margin: 0;
    }
    .product-card {
        width: 100%;
        margin: 0 auto;
        margin-bottom: 25px;
        border-radius: 10px;
    }
    .add-cart-btn {
        padding: 6px 10px;
        height: 35px;
    }
    .price-container {
        font-size: 0.85rem;
    }
    .quantity-control {
        height: 35px;
        justify-content: center;
    }
    .price-strike,
    .price-current {
        font-size: 0.9rem;
    }
    .quantity-control button {
        font-size: 18px;
        padding: 8px 0;
    }
    .quantity-control span {
        font-size: 18px;
    }
    .product-unit {
        font-size: 0.55rem;
        padding-left: 3px;
        padding-right: 3px;
        border-radius: 6px;
    }
}
@media (min-width: 481px) and (max-width: 720px) {
    body {
        padding: 20px;
    }
    .container {
        padding: 25px;
        margin-top: 20px;
        box-shadow: none;
    }
    .product-image {
        height: 220px;
        width: 100%;
    }
    .offer-badge {
        font-size: 14px;
        padding: 4px 10px;
    }
    .product-title {
        font-size: 1rem;
        padding: 5px;
    }
    .product-details h4 {
        font-size: 1rem;
        margin: 0;
    }
    .product-card {
        width: 100%;
        margin: 0 auto;
        margin-bottom: 30px;
        border-radius: 12px;
    }
    .add-cart-btn {
        padding: 8px 12px;
        height: 40px;
    }
    .price-container {
        font-size: 1rem;
    }
    .quantity-control {
        height: 40px;
        justify-content: center;
    }
    .price-strike,
    .price-current {
        font-size: 1rem;
    }
    .quantity-control button {
        font-size: 20px;
        padding: 10px 0;
    }
    .quantity-control span {
        font-size: 20px;
    }
    .product-unit {
        font-size: 0.50rem;
        padding-left: 5px;
        padding-right: 5px;
        border-radius: 8px;
    }
}
@media (min-width: 721px) and (max-width: 900px) {
    body {
        padding: 20px;
    }
    .container {
        padding: 30px;
        margin-top: 20px;
        box-shadow: 0 0 10px rgba(26, 49, 44, 0.08);
    }
    .product-image {
        height: 220px;
        width: 100%;
    }
    .offer-badge {
        font-size: 14px;
        padding: 4px 10px;
    }
    .product-title {
        font-size: 1rem;
        padding: 5px;
    }
    .product-details h4 {
        font-size: 1rem;
        margin: 5px 0;
    }
    .product-card {
        width: 100%;
        margin: 0 auto;
        margin-bottom: 20px;
        border-radius: 12px;
        box-shadow: 0 5px 15px rgba(26, 49, 44, 0.1);
    }
    .add-cart-btn {
        padding: 10px 15px;
        height: 40px;
    }
    .price-container {
        font-size: 1rem;
    }
    .quantity-control {
        height: 40px;
        justify-content: center;
    }
    .price-strike,
    .price-current {
        font-size: 0.90rem;
    }
    .quantity-control button {
        font-size: 18px;
        padding: 12px 0;
    }
    .quantity-control span {
        font-size: 18px;
    }
    .product-unit {
        font-size: 0.70rem;
        padding-left: 4px;
        padding-right: 4px;
        border-radius: 8px;
    }
}
@media (min-width: 901px) and (max-width: 1280px) {
    body {
        padding: 25px;
    }
    .container {
        padding: 30px;
        margin-top: 25px;
        box-shadow: 0 0 15px rgba(26, 49, 44, 0.08);
    }
    .product-image {
        height: 220px;
        width: 100%;
    }
    .offer-badge {
        font-size: 14px;
        padding: 4px 10px;
    }
    .product-title {
        font-size: 1rem;
        padding: 5px;
    }
    .product-details h4 {
        font-size: 1rem;
        margin: 5px 0;
    }
    .product-card {
        width: 100%;
        margin: 0 auto;
        margin-bottom: 20px;
        border-radius: 12px;
        box-shadow: 0 5px 20px rgba(26, 49, 44, 0.1);
    }
    .add-cart-btn {
        padding: 10px 15px;
        height: 40px;
        font-size: 1rem;
    }
    .price-container {
        font-size: 0.90rem;
    }
    .quantity-control {
        height: 40px;
        justify-content: center;
    }
    .price-strike,
    .price-current {
        font-size: 0.80rem;
    }
    .quantity-control button {
        font-size: 18px;
        padding: 10px 0;
    }
    .quantity-control span {
        font-size: 18px;
    }
    .product-unit {
        font-size: 0.70rem;
        padding-left: 4px;
        padding-right: 4px;
        border-radius: 10px;
    }
}
@media (min-width: 1281px) and (max-width: 1920px) {
    body {
        padding: 25px;
    }
    .container {
        padding: 30px;
        margin-top: 25px;
        box-shadow: 0 0 15px rgba(26, 49, 44, 0.08);
    }
    .product-image {
        height: 220px;
        width: 100%;
    }
    .offer-badge {
        font-size: 14px;
        padding: 4px 10px;
    }
    .product-title {
        font-size: 1rem;
        padding: 5px;
    }
    .product-details h4 {
        font-size: 1rem;
        margin: 5px 0;
    }
    .product-card {
        width: 100%;
        margin: 0 auto;
        margin-bottom: 20px;
        border-radius: 12px;
        box-shadow: 0 5px 20px rgba(26, 49, 44, 0.1);
    }
    .add-cart-btn {
        padding: 10px 15px;
        height: 40px;
        font-size: 1rem;
    }
    .price-container {
        font-size: 0.90rem;
    }
    .quantity-control {
        height: 40px;
        justify-content: center;
    }
    .price-strike,
    .price-current {
        font-size: 0.80rem;
    }
    .quantity-control button {
        font-size: 18px;
        padding: 10px 0;
    }
    .quantity-control span {
        font-size: 18px;
    }
    .product-unit {
        font-size: 0.70rem;
        padding-left: 4px;
        padding-right: 4px;
        border-radius: 10px;
    }
}

.brand-name {
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: #1A312C;
    color: #E8F5E9;
    font-weight: bold;
    padding: 3px 6px;
    border-bottom-left-radius: 10px;
    font-size: 14px;
    z-index: 10;
    border-top-right-radius: 5px;
}
@media (max-width: 360px) { .brand-name { font-size: 8px; padding: 3px 8px; } }
@media (min-width: 361px) and (max-width: 414px) { .brand-name { font-size: 10px; padding: 3px 8px; } }
@media (min-width: 415px) and (max-width: 430px) { .brand-name { font-size: 10px; padding: 3px 8px; } }
@media (min-width: 431px) and (max-width: 480px) { .brand-name { font-size: 12px; padding: 3px 8px; } }
@media (min-width: 481px) and (max-width: 720px) { .brand-name { font-size: 14px; padding: 4px 10px; } }

.category-section {
    margin: 10px 0;
    padding: 5px 0;
    text-align: center;
    background-color: #FFFFFF;
    border-radius: 0;
    width: 100%;
}
.category-slider {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    padding: 5px 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #D4A017 #F8F5F0;
    gap: 10px;
    width: 100%;
}
.category-slider::-webkit-scrollbar { height: 10px; }
.category-slider::-webkit-scrollbar-track { background-color: #F8F5F0; border-radius: 5px; }
.category-slider::-webkit-scrollbar-thumb { background: #D4A017; border-radius: 5px; }
.category-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    background-color: #F8F5F0;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 50px;
    flex-shrink: 0;
}
.category-btn:hover, .category-btn.active {
    background-color: #E8F5E9;
    color: #1A312C;
    transform: translateY(-3px);
    border-color: #2E7D32;
    box-shadow: 0 5px 15px rgba(46, 125, 50, 0.2);
}
.category-image {
    width: 75px;
    height: 75px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 8px;
}
.category-name {
    font-size: 15px;
    font-weight: 600;
    text-transform: capitalize;
}
.subcategory-slider {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    padding: 5px 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #D4A017 #F8F5F0;
    gap: 10px;
    width: 100%;
    background-color: #F1F8E9;
    border-top: 1px solid #C8E6C9;
    margin-top: 5px;
    display: none;
}
.subcategory-slider::-webkit-scrollbar { height: 8px; }
.subcategory-slider::-webkit-scrollbar-track { background-color: #F8F5F0; border-radius: 5px; }
.subcategory-slider::-webkit-scrollbar-thumb { background: #D4A017; border-radius: 5px; }
.subcategory-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    background-color: #F8F5F0;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 50px;
    flex-shrink: 0;
}
.subcategory-btn:hover, .subcategory-btn.active {
    background-color: #D4A017;
    color: white;
    transform: translateY(-3px);
    border-color: #D4A017;
    box-shadow: 0 5px 15px rgba(212, 160, 23, 0.3);
}
.category-item { position: relative; display: inline-block; }
.countdown {
    color: #B8860B;
    font-weight: bold;
    font-size: 0.9rem;
    text-align: center;
    padding: 5px;
    background-color: #FFF8E1;
    border-radius: 5px;
}
.product-card { position: relative; overflow: hidden; }
.product-image { position: relative; width: 100%; padding-bottom: 100%; overflow: hidden; }
.product-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}
.product-details {
    position: relative;
    padding: 10px;
    z-index: 5;
}
.product-title {
    margin: 0;
    padding: 5px 0;
    font-size: 16px;
    min-height: 20px;
    z-index: 5;
}
.variant-select {
    width: 100%;
    padding: 5px;
    margin: 5px 0;
    border: 1px solid #E0E8E0;
    border-radius: 5px;
    font-size: 14px;
}
@media (max-width: 576px) {
    .category-image { width: 50px; height: 50px; margin-bottom: 4px; }
    .category-name { font-size: 12px; }
    .category-slider, .subcategory-slider { padding: 4px; gap: 6px; }
    .category-btn, .subcategory-btn { min-width: 40px; }
}
@media (max-width: 360px) {
    .category-image { width: 40px; height: 40px; margin-bottom: 3px; }
    .category-name { font-size: 10px; }
    .category-slider, .subcategory-slider { padding: 2px; gap: 4px; }
    .category-btn, .subcategory-btn { min-width: 35px; }
}
@media (min-width: 768px) {
    .product-title { font-size: 18px; }
}
