/* Angus Single Product Page Styles */


/* Breadcrumb Styles */
.woocommerce-breadcrumb {
    font-size: 0.8em;
    text-align: right;
}

.woocommerce .woocommerce-breadcrumb {
    margin: 5px;
}
/* PHE Tour Button - Override inline styles */
#phe-start-tour,
.phe-start-tour,
.phe-help-button {
    display: inline-block !important;
    padding: 8px 20px !important;
    background: #00a77e !important;
    color: white !important;
    border: none !important;
    border-radius: 4px !important;
    font-size: 0.8em !important;
    font-weight: bold !important;
    cursor: pointer !important;
    margin-left: 10px !important;
    text-transform: initial !important;
}

#phe-start-tour:hover,
.phe-start-tour:hover,
.phe-help-button:hover {
    background: #008f6a !important;
}

/* Explainer Tool Help Button */
.explainer-button,
button[onclick*="openExplainerTool"] {
    padding: 8px 20px !important;
    text-transform: initial !important;
}



.angus-single-product-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 15px;
    font-family: 'Helvetica Neue Condensed', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size:1rem;
}


.woocommerce:where(body:not(.woocommerce-uses-block-theme)) .woocommerce-breadcrumb {
  font-size: 0.8em;
  color: #767676;
  text-align: right;
}

/* Main Product Layout */
.angus-product-layout {
    display: grid;
    grid-template-columns: 60% 38%;
    gap: 2%;
    margin-bottom: 40px;
}

/* Left Column Styles */
.angus-left-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Product Header */
.angus-product-header {
    padding: 0px;
}

.angus-product-title-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 0px;
}

.angus-product-title {
    font-size: 3rem; /* 40px based on 16px base */
    font-weight: bold;
    margin: 0;
    color: #003c71;
    border-bottom: solid 3px #003c71;
    border-bottom-right-radius: 20px;
    flex: 1;
}

/* Product Symbols */
.product-symbols-container {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.product-symbol {
    height: 40px !important;
    width: auto !important;
    max-width: 100px !important;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.product-symbol:hover {
    transform: scale(1.1);
}

.angus-product-image {
    text-align: center;
    width: 100%;
}

/* Video Animation Styles - Performance optimized */
.video-container {
    position: relative;
    width: 100%;
    max-width: 950px;
    display: inline-block;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin: 0 auto; /* Center the video container */
    will-change: transform; /* GPU acceleration hint */
    transform: translateZ(0); /* Force hardware acceleration */
}

.product-main-video {
    width: 100%;
    max-width: 950px;
    height: auto;
    display: block;
    background: #f8f9fa;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    object-fit: cover;
    min-height: 200px; /* Prevent layout shift while loading */
    will-change: transform; /* GPU acceleration hint */
    transform: translateZ(0); /* Force hardware acceleration */
    backface-visibility: hidden; /* Prevent flickering */
    -webkit-backface-visibility: hidden;
}

.product-main-video:hover {
    transform: scale(1.01);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.product-main-video:focus {
    outline: 2px solid #003c71;
    outline-offset: 2px;
}

/* Loading state for video */
.video-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #003c71;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.video-container.loaded::before,
.video-container.playing::before {
    opacity: 0;
    pointer-events: none;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Ensure video is responsive */
.video-container video {
    max-width: 100%;
    height: auto;
}

/* Video Toggle Controls Styling */
.video-toggle-controls {
    margin: 10px 0;
    text-align: left;
    min-height: 35px;
    display: flex !important;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

/* Ensure Help Explainer button is always visible in the container */
.video-toggle-controls .phe-help-button,
.video-toggle-controls #phe-start-tour {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.video-toggle-button {
    background-color: #003c71 !important;
    color: white !important;
    border: none !important;
    padding: 12px 20px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-size: 0.8em !important;
    font-weight: bold !important;
    transition: background-color 0.3s ease !important;
    text-decoration: none !important;
    display: inline-block !important;
}

.video-toggle-button:hover {
    background-color: #0d2b4a !important;
    color: white !important;
}

/* PHE Button Container - Independent Help Explainer Container */
.phe-button-container {
    margin: 10px 0;
    text-align: left;
    min-height: 35px;
    display: block;
}

.phe-button-container #phe-start-tour,
.phe-button-container .phe-help-button {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.angus-product-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.angus-product-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Modal Styles */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.image-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: scaleIn 0.3s ease;
}

.modal-image {
    width: 100%;
    height: auto;
    display: block;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
    z-index: 10001;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Product Description Section */
.angus-product-description {
    background: #fff;
    border: 2px solid #003c71;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.description-title {
    background: #003c71;
    color: white;
    margin: 0;
    padding: 5px 20px;
    font-size: 1em;
    font-weight: bold;
    border-bottom: solid 1px #fff;
}

.description-content {
    padding: 20px;
    font-size: 0.9em;
    line-height: 1.6;
    color: #333;
}

.description-content p {
    margin-bottom: 15px;
}

.description-content p:last-child {
    margin-bottom: 0;
}

/* Pedigree Section */
.angus-pedigree-section {
    border: 2px solid #003c71;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    margin-top: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.pedigree-title {
    background: #003c71;
    color: white;
    margin: 0;
    padding: 5px 20px;
    font-size: 18px;
    font-weight: bold;
}

.pedigree-table {
    padding: 0;
}

.pedigree-section {
    border-bottom: 1px solid #ddd;
}

.pedigree-section:last-child {
    border-bottom: none;
}

.pedigree-header {
    background: #00a77e;
    color: white;
    padding: 5px 20px;
    font-weight: bold;
    font-size: 18px;
}

.pedigree-content {
    padding: 5px 20px;
    background: #f9f9f9;
}

.pedigree-detail {
    margin-bottom: 8px;
    font-size: 16px;
    line-height: 1.4;
    font-weight: normal;
}

.pedigree-detail:last-child {
    margin-bottom: 0;
}

/* Pedigree field title and value styling */
.pedigree-detail .field-label {
    font-weight: normal;
    margin-right: 8px;
    display: inline-block;
    min-width: 140px;
}

.pedigree-detail .field-value {
    font-weight: bold;
}

/* Right Column Styles */
.angus-right-column {
    display: flex;
    flex-direction: column;
}

.angus-general-info {
    border: none;
    background: #fff;
    height: fit-content;
    border: 2px solid #003c71;
  border-radius: 8px;
  overflow: hidden;
}

.general-info-title {
    background: #003c71;
    color: white;
    margin: 0;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: bold;
}

.info-table {
    padding: 20px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: bold;
    color: #333;
}

.info-value {
    color: #666;
}

/* General Information Styling */
.info-table-structured {
    border: none;
    width: 100%;
}

.info-row-structured {
    display: flex;
    border-bottom: 1px solid #fff;
}

.info-row-structured:last-child {
    border-bottom: none;
}

.info-label-structured {
    flex: 0 0 40%;
    border-right: 1px solid #fff;
    text-align: left;
    background-color: #c3e4d9;
    padding: 5px 10px;
    font-weight: bold;
    font-size: 0.8em;
}

.info-value-structured {
    flex: 1;
    text-align: right;
    background-color: #f6f9fb;
    padding: 5px 10px;
    font-size: 0.8em;
}

.general-info-header {
    text-align: left;
    font-size: 1em;
    background-color: #003c71;
    color: white;
    padding: 10px;
    font-weight: bold;
}

/* Add to Cart Layout Styling */
.angus-add-to-cart .woocommerce-variation-add-to-cart,
.angus-add-to-cart .cart {
    display: flex !important;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.angus-add-to-cart .quantity {
    flex: 0 0 auto;
    margin: 0 !important;
}

.angus-add-to-cart .quantity input {
    width: 60px !important;
    height: 25px !important;
    text-align: center;
}

.angus-add-to-cart .single_add_to_cart_button {
    flex: 1;
    min-width: 120px;
    margin: 0 !important;
}
/* Variations Form Label Styling */
.variations_form.cart th.label,
form.variations_form.cart th.label {
    line-height: 1.1em;
}
/* Variation Availability Stock Styling */
.woocommerce-variation-availability .stock {
    font-size: 0.8em;
    color: #0e2c4e;
    text-align: right;
    padding-right: 20px;
}
/* Stock paragraph styling */
p.stock.in-stock {
    font-size: 0.8em;
    color: #0e2c4e;
    text-align: right;
    padding-right: 20px;
}
/* Stock display in variation form */
.single_variation_wrap .woocommerce-variation-availability p.stock.in-stock,
.single_variation_wrap .woocommerce-variation-availability .stock,
.woocommerce-variation .woocommerce-variation-availability p.stock {
    font-size: 0.8em !important;
    color: #0e2c4e !important;
    text-align: right !important;
    padding-right: 20px !important;
    display: block !important;
}





.angus-add-to-cart .variations_button {
    display: flex !important;
    align-items: center;
    gap: 10px;
}
/* Hide the Clear variations button */
.variations_form .reset_variations {
    display: none !important;
}


/* Additional styling fixes */
.angus-add-to-cart .woocommerce div.product form.cart .variations {
    margin-bottom: 5px !important;
    padding-bottom: 5px !important;
}

.angus-add-to-cart .woocommerce div.product form.cart .variations select,
.angus-add-to-cart select[name*="attribute_"] {
    width: 95% !important;
}

.angus-add-to-cart .single_variation_wrap {
    width: 100% !important;
}

.angus-product-price {
    padding: 5px 20px;
    background: #003c71;
    border-top: 1px solid #ddd;
    font-size: 1.1em;
    font-weight: bold;
    color: #fff;
    text-align: center;
}

.angus-add-to-cart {
    padding: 5px;
    border-top: 1px solid #ddd;
}

.angus-add-to-cart .single_add_to_cart_button {
    background: #00a77e;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease;
}

.angus-add-to-cart .single_add_to_cart_button:hover {
    background: #008a6a;
}

/* WooCommerce Form Spacing Adjustments - Force Override */
form.variations_form.cart {
    margin-bottom: 10px !important;
}

form.variations_form.cart table.variations {
    margin-bottom: 0px !important;
    margin-top: 0px !important;
}

form.variations_form.cart table.variations tbody tr td {
    padding-top: 2px !important;
    padding-bottom: 2px !important;
}

form.variations_form.cart .single_variation_wrap {
    margin-top: 0px !important;
    margin-bottom: 0px !important;
    padding-top: 0px !important;
}

form.variations_form.cart .woocommerce-variation-add-to-cart {
    margin-top: 0px !important;
    margin-bottom: 0px !important;
    padding-top: 0px !important;
    padding:0px 12px;
}

form.variations_form.cart .quantity {
    margin-bottom: 5px !important;
    margin-top: 0px !important;
}

form.variations_form.cart .single_add_to_cart_button {
    margin-bottom: 0px !important;
    background-color: #003c71 !important;
    background: #003c71 !important;
    opacity: 1 !important;
}

form.variations_form.cart .single_add_to_cart_button:hover {
    background-color: #0f2f52 !important;
    background: #0f2f52 !important;
    opacity: 1 !important;
}

/* More specific WooCommerce selectors */
.woocommerce form.variations_form.cart .single_add_to_cart_button,
.woocommerce div.product form.cart .single_add_to_cart_button,
.woocommerce-page form.variations_form.cart .single_add_to_cart_button {
    background-color: #003c71 !important;
    background: #003c71 !important;
    opacity: 1 !important;
    filter: none !important;
}

.woocommerce form.variations_form.cart .single_add_to_cart_button:hover,
.woocommerce div.product form.cart .single_add_to_cart_button:hover,
.woocommerce-page form.variations_form.cart .single_add_to_cart_button:hover {
    background-color: #0f2f52 !important;
    background: #0f2f52 !important;
    opacity: 1 !important;
    filter: none !important;
}

/* Additional specific targeting */
.woocommerce div.product form.cart table.variations {
    margin-bottom: 0px !important;
}

.woocommerce div.product form.cart .single_variation_wrap {
    margin-top: 0px !important;
    padding-top: 0px !important;
}

/* EBV Section */
.angus-ebv-section {
    grid-column: 1 / -1;
    margin-top: 40px;
    background: #fff;
    border: 2px solid #003c71;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.ebv-title {
    background: #003c71;
    color: white;
    margin: 0;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: bold;
    border-bottom:solid 1px #fff;
}

.angus-ebv-section h3.ebv-title {
    margin-bottom: 0px;
    border-bottom:solid 1px #fff;
}

/* Desktop EBV Cards Layout - Hidden by default */
@media (min-width: 769px) {
    .ebv-mobile-cards {
        display: none;
    }
}

.ebv-table-container {
    overflow-x: auto;
    padding: 0;
}

.angus-ebv-section .ebv-table-container table.ebv-table {
    margin-bottom:0px;
}

.ebv-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    min-width: 1200px;
}

.ebv-table th,
.ebv-table td {
    border: 1px solid #003c71;
    padding: 6px 4px;
    text-align: center;
    vertical-align: middle;
    overflow: hidden;
}

.ebv-table th {
    background: #003c71;
    font-weight: bold;
    color: white;
    font-size: 16px;
    padding: 8px 4px;
}

.trait-label {
    background: #c3e4d9 !important;
    font-weight: bold;
    color: #003c71 !important;
    font-size: 16px;
    min-width: 50px;
}

.ebv-values td {
    background: #c3e4d9;
}

.ebv-accuracy td {
    background: #9fdacc;
}

.ebv-percentile td {
    background: #b9d7f8;
}

/* Breeding Indices Section */
.angus-breeding-indices-section {
    margin-top: 30px;
    background: #fff;
    border: 2px solid #003c71;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.indices-title {
    background: #003c71;
    color: white;
    margin: 0;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: bold;
    border-bottom:solid 1px #fff;
}

.indices-table-container {
    overflow-x: auto;
    padding: 0;
}

.angus-breeding-indices-section .indices-table-container table.indices-table {
    margin-bottom: 0px !important;
}

.indices-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    min-width: 800px;
}

.indices-table th,
.indices-table td {
    border: 1px solid #003c71;
    padding: 6px 4px;
    text-align: center;
    vertical-align: middle;
}

.indices-table th {
    background: #003c71;
    font-weight: bold;
    color: white;
    font-size: 16px;
    padding: 8px 4px;
}

.indices-table .trait-label {
    background: #c3e4d9 !important;
    font-weight: bold;
    color: #003c71 !important;
    font-size: 16px;
    min-width: 50px;
}

.indices-values td {
    background: #c3e4d9;
}

.indices-percentile td {
    background: #b9d7f8;
}

/* Related Products Section */
.angus-related-products {
    grid-column: 1 / -1;
    margin-top: 40px;
    border: 2px solid #003c71;
    border-radius: 8px;
    background: #fff;
}

.related-title {
    background: #003c71;
    color: white;
    margin: 0;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: bold;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
}

.related-product-item {
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.related-product-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.related-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-product-title {
    padding: 15px;
    margin: 0;
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

.related-product-item a {
    text-decoration: none;
    color: inherit;
}

/* Responsive Design */
/* Mobile EBV Cards Layout */
@media (max-width: 768px) {
    .angus-product-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Mobile symbol adjustments */
    .angus-product-title-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 0px;
    }

    .product-symbols-container {
        justify-content: flex-start;
        gap: 6px;
    }

    .product-symbol {
        height: 30px;
        max-width: 45px;
    }

    .angus-ebv-section {
        margin-top: 20px;
        border: none;
    }

    .ebv-table-container {
        display: none; /* Hide table on mobile */
    }

    .ebv-mobile-cards {
        display: block;
        padding: 0;
    }

    .ebv-mobile-card {
        background: white;
        border: 1px solid #003c71;
        border-radius: 8px;
        margin-bottom: 15px;
        overflow: hidden;
    }

    .ebv-mobile-card-header {
        background: #003c71;
        color: white;
        padding: 12px 15px;
        font-weight: bold;
        font-size: 16px;
    }

    .ebv-mobile-card-content {
        padding: 0;
    }

    .ebv-mobile-row {
        display: table;
        width: 100%;
        border-bottom: 1px solid #e0e0e0;
        table-layout: fixed;
    }

    .ebv-mobile-row:last-child {
        border-bottom: none;
    }

    .ebv-mobile-label {
        display: table-cell;
        width: 28%;
        background: #c3e4d9;
        color: #003c71;
        font-weight: bold;
        padding: 8px 4px;
        font-size: 12px;
        border-right: 1px solid #003c71;
        vertical-align: middle;
        word-wrap: break-word;
    }

    .ebv-mobile-value {
        display: table-cell;
        width: 24%;
        background: #c3e4d9;
        padding: 8px 4px;
        text-align: center;
        font-size: 12px;
        border-right: 1px solid #003c71;
        vertical-align: middle;
    }

    .ebv-mobile-acc {
        display: table-cell;
        width: 24%;
        background: #9fdacc;
        padding: 8px 4px;
        text-align: center;
        font-size: 12px;
        border-right: 1px solid #003c71;
        vertical-align: middle;
    }

    .ebv-mobile-perc {
        display: table-cell;
        width: 24%;
        background: #b9d7f8;
        padding: 8px 4px;
        text-align: center;
        font-size: 12px;
        vertical-align: middle;
    }

    .ebv-mobile-headers {
        display: table;
        width: 100%;
        background: #003c71;
        color: white;
        font-weight: bold;
        font-size: 12px;
        table-layout: fixed;
    }

    .ebv-mobile-headers > div {
        display: table-cell;
        padding: 8px 4px;
        text-align: center;
        border-right: 1px solid white;
        vertical-align: middle;
    }

    .ebv-mobile-headers > div:first-child {
        width: 28%;
        text-align: left;
    }

    .ebv-mobile-headers > div:nth-child(2) {
        width: 24%;
    }

    .ebv-mobile-headers > div:nth-child(3) {
        width: 24%;
    }

    .ebv-mobile-headers > div:nth-child(4) {
        width: 24%;
        border-right: none;
    }

    .ebv-table,
    .indices-table {
        font-size: 16px;
    }

    .ebv-table th,
    .ebv-table td,
    .indices-table th,
    .indices-table td {
        padding: 6px 4px;
    }

    .related-products-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }

    /* Pedigree responsive adjustments */
    .pedigree-header {
        padding: 10px 15px;
        font-size: 16px;
    }

    .pedigree-content {
        padding: 12px 15px;
    }

    /* Modal responsive adjustments */
    .modal-content {
        max-width: 95%;
        max-height: 85%;
        margin: 20px;
    }

    .modal-close {
        top: 10px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 18px;
    }

    .angus-product-image img:hover {
        transform: none; /* Disable hover effects on mobile */
    }

    /* Video responsive adjustments */
    .product-main-video:hover {
        transform: none; /* Disable hover effects on mobile */
    }

    .video-container {
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
}

/* Download PDF Section Styles */
.angus-download-pdf {
    background-color: #f6f9fb;
    overflow: hidden;
}

.download-pdf-header {
    background-color: #003c71;
    color: white;
    padding: 12px 20px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
}

.download-pdf-content {
    padding: 20px;
    text-align: center;
}

.download-pdf-button {
    background-color: #003c71;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width:100%;
}

.download-pdf-button:hover {
    background-color: #0f2d4f;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(22, 65, 112, 0.3);
}

.download-pdf-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(22, 65, 112, 0.3);
}

.download-pdf-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.download-pdf-button.pdf-generating {
    background-color: #0f2d4f;
    cursor: wait;
}

.download-pdf-button.pdf-success {
    background-color: #28a745 !important;
    cursor: default;
}

.pdf-loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: pdf-spin 1s ease-in-out infinite;
}

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

.download-pdf-description {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

/* Responsive adjustments for Download PDF */
@media (max-width: 768px) {
    .download-pdf-header {
        padding: 10px 15px;
        font-size: 16px;
    }

    .download-pdf-content {
        padding: 15px;
    }

    .download-pdf-button {
        padding: 10px 20px;
        font-size: 14px;
    }

    .download-pdf-description {
        font-size: 13px;
    }
}

/* Simple Product Styles */
.simple-product-info {
    padding: 20px 0;
}

.simple-product-price {
    margin-bottom: 15px;
}

.simple-product-price .price {
    font-size: 1.5em;
    font-weight: bold;
    color: #005a87;
}

.simple-product-stock {
    margin-bottom: 20px;
    padding: 10px 15px;
    background: #f9f9f9;
    border-radius: 6px;
    display: inline-block;
}

.simple-product-stock .stock-label {
    font-weight: 600;
    color: #333;
    margin-right: 5px;
}

.simple-product-stock .stock-value {
    color: #005a87;
    font-weight: bold;
}

.simple-product-stock .stock-in-stock {
    color: #0a7e2c;
    font-weight: bold;
}

.simple-product-stock .stock-out-of-stock {
    color: #c41e3a;
    font-weight: bold;
}

.simple-product-add-to-cart form.cart {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.simple-product-add-to-cart .quantity-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.simple-product-add-to-cart .quantity-wrapper label {
    font-weight: 600;
    color: #333;
    margin: 0;
}

.simple-product-add-to-cart .quantity-wrapper input[type="number"] {
    width: 80px;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    text-align: center;
}

.simple-product-add-to-cart .quantity-wrapper input[type="number"]:focus {
    outline: none;
    border-color: #005a87;
}

.simple-product-add-to-cart .single_add_to_cart_button {
    background: #005a87;
    color: white;
    border: none;
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.simple-product-add-to-cart .single_add_to_cart_button:hover {
    background: #007cba;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

@media (max-width: 768px) {
    .simple-product-add-to-cart form.cart {
        flex-direction: column;
        align-items: stretch;
    }

    .simple-product-add-to-cart .quantity-wrapper {
        width: 100%;
    }

    .simple-product-add-to-cart .quantity-wrapper input[type="number"] {
        flex: 1;
    }

    .simple-product-add-to-cart .single_add_to_cart_button {
        width: 100%;
    }
}
