/* ===========================================
   CUSTOM WOOCOMMERCE ELEMENTOR PLUGIN STYLES
   =========================================== */

/* Product Image Centering */

@font-face {
  font-family: 'Mont-Fixed';
  src: url('sftp://actuallyfunyg.wordpress.com@sftp.wp.com/htdocs/wp-content/uploads/useanyfont/2876Mont-Fixed.woff2') format('woff2'),
       url('sftp://actuallyfunyg.wordpress.com@sftp.wp.com/htdocs/wp-content/uploads/useanyfont/2876Mont-Fixed.woff') format('woff'),
  font-weight: normal;
  font-style: normal;
  font-display: swap; /* This helps with font loading performance */
}

/* Product Title Styling - Updated to match description pattern */
.product-title,
.product-title p,
.product-title * {
    font-family: mont-fixed, serif !important; /* Changed to match description font */
    color: #faf0ca !important;
    font-size: 2.0vw !important; /* Changed to match description size */
    line-height: 1.6 !important; /* Changed to match description line-height */
}

.product-image {
    display: block !important;
    margin: 0 auto !important;
    text-align: center !important;
}

/* Container for product image to ensure centering */
.product-image-container {
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

/* Force center alignment for any wrapper */
[class*="product-image"] {
    text-align: center !important;
}

/* Product Price Styling - Only within our wrapper */
.product-price-wrapper .woocommerce-Price-amount,
.product-price-wrapper .price,
.product-price-wrapper .woocommerce-price-suffix,
.product-price-wrapper .price ins,
.product-price-wrapper .price del,
.product-price-wrapper .woocommerce .price {
    font-family: mont-fixed, sans-serif !important; /* Change to your desired font */
    color: #faf0ca !important; /* Change to your desired color */
    font-size: 24px !important; /* Change to your desired size */
    font-weight: bold !important;
    line-height: 1.4 !important;
}

/* Product Description Styling */
.product-description,
.product-description p,
.product-description * {
    font-family: mont-fixed, serif !important; /* Change to your desired font */
    color: #faf0ca !important; /* Change to your desired color */
    font-size: 20px !important; /* Change to your desired size */
    line-height: 1.6 !important;
}

/* Product Short Description Styling */
.product-short-description,
.product-short-description p,
.product-short-description * {
    font-family: mont-fixed, serif !important; /* Change to your desired font */
    color: #faf0ca !important; /* Change to your desired color */
    font-size: 1.2vw !important; /* Change to your desired size */
    line-height: 1.5 !important;
}


/* Product Name and Price Combined Styling */
.product-name-price,
.product-title-price {
    font-family: mont-fixed, serif !important;
    color: #faf0ca !important;
    font-size: 2.0vw !important;
    line-height: 1.4 !important;
    text-align: left !important;
    margin: 15px 0 !important;
}

/* Separator custom styling */
.product-name-price .separator-custom,
.product-title-price .separator-custom {
    color: inherit !important;
    font-family: inherit !important;
    /* font-size is set inline via the shortcode parameter */
}

/* Make sure price formatting within the combined element matches */
.product-name-price .woocommerce-Price-amount,
.product-name-price .price,
.product-title-price .woocommerce-Price-amount,
.product-title-price .price {
    font-family: inherit !important;
    color: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .product-name-price,
    .product-title-price {
        font-size: 4.0vw !important;
        text-align: center !important;
    }
}

/* Add to Cart Button Styling */
.custom-add-to-cart-btn {
    background: linear-gradient(135deg, #f95738, #ee964b); /* Gradient effect */
    color: #ffffff !important; /* Change to your desired text color */
    font-family: mont-fixed, sans-serif !important; /* Change to your desired font */
    font-size: 22px !important; /* Change to your desired size */
    font-weight: bold !important;
    padding: 8px 16px !important;
    border: none !important;
    border-radius: 9px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    width: 100% !important; /* Makes button stretch full width */
    display: block !important; /* Ensures button takes full width */
    box-sizing: border-box !important; /* Includes padding in width calculation */
    margin-bottom: 0 !important; /* Add this line to override the default 1em margin */
}

/* Add to Cart Button Hover Effect */
.custom-add-to-cart-btn:hover {
    background: linear-gradient(135deg, #c2452c, #ba743b);
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
}

/* Add to Cart Button Disabled State */
.custom-add-to-cart-btn:disabled {
    background-color: #cccccc !important;
    color: #666666 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

.add-to-cart-wrapper {
    text-align: left !important; /* or remove text-align entirely */
    margin: 0px 0px !important;
}

/* Success and Error Messages */
.success-message {
    background-color: #d4edda !important;
    color: #155724 !important;
    padding: 10px !important;
    border-radius: 4px !important;
    border: 1px solid #c3e6cb !important;
    margin-top: 10px !important;
}

.error-message {
    background-color: #f8d7da !important;
    color: #721c24 !important;
    padding: 10px !important;
    border-radius: 4px !important;
    border: 1px solid #f5c6cb !important;
    margin-top: 10px !important;
}

/* ===========================================
   HIDE "VIEW CART" ELEMENTS
   =========================================== */

/* Hide WooCommerce "View Cart" links and buttons - Only in messages after add to cart */
.woocommerce-message .wc-forward,
.woocommerce-message a.wc-forward,
.woocommerce-message .added_to_cart,
.woocommerce-message a.added_to_cart {
    display: none !important;
}

/* ===========================================
   ADDITIONAL HELPER CLASSES
   =========================================== */

/* If you want to wrap your shortcodes in containers for better control */
.product-content-wrapper {
    max-width: 100% !important;
    margin: 0 auto !important;
}

.product-image-wrapper {
    text-align: center !important;
    margin-bottom: 20px !important;
}

.product-price-wrapper {
    text-align: center !important;
    margin: 15px 0 !important;
}

.product-description-wrapper {
    margin: 20px 0 !important;
}

.product-short-description-wrapper {
    margin: 15px 0 !important;
}

/* ===========================================
   RESPONSIVE ADJUSTMENTS
   =========================================== */

@media (max-width: 768px) {
    .product-price-wrapper .woocommerce-Price-amount,
    .product-price-wrapper .price {
        font-size: 20px !important;
    }
    
    .custom-add-to-cart-btn {
        font-size: 16px !important;
        padding: 0px 0px !important;
        margin-bottom: 0px;
    }
    
    .product-description,
    .product-description p {
        font-size: 4.0vw !important;
    }
    

    /* More specific selectors to override Elementor */
    .elementor-widget-container .elementor-shortcode .product-short-description,
    .elementor-widget-container .elementor-shortcode .product-short-description p,
    .elementor-widget-container .elementor-shortcode .product-short-description *,
    .elementor-shortcode .product-short-description,
    .elementor-shortcode .product-short-description p,
    .elementor-shortcode .product-short-description *,
    .product-short-description p span,
    .product-short-description p,
    .product-short-description span,
    .product-short-description {
        font-size: 2.5vw !important;
    }
}



/* Custom gradient border button styling */
.elementor-button-wrapper .custom-gradient-border-btn {
    position: relative !important;
    background: linear-gradient(135deg, #d63e20, #a85f2a) !important;
    border-color: #ffffff !important; /* Change border color on hover */
    border: 4px solid transparent !important;
    border-radius: 9px !important;
    padding: 16px 8px !important;
    width: 100% !important; /* Makes button stretch full width */
    display: block !important; /* Ensures button takes full width */
    box-sizing: border-box !important; /* Includes padding in width calculation */
}

/* Remove any padding from the button wrapper that might constrain width */
.elementor-button-wrapper:has(.custom-gradient-border-btn) {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

/* Fallback for browsers that don't support :has() */
.custom-gradient-border-btn-wrapper .elementor-button-wrapper {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

.custom-gradient-border-btn .elementor-button-text {
    background: linear-gradient(135deg, #f95738, #ee964b) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    font-family: mont-fixed, sans-serif !important;
    font-weight: bold !important;
    font-size: 18px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

.custom-gradient-border-btn .elementor-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.elementor-button-wrapper .custom-gradient-border-btn:hover {
    background: linear-gradient(135deg, #d63e20, #a85f2a) !important;
}

.custom-gradient-border-right {
    border-top: 5px solid transparent !important;
    border-left: 5px solid transparent !important;
    border-bottom: 5px solid transparent !important;
    background: linear-gradient(135deg, #f95738, #ee964b) border-box !important;
    border-radius: 10px 0 0 10px !important;
}

.custom-gradient-border-left {
    border-top: 5px solid transparent !important;
    border-right: 5px solid transparent !important;
    border-bottom: 5px solid transparent !important;
    background: linear-gradient(135deg, #f95738, #ee964b) border-box !important;
    border-radius: 0 10px 10px 0 !important;
}