/**
 * Custom SEO-Friendly AAWP CSS for PetABCs
 *
 * This CSS preserves your current styling while adding new styles
 * for the SEO-friendly template structure.
 */

/* Your existing custom CSS */
.aawp-product__title {
    color: #5822B0;
}

.aawp .aawp-product--vertical .aawp-product__content {
    min-height: 0px;
}

/* Target the price container */
.aawp-product__pricing {
    display: flex !important;
    justify-content: flex-start !important;
    margin-bottom: 10px;
}

/* Also target the actual price span */
.aawp-product__price, .aawp-product__price--current {
    text-align: left !important;
    float: left !important;
}

/* Style the buy button - all states */
.aawp-button.aawp-button--buy, 
.aawp-button.aawp-button--buy:link, 
.aawp-button.aawp-button--buy:visited, 
.aawp-button.aawp-button--buy:active {
    background-color: #5822B0 !important;
    color: white !important;
    border-color: #5822B0 !important;
    text-align: center !important;
    display: block !important;
    box-sizing: border-box;
    margin: 0 auto !important;
    max-width: 250px;
}

/* Make sure hover states also use the same colors */
.aawp-button.aawp-button--buy:hover {
    background-color: #4a1d93 !important;
    color: white !important;
    border-color: #4a1d93 !important;
}

/* Sale Pick Template Styles */
.aawp-product.aawp-product--sale-pick {
    border: 2px solid #28a745 !important;
    padding: 20px !important;
    position: relative;
    margin-bottom: 30px;
    border-radius: 8px;
    background-color: #f1f9f3 !important;
    display: block !important;
}

.aawp-sale-pick-badge {
    background-color: #28a745;
    color: white;
    padding: 5px 15px;
    position: absolute;
    top: -12px;
    left: 20px;
    font-weight: bold;
    border-radius: 3px;
    font-size: 14px;
    z-index: 10;
    text-transform: uppercase;
}

/* Two-column layout for sale pick */
.aawp-product--sale-pick .aawp-product__layout {
    display: flex !important;
    gap: 30px;
    align-items: flex-start;
    width: 100%;
    box-sizing: border-box;
}

.aawp-product--sale-pick .aawp-product__left-column {
    flex: 1 1 auto !important;
    min-width: 0;
    width: auto !important;
    float: none !important;
}

.aawp-product--sale-pick .aawp-product__right-column {
    flex: 0 0 300px !important;
    max-width: 300px;
    width: 300px !important;
    float: none !important;
}

.aawp-product--sale-pick .aawp-product__image-container {
    text-align: center;
    width: 100%;
}

.aawp-product--sale-pick .aawp-product__image {
    max-width: 100% !important;
    height: auto !important;
    margin-bottom: 15px;
    display: block;
}

.aawp-product--sale-pick .aawp-product__recommendation-text {
    font-style: italic;
    color: #28a745;
    font-size: 14px;
    text-align: center;
    line-height: 1.4;
    font-weight: 500;
    margin-top: 10px;
}

/* Responsive behavior for sale pick */
@media (max-width: 768px) {
    .aawp-product--sale-pick .aawp-product__layout {
        flex-direction: column !important;
    }
    
    .aawp-product--sale-pick .aawp-product__right-column {
        flex: none !important;
        max-width: none !important;
        width: 100% !important;
        order: -1; /* Move image to top on mobile */
    }
    
    .aawp-product--sale-pick .aawp-product__left-column {
        width: 100% !important;
    }
}

/* Top Pick Template Styles */
.aawp-product.aawp-product--top-pick {
    border: 2px solid #5822B0 !important;
    padding: 20px !important;
    position: relative;
    margin-bottom: 30px;
    border-radius: 8px;
    background-color: #f9f6ff !important;
    display: block !important;
}

.aawp-top-pick-badge {
    background-color: #5822B0;
    color: white;
    padding: 5px 15px;
    position: absolute;
    top: -12px;
    left: 20px;
    font-weight: bold;
    border-radius: 3px;
    font-size: 14px;
    z-index: 10;
}

/* Two-column layout for top pick */
.aawp-product--top-pick .aawp-product__layout {
    display: flex !important;
    gap: 30px;
    align-items: flex-start;
    width: 100%;
    box-sizing: border-box;
}

.aawp-product--top-pick .aawp-product__left-column {
    flex: 1 1 auto !important;
    min-width: 0;
    width: auto !important;
    float: none !important;
}

.aawp-product--top-pick .aawp-product__right-column {
    flex: 0 0 300px !important;
    max-width: 300px;
    width: 300px !important;
    float: none !important;
}

.aawp-product--top-pick .aawp-product__image-container {
    text-align: center;
    width: 100%;
}

.aawp-product--top-pick .aawp-product__image {
    max-width: 100% !important;
    height: auto !important;
    margin-bottom: 15px;
    display: block;
}

.aawp-product--top-pick .aawp-product__recommendation-text {
    font-style: italic;
    color: #666;
    font-size: 14px;
    text-align: center;
    line-height: 1.4;
    margin-top: 10px;
}

/* Responsive behavior */
@media (max-width: 768px) {
    .aawp-product--top-pick .aawp-product__layout {
        flex-direction: column !important;
    }
    
    .aawp-product--top-pick .aawp-product__right-column {
        flex: none !important;
        max-width: none !important;
        width: 100% !important;
        order: -1; /* Move image to top on mobile */
    }
    
    .aawp-product--top-pick .aawp-product__left-column {
        width: 100% !important;
    }
}

/* Standard Pick Template Styles */
.aawp-product.aawp-product--standard-pick {
    padding: 20px !important;
    margin-bottom: 30px;
    border: 1px solid #e2e2e2 !important;
    border-radius: 8px;
    background-color: #ffffff !important;
    display: block !important;
}

/* Two-column layout for standard pick */
.aawp-product--standard-pick .aawp-product__layout {
    display: flex !important;
    gap: 30px;
    align-items: flex-start;
    width: 100%;
    box-sizing: border-box;
}

.aawp-product--standard-pick .aawp-product__left-column {
    flex: 1 1 auto !important;
    min-width: 0;
    width: auto !important;
    float: none !important;
}

.aawp-product--standard-pick .aawp-product__right-column {
    flex: 0 0 300px !important;
    max-width: 300px;
    width: 300px !important;
    float: none !important;
}

.aawp-product--standard-pick .aawp-product__image-container {
    text-align: center;
    width: 100%;
}

.aawp-product--standard-pick .aawp-product__image {
    max-width: 100% !important;
    height: auto !important;
    display: block;
}

/* Responsive behavior for standard pick */
@media (max-width: 768px) {
    .aawp-product--standard-pick .aawp-product__layout {
        flex-direction: column !important;
    }
    
    .aawp-product--standard-pick .aawp-product__right-column {
        flex: none !important;
        max-width: none !important;
        width: 100% !important;
        order: -1; /* Move image to top on mobile */
    }
    
    .aawp-product--standard-pick .aawp-product__left-column {
        width: 100% !important;
    }
}

/* Additional overrides to ensure proper layout */
.aawp-product--top-pick .aawp-product__content,
.aawp-product--standard-pick .aawp-product__content,
.aawp-product--sale-pick .aawp-product__content {
    display: block !important;
    width: 100% !important;
    float: none !important;
    clear: both;
}

/* Ensure AAWP's default styles don't interfere */
.aawp-product--top-pick .aawp-product__layout > *,
.aawp-product--standard-pick .aawp-product__layout > *,
.aawp-product--sale-pick .aawp-product__layout > * {
    float: none !important;
    display: block;
}

/* Fix any clearfix issues */
.aawp-product--top-pick .aawp-product__layout:after,
.aawp-product--standard-pick .aawp-product__layout:after,
.aawp-product--sale-pick .aawp-product__layout:after {
    content: "";
    display: table;
    clear: both;
}

/* Common styles for all templates */

/* Rating dots styling */
.aawp-product--top-pick .aawp-product__rating-dots,
.aawp-product--standard-pick .aawp-product__rating-dots,
.aawp-product--sale-pick .aawp-product__rating-dots {
    padding: 20px 0 10px 0 !important;
    display: block;
}

.aawp-product--top-pick .aawp-product__rating-dots svg,
.aawp-product--standard-pick .aawp-product__rating-dots svg,
.aawp-product--sale-pick .aawp-product__rating-dots svg {
    display: block;
    height: 16px;
    width: 79px;
}

/* Product title styling */
.aawp-product--top-pick .aawp-product__title,
.aawp-product--standard-pick .aawp-product__title,
.aawp-product--sale-pick .aawp-product__title {
    display: block;
    font-family: 'SF Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    font-style: normal !important;
    font-weight: 700 !important;
    font-size: 30px !important;
    line-height: 120% !important;
    letter-spacing: 0.005em !important;
    color: #242424 !important;
    text-align: left;
    margin: 0 0 25px 0 !important; /* Increased bottom margin */
    text-decoration: none !important;
    flex: none;
    align-self: stretch;
    flex-grow: 0;
}

.aawp-product--top-pick .aawp-product__title:hover,
.aawp-product--standard-pick .aawp-product__title:hover,
.aawp-product--sale-pick .aawp-product__title:hover {
    color: #242424 !important;
    text-decoration: none !important;
}

.aawp-product--top-pick .aawp-product__description,
.aawp-product--standard-pick .aawp-product__description,
.aawp-product--sale-pick .aawp-product__description {
    margin: 0 0 20px 0;
    text-align: left;
}

/* Horizontal break between AAWP and custom content */
.aawp-product--top-pick .aawp-product__content-break,
.aawp-product--standard-pick .aawp-product__content-break,
.aawp-product--sale-pick .aawp-product__content-break {
    width: 100%;
    height: 1px;
    background-color: #ddd !important; /* Made more visible for all templates */
    margin: 25px 0 !important; /* Increased margins */
    display: block !important;
    border: none;
    clear: both;
    opacity: 1 !important; /* Ensure visibility */
}

.aawp-product--top-pick .aawp-product__pricing,
.aawp-product--standard-pick .aawp-product__pricing,
.aawp-product--sale-pick .aawp-product__pricing {
    margin: 15px 0;
    text-align: left;
}

.aawp-product--top-pick .aawp-product__price,
.aawp-product--standard-pick .aawp-product__price,
.aawp-product--sale-pick .aawp-product__price {
    font-weight: bold;
    font-size: 1.1em;
}

/* CTA button styling for right column placement */
.aawp-product--top-pick .aawp-product__cta,
.aawp-product--standard-pick .aawp-product__cta,
.aawp-product--sale-pick .aawp-product__cta {
    text-align: center !important;
    margin: 15px 0 0 0 !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

/* Direct button centering */
.aawp-product--top-pick .aawp-product__cta > *,
.aawp-product--standard-pick .aawp-product__cta > *,
.aawp-product--sale-pick .aawp-product__cta > * {
    margin: 0 auto !important;
    display: block !important;
    text-align: center !important;
}

/* Ensure buttons are properly centered */
.aawp-product--top-pick .aawp-button,
.aawp-product--standard-pick .aawp-button,
.aawp-product--sale-pick .aawp-button {
    margin: 0 auto !important;
    display: block !important;
    text-align: center !important;
}

.aawp-product--top-pick .aawp-product__meta,
.aawp-product--standard-pick .aawp-product__meta,
.aawp-product--sale-pick .aawp-product__meta {
    text-align: left;
    margin: 10px 0;
}

/* Custom HTML Content Styles */
.aawp-product__custom-content {
    margin: 20px 0;
    clear: both;
}

.aawp-product--top-pick .aawp-product__custom-content {
    margin: 20px 0;
    padding: 0;
    border: none;
}

.aawp-product--sale-pick .aawp-product__custom-content {
    margin: 20px 0;
    padding: 0;
    border: none;
}

.aawp-product__custom-content h3 {
    color: #333;
    margin: 0 0 15px 0;
    font-size: 1.1em;
    font-weight: bold;
}

.aawp-product__custom-content ul {
    padding-left: 20px;
    margin: 0 0 15px 0;
}

.aawp-product__custom-content li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.aawp-product__custom-content p {
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Special styling for recommendation section in top pick and sale pick */
.aawp-product--top-pick .aawp-product__custom-content p:first-child,
.aawp-product--sale-pick .aawp-product__custom-content p:first-child {
    margin-bottom: 10px;
}

/* Standard pick gets border top for custom content */
.aawp-product--standard-pick .aawp-product__custom-content {
    /* margin-top: 20px;
    padding-top: 20px; */
    border-top: 1px solid #e2e2e2;
}
