/*--------------------------------------------------------------

  Template Name: Subas Ecommerce Responsive Bootstrap Template
  Description: This is html5 template
  Author: codecarnival
  Version: 1.0
  Design and Developed by: codecarnival

Note: This is the file where you can add your custom styles to change the look of the theme. But don't modify "style.css" file.

---------------------------------------------------------------*/

/* ----------------------------------------------------
	You can put your custom css code here: 
-------------------------------------------------------*/

.product-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  /* Keeps square shape */
  overflow: hidden;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* fill container, crop excess */
}


.product-item {
  position: relative;
  overflow: hidden;
}

/* Ribbon container */
.ribbon {
  position: absolute;
  top: 12px;
  right: -40px;
  background: #dc3545;
  color: #fff;
  padding: 6px 40px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  transform: rotate(45deg);
  z-index: 5;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
}

/* Out of stock badge */
.stock-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #dc3545;
  color: #fff;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  z-index: 5;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Optional: style when product is out of stock */
.product-item.out-stock .ribbon {
  opacity: 0.6;
  filter: grayscale(40%);
}

.product-item {
  position: relative;
  overflow: hidden;
}

/* Ribbon container */
.ribbon {
  position: absolute;
  top: 12px;
  right: -40px;
  background: #dc3545;
  color: #fff;
  padding: 6px 40px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  transform: rotate(45deg);
  z-index: 5;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
}

/* SINGLE PRODUCT DESIGN */
/* Overlay */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 999;
}

/* Modal Drawer */
.cart-modal {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  max-width: 95%;
  height: 100%;
  background: #fff;
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
  transition: 0.35s ease;
  z-index: 1000;

  display: flex;
  flex-direction: column;
}

.cart-group {
  max-height: 600px;
  overflow-y: auto;
}

/* Active States */
.cart-modal.active {
  right: 0;
}

.cart-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Header */
.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px;
  border-bottom: 1px solid #eee;
}

.cart-close {
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
}

/* Body */
.cart-body {
  /* flex: 1; */
  /* overflow-y: auto; */
  padding-left: 15px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 5px;
  padding-bottom: 5px;
}

/* Item */
.cart-item {
  display: flex;
  gap: 12px;
  margin-bottom: 15px;
}

.cart-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
}

.cart-item-name {
  font-size: 14px;
  margin: 0;
}

.cart-item-price {
  font-size: 13px;
  color: #666;
  margin: 3px 0 0;
}

/* Footer */
.cart-footer {
  padding: 18px;
  border-top: 1px solid #eee;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 16px;
}

.checkout-btn {
  width: 100%;
  padding: 12px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.checkout-btn:hover {
  opacity: 0.9;
}

.cart-item-info {
  flex: 1;
}

.remove-item-btn {
  margin-top: 6px;
  font-size: 12px;
  background: none;
  border: none;
  color: #e63946;
  cursor: pointer;
  padding: 0;
}

.remove-item-btn:hover {
  text-decoration: underline;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);

  z-index: 2147483646;

  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}

.cart-modal {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 400px;
  max-width: 95%;

  background: #fff;
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);

  z-index: 2147483647;

  transform: translateX(100%);
  transition: transform 0.35s ease;
}

/* Active */
.cart-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-modal.active {
  transform: translateX(0);
}

/* PAYMENT PAGE */
.form-checkout label::after {
  content: "";
  clear: both;
}

.upload-design .upload-area {
  text-align: center;
  transition: all 0.3s;
  /* background: #f8f9fa; */
  cursor: pointer;
  position: relative;
}

.upload-design .upload-area:hover {
  border-color: #4a6b8a;
  background: #e9ecef;
}

.upload-design .upload-area:focus-within {
  border-color: #4a6b8a;
  box-shadow: 0 0 0 3px rgba(74, 107, 138, 0.2);
}

.upload-design .upload-icon {
  font-size: 3.5rem;
  color: #BE9B67;
  margin-bottom: 20px;
}

.upload-design .upload-text {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #BE9B67;
}

.upload-design .upload-subtext {
  font-size: 0.9rem;
  color: #BE9B67;
}

input[type="file"] {
  opacity: 0;
}

.upload-design #previewImage {
  max-width: 300px;
  max-height: 300px;
}

.payment-item-img {
  width: 50px;
  height: 50px;
}

/* PASSWORD DESIGN */
.toggle-password{
  position:absolute;
  right:15px;
  top:30%;
  transform:translateY(-50%);
  cursor:pointer;
  font-size:14px;
  user-select:none;
}

#password-strength{
  margin-top:6px;
  font-size:12px;
  height:14px;
}

.cursor{
  cursor: pointer;
}

.delivery-active {
    display: block;
}

.delivery-inactive {
    display: none;
}

.custom-pry-color {
    color: #083355;
}

.custom-sec-color {
    color: #C6533B;
}

@media only screen and (max-width: 600px) {
  body.shop_account .nav-logo-area{
    width: 60% !important;
  }

  body.shop_account .nav-cart-area{
    width: 30% !important;
  }
  
  body.shop_account .reg-btn-sm{
    width: 40% !important;
  }
  body.shop_account .reg-btn-sm:last-child{
    text-align: right;
  }
  
   .product-list{
    width: 50% !important;
  }
}

/* === Equal Height Product Cards Fix === */

#productContainer.row, .product_height_adj .row {
    display: flex;
    flex-wrap: wrap;
}

#productContainer.row > [class*="col-"], .product_height_adj .row > [class*="col-"] {
    display: flex;
}

#productContainer .product-item, .product_height_adj .product-item{
    display: flex;
    flex-direction: column;
    width: 100%;
}

#productContainer .product-info, .product_height_adj .product-info{
    flex: 1;
    display: flex;
    flex-direction: column;
    /*justify-content: space-between;*/
}