

/* 2. Force the product image wrapper or container background white */
.product-image-wrapper, /* replace with actual parent container class */
.product-image-wrapper * {
  background-color: #fff !important;
  background: #fff !important;
}

/* 3. Make sure image container has no extra width or margins */
.product-image-wrapper {
  width: auto !important;
  max-width: 500px !important; /* same as image size */
  margin: 0 auto !important;
  padding: 0 !important;
}

/* 4. Remove any black backgrounds or margins from sidebar or sibling containers */
.sidebar, 
.sidebar * {
  background-color: transparent !important;
  background: transparent !important;
  margin: 0 !important;
  padding: 0 !important;
}



/* ================================
   Lovense Replica Card (Finalized)
   ================================ */
.lovense-card {
    background: #fff;
    border: 1px solid #ccc;   /* visible border */
    border-radius: 16px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 16px;
    margin: 0; /* âœ… let grid control spacing */
}

.lovense-card:hover {
    transform: translateY(-4px);
    border-color: #10b2b2;   /* golden border on hover */
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Image wrapper */
.image-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
}
.card-img {
    width: 100%;
    height: 260px;       /* adjust: 240â€“280px usually works best */
    object-fit: cover;   /* fills the box, crops extra */
    border-radius: 8px;
    display: block;
}
.lovense-card:hover .card-img {
    transform: scale(1.05);
}

/* Badge */
.badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ff4081;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
}

/* Info */
.lovense-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Product title always black */
.lovense-card .card-title a {
    font-family: "Poppins", "Segoe UI", Roboto;
    color: #000 !important;   /* solid black */
    text-decoration: none;    /* remove underline if theme adds it */
}

/* Title */
.lovense-info .card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #222;
    margin: 8px 0;
}

/* Subtitle / rating / price */
.lovense-info .rating_wrap,
.lovense-info .price-group {
    text-align: center;
    justify-content: center;
    margin: 4px 0;
}

.price-group .discounted-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #10b2b2;
}
.price-group .original-price {
    font-size: 0.9rem;
    text-decoration: line-through;
    color: #999;
    margin-left: 6px;
}

/* Buttons */
.lovense-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    margin-top: auto;
    width: 100%;
}

/* Cart Button */
.cart-btn {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    border: 1px solid #ddd;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    color: #222;
    transition: background 0.3s ease, color 0.3s ease;
}
.cart-btn:hover {
    background: #10b2b2;
    border-color: #108c8c;
    color: #fff;
}

/* Buy Now Button */
.buy-btn {
    flex: 1;
    height: 40px;              /* âœ… same height as cart */
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    color: #444;
}
.buy-btn:hover {
    background: #10b2b2;
    border-color:#6610f2;
    color: #fff;
}



/* =============== ROW SPACING ONLY (works everywhere) =============== */
/* Modern, universal: any .row that contains .lovense-card */
.row:has(.lovense-card) {
  row-gap: 24px !important;   /* vertical spacing only */
  column-gap: 0 !important;   /* keep columns tight */
}

/* Common related/upsell wrappers using FLEX rows */
.related-products .row,
.product-related .row,
.products-related .row,
.upsells .row,
.cross-sells .row,
.widget-products .row {
  display: flex;
  flex-wrap: wrap;
  row-gap: 24px !important;
  column-gap: 0 !important;
}

/* If those sections don't use .row, target the section itself */
.related-products,
.product-related,
.products-related,
.upsells,
.cross-sells,
.widget-products {
  row-gap: 24px !important;   /* works if container already uses flex/grid */
  column-gap: 0 !important;
}

/* Last-resort fallback: add only vertical margin to cards in those sections */
.related-products .lovense-card,
.product-related .lovense-card,
.products-related .lovense-card,
.upsells .lovense-card,
.cross-sells .lovense-card,
.widget-products .lovense-card {
  margin-bottom: 24px !important;
}

/* Ensure the card itself isnâ€™t adding side margins (spacing is handled above) */
.lovense-card { margin-left: 0 !important; margin-right: 0 !important; }









/* Product Card */
.premium-card {
    background: #fff;
    border: 1px solid #ccc;   /* visible border */
    border-radius: 12px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.06);
    text-align: center;
    padding: 12px;
    margin: 5px;
    transition: 0.3s;
}
.premium-card:hover {
    transform: translateY(-3px);
    border-color: #10b2b2;   /* golden border on hover */
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* Product Image */
.premium-img {
    width: 100%;
    max-height: 180px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 8px;
}

/* Title */
.premium-title {
    font-size: 14px;
    font-weight: 600;
    margin: 5px 0;
    line-height: 1.3;
    height: 38px;
    overflow: hidden;
}
.premium-title a {
/* Product title always black */
  font-family: "Poppins", "Segoe UI", Roboto;
    color: #000 !important;   /* solid black */
    text-decoration: none;    /* remove underline if theme adds it */
}
.premium-title a:hover {
    color: #e8a400;
}

/* Rating */
.product-rating {
    margin: 5px 0;
    font-size: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1px;
}
.product-rating .star {
    color: #ffb400;   /* gold stars */
    font-size: 13px;
}
.product-rating .star.empty {
    color: #ccc;     /* grey empty stars */
}
.product-rating .rating-count {
    font-size: 11px;
    color: #666;
    margin-left: 3px;
}

/* Price */
.premium-footer {
    margin: 5px 0;
}
.premium-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #10b2b2;
}

/* Buy Now Button */
.premium-btn {
    flex: 1;
    height: 50px;              /* âœ… same height as cart */
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    color: #444;
}
.premium-btn:hover {
    background: #6f42c1;
    border-color: #6610f2;
    color: #fff;
}



/* Base Premium Button */
.btn-premium {
    display: inline-block;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

/* Add to Cart */
.add-to-cart-btn {
    background: linear-gradient(135deg, #10B2B2, #1EE6E6);
    color: #fff;
}
.add-to-cart-btn:hover {
    background: linear-gradient(135deg, #127878, #1C9E9E);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}

/* Buy Now */
.buy-now-btn {
    background: linear-gradient(135deg, #ff512f, #dd2476);
    color: #fff;
}
.buy-now-btn:hover {
    background: linear-gradient(135deg, #127878, #1C9E9E);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}




/* Wrapper */
.premium-search-bar {
    max-width: 650px;
    width: 100%;
    margin: auto;
}

/* Flex Layout */
.search-form {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

/* Category Dropdown */
.category-box {
    background: #fff;
    border-right: 1px solid #eee;
}

.category-select {
    border: none;
    padding: 10px 15px;
    font-weight: 600;
    color: #333;
    outline: none;
    background: transparent;
    cursor: pointer;
}

/* Search Input */
.search-input {
    flex: 1;
    border: none;
    padding: 10px 15px;
    font-size: 14px;
    outline: none;
}

/* Search Button */
.search-btn {
    background: #006d3a;   /* green */
    color: #fff;
    font-weight: 600;
    border: none;
    padding: 10px 25px;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 0; /* Keep flat */
}

.search-btn:hover {
    background: #004d29;
}






/* Force brand logo size */
.brand-logo img,
.brand-logo-img {
    max-height: 120px !important;   /* bigger logos */
    width: auto !important;
    margin: 0 auto;
    display: block;
    transition: transform 0.3s ease;
}

/* Make carousel item taller */
.carousel-6-columns .brand-logo {
    min-height: 150px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Hover zoom */
.brand-logo img:hover {
    transform: scale(1.2);
}

/* âœ… Reduce product card size only on mobile */
@media (max-width: 576px) {
  .lovense-card,
  .premium-card {
    max-width: 90% !important;   /* narrower card */
    margin: 0 auto 16px auto !important; /* center + spacing */
    padding: 10px !important;   /* smaller padding */
  }

  .lovense-card .card-img,
  .premium-img {
    height: 200px !important;   /* shorter images */
  }

  .lovense-info .card-title,
  .premium-title {
    font-size: 0.9rem !important;  /* smaller title */
  }

  .price-group .discounted-price,
  .premium-price {
    font-size: 1rem !important;   /* reduce price font */
  }

  .buy-btn,
  .premium-btn {
    height: 40px !important;   /* smaller button */
    font-size: 0.9rem !important;
  }

  .cart-btn {
    width: 40px !important;
    height: 40px !important;
  }
}

/* âœ… Fix product image clarity on mobile */
@media (max-width: 576px) {
  .lovense-card .card-img,
  .premium-img {
    width: 100% !important;
    height: auto !important;       /* keep natural ratio */
    max-height: 200px !important;  /* limit height so it doesn't look huge */
    object-fit: contain !important; /* show full image clearly */
    object-position: center center !important;
    border-radius: 8px;
  }

  /* Reduce spacing for compact look */
  .image-wrapper {
    margin-bottom: 8px !important;
  }
}


/* âœ… Reduce card width on mobile */
@media (max-width: 576px) {
  .lovense-card,
  .premium-card {
    max-width: 90% !important;   /* card takes 90% of screen */
    margin: 0 auto 16px auto !important; /* center + spacing */
  }
}