/* ======================
   DBA AFRICA PRODUCT PAGE - CONVERSION OPTIMIZED
   ====================== */

/* 1. GLOBAL STRUCTURE */
.product-temp {
   
}

.product-temp .container-xl {
    padding: 0 20px;
}

.product-temp .flex-row {
    gap: 30px;
}

/* 2. BREADCRUMB OPTIMIZATION */
.product-temp .woocommerce-breadcrumb {
    font-size: 0.9em;
    color: #666;
    margin: 0 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.product-temp .woocommerce-breadcrumb a {
    color: #135602;
    text-decoration: none;
    transition: color 0.3s;
}

.product-temp .woocommerce-breadcrumb a:hover {
    color: #0e4200;
    text-decoration: underline;
}

/* 3. PRODUCT IMAGE GALLERY */
.product-temp .woocommerce-product-gallery {
    position: relative;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.product-temp .woocommerce-product-gallery__trigger {
    position: absolute;
    /*top: 15px;*/
    right: 15px;
    z-index: 10;
    /*background: rgba(255,255,255,0.9);*/
    padding: 8px;
    border-radius: 50%;
    /*box-shadow: 0 2px 5px rgba(0,0,0,0.1);*/
}

.product-temp .flex-control-thumbs {
    display: flex;
    gap: 10px;
    margin: 15px 0 0 0;
    padding: 0;
}

.product-temp .flex-control-thumbs li {
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 4px;
    transition: all 0.3s;
    list-style: none;
    width: 70px;
    height: 70px;
    overflow: hidden;
}

.product-temp .flex-control-thumbs li:hover,
.product-temp .flex-control-thumbs li.flex-active {
    border-color: #135602;
}

.product-temp .flex-control-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 4. SALE BADGE */
.product-temp .onsale {
    position: absolute;
    /*top: 40px;*/
    left: 0px;
    background: #F70505;
    color: white;
    font-weight: 700;
    padding: 5px 15px;
    border-radius: 3px;
    z-index: 10;
    font-size: 0.9em;
    text-transform: uppercase;
}

/* 5. PRODUCT SUMMARY SECTION */
.product-temp .col-6 {
    width: calc(50% - 15px);
    box-sizing: border-box;
}

.product-temp .product_title {
    font-size: 2.2em;
    margin: 0 0 15px 0;
    line-height: 1.2;
    font-weight: 700;
}

/* 6. PRICE STYLING */
.product-temp .type-product .price {
    font-size: 1.8em;
    font-weight: 400;
    margin: 20px 0;
    color: #000000;
}

.product-temp .type-product .price del {
    color: #999;
    font-size: 0.8em;
    margin-right: 10px;
}

.product-temp .type-product .price ins {
    text-decoration: none;
    color: #000000;
}

/* 7. ADD TO CART SECTION */
.product-temp form.cart {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    margin: 30px 0;
    border: 1px solid #eee;
}

/* 6. QUANTITY & ADD TO CART */
.product-temp .quantity {
    margin-bottom: 15px;
}

.product-temp .quantity .qty {
    width: 80px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
    text-align: center;
}



.product-temp .single_add_to_cart_button {
    background: #135602 !important;
    color: white !important;
    padding: 15px 30px !important;
    font-size: 1.1em !important;
    border-radius: 4px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s !important;
    border: none !important;
    width: 100%;
    display: block;
    text-align: center;
}

.product-temp .single_add_to_cart_button:hover {
    background: #d30404 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
}

/* 8. PRODUCT META */
.product-temp .product_meta {
    margin-top: 25px;
    font-size: 0.9em;
    color: #666;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.product-temp .product_meta a {
    color: #135602;
    text-decoration: none;
    font-weight: 600;
}

.product-temp .product_meta a:hover {
    text-decoration: underline;
}

/* 9. PRODUCT TABS */
.product-temp .woocommerce-tabs {
    margin-top: 40px;
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.product-temp .wc-tabs {
    display: flex;
    gap: 20px;
    margin: 0 0 25px 0;
    padding: 0 0 10px 0;
    border-bottom: 1px solid #eee;
    list-style: none;
}

.product-temp .wc-tabs li {
    margin: 0;
}

.product-temp .wc-tabs li a {
    color: #666;
    text-decoration: none;
    font-weight: 600;
    padding-bottom: 10px;
    position: relative;
    font-size: 1.1em;
}

.product-temp .wc-tabs li.active a,
.product-temp .wc-tabs li a:hover {
    color: #135602;
}

.product-temp .wc-tabs li.active a:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #135602;
}

/* 10. DESCRIPTION CONTENT */
.product-temp .woocommerce-Tabs-panel h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #222;
}

.product-temp .woocommerce-Tabs-panel p {
    margin-bottom: 15px;
    line-height: 1.7;
    color: #444;
}

.product-temp .woocommerce-Tabs-panel strong {
    color: #222;
}

.product-temp .woocommerce-Tabs-panel ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.product-temp .woocommerce-Tabs-panel li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 15px;
}

.product-temp .woocommerce-Tabs-panel li:before {
   /* content: "•";
    color: #135602;
    position: absolute;
    left: 0;
    font-weight: bold;*/
}

/* 11. MOBILE RESPONSIVENESS */
@media (max-width: 768px) {
    .product-temp .flex-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .product-temp .col-6 {
        width: 100%;
    }
    
    .product-temp .product_title {
        font-size: 1.8em;
    }
    
    .product-temp .type-product .price {
        font-size: 1.5em;
    }
    
    .product-temp .wc-tabs {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .product-temp .woocommerce-product-gallery {
        margin-bottom: 20px;
    }
    
    .product-temp form.cart {
        padding: 20px;
    }
}

/* 12. CONVERSION ENHANCEMENTS */
/* Price emphasis */
.product-temp .type-product .price {
    font-size: 2em;
    position: relative;
    display: inline-block;
    margin: 25px 0;
}

.product-temp .type-product .price:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #135602, transparent);
}

/* Visual hierarchy for product info */
.product-temp .type-product .product_title {
    position: relative;
    padding-bottom: 10px;
}

.product-temp .product_title:after {
   /* content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #135602;*/
}

/* Add subtle animation to gallery */
.product-temp .woocommerce-product-gallery__wrapper {
    transition: transform 0.5s ease-in-out;
}

/* Make sale price more prominent */
.product-temp .type-product .price ins {
    font-size: 1.2em;
}

/* 4. PRODUCT SUMMARY - CLEAN TYPOGRAPHY */
.product-temp .type-product .product_title {
    font-size: 2.4em;
    font-weight: 300;
    letter-spacing: -0.5px;
    margin: 0 0 20px 0;
    color: #000;
}

.product-temp .type-product .price {
    font-size: 1.6em;
    font-weight: 400;
    margin: 25px 0;
    color: #0B5E12;
}

/* 5. VARIATION FORM STYLING */
.product-temp .variations_form {
    margin: 30px 0;
}

.product-temp table.variations {
    margin-bottom: 20px;
    width: 100%;
}

.product-temp table.variations th.label {
    padding: 0 10px 10px 0;
    text-align: left;
    font-weight: 500;
    color: #555;
}

.product-temp table.variations td.value {
    padding-bottom: 10px;
}

.product-temp select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
    background-color: #fff;
    font-size: 1em;
    color: #333;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
}

.product-temp select:focus {
    outline: none;
    border-color: #0B5E12;
    box-shadow: 0 0 0 1px #0B5E12;
}

.product-temp .reset_variations {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.85em;
    color: #E30613;
    text-decoration: none;
}

.product-temp .reset_variations:hover {
    text-decoration: underline;
}



/* ======================
    CUSTOM FIELD STYLES
   ====================== */

#custom-fields {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #eee;
    margin-bottom: 25px;
}

#custom-fields h3 {
    margin-bottom: 15px;
   
}

.custom-field-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

#custom-fields label {
    min-width: 80px;
   
}

#custom-fields input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    flex-grow: 1;
}

#custom-fields .added-price {
    color: #0e4200;
    font-size: 12px;
}

/*archive*/

/* Base container improvements */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Enhanced page title - Flat Design */
.page-title {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a1a;
}

/* Shop controls styling - Flat Design with Right Alignment */
.shop-controls {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  padding: 0;
  background: none;
}

.woocommerce-result-count {
  margin: 0;
  color: #666;
  font-weight: 500;
  font-size: 14px;
  order: 1;
  margin-top: 15px;
}

/* Style the WooCommerce ordering dropdown */
.woocommerce-ordering {
    max-width: 250px; /* Adjust this value as needed */
    margin-left: auto; /* Push to the right */
    margin-bottom: 20px; /* Add some space below */
}

/* Optional: Style the select dropdown for better appearance */
.woocommerce-ordering .orderby {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-size: 14px;
}

/* If you want to create a flex container for better control */
.woocommerce-notices-wrapper + .woocommerce-result-count,
.woocommerce-ordering {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}



/* Enhanced product grid */
.products.columns-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  padding: 0;
  margin: 0;
  list-style: none;
}

/* Flat design product cards */
.products.columns-3 .product {
  position: relative;
  display: flex;
  flex-direction: column;
  background: white;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid #e0e0e0;
  padding: 10px 20px 10px 20px;
}

.products.columns-3 .product img:hover {
    transform: translateY(-2px);
    /*box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);*/
    z-index: 10; /* Ensure hovered product stays above others */
}




/* WooCommerce Product Grid Styles */
.related.products ul.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Responsive grid breakpoints */
@media (max-width: 1024px) {
    .related.products ul.products {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .related.products ul.products {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 480px) {
    .related.products ul.products {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Optional: Remove the columns-4 class styling if needed */
.related.products ul.products.columns-4 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

/* Product link styling */
.woocommerce-loop-product__link {
  display: block;
  text-decoration: none;
  color: inherit;
  flex-grow: 1;
  position: relative;
  overflow: hidden;
}

/* Flat design sale badge */
.onsale {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #ff3d00;
  color: white;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

/* Product image container */
.product-image-container {
  position: relative;
  overflow: hidden;
  background: #f8f9fa;
}

.attachment-woocommerce_thumbnail {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.woocommerce-loop-product__link:hover .attachment-woocommerce_thumbnail {
  transform: scale(1.08);
}

/* Placeholder image styling */
.woocommerce-placeholder {
  background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 14px;
}

/* Product content area */
.product-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Enhanced product title */
.woocommerce-loop-product__title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 12px 0;
  color: #1a1a1a;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s ease;
}

.woocommerce-loop-product__link:hover .woocommerce-loop-product__title {
  color: #ff3d00;
}

/* Enhanced price styling */
.type-product .price {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px 0;
  flex-wrap: wrap;
  font-size: 16px;
  font-weight: 600;
}

.type-product .price del {
  display: inline-block;
  color: #999;
  text-decoration: line-through;
  font-size: 14px;
  font-weight: 400;
}

.type-product .price ins {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  color: #ff3d00;
  font-size: 18px;
}

.type-product .price .woocommerce-Price-amount {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.type-product .price .woocommerce-Price-currencySymbol {
  font-size: 0.9em;
}

/* Flat design button styling */
.button.add_to_cart_button {
  background: #1a1a1a;
  color: white;
  border: none;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: auto;
}

.button.add_to_cart_button:hover {
  background: #ff3d00;
}

.button.add_to_cart_button:active {
  background: #e53600;
}

/* WooCommerce Place Order Button Styling */
.wc-block-components-checkout-place-order-button {
  background-color: #e53600;
  color: #ffffff;
  border: none;
  border-radius: 0px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  min-height: 50px;
}

/* Hover effect */
.wc-block-components-checkout-place-order-button:hover {
  background-color: #b82a00;
  transform: translateY(-2px);
  
}

/* Active/pressed state */
.wc-block-components-checkout-place-order-button:active {
  transform: translateY(0);
  
}

/* Focus state for accessibility */
.wc-block-components-checkout-place-order-button:focus {
  outline: 2px solid #e53600;
}

.checkout-button.button.alt.wc-forward {
  background-color: #e53600;
  color: #ffffff;
  border: none;
  border-radius: 0px;
}

/* Hover effect */
.checkout-button.button.alt.wc-forward:hover {
  background-color: #b82a00;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(229, 54, 0, 0.3);
}

/* Active/pressed state */
.checkout-button.button.alt.wc-forward:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(229, 54, 0, 0.2);
}

/* Focus state for accessibility */
.checkout-button.button.alt.wc-forward:focus {
  outline: 2px solid #e53600;
  outline-offset: 2px;
}

/* Disabled state */
.checkout-button.button.alt.wc-forward:disabled {
  background-color: #cccccc;
  color: #666666;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}


/* Disabled state */
.wc-block-components-checkout-place-order-button:disabled {
  background-color: #cccccc;
  color: #666666;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}


/* Screen reader text improvements */
.screen-reader-text {
  position: absolute !important;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Loading animation for images */
.attachment-woocommerce_thumbnail[loading] {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Enhanced responsive design */
@media (max-width: 1024px) {
  .products.columns-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
  
  .shop-controls {
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
  }
  
  .woocommerce-ordering .orderby {
    min-width: 250px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
  
  .page-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }
  
  .products.columns-3 {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .shop-controls {
    align-items: center;
  }
  
  .attachment-woocommerce_thumbnail {
    height: 200px;
  }
  
  .product-content {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .page-title {
    font-size: 1.8rem;
  }
  
  .shop-controls {
    padding: 15px;
  }
  
  .woocommerce-loop-product__title {
    font-size: 15px;
  }
  
  .price {
    font-size: 15px;
  }
  
  .price ins {
    font-size: 17px;
  }
  
  .button.add_to_cart_button {
    padding: 10px 16px;
    font-size: 13px;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .products.columns-3 .product {
    background: #1a1a1a;
    border-color: #333;
  }
  
  .woocommerce-loop-product__title {
    color: #f0f0f0;
  }
  
  .shop-controls {
    background: #1a1a1a;
    border: 1px solid #333;
  }
  
  .woocommerce-ordering .orderby {
    background: #1a1a1a;
    color: #f0f0f0;
    border-color: #333;
  }
  
  .page-title {
    color: #f0f0f0;
  }
}

/* Focus states for better accessibility */
.button.add_to_cart_button:focus,
.woocommerce-loop-product__link:focus {
  outline: 3px solid #ff3d00;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .products.columns-3 .product {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #000;
  }
  
  .onsale,
  .button.add_to_cart_button {
    display: none;
  }
}

.wapf-field-group input,
.wapf-field-group select,
.wapf-field-group textarea {
    border: 2px solid #efefef; 
    background: #f9f9f9;
    padding: 10px;
}

.wapf-product-totals .wapf--inner .price {
  margin: 0 !important;
  font-size: 22px;
}

.wapf-product-totals .wapf--inner .price::after {
  background: none;
}

/* Wrap qty + button inline */
.woocommerce div.product .woocommerce-variation-add-to-cart {
    display: flex;
    align-items: center;
    gap: 12px; /* spacing between elements */
    flex-wrap: wrap; /* so it doesn’t break layout on mobile */
}

/* Make qty label + input inline */
.woocommerce div.product .woocommerce-variation-add-to-cart .quantity,
.woocommerce div.product .woocommerce-variation-add-to-cart .qty-label {
    display: flex;
    align-items: center;
    margin: 0;
}

/* Prevent qty input from being too wide */
.woocommerce div.product .woocommerce-variation-add-to-cart .quantity input.qty {
    width: 70px; /* adjust to taste */
    text-align: center;
}

/* Dropdown Button */
.shop-dropdown {
  	position:absolute; 	
 	right:170px !important; 
 	top:1px; 
 	display:block; 
}

.shop_btn_mob  {
  		
 	right:170px !important; 
}

.shop_btn{
	
	text-align:center; 
	text-transform:uppercase; 
	font-size:21px; 
	border:1px solid #135602 !important; 
	padding:3px; 
	text-decoration:none;
	-webkit-transition:.25s ease-in-out;transition:.25s ease-in-out;
}



.dropdown-toggle { 
  cursor: pointer;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
  display: none;
  position: relative;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
  z-index: 1;
  top: 54px;
  left: 15px;
}

/* Links inside the dropdown */
.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

/* Change color on hover */
.dropdown-content a:hover {
  background-color: #f1f1f1;
}

/* Show the dropdown menu on hover */
.shop-dropdown:hover .dropdown-content {
  display: block;
}
