/* EDD Product Grid Styles */

.edd-product-grid-area {
    background-color: #f9f9f9;
}

.edd-archive-header {
    margin-bottom: 50px;
    text-align: center;
}

.edd-archive-title {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.edd-archive-description {
    font-size: 18px;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* Product Card */
.edd-product-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    margin-bottom: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.edd-product-thumb {
    position: relative;
    overflow: hidden;
    padding-top: 65%; /* Aspect ratio */
}

.edd-product-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.edd-product-item:hover .edd-product-thumb img {
    transform: scale(1.05);
}

.edd-product-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.edd-product-cat {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #0d6efd; /* Bootstrap primary */
    margin-bottom: 10px;
    font-weight: 600;
}

.edd-product-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 15px;
}

.edd-product-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s;
}

.edd-product-title a:hover {
    color: #0d6efd;
}

.edd-product-excerpt {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.edd-product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid #eee;
    margin-top: auto;
}

.edd-product-price {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}

.edd-product-btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #0d6efd;
    color: #fff;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.edd-product-btn:hover {
    background-color: #0b5ed7;
    color: #fff;
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.3);
}

/* Pagination */
.edd-pagination {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}

.edd-pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #fff;
    margin: 0 5px;
    color: #1a1a1a;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s;
    border: 1px solid #eee;
}

.edd-pagination .page-numbers.current,
.edd-pagination .page-numbers:hover {
    background: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
}

.edd-pagination .page-numbers.dots {
    background: transparent;
    box-shadow: none;
    border: none;
    cursor: default;
}

/* --- Single Product Page Styles --- */

.edd-single-image img,
.edd-single-image-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.edd-single-content-wrapper {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.edd-single-meta-cat .edd-cat-label a {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    color: #0d6efd;
    text-decoration: none;
    letter-spacing: 1px;
}

.edd-single-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    color: #1a1a1a;
}

.edd-single-price-area {
    font-size: 24px;
    font-weight: 700;
    color: #0d6efd;
}

.edd-single-excerpt {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
}

.edd-single-purchase-btn .edd-add-to-cart.btn {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 5px;
    text-transform: uppercase;
    transition: all 0.3s;
    background-color: #0d6efd;
    color: #fff;
    border: none;
    display: inline-block;
}

/* Fix double button issue: Hide non-JS input fallback when custom classes are applied */
.edd-single-purchase-btn .edd-add-to-cart.btn.edd-no-js {
    display: none !important;
}

.edd-single-purchase-btn .edd-add-to-cart.btn:hover {
    background-color: #0b5ed7;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

.edd-single-meta-tags {
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 14px;
    color: #777;
}

.edd-single-meta-tags a {
    color: #555;
    text-decoration: none;
    transition: color 0.2s;
}

.edd-single-meta-tags a:hover {
    color: #0d6efd;
}

/* Tabs */
.edd-tabs .nav-link {
    color: #555;
    font-weight: 600;
    padding: 12px 25px;
    border: none;
    border-bottom: 2px solid transparent;
}

.edd-tabs .nav-link.active,
.edd-tabs .nav-link:hover {
    color: #0d6efd;
    background: transparent;
    border-bottom-color: #0d6efd;
}

.edd-tab-content {
    background: #fff;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

/* Custom Spacing Utilities */
.pt-130 { padding-top: 130px; }
.pb-130 { padding-bottom: 130px; }
.pt-100 { padding-top: 100px; }
.pb-100 { padding-bottom: 100px; }
.mb-50 { margin-bottom: 50px; }
.mb-30 { margin-bottom: 30px; }
.mb-20 { margin-bottom: 20px; }
.mb-25 { margin-bottom: 25px; }
.mb-35 { margin-bottom: 35px; }
.mb-15 { margin-bottom: 15px; }
.pl-lg-4 { padding-left: 1.5rem; }
.mt-40 { margin-top: 40px; }


/* --- Checkout Page Styles --- */

/* Page Wrapper Spacing */
.edd-checkout .entry-content,
#edd_checkout_wrap {
    padding-top: 80px;
    padding-bottom: 80px;
}

/* Cart Table Styles */
#edd_checkout_cart {
    width: 100%;
    margin-bottom: 50px;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.02);
}

#edd_checkout_cart thead th {
    background-color: #f8f9fa;
    padding: 18px 20px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    font-size: 14px;
    border-bottom: 2px solid #eee;
    text-align: left;
}

#edd_checkout_cart td {
    padding: 20px;
    vertical-align: middle;
    border-bottom: 1px solid #eee;
    color: #555;
    text-align: left;
}

#edd_checkout_cart tr:last-child td {
    border-bottom: none;
}

.edd_cart_item_name {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 16px;
}

.edd_cart_item_price {
    font-weight: 600;
    color: #0d6efd;
}

.edd_cart_actions {
    text-align: center !important;
}

.edd_cart_actions a.edd_cart_remove_item_btn {
    color: #dc3545;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.2s;
    opacity: 0.7;
}

.edd_cart_actions a.edd_cart_remove_item_btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

.edd_cart_total, .edd_cart_footer_row {
    background-color: #f8f9fa !important;
    font-weight: 700;
    font-size: 18px;
    color: #1a1a1a;
}

.edd_cart_footer_row th,
.edd_cart_footer_row td {
    border-top: 2px solid #eee;
    background-color: #f8f9fa;
}


/* Checkout Form Fields */
#edd_checkout_form_wrap {
    max-width: 800px;
    margin: 0 auto;
}

#edd_checkout_form_wrap legend {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    display: block;
    width: 100%;
    color: #1a1a1a;
    position: relative;
}

#edd_checkout_form_wrap fieldset {
    margin-bottom: 40px;
    border: none;
    padding: 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.edd-input, 
.edd-select,
.edd-textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #dfe1e5;
    border-radius: 6px;
    font-size: 15px;
    color: #444;
    background-color: #fff;
    transition: all 0.3s ease;
}

.edd-input:focus, 
.edd-select:focus,
.edd-textarea:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
    outline: none;
}

.edd-form-group {
    margin-bottom: 25px;
}

.edd-label {
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
    color: #1a1a1a;
    font-size: 15px;
}

.edd-required-indicator {
    color: #dc3545;
    margin-left: 4px;
}

.edd-description {
    font-size: 13px;
    color: #777;
    margin-top: 5px;
    display: block;
}

/* Payment Methods */
#edd_payment_mode_select_wrap fieldset {
    padding: 30px;
}

#edd-payment-mode-wrap {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.edd-payment-mode-label {
    display: inline-flex;
    align-items: center;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    background: #fdfdfd;
    transition: all 0.2s;
    font-weight: 500;
}

.edd-payment-mode-label:hover,
.edd-payment-mode-label.edd-payment-mode-label-selected {
    border-color: #0d6efd;
    background: #f0f7ff;
    color: #0d6efd;
}


/* Purchase Button */
#edd_purchase_submit_wrap {
    margin-top: 40px;
    text-align: center;
}

#edd-purchase-button {
    padding: 18px 50px;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    background-color: #0d6efd;
    border: none;
    border-radius: 50px; /* Rounded pill shape */
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
    letter-spacing: 1px;
    box-shadow: 0 10px 20px rgba(13, 110, 253, 0.2);
}

#edd-purchase-button:hover {
    background-color: #0b5ed7;
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(13, 110, 253, 0.3);
}

#edd-loading {
    display: inline-block;
    margin-left: 10px;
}


