﻿/* ============================================
   Easy Digital Downloads - Custom Styles
   ============================================ */

/* === Header Cart Icon === */
.header-cart {
    position: relative;
}

.cart-icon-link {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 22px;
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s;
    position: relative;
}

.cart-icon-link:hover {
    color: var(--primary);
}

.cart-count {
    position: absolute;
    top: -8px;
    left: -10px;
    background: var(--primary);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* === Single Download Page === */
.single-download-page {
    padding: 40px 0;
}

/* Breadcrumb */
.download-breadcrumb {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 25px;
    padding: 12px 18px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.download-breadcrumb a {
    color: var(--text-light);
    transition: color 0.2s;
}

.download-breadcrumb a:hover {
    color: var(--primary);
}

.download-breadcrumb .separator {
    margin: 0 6px;
    color: var(--border);
}

.download-breadcrumb .current {
    color: var(--primary);
    font-weight: 600;
}

/* Main Layout - Two Columns */
.download-main-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

/* Image Section */
.download-image-section {
    position: relative;
}

.download-main-image {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.download-main-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius);
}

.no-product-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    background: var(--bg);
    color: var(--text-light);
}

.no-product-image span {
    font-size: 60px;
    margin-bottom: 10px;
}

.download-gallery {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    overflow-x: auto;
}

.gallery-thumb {
    width: 70px;
    height: 70px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
    flex-shrink: 0;
}

.gallery-thumb:hover,
.gallery-thumb.active {
    border-color: var(--primary);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Details Section */
.download-details-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 80px;
}

.download-title {
    font-size: 24px;
    margin-bottom: 15px;
    line-height: 1.5;
    color: var(--text);
}

/* Price Box */
.download-price-box {
    background: linear-gradient(135deg, #fdf2f8, #fce4f0);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    margin-bottom: 20px;
}

.download-single-price,
.download-variable-prices {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-label {
    font-size: 15px;
    color: var(--text-light);
}

.price-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
}

.price-free {
    color: #27ae60;
    font-size: 20px;
}

/* Meta Info */
.download-meta-info {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.meta-item {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 14px;
}

.meta-label {
    color: var(--text-light);
    white-space: nowrap;
}

.meta-value {
    color: var(--text);
}

.meta-value a {
    color: var(--primary);
}

.meta-value a:hover {
    text-decoration: underline;
}

/* Purchase Section */
.download-purchase-section {
    margin-bottom: 20px;
}

.download-purchase-section .edd_purchase_submit_wrapper {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.download-purchase-section .edd-submit {
    background: var(--primary) !important;
    color: var(--white) !important;
    border: none !important;
    border-radius: var(--radius) !important;
    padding: 14px 30px !important;
    font-family: inherit !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s !important;
    width: 100%;
    text-align: center;
}

.download-purchase-section .edd-submit:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-1px);
}

.download-purchase-section .edd-submit:active {
    transform: translateY(0);
}

.download-purchase-section .edd_go_to_checkout {
    background: var(--primary) !important;
    color: var(--white) !important;
    border: none !important;
    border-radius: var(--radius) !important;
    padding: 14px 30px !important;
    font-family: inherit !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.download-purchase-section .edd_go_to_checkout:hover {
    background: var(--primary-dark) !important;
    color: var(--white);
}

/* Variable Pricing */
.download-purchase-section .edd_price_options {
    margin-bottom: 15px;
}

.download-purchase-section .edd_price_options ul {
    list-style: none;
    padding: 0;
}

.download-purchase-section .edd_price_options li {
    padding: 10px 15px;
    margin-bottom: 6px;
    background: var(--bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: border-color 0.2s, background 0.2s;
}

.download-purchase-section .edd_price_options li:hover {
    border-color: var(--primary);
}

.download-purchase-section .edd_price_options li label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
}

.download-purchase-section .edd_price_options input[type="radio"] {
    accent-color: var(--primary);
}

/* Product Features */
.download-features {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.download-features h3 {
    font-size: 16px;
    margin-bottom: 12px;
    color: var(--text);
}

.download-features ul {
    list-style: none;
    padding: 0;
}

.download-features li {
    padding: 6px 0;
    font-size: 14px;
    color: var(--text);
    border-bottom: 1px dashed var(--border);
}

.download-features li:last-child {
    border-bottom: none;
}

/* Demo Link */
.download-demo-link {
    margin-top: 15px;
}

.demo-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
}

.demo-button:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #fce4f0;
}

/* Description Section */
.download-description-section {
    margin-bottom: 40px;
}

.download-description-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.section-heading {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.download-content {
    line-height: 1.9;
    font-size: 15px;
}

.download-content p {
    margin-bottom: 15px;
}

.download-content img {
    border-radius: var(--radius);
    margin: 15px 0;
}

/* === Related Downloads === */
.related-downloads-section {
    margin-bottom: 40px;
}

.downloads-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.download-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.download-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.download-card-image {
    position: relative;
    overflow: hidden;
}

.download-card-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s;
}

.download-card:hover .download-card-image img {
    transform: scale(1.05);
}

.no-card-image {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    font-size: 40px;
}

.download-card-body {
    padding: 16px;
}

.download-card-body h3 {
    font-size: 15px;
    margin-bottom: 10px;
    line-height: 1.5;
}

.download-card-body h3 a {
    color: var(--text);
    text-decoration: none;
}

.download-card-body h3 a:hover {
    color: var(--primary);
}

.download-card-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.download-card-btn {
    display: block;
    text-align: center;
    padding: 8px 16px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius);
    font-size: 13px;
    text-decoration: none;
    transition: background 0.2s;
}

.download-card-btn:hover {
    background: var(--primary-dark);
    color: var(--white);
}

/* === Checkout Page === */
.checkout-page {
    padding: 40px 0;
}

.checkout-page-header {
    text-align: center;
    margin-bottom: 30px;
}

.checkout-page-header h1 {
    font-size: 26px;
    margin-bottom: 8px;
}

.checkout-subtitle {
    color: var(--text-light);
    font-size: 15px;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 25px;
    align-items: start;
}

.checkout-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.checkout-section-title {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.checkout-cart-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border);
}

/* Cart Table Styling */
.delvora-cart-wrapper {
    overflow-x: auto;
}

#edd_checkout_cart {
    width: 100%;
    border-collapse: collapse;
    border-radius: var(--radius);
    overflow: hidden;
}

#edd_checkout_cart thead tr {
    background: var(--bg);
}

#edd_checkout_cart th {
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    text-align: right;
    color: var(--text);
    border-bottom: 2px solid var(--border);
}

#edd_checkout_cart td {
    padding: 14px 16px;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

#edd_checkout_cart tbody tr:hover {
    background: #fdf2f8;
}

.edd_cart_item_image {
    display: inline-block;
    vertical-align: middle;
    margin-left: 10px;
    border-radius: 4px;
    overflow: hidden;
}

.edd_cart_item_image img {
    border-radius: 4px;
}

.edd_checkout_cart_item_title {
    font-weight: 600;
    color: var(--text);
}

.edd_cart_item_price {
    font-weight: 600;
    color: var(--primary);
}

.edd_cart_remove_item_btn {
    color: #e74c3c !important;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;
}

.edd_cart_remove_item_btn:hover {
    color: #c0392b !important;
    text-decoration: underline;
}

.edd-item-quantity {
    width: 60px;
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    text-align: center;
    outline: none;
}

.edd-item-quantity:focus {
    border-color: var(--primary);
}

#edd_checkout_cart tfoot th {
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    text-align: right;
    font-size: 14px;
}

.edd_cart_total {
    font-size: 16px !important;
    font-weight: 700;
    color: var(--primary);
}

.edd_cart_discount {
    color: #27ae60;
}

/* EDD Checkout Form */
.edd_clearfix {
    clear: both;
}

#edd_checkout_form_wrap {
    font-family: inherit;
}

#edd_checkout_form_wrap fieldset {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
    background: var(--bg);
}

#edd_checkout_form_wrap fieldset legend {
    font-weight: 600;
    font-size: 16px;
    color: var(--text);
    padding: 0 10px;
}

#edd_checkout_form_wrap input[type="text"],
#edd_checkout_form_wrap input[type="email"],
#edd_checkout_form_wrap input[type="password"],
#edd_checkout_form_wrap input[type="tel"],
#edd_checkout_form_wrap input[type="url"],
#edd_checkout_form_wrap input[type="number"],
#edd_checkout_form_wrap select,
#edd_checkout_form_wrap textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--white);
    direction: rtl;
}

#edd_checkout_form_wrap input:focus,
#edd_checkout_form_wrap select:focus,
#edd_checkout_form_wrap textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(233, 30, 140, 0.1);
}

#edd_checkout_form_wrap label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

#edd_checkout_form_wrap .edd-description {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 8px;
    display: block;
}

#edd_purchase_submit {
    margin-top: 20px;
}

#edd_purchase_submit .edd-submit {
    background: var(--primary) !important;
    color: var(--white) !important;
    border: none !important;
    border-radius: var(--radius) !important;
    padding: 16px 40px !important;
    font-family: inherit !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s !important;
    width: 100%;
    text-align: center;
}

#edd_purchase_submit .edd-submit:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-1px);
}

#edd_checkout_form_wrap .edd-cart-adjustment .edd-discount-code-field-wrap {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

#edd_checkout_form_wrap .edd-discount-code-field-wrap input {
    flex: 1;
}

#edd_checkout_form_wrap .edd-discount-code-field-wrap button {
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    padding: 12px 20px;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

#edd_checkout_form_wrap .edd-discount-code-field-wrap button:hover {
    background: var(--primary-dark);
}

/* EDD Login Form */
#edd_checkout_login_form {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
}

#edd_checkout_login_form input[type="text"],
#edd_checkout_login_form input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    margin-bottom: 12px;
    direction: rtl;
}

#edd_checkout_login_form input:focus {
    border-color: var(--primary);
}

/* Checkout Sidebar */
.checkout-sidebar {
    position: sticky;
    top: 80px;
}

.checkout-summary-card,
.checkout-discount-card,
.checkout-trust-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
    margin-bottom: 15px;
}

.sidebar-title {
    font-size: 16px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

/* Order Items */
.order-items-list {
    margin-bottom: 15px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border);
}

.order-item:last-child {
    border-bottom: none;
}

.order-item-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.order-item-thumb {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.order-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-item-title {
    font-size: 13px;
    color: var(--text);
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.order-item-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
}

/* Order Totals */
.order-summary-totals {
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
}

.discount-row {
    color: #27ae60;
}

.total-row {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    padding-top: 10px;
    margin-top: 6px;
    border-top: 2px solid var(--primary);
}

.total-amount {
    color: var(--primary);
}

/* Empty Cart */
.empty-cart-message {
    text-align: center;
    padding: 30px 0;
}

.empty-cart-icon {
    font-size: 50px;
    display: block;
    margin-bottom: 12px;
}

.empty-cart-message p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.back-to-shop-btn {
    display: inline-block;
    padding: 10px 24px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius);
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s;
}

.back-to-shop-btn:hover {
    background: var(--primary-dark);
    color: var(--white);
}

/* Trust Badge */
.trust-badge {
    display: flex;
    align-items: center;
    gap: 12px;
}

.trust-icon {
    font-size: 28px;
}

.trust-text strong {
    display: block;
    font-size: 14px;
    color: var(--text);
}

.trust-text p {
    font-size: 12px;
    color: var(--text-light);
    margin: 0;
}

/* === Purchase Confirmation Page === */
.purchase-confirmation-page {
    padding: 40px 0;
}

.confirmation-header {
    text-align: center;
    margin-bottom: 30px;
}

.confirmation-icon {
    font-size: 60px;
    margin-bottom: 10px;
}

.confirmation-header h1 {
    font-size: 26px;
    color: #27ae60;
    margin-bottom: 8px;
}

.confirmation-subtitle {
    color: var(--text-light);
}

.confirmation-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    max-width: 800px;
    margin: 0 auto;
}

/* EDD Receipt Table */
#edd_purchase_receipt,
#edd_purchase_receipt_products {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
}

#edd_purchase_receipt th,
#edd_purchase_receipt td,
#edd_purchase_receipt_products th,
#edd_purchase_receipt_products td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    text-align: right;
    font-size: 14px;
}

#edd_purchase_receipt th,
#edd_purchase_receipt_products th {
    background: var(--bg);
    font-weight: 600;
}

#edd_purchase_receipt .edd_receipt_payment_status.complete {
    color: #27ae60;
    font-weight: 700;
}

#edd_purchase_receipt .edd_receipt_payment_status.pending {
    color: #e6a700;
    font-weight: 700;
}

#edd_purchase_receipt_products h3 {
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

.edd_purchase_receipt_files {
    list-style: none;
    padding: 0;
    margin-top: 8px;
}

.edd_purchase_receipt_files li {
    margin-bottom: 4px;
}

.edd_download_file_link {
    color: var(--primary);
    font-size: 13px;
    text-decoration: none;
}

.edd_download_file_link:hover {
    text-decoration: underline;
}

/* Confirmation Actions */
.confirmation-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 30px;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.primary-btn {
    background: var(--primary);
    color: var(--white);
}

.primary-btn:hover {
    background: var(--primary-dark);
    color: var(--white);
}

.secondary-btn {
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
}

.secondary-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* === Payment Processing === */
.delvora-payment-processing {
    text-align: center;
    padding: 60px 20px;
}

.payment-processing-inner {
    max-width: 400px;
    margin: 0 auto;
}

.processing-spinner {
    font-size: 50px;
    margin-bottom: 15px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.delvora-payment-processing h2 {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--text);
}

.delvora-payment-processing p {
    color: var(--text-light);
    font-size: 15px;
}

.processing-note {
    font-weight: 600;
    color: #e6a700 !important;
    margin-top: 10px;
}

/* === EDD Alerts === */
.edd_errors,
.edd-alert {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: var(--radius);
    padding: 12px 18px;
    margin-bottom: 15px;
    font-size: 14px;
}

.edd-alert-error {
    background: #f8d7da;
    border-color: #e74c3c;
    color: #721c24;
}

.edd-alert-success {
    background: #d4edda;
    border-color: #27ae60;
    color: #155724;
}

.edd-alert-info {
    background: #d1ecf1;
    border-color: #3498db;
    color: #0c5460;
}

/* === EDD General Buttons === */
.edd-submit,
.edd_go_to_checkout {
    background: var(--primary) !important;
    color: var(--white) !important;
    border: none !important;
    border-radius: var(--radius) !important;
    padding: 10px 24px !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: background 0.2s !important;
    text-decoration: none;
    display: inline-block;
}

.edd-submit:hover,
.edd_go_to_checkout:hover {
    background: var(--primary-dark) !important;
    color: var(--white) !important;
}

.edd-add-to-cart {
    background: var(--primary) !important;
    color: var(--white) !important;
    border: none !important;
    border-radius: var(--radius) !important;
    padding: 10px 24px !important;
    font-family: inherit !important;
    font-size: 14px !important;
    cursor: pointer;
    transition: background 0.2s !important;
}

.edd-add-to-cart:hover {
    background: var(--primary-dark) !important;
}

/* === EDD Downloads Shortcode Grid === */
.edd_downloads_list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    list-style: none;
    padding: 0;
}

.edd_download {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.edd_download:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.edd_download_inner {
    padding: 0;
}

.edd_download_image {
    position: relative;
}

.edd_download_image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.edd_download_title {
    padding: 16px 16px 8px;
    font-size: 16px;
}

.edd_download_title a {
    color: var(--text);
    text-decoration: none;
}

.edd_download_title a:hover {
    color: var(--primary);
}

.edd_download_excerpt,
.edd_download_full_content {
    padding: 0 16px;
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
}

.edd_download_price {
    padding: 10px 16px;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
}

.edd_download_buy_button {
    padding: 0 16px 16px;
}

/* === Download Archive Page === */
.edd-shop-page .posts-grid {
    grid-template-columns: repeat(3, 1fr);
}

/* === EDD Widget Cart === */
.edd-cart {
    list-style: none;
    padding: 0;
}

.edd-cart .edd-cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

.edd-cart-number-of-items {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 8px;
}

/* === EDD Purchase History === */
.edd-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.edd-table th,
.edd-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    text-align: right;
    font-size: 14px;
}

.edd-table th {
    background: var(--bg);
    font-weight: 600;
}

.edd-table tr:hover {
    background: #fdf2f8;
}

/* === Responsive - EDD === */
@media (max-width: 1024px) {
    .download-main-layout {
        grid-template-columns: 1fr;
    }

    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .checkout-sidebar {
        position: static;
    }

    .downloads-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .edd_downloads_list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .download-details-card {
        position: static;
    }

    .download-title {
        font-size: 20px;
    }

    .price-value {
        font-size: 18px;
    }

    .downloads-grid {
        grid-template-columns: 1fr;
    }

    .edd_downloads_list {
        grid-template-columns: 1fr;
    }

    .confirmation-actions {
        flex-direction: column;
    }

    .action-btn {
        justify-content: center;
    }

    #edd_checkout_cart {
        font-size: 13px;
    }

    #edd_checkout_cart th,
    #edd_checkout_cart td {
        padding: 10px 8px;
    }

    .header-cart {
        display: none;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .downloads-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .edd_downloads_list {
        grid-template-columns: repeat(2, 1fr);
    }
}

.search-card-wrapper {
    display: flex;
    align-items: center;
}

.header-cart {
    margin-right: 12px;
}
