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

body {
    font-family: 'Georgia', serif;
    /* background-color: #fafafa; */
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 3rem 0 2rem;
    background-color: #fff;
}

.hero-section h1 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.hero-section p {
    color: #666;
    font-size: 0.9rem;
}

/* Filter Section */
.filter-section {
    background-color: #fff;
    padding: 1.5rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e8e8e8;
}

.filter-dropdown {
    min-width: 180px;
}

.btn-filter {
    background-color: #fff;
    border: 1px solid #ddd;
    color: #333;
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-filter:hover {
    background-color: #f8f8f8;
    border-color: #8b7355;
}

.btn-clear {
    color: #8b7355;
    text-decoration: none;
    font-size: 0.85rem;
    cursor: pointer;
    border: none;
    background: none;
}

.btn-clear:hover {
    text-decoration: underline;
}

/* Products Section */
.products-section {
    padding: 2rem 0 4rem;
}
.products-section .row {
    row-gap: 1.5rem;
}


/* Product Cards - Compact & Clean */
.product-card {
    background-color: #fff;
    border: none;
    transition: all 0.3s ease;
    position: relative;
    max-width: 100%;
}

.product-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.product-link {
    text-decoration: none;
    color: inherit;
}

.product-image-container {
    position: relative;
    width: 100%;
    padding-top: 125%;
    overflow: hidden;
    background-color: #f5f5f5;
    border-radius: 4px;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

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

.wishlist-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.product-card:hover .wishlist-icon {
    opacity: 1;
}

.wishlist-icon i {
    font-size: 18px;
    color: #333;
}

.wishlist-icon:hover i {
    color: #e74c3c;
}

.color-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-block;
  border: 1px solid #ddd;
  cursor: pointer;
}
.color-dot:hover {
  transform: scale(1.1);
}


/* Product Info */
.product-info {
    padding: 0.8rem 0.3rem 0;
}

.product-category {
    font-size: 0.7rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.4rem;
}

.product-title {
    font-size: 0.85rem;
    color: #333;
    margin: 0.3rem 0 0.6rem;
    font-weight: 500;
    line-height: 1.3;
    height: 2.6em;
    overflow: hidden;
    display: block;
}

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

.product-title a:hover {
    color: #8b7355;
}

/* Product Pricing - Compact */
.product-pricing {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
    flex-wrap: wrap;
}

.price-original {
    font-size: 0.8rem;
    color: #999;
    text-decoration: line-through;
}

.price-current {
    font-size: 1rem;
    color: #333;
    font-weight: 700;
    font-family: auto
}

.price-range-separator {
  color: #666;
  font-weight: 500;
}

.price-discount {
    font-size: 0.7rem;
    color: #e74c3c;
    font-weight: 600;
    background-color: #ffe8e6;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
}

/* Color Variants Display */
.color-variants {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.5rem;
}

.color-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.color-dot.active,
.color-dot:hover {
    border-color: #333;
    transform: scale(1.1);
}

.color-more {
    font-size: 0.7rem;
    color: #666;
    font-weight: 500;
}

/* No Products */
.no-products {
    font-size: 1.1rem;
    color: #666;
    padding: 3rem 0;
}

/* Pagination */
.pagination {
    margin: 4rem 0 2rem;
}

.page-link {
    color: #333;
    border: 1px solid #ddd;
    margin: 0 0.2rem;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.page-link:hover {
    background-color: #8b7355;
    color: #fff;
    border-color: #8b7355;
}

    .page-item.active .page-link {
    background-color: #8b7355;
    border-color: #8b7355;
    color: #fff;
}

.filter-dropdown .dropdown-item {
  cursor: pointer;
  padding: 0.5rem 1rem;
}

.filter-dropdown .dropdown-item label {
  cursor: pointer;
  width: 100%;
  margin: 0;
}

.filter-dropdown input[type="checkbox"], 
.filter-dropdown input[type="radio"] {
  margin-right: 0.5rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .product-card {
        margin-bottom: 1rem;
    }
}

@media (max-width: 992px) {
    .product-image-container {
        padding-top: 130%;
    }
}

@media (max-width: 768px) {
    .filter-section .dropdown {
        margin-bottom: 0.5rem;
    }

    .hero-section h1 {
        font-size: 1.5rem;
    }

    .products-section .row {
        row-gap: 1.5rem;
    }
}

@media (max-width: 576px) {
    .product-image-container {
        padding-top: 135%;
    }

    .col-sm-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .product-info {
        padding: 0.6rem 0.2rem 0;
    }

    .product-title {
        font-size: 0.8rem;
    }

    .price-current {
        font-size: 0.95rem;
    }
}

/* Wishlist Icon Styles - ADD TO YOUR SHOP.CSS */

.wishlist-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wishlist-icon:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.wishlist-icon i {
    font-size: 18px;
    color: #666;
    transition: all 0.3s ease;
}

.wishlist-icon:hover i {
    color: #f59e0b;
}

/* When item is in wishlist */
.wishlist-icon.in-wishlist i {
    color: #dc3545;
}

.wishlist-icon.in-wishlist {
    background: rgba(220, 53, 69, 0.1);
}

.wishlist-icon.in-wishlist:hover {
    background: rgba(220, 53, 69, 0.15);
}

/* Animation when added to wishlist */
@keyframes wishlistPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

.wishlist-added-animation {
    animation: wishlistPulse 0.6s ease;
}


.product-card {
    position: relative;
}

.product-image-container {
    position: relative;
}

/* =========================
   OFFER BADGES (NEW ONLY)
   ========================= */

/* Offer Badge - Top Left */
.offer-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
    animation: fadeInBounce 0.5s ease;
}

/* Offer Badge Animation */
@keyframes fadeInBounce {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(-10px);
    }
    60% {
        opacity: 1;
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Offer Name Badge - Below Price */
.offer-name-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: 8px;
    box-shadow: 0 2px 6px rgba(245, 87, 108, 0.3);
    animation: fadeIn 0.3s ease;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.offer-name-badge i {
    font-size: 0.65rem;
    flex-shrink: 0;
}

/* Fade animation for offer name */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover effects specific to offers */
.product-card:hover .offer-badge {
    transform: scale(1.05);
}

.product-card:hover .offer-name-badge {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(245, 87, 108, 0.4);
}

/* Highlight overlay for products with offers */
.product-card.has-offer .product-image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(102, 126, 234, 0.1) 0%,
        transparent 30%
    );
    pointer-events: none;
}

/* =========================
   RESPONSIVE – OFFERS ONLY
   ========================= */

@media (max-width: 768px) {
    .offer-badge {
        font-size: 0.7rem;
        padding: 5px 10px;
        top: 8px;
        left: 8px;
    }

    .offer-name-badge {
        font-size: 0.65rem;
        padding: 4px 8px;
        margin-top: 6px;
    }

    .offer-name-badge i {
        font-size: 0.6rem;
    }
}

@media (max-width: 576px) {
    .offer-badge {
        font-size: 0.65rem;
        padding: 4px 8px;
        border-radius: 15px;
    }

    .offer-name-badge {
        font-size: 0.6rem;
        padding: 3px 7px;
        margin-top: 5px;
    }

    .offer-name-badge i {
        font-size: 0.55rem;
    }
}
