/* ============================================
   WOOCOMMERCE CUSTOM STYLES
   ============================================ */

/* Shop Page Header */
.shop-header {
    padding: calc(var(--header-height) + 4rem) 0 4rem;
    text-align: center;
    background: var(--bg-dark-light);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.shop-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.05) 0%, transparent 50%);
}

.shop-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
    position: relative;
}

.shop-description {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

/* Shop Controls */
.shop-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.shop-result-count {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.shop-ordering {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.shop-ordering select {
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.9rem;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

/* Product Archive */
.archive-products {
    padding: 2rem 0 6rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Single Product */
.product-single {
    padding: calc(var(--header-height) + 2rem) 0 4rem;
}

.product-single-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Product Gallery */
.product-gallery {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: sticky;
    top: calc(var(--header-height) + 1rem);
}

.product-gallery img {
    width: 100%;
    height: auto;
    display: block;
}

.woocommerce-product-gallery__wrapper {
    margin: 0;
}

.woocommerce-product-gallery__trigger {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    z-index: 10;
    transition: all var(--transition-fast);
}

.woocommerce-product-gallery__trigger:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* Product Details */
.product-details {
    padding: 1rem 0;
}

.product-details .product-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.product-details .product-price {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
    font-weight: 700;
}

.product-details .product-price del {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-left: 0.5rem;
}

.product-details .product-price ins {
    text-decoration: none;
}

.product-short-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* Stock Status */
.stock {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.stock.in-stock {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.stock.out-of-stock {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

/* Add to Cart Form */
.cart {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    flex-wrap: wrap;
}

.quantity {
    display: flex;
    align-items: center;
    background: var(--bg-dark-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.quantity .qty {
    width: 60px;
    height: 48px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    -moz-appearance: textfield;
    padding: 0;
}

.quantity .qty::-webkit-outer-spin-button,
.quantity .qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-button {
    width: 40px;
    height: 48px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 1.2rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-button:hover {
    background: var(--bg-dark-lighter);
    color: var(--text-primary);
}

.single_add_to_cart_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-glow);
}

.single_add_to_cart_button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
}

/* Product Meta */
.product-meta-custom {
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.product-meta-custom a {
    color: var(--primary-light);
}

.product-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--primary-light);
    width: fit-content;
}

/* WooCommerce Tabs */
.woocommerce-tabs {
    margin-top: 3rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.wc-tabs {
    display: flex;
    gap: 0;
    list-style: none;
    margin: 0 0 2rem;
    padding: 0;
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
}

.wc-tabs li {
    margin: 0;
}

.wc-tabs li a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--text-secondary);
    font-weight: 500;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.wc-tabs li a:hover {
    color: var(--text-primary);
}

.wc-tabs li.active a {
    color: var(--primary-light);
    border-bottom-color: var(--primary);
}

.wc-tab {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.wc-tab h2:first-child {
    margin-top: 0;
}

/* Reviews */
.woocommerce-Reviews {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.commentlist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.commentlist .review {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.commentlist .review:last-child {
    border-bottom: none;
}

.comment_container {
    display: flex;
    gap: 1rem;
}

.comment_container img.avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
}

.comment-text {
    flex: 1;
}

.star-rating {
    color: var(--accent);
    font-size: 0.9rem;
}

/* Review Form */
.comment-form-rating {
    margin-bottom: 1rem;
}

.comment-form-rating label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.stars {
    display: inline-flex;
    gap: 0.25rem;
}

.stars a {
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: color var(--transition-fast);
}

.stars a:hover,
.stars a.active {
    color: var(--accent);
}

/* Cart Page */
.cart-section {
    padding: calc(var(--header-height) + 2rem) 0 4rem;
}

.woocommerce-cart-form {
    margin-bottom: 2rem;
}

.shop_table {
    width: 100%;
    border-collapse: collapse;
}

.shop_table th {
    text-align: left;
    padding: 1rem;
    background: var(--bg-card);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border-color);
}

.shop_table td {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.shop_table .product-thumbnail img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    object-fit: cover;
}

.shop_table .product-name a {
    color: var(--text-primary);
    font-weight: 600;
}

.shop_table .product-price,
.shop_table .product-subtotal {
    font-weight: 600;
    color: var(--text-primary);
}

.shop_table .product-subtotal {
    color: var(--accent);
}

.remove {
    color: var(--danger);
    font-size: 1.25rem;
    transition: opacity var(--transition-fast);
    display: inline-flex;
}

.remove:hover {
    opacity: 0.7;
}

/* Cart Actions */
.cart-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    gap: 1rem;
    flex-wrap: wrap;
}

.coupon {
    display: flex;
    gap: 0.5rem;
}

.coupon input {
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.9rem;
    min-width: 200px;
}

.coupon button {
    padding: 0.75rem 1.5rem;
    background: var(--bg-dark-lighter);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.coupon button:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* Cart Collaterals */
.cart-collaterals {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.cart_totals h2 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.cart-subtotal,
.cart-tax,
.order-total {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.order-total {
    border-bottom: none;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent);
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 2px solid var(--border-color);
}

.checkout-button {
    display: block;
    width: 100%;
    padding: 1rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-glow);
    margin-top: 1.5rem;
}

.checkout-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
    color: white;
}

/* Checkout Page */
.checkout-section {
    padding: calc(var(--header-height) + 2rem) 0 4rem;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
}

.woocommerce-checkout h3 {
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

/* Checkout Form */
.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-row {
    margin-bottom: 1rem;
}

.form-row-wide {
    grid-column: 1 / -1;
}

.form-row label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-row .woocommerce-input-wrapper {
    display: block;
}

.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--bg-dark-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    font-family: inherit;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.form-row input::placeholder,
.form-row textarea::placeholder {
    color: var(--text-muted);
}

.select2-container--default .select2-selection--single {
    background: var(--bg-dark-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    height: auto;
    padding: 0.5rem;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--text-primary);
    padding-left: 0.5rem;
}

.select2-dropdown {
    background: var(--bg-dark-light);
    border: 1px solid var(--border-color);
}

.select2-results__option {
    color: var(--text-primary);
    padding: 0.5rem 1rem;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: var(--primary);
}

/* Order Review */
.woocommerce-checkout-review-order {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.shop_table.woocommerce-checkout-review-order-table {
    margin-bottom: 1.5rem;
}

.shop_table.woocommerce-checkout-review-order-table th,
.shop_table.woocommerce-checkout-review-order-table td {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.shop_table.woocommerce-checkout-review-order-table .product-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.shop_table.woocommerce-checkout-review-order-table .product-name .product-quantity {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Payment Methods */
.wc_payment_methods {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.wc_payment_method {
    margin-bottom: 0.75rem;
}

.wc_payment_method > label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-dark-light);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.wc_payment_method > label:hover {
    border-color: var(--border-color-light);
}

.wc_payment_method > input:checked + label {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.wc_payment_method .payment_box {
    padding: 1rem;
    margin-top: 0.5rem;
    background: var(--bg-dark);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Place Order Button */
#place_order {
    display: block;
    width: 100%;
    padding: 1rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-glow);
}

#place_order:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
}

/* My Account */
.woocommerce-account .site-content {
    padding: calc(var(--header-height) + 2rem) 0 4rem;
}

.woocommerce-MyAccount-navigation {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1rem;
    margin-bottom: 2rem;
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.woocommerce-MyAccount-navigation li {
    margin: 0;
}

.woocommerce-MyAccount-navigation li a {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.woocommerce-MyAccount-navigation li a:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-light);
}

.woocommerce-MyAccount-navigation li.is-active a {
    background: var(--primary);
    color: white;
}

.woocommerce-MyAccount-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

/* Orders Table */
.woocommerce-orders-table {
    width: 100%;
    border-collapse: collapse;
}

.woocommerce-orders-table th,
.woocommerce-orders-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.woocommerce-orders-table th {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.woocommerce-orders-table .woocommerce-button {
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
}

/* Downloads Table */
.woocommerce-table--order-downloads {
    width: 100%;
    border-collapse: collapse;
}

.woocommerce-table--order-downloads th,
.woocommerce-table--order-downloads td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.download-file {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.download-file:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
    color: white;
}

/* Order Details */
.woocommerce-order-details {
    margin-bottom: 2rem;
}

.woocommerce-order-details h2 {
    font-size: 1.15rem;
    margin-bottom: 1rem;
}

.woocommerce-table--order-details {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.woocommerce-table--order-details th,
.woocommerce-table--order-details td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.woocommerce-table--order-details thead th {
    background: var(--bg-dark-light);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-secondary);
}

/* Customer Details */
.woocommerce-customer-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.woocommerce-column__title {
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.address {
    background: var(--bg-dark-light);
    padding: 1.5rem;
    border-radius: var(--radius-md);
}

/* Notices */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.woocommerce-message {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--success);
}

.woocommerce-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--info);
}

.woocommerce-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--danger);
}

.woocommerce-message .button {
    margin-left: auto;
    padding: 0.5rem 1rem;
    background: var(--success);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
}

.woocommerce-message .button:hover {
    opacity: 0.9;
    color: white;
}

/* Pagination */
.woocommerce-pagination {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.woocommerce-pagination .page-numbers {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-pagination .page-numbers li {
    margin: 0;
}

.woocommerce-pagination .page-numbers a,
.woocommerce-pagination .page-numbers span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.woocommerce-pagination .page-numbers a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.woocommerce-pagination .page-numbers span.current {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Widgets */
.widget {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.widget-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.widget ul li a:hover {
    color: var(--primary-light);
}

/* Price Filter Widget */
.widget_price_filter .price_slider_wrapper {
    padding-top: 1rem;
}

.widget_price_filter .ui-slider {
    background: var(--bg-dark-lighter);
    border-radius: var(--radius-full);
    height: 6px;
    margin-bottom: 1rem;
}

.widget_price_filter .ui-slider-range {
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

.widget_price_filter .ui-slider-handle {
    width: 18px;
    height: 18px;
    background: var(--primary);
    border: 3px solid var(--bg-dark);
    border-radius: 50%;
    top: -6px;
    cursor: pointer;
}

.widget_price_filter .price_slider_amount {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.widget_price_filter .button {
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}

/* Layered Nav Widget */
.widget_layered_nav .wc-layered-nav-term {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.widget_layered_nav .wc-layered-nav-term a {
    flex: 1;
}

.widget_layered_nav .count {
    background: var(--bg-dark-lighter);
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Product Search Widget */
.widget_product_search .search-field {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-dark-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.widget_product_search button {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.widget_product_search button:hover {
    background: var(--primary-dark);
}

/* Sale Badge */
.onsale {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.3rem 0.75rem;
    background: var(--gradient-accent);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    z-index: 5;
}

/* Crypto Payment Tab */
.crypto-payment-info {
    text-align: center;
}

.crypto-payment-info h3 {
    margin-bottom: 1rem;
}

.crypto-payment-info p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.crypto-payment-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.crypto-payment-icons img {
    width: 40px;
    height: 40px;
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.crypto-payment-icons img:hover {
    opacity: 1;
}

.crypto-note {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Crypto Notice on Checkout */
.cfm-crypto-notice {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}

.cfm-crypto-notice-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.cfm-crypto-notice-content strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--primary-light);
}

.cfm-crypto-notice-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Download Info on Thank You */
.cfm-download-info {
    text-align: center;
    padding: 2rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-lg);
    margin: 2rem 0;
}

.cfm-download-info h3 {
    margin-bottom: 1rem;
    color: var(--success);
}

.cfm-download-info p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

/* Payment Receipt */
.cfm-payment-receipt {
    max-width: 600px;
    margin: 2rem auto;
    text-align: center;
}

.cfm-payment-receipt h2 {
    margin-bottom: 2rem;
}

.cfm-payment-details {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: left;
}

.cfm-payment-details p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cfm-payment-details p:last-child {
    margin-bottom: 0;
}

.cfm-payment-details strong {
    color: var(--text-primary);
    min-width: 80px;
}

.cfm-payment-address {
    flex: 1;
    word-break: break-all;
    background: var(--bg-dark-light);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}

.cfm-payment-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.cfm-payment-note {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.cfm-payment-status {
    display: inline-block;
}

/* Responsive WooCommerce */
@media (max-width: 1024px) {
    .product-single-grid {
        grid-template-columns: 1fr;
    }
    
    .product-gallery {
        position: relative;
        top: 0;
    }
    
    .checkout-grid {
        grid-template-columns: 1fr;
    }
    
    .woocommerce-Reviews {
        grid-template-columns: 1fr;
    }
    
    .woocommerce-customer-details {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .shop-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .shop-ordering {
        justify-content: space-between;
    }
    
    .woocommerce-billing-fields__field-wrapper,
    .woocommerce-shipping-fields__field-wrapper {
        grid-template-columns: 1fr;
    }
    
    .woocommerce-MyAccount-navigation ul {
        flex-direction: column;
    }
    
    .woocommerce-MyAccount-content {
        padding: 1.5rem;
    }
    
    .cart-actions {
        flex-direction: column;
    }
    
    .coupon {
        width: 100%;
    }
    
    .coupon input {
        flex: 1;
    }
    
    .shop_table thead {
        display: none;
    }
    
    .shop_table tr {
        display: block;
        margin-bottom: 1.5rem;
        background: var(--bg-card);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-lg);
        padding: 1rem;
    }
    
    .shop_table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border: none;
        padding: 0.75rem 0;
    }
    
    .shop_table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-secondary);
    }
    
    .shop_table .product-thumbnail img {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .cart {
        flex-direction: column;
        align-items: stretch;
    }
    
    .quantity {
        width: 100%;
        justify-content: center;
    }
    
    .single_add_to_cart_button {
        width: 100%;
    }
    
    .cfm-crypto-notice {
        flex-direction: column;
        text-align: center;
    }
    
    .cfm-payment-details {
        padding: 1rem;
    }
    
    .cfm-payment-details p {
        flex-direction: column;
        align-items: flex-start;
    }
}