.product-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 450px; /* total fixed height for each box */
    margin-bottom: 25px;
}

.product-img-wrapper {
    width: 100%;
    height: auto;
    position: relative;
    overflow: hidden;
    background-color: #f9f9f9;
    border-radius: 10px;
}

.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* prevent stretch */
    transition: 0.3s;
}

/* hover image effect */
.product-img-wrapper img.hover {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.product-img-wrapper:hover img.hover {
    opacity: 1;
}

.product-img-wrapper:hover img.primary {
    opacity: 0;
}

/* Product Details Section */
.product-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-height: 100px; /* ensures text & button area consistent */    
}

/* Product Name */
.product-name a {
    font-weight: 600;
    font-size: 15px;
    line-height: 1.3em;
    color: #333;
    text-decoration: none;
    display: block;
    min-height: 40px; /* maintains consistent title area */
}

/* Price styling */
.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 14px;
    margin-right: 5px;
}

.new-price {
    color: #e74c3c;
    font-weight: 700;
    font-size: 16px;
}

.price {
    color: #333;
    font-weight: 600;
    font-size: 16px;
}

/* Order Button */
.order-btn {
    background-color: #28a745;
    border: none;
    border-radius: 20px;
    padding: 6px 18px;
    font-weight: 600;
    font-size: 14px;
    transition: 0.3s;
}

.order-btn:hover {
    background-color: #218838;
    color: #fff;
    transform: scale(1.05);
}

/* Responsive Adjustments */
@media (max-width: 576px) {
    .product-card {
    height: 400px;
    }
    .product-img-wrapper {
    /* height: 200px; */
    }
}

/* ==================== Category Card Section ==================== */
.category-section-unique .category-card-unique {
    background: #daffd8;
    border: 1px solid #daffd8;
    transition: transform 0.3s, box-shadow 0.3s;

    /* ⭐ Increased height for bigger cards */
    min-height: 120px;        /* desktop minimum height */
    max-height: 160px;        /* fixed height for consistency */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;          /* hide overflow text */
    padding: 1.2rem;
    border-radius: 0.5rem;
    text-decoration: none;
}

/* Hover */
.category-section-unique .category-card-unique:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Category Icon */
.category-section-unique .category-icon-unique {
    font-size: 3rem;           /* slightly bigger icon */
    margin-bottom: 0.7rem;
}

/* Category Name */
.category-section-unique .category-name-unique {
    font-weight: 600;
    color: #333;
    font-size: clamp(0.85rem, 2.2vw, 1.05rem); /* bigger font */
    white-space: nowrap;        /* text break হবে না */
    overflow: hidden;
    text-overflow: ellipsis;    /* long text হলে ... দেখাবে */
}

/* ==================== Grid Columns ==================== */
/* Desktop: 5 columns */
@media (min-width: 992px) {
    .category-section-unique .col-lg-2 {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

/* Tablet / Mobile: 3 columns */
@media (max-width: 767px) {
    .category-section-unique .col-4 {
        flex: 0 0 33.3333%;
        max-width: 33.3333%;
    }

    .category-section-unique .category-card-unique {
        min-height: 120px;  /* slightly bigger for mobile */
        max-height: 140px;
    }

    .category-section-unique .category-icon-unique {
        font-size: 2.5rem;  /* mobile icon size */
    }

    .category-section-unique .category-name-unique {
        font-size: clamp(0.75rem, 2vw, 0.95rem); /* mobile font scaling */
    }
}


.modal-cta-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 12px;
  background:#f6f7ff;
  border:1px solid #e6e8ff;
  border-radius:10px;
}

.modal-cta-text{
  font-size:14px;
  font-weight:600;
  color:#1f2a44;
  line-height:1.2;
}

.modal-cta-btn{
  white-space:nowrap;
  border-radius:999px;
  padding:6px 12px;
}

.shipping-option label{
  font-size: 15px;
  cursor: pointer;
}

.shipping-option input[type="radio"]{
  transform: scale(1.1);
}
