body {
    margin: 0;
    padding: 0;
    font-family:'Cormorant Garamond', serif;
    background: #fffaf0;
    color: #513d2e;
}

.category-container {
    /* max-width: 1200px; */
    margin: auto;
    padding: 2rem 1rem;
}

.category-header {
    text-align: center;
    margin-bottom: 2rem;
}

.category-header h1 {
    font-size: 2rem;
    
}

.category-header p {
    font-size: 1rem;
    color: #777;
}

/* Grid Layout */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

/* Product Card - same as collection page */
.product-card {
    /* background: #fff; */
    border-radius: 8px;
    overflow: hidden;
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); */
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
}

/* Image Area with Hover Swap */
.product-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
    background: #eee;

}

.product-image-wrapper img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
        border-radius: 12px;

}

.primary-img {
    z-index: 2;
}

.secondary-img {
    opacity: 0;
    z-index: 1;
}

.product-card:hover .secondary-img {
    opacity: 1;
}

.product-card:hover .primary-img {
    opacity: 0;
}

/* Product Info */
.product-info {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.5rem;
    text-align: center;
}

.product-info h3 {
    margin: 0;
    font-size: 1rem;
  
}

.product-info a {
    text-decoration: none;
    color: inherit;
}

.product-price {
    font-weight: bold;
    font-size: 22px;
    color: #000;
}

/* Button Section */
.product-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    justify-content: center;
}

.btn-view {
    background-color: #3498db;
    color: white;
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-view:hover {
    background-color: #2c80b4;
}
/* Blur overlay at bottom of image */
.image-overlay-button {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    /* padding: 0.6rem 1rem; */
    background: rgb(38 37 37 / 20%);
    backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.3s ease 0.2s;
    z-index: 4;
    text-align: center;
}

.product-image-wrapper:hover .image-overlay-button {
    opacity: 1;
}


/* Style for the Add to Cart button */
.image-overlay-button .btn-cart {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #22232300;
    color: #fff;
    font-size: 0.85rem;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.image-overlay-button .btn-cart:hover {
    background-color: 22232345;
}

.category-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 20px;
}

.category-banner {
  position: relative; /* Enables positioning overlay inside it */
  width: 100%;
  height: 300px;
  overflow: hidden;
  border-radius: 10px;
  background-color: #f5f5f5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.category-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.premium-banner {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.premium-banner img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  transition: transform 0.4s ease;
  border-radius: 16px;
}

/* Optional hover effect */
.premium-banner:hover img {
  transform: scale(1.03);
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.3); /* Optional: uncomment or adjust for a dark overlay */
  color: white;
  text-align: center;
  border-radius: 16px; /* Ensure overlay matches rounded corners */
}

.banner-overlay h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 14px;
  font-family: 'Cormorant Garamond', serif;
}

/* Responsive Tweaks */
@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }

    .product-info h3 {
        font-size: 0.95rem;
    }

    .product-price {
        font-size: 0.95rem;
    }
    
}

@media (max-width: 480px) {
    .product-buttons {
        flex-direction: column;
    }

    .btn-view {
        font-size: 0.75rem;
        padding: 0.4rem;
    }
}

* {
  font-weight: bold !important;

  text-decoration: none !important;
}
