/*
 Theme Name:     Divi Child
 Theme URI:      https://www.elegantthemes.com/gallery/divi/
 Description:    Divi Child Theme
 Author:         Elegant Themes
 Author URI:     https://www.elegantthemes.com
 Template:       Divi
 Version:        4.10.8
*/
 
 
/* =Theme customization starts here
------------------------------------------------------- */

.wc-subcategories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 per row on desktop */
  gap: 20px;
  margin-bottom: 30px;
}

.wc-subcategory {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.wc-subcategory-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1; /* keeps square size */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.wc-subcategory-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* ensures same size, cropped nicely */
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.wc-subcategory:hover img {
  transform: scale(1.05);
}

.wc-subcategory-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.55);
  color: #fff;
  text-align: center;
  padding: 10px;
  font-weight: bold;
  font-size: 16px;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

/* ✅ Responsive adjustments */
@media (max-width: 991px) {
  .wc-subcategories-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 per row on tablet */
  }
}

@media (max-width: 600px) {
  .wc-subcategories-grid {
    grid-template-columns: 1fr; /* 1 per row on mobile */
  }
}


/* Style for the checkout shipping note */
.custom-shipping-note {
    
    padding: 12px 15px;
    background-color: #fffbf4;  /* light gray background */   
    font-size: 14px;
    color: #333;
    border:1px solid;
    border-radius: 4px;
    margin-top: -29px;
    margin-bottom: 20px;
    border-color:#f0b849 ;
    border-left: 4px solid #f0b849; /* blue accent line */
}

.custom-shipping-note a {
    color: #ea4e1b!important;
    text-decoration: underline;
    font-weight: 500;
}

/* ==============================
   Variation Swatches Styling Fix
   ============================== */

/* Make all swatches consistent */
.woocommerce div.product form.cart .variations .variable-items-wrapper .variable-item {
    margin: 3px;
    transition: all 0.2s ease;
}

/* Center and round single-size swatch only */
.woocommerce div.product form.cart .variations .variable-items-wrapper:has(.variable-item:nth-child(1):last-child) {
    display: flex;
}

/* Apply pill-like shape to single swatch */
.woocommerce div.product form.cart .variations .variable-items-wrapper:has(.variable-item:nth-child(1):last-child) .variable-item {
    border-radius: 10px !important;
    padding: 8px 20px;
    text-align: center;
}

/* Optional: make single-size look “selected” by default */
.woocommerce div.product form.cart .variations .variable-items-wrapper:has(.variable-item:nth-child(1):last-child) .variable-item {
    background-color: #D3E29E; /* light green like selected state */
    border-color: #A5A5A5;
    color: #A5A5A5;
}

/* Keep multiple swatches normal (default layout) */
.woocommerce div.product form.cart .variations .variable-items-wrapper:not(:has(.variable-item:nth-child(1):last-child)) {
    display: flex;
    justify-content: flex-start;
}

#stock-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

#stock-overlay .loader {
    width: 40px;
    height: 40px;
    border: 4px solid #ccc;
    border-top: 4px solid #333;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* IMG inline with title */
.vmx-title-icon {
    width: 28px;         /* adjust size */
    height: auto;
    display: inline-block;
    margin-left: 10px;   /* spacing between title and icon */
    vertical-align: middle;
}

/* Florida icon inline with product title on list pages */
/* Icon inline with product title on list pages */
/* Prevent WooCommerce product image CSS from affecting the icon */
/*.vmx-archive-inline-icon {
    width: 20px !important;
    min-height: auto !important;

    max-width: none !important;
    max-height: none !important;
    object-fit: contain !important;
    display: inline-block !important;
    vertical-align: middle !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 0 0 6px !important;
}


.woocommerce ul.products li.product .vmx-archive-inline-icon,
.woocommerce-page ul.products li.product .vmx-archive-inline-icon {
    width: 20px !important;
    height: auto !important;
}*/







