
body {
    background: #f8f9fa;
    font-family: 'Poppins', sans-serif;
}

/* ========== GLOBAL STYLES ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== PRODUCT STYLES ========== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding: 20px;
    margin: 0 auto;
    max-width: 1200px;
}

@media (min-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.product-card {
    position: relative;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Product Image/Carousel */
.product-image-container {
    position: relative;
    width: 100%;
    padding-top: 133.33%;
    overflow: hidden;
    background: #f8f8f8;
    border-radius: 8px 8px 0 0;
}

.product-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.product-carousel-inner {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
}

.product-carousel-item {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.product-carousel-item img,
.product-main-image,
.product-hover-image {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-main-image,
.product-hover-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.3s ease;
}

.product-hover-image {
    opacity: 0;
}

.product-image-link:hover .product-main-image {
    opacity: 0;
}

.product-image-link:hover .product-hover-image {
    opacity: 1;
}

/* Product Indicators */
.product-carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 10;
    list-style: none;
    padding: 0;
    margin: 0;
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease 0.1s;
}

.product-carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: transparent;
    border: 1px solid #000;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.product-carousel-indicator.active {
    background-color: #000;
    opacity: 1;
    transform: scale(1.2);
}

.product-carousel-indicator:hover {
    opacity: 1;
}

.product-card:hover .product-carousel-indicators {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* Product Badges */
.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 3;
}

.badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.badge.new {
    background-color: #4CAF50;
}

.badge.hot {
    background-color: #F44336;
}

.badge.sale {
    background-color: #FF9800;
}

/* Product Actions */
.product-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 5;
}

.product-card:hover .product-actions {
    transform: translateY(0);
}

.quick-view-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background: rgba(92, 88, 88, 0.85);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.quick-view-btn:hover {
    background: rgba(0, 0, 0, 0.95);
}

/* Product Info */
.product-info {
    padding: 20px;
    text-align: center;
}

.product-category {
    font-size: 13px;
    color: #888;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.product-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: #0066cc;
}

/* ========== FEATURES SECTION ========== */
.features-section {
    background-color: #f8f9fa;
    padding: 60px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    margin-bottom: 20px;
}

.feature-icon a {
    display: inline-block;
    width: 70px;
    height: 70px;
    line-height: 70px;
    color: blue;
    border-radius: 50%;
    font-size: 40px;
    transition: all 0.3s ease;
}

.feature-icon a:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.feature-content h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.feature-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
}


/* ========== RESPONSIVE ADJUSTMENTS ========== */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: 25px;
    }

    .product-image-container {
        padding-top: 100%;
    }

    .product-carousel-indicators {
        bottom: 10px;
    }
}



 .rating-comment-row {
     display: flex;
     align-items: center;
     justify-content: center;
     gap: 9px;
     margin-top: 10px;
 }

.star {
    font-size: 14px; /* Even smaller stars */
    width: 14px;
}

.star-rating {
    display: flex;
    align-items: center;
    gap: 3px;
}

.rating-text {
    margin-left: 8px;
    font-size: 14px;
    color: #666;
    white-space: nowrap;
}

.subtle-comment-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background-color: #f4f4f4;
    color: #444;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 20px;
    text-decoration: none;
    border: 1px solid #ddd;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.25s ease;
    white-space: nowrap;
}

.subtle-comment-btn:hover {
    background-color: #e9e9e9;
    color: #222;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.star {
    font-size: 18px;
}

.star.full {
    color: #f0c040;
}

.star.half {
    color: #f0c040;
    opacity: 0.7;
    position: relative;
}

.star.half::after {
    content: '☆';
    position: absolute;
    left: 0;
    color: #999;
    z-index: -1;
}



     /* Review Modal Styles */
 .modal {
     display: none;
     position: fixed;
     z-index: 1000;
     left: 0;
     top: 0;
     width: 100%;
     height: 100%;
     background-color: rgba(0, 0, 0, 0.7);
 }

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 25px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.close {
    color: #777;
    float: right;
    font-size: 24px;
    font-weight: normal; /* Not bold */
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
}

.close:hover {
    color: #333;
}

#review-form {
    margin-top: 20px;
}

#review-form label {
    display: block;
    margin-top: 15px;
    font-weight: 500;
}

#review-form select,
#review-form textarea {
    width: 100%;
    padding: 10px;
    margin-top: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

#review-form button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 15px;
    float: right; /* Align to right */
    font-size: 14px;
}

#review-form button:hover {
    background-color: #45a049;
}

.review-item {
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}

.review-rating {
    color: #f0c040;
    font-weight: bold;
}

/* Clear floats */
.modal-content::after {
    content: "";
    display: table;
    clear: both;
}



     /* Cart badge specific styles */
 .cart-menu-item {
     display: flex;
     align-items: center;
     padding: 5px;
 }

.cart-icon-wrapper {
    position: relative;
    display: inline-block;
}

.cart-icon-wrapper .fa-shopping-cart {
    font-size: 1.4rem !important;
    color: #000;
}

.cart-count-badge {
    position: absolute;
    top: -10px; /* go higher = more negative */
    right: -10px; /* go more to the right = more negative */
    background: red;
    color: white;
    font-size: 12px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-weight: bold;
    z-index: 999;
}

 .after-parallax {
     min-height: 20vh;
     background: #f6f6f6;
     padding: 1px 0;
 }

