/**
 * DemeWebsolutions.com - Avada Theme Overrides
 * Version: 1.0.0
 * 
 * This file provides consistent styling across the Avada theme.
 * Works alongside marketplace-styles.css for unified design.
 */

/* ==========================================================================
   CSS Custom Properties (Design Tokens)
   ========================================================================== */
:root {
  /* Brand Colors */
  --dws-primary: #008ed6;
  --dws-primary-dark: #046b9f;
  --dws-primary-light: rgba(0, 142, 214, 0.08);
  --dws-primary-border: rgba(0, 142, 214, 0.14);
  --dws-primary-60: rgba(0, 142, 214, 0.6);
  
  /* Neutral Colors */
  --dws-black: #151515;
  --dws-black-85: rgba(21, 21, 21, 0.85);
  --dws-muted: #6b6b6b;
  --dws-white: #ffffff;
  --dws-transparent: rgba(0, 0, 0, 0);
  --dws-border-light: rgba(0, 0, 0, 0.08);
  --dws-border-none: rgba(0, 0, 0, 0);
  
  /* Typography */
  --dws-font-family: Inter, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --dws-font-size-xs: 13px;
  --dws-font-size-sm: 14px;
  --dws-font-size-base: 15px;
  --dws-font-size-md: 16px;
  --dws-font-size-lg: 18px;
  --dws-font-size-xl: 20px;
  --dws-font-size-2xl: 26px;
  --dws-font-size-3xl: 28px;
  
  /* Spacing */
  --dws-spacing-xs: 6px;
  --dws-spacing-sm: 8px;
  --dws-spacing-md: 12px;
  --dws-spacing-lg: 16px;
  --dws-spacing-xl: 20px;
  --dws-spacing-2xl: 28px;
  
  /* Border Radius */
  --dws-radius-sm: 8px;
  --dws-radius-md: 12px;
  --dws-radius-lg: 16px;
  --dws-radius-pill: 50px;
  --dws-radius-full: 999px;
  
  /* Shadows */
  --dws-shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.08);
  --dws-shadow-md: 0 8px 20px rgba(0, 0, 0, 0.08);
  --dws-shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.06);
  --dws-shadow-xl: 0 18px 40px rgba(0, 0, 0, 0.09);
  
  /* Card Tokens */
  --dws-card-radius: var(--dws-radius-md);
  --dws-card-shadow: var(--dws-shadow-md);
  --dws-card-max-width: 420px;
  
  /* Grid */
  --dws-grid-gap: 28px;
  
  /* Form */
  --dws-input-height: 45px;
  --dws-input-radius: var(--dws-radius-md);
  --dws-input-border: var(--dws-primary-60);
}

/* ==========================================================================
   Base / Reset
   ========================================================================== */
body {
  font-family: var(--dws-font-family);
}

.hero {
  background: transparent;
  padding: 80px 0;
  text-align: center;
}

/* ==========================================================================
   Typography
   ========================================================================== */

/* Headings */
h2,
.post h2,
.post-content h2,
#wrapper .woocommerce .checkout h3,
.woocommerce .checkout h3 {
  font-size: var(--dws-font-size-2xl);
  color: var(--dws-primary);
}

.woocommerce h2 {
  color: var(--dws-primary);
}

.fusion-body #wrapper .fusion-title h1 {
  color: var(--dws-primary);
}

.fusion-modal h1,
.fusion-post-content h1,
.fusion-tb-footer h1,
.fusion-tb-page-title-bar h1,
.fusion-widget-area h1,
.post-content h1,
.search-page-search-form h1,
.title h1,
h1 {
  color: inherit;
}

.fusion-author .fusion-author-title,
.fusion-post-content h3,
.fusion-title h3,
.person-author-wrapper span,
.post-content h3,
.project-content h3,
.related.products h3,
.sidebar .widget h3,
.single-product .woocommerce-tabs .entry-content h3,
.title h3,
.upsells.products h3,
.woocommerce-container .product-title,
body #wrapper h2.woocommerce-loop-category__title,
h3 {
  color: inherit;
}

/* Links */
#main .about-author .title a:hover,
#main .post h2 a:hover,
.fusion-open-submenu:hover,
.fusion-pagination .next:hover,
.fusion-pagination .next:hover:after,
.fusion-pagination .prev:hover,
.fusion-pagination .prev:hover:before,
.fusion-read-more:hover:after,
.more a:hover:after,
.pagination .pagination-next:hover:after,
.pagination .pagination-prev:hover:before,
.pagination-next:hover:after,
.pagination-prev:hover:before,
.project-content .project-info .project-info-box a:hover,
.rtl .fusion-read-more:hover:before,
.rtl .more a:hover:before,
.single-navigation a[rel=next]:hover:after,
.single-navigation a[rel=prev]:hover:before,
a:hover,
h5.toggle:hover a {
  color: var(--dws-primary-dark);
}

/* Prices */
.content-box-percentage,
.fusion-date-and-formats .fusion-format-box i,
.price ins .amount,
.price > .amount,
.star-rating span:before,
.star-rating:before {
  color: var(--dws-black-85);
  font-size: var(--dws-font-size-lg);
  font-weight: 500;
}

.fusion-woo-product-design-clean .products .product .product-title,
.fusion-woo-product-design-clean .slides .product .product-title {
  font-style: normal;
  font-size: var(--dws-font-size-xl);
}

.woocommerce-loop-category__title {
  font-size: var(--dws-font-size-xl);
  font-style: normal;
}

/* ==========================================================================
   Cards & Containers
   ========================================================================== */

/* Shared card/box styles mixin */
.checkout .payment_methods .payment_box,
.avada-woo-one-page-checkout .woocommerce .checkout #customer_details .col-1,
.avada-woo-one-page-checkout .woocommerce .checkout #customer_details .col-2,
.woocommerce-content-box,
.coupon,
.avada-myaccount-user,
.woocommerce-MyAccount-content {
  background-image: none;
  background-position: left top;
  background-repeat: no-repeat;
  background-size: cover;
  border-width: 0;
  border-color: var(--dws-black);
  border-style: solid;
  border-radius: var(--dws-radius-md);
  box-shadow: var(--dws-shadow-lg);
}

.checkout .payment_methods .payment_box,
.fusion-body blockquote,
.post-content blockquote,
.review blockquote q {
  background-color: inherit;
}

/* Ability congruent card styles */
.ability-congruent .card {
  background-color: inherit;
  background-image: none;
  border: 0 solid #151515;
  border-radius: var(--ability-card-radius);
  box-shadow: var(--ability-shadow);
  padding: 52px;
}

/* Ability congruent badge styles */
.ability-congruent .badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ability-muted, var(--dws-muted));
  font-size: 0.95rem;
  font-weight: 400;
  background: transparent;
  padding-bottom: 10px;
}

/* Ability congruent compare card styles */
.ability-congruent .compare-card {
  background-color: inherit;
  border: 0 solid #151515;
  border-radius: var(--ability-card-radius);
  box-shadow: var(--ability-shadow);
  padding: 16px;
}

/* Comparison table wrapper and card styles */
.compare-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.compare-card {
  min-width: 100%;
  box-sizing: border-box;
}

.table-compare {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  font-size: 14px;
}

.table-compare thead th {
  text-align: left;
  padding: 12px;
  font-weight: 600;
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.table-compare tbody td {
  padding: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.table-compare tbody tr:last-child td {
  border-bottom: none;
}

.table-compare .ok {
  color: #008ed6;
  font-weight: 500;
}

.table-compare .dash {
  color: #6b6b6b;
}

.pill {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(0, 142, 214, 0.1);
  color: #008ed6;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}

/* ==========================================================================
   Borders - Transparent Reset
   ========================================================================== */
#customer_login .col-1,
#customer_login .col-2,
#customer_login h2,
#customer_login_box,
#final-order-details .mini-order-details tr:last-child,
#reviews li .comment-text,
#small-nav,
#wrapper .side-nav li a,
#wrapper .side-nav li.current_page_item li a,
.avada-skin-rev,
.chzn-container-single .chzn-single,
.chzn-container-single .chzn-single div,
.chzn-drop,
.commentlist .the-comment,
.es-carousel-wrapper.fusion-carousel-small .es-carousel ul li img,
.fusion-author .fusion-author-social,
.fusion-author-widget .fusion-author-widget-separator .fusion-author-widget-sep,
.fusion-body .avada-myaccount-user,
.fusion-body .avada-myaccount-user .avada-myaccount-user-column,
.fusion-body .avada-order-details .shop_table.order_details tfoot,
.fusion-body .cart-totals-buttons,
.fusion-body .cart_totals,
.fusion-body .cart_totals .total,
.fusion-body .cart_totals h2,
.fusion-body .checkout .shop_table tfoot,
.fusion-body .coupon,
.fusion-body .coupon h2,
.fusion-body .my_account_orders tr,
.fusion-body .order-info,
.fusion-body .order-total,
.fusion-body .quantity .minus,
.fusion-body .quantity .qty,
.fusion-body .shop_attributes tr,
.fusion-body .shop_table tr,
.fusion-body .woocommerce .address h4,
.fusion-body .woocommerce .addresses .title,
.fusion-body .woocommerce .checkout #customer_details .col-1,
.fusion-body .woocommerce .checkout #customer_details .col-2,
.fusion-body .woocommerce .checkout h3,
.fusion-body .woocommerce .cross-sells,
.fusion-body .woocommerce .cross-sells h2,
.fusion-body .woocommerce .social-share,
.fusion-body .woocommerce .social-share li,
.fusion-body .woocommerce-MyAccount-content,
.fusion-body .woocommerce-MyAccount-content h2,
.fusion-body .woocommerce-MyAccount-content h3,
.fusion-body .woocommerce-MyAccount-navigation ul li a,
.fusion-body .woocommerce-content-box,
.fusion-body .woocommerce-content-box h2,
.fusion-body .woocommerce-shipping-calculator,
.fusion-body .woocommerce-shipping-calculator h2,
.fusion-body .woocommerce-side-nav li a,
.fusion-body .woocommerce-tabs .tabs li a,
.fusion-body.woo-tabs-horizontal .woocommerce-tabs > .entry-content,
.fusion-content-widget-area .product_list_widget li,
.fusion-content-widget-area .widget .recentcomments,
.fusion-content-widget-area .widget li a,
.fusion-content-widget-area .widget li a:before,
.fusion-content-widget-area .widget_archive li,
.fusion-content-widget-area .widget_categories li,
.fusion-content-widget-area .widget_layered_nav li,
.fusion-content-widget-area .widget_links li,
.fusion-content-widget-area .widget_meta li,
.fusion-content-widget-area .widget_nav_menu li,
.fusion-content-widget-area .widget_pages li,
.fusion-content-widget-area .widget_product_categories li,
.fusion-content-widget-area .widget_recent_entries li,
.fusion-counters-box .fusion-counter-box .counter-box-border,
.fusion-filters,
.fusion-hide-pagination-text .pagination-next,
.fusion-hide-pagination-text .pagination-prev,
.fusion-pagination .page-numbers,
.fusion-project-details-tb .project-info .project-info-box,
.fusion-tabs.vertical-tabs.clean .nav-tabs li .tab-link,
.input-radio,
.ls-avada,
.page-links a,
.pagination a.inactive,
.panel.entry-content,
.post .fusion-meta-info,
.price_slider_wrapper,
.progress-bar,
.project-content .project-info .project-info-box,
.search-page-search-form,
.side-nav,
.side-nav li a,
.side-nav-left .side-nav,
.single-navigation,
.table,
.table > tbody > tr > td,
.table > tbody > tr > th,
.table > tfoot > tr > td,
.table > tfoot > tr > th,
.table > thead > tr > td,
.table > thead > tr > th,
.table-1 table,
.table-1 table th,
.table-1 tr td,
.table-2 table thead,
.table-2 tr td,
.tabs-vertical .tabs-container .tab_content,
.tabs-vertical .tabset,
.tagcloud a,
.tkt-slctr-tbl-wrap-dv table,
.tkt-slctr-tbl-wrap-dv tr td,
.widget_layered_nav li,
.widget_product_categories li,
.woo-tabs-horizontal .woocommerce .woocommerce-MyAccount-navigation > ul .is-active,
.woo-tabs-horizontal .woocommerce .woocommerce-checkout-nav .is-active,
.woo-tabs-horizontal .woocommerce-MyAccount-navigation,
.woo-tabs-horizontal .woocommerce-tabs > .tabs,
.woo-tabs-horizontal .woocommerce-tabs > .wc-tab,
.woocommerce .social-share,
.woocommerce .social-share li,
.woocommerce-pagination .page-numbers,
h5.toggle.active + .toggle-content,
tr td {
  border-color: var(--dws-border-none);
}

/* ==========================================================================
   Forms & Inputs
   ========================================================================== */
#comment-input input,
#comment-textarea textarea,
.avada-select .select2-container .select2-choice,
.avada-select .select2-container .select2-choice .select2-arrow,
.avada-select .select2-container .select2-choice2 .select2-arrow,
.chzn-container .chzn-drop,
.chzn-container-single .chzn-single,
.comment-form-comment textarea,
.fusion-body .avada-select-parent .select-arrow,
.fusion-body .avada-select-parent select,
.fusion-body .gift-cards-list button.ywgc-amount-buttons,
.gravity-select-parent .select-arrow,
.input-text,
.main-nav-search-form input,
.post-password-form label input[type=password],
.search-page-search-form input,
.searchform .fusion-search-form-content .fusion-search-field input,
.select-arrow,
.select2-container .select2-selection .select2-selection__arrow,
.select2-container--default .select2-dropdown .select2-search,
.select2-container--default .select2-search--dropdown .select2-search__field,
.select2-container--default .select2-selection--single,
.select2-dropdown,
input.s,
input[type=date],
input[type=email],
input[type=number],
input[type=password],
input[type=tel],
input[type=text],
input[type=time],
select,
textarea {
  border-width: var(--form_border_width-top, 1px) var(--form_border_width-right, 1px) var(--form_border_width-bottom, 1px) var(--form_border_width-left, 1px);
  border-color: var(--dws-input-border);
  border-radius: var(--dws-input-radius);
}

/* Input height normalization */
#comment-input input,
.avada-select .select2-container .select2-choice,
.avada-select .select2-container .select2-choice .select2-arrow,
.avada-select .select2-container .select2-choice2 .select2-arrow,
.chzn-container .chzn-drop,
.chzn-container-single .chzn-single,
.fusion-body .avada-select-parent select,
.fusion-body .gift-cards-list button.ywgc-amount-buttons,
.fusion-login-box .fusion-login-form input[type="password"],
.fusion-login-box .fusion-login-form input[type="text"],
.input-text:not(textarea),
.main-nav-search-form input,
.post-password-form label input[type="password"],
.search-page-search-form input,
.searchform .fusion-search-form-content .fusion-search-button input[type="submit"],
.searchform .fusion-search-form-content .fusion-search-field input,
.searchform .search-table .search-field input,
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--single .select2-selection__arrow,
input.s,
input[type="date"],
input[type="email"],
input[type="number"],
input[type="password"],
input[type="tel"],
input[type="text"],
input[type="time"],
select {
  height: var(--dws-input-height);
  padding-top: 0;
  padding-bottom: 0;
}

/* Validation styles */
.validate-required.woocommerce-validated .select2-selection--single,
.validate-required.woocommerce-validated input {
  box-shadow: inset 3px 0 0 var(--dws-primary);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
#main #comment-submit,
#reviews input#submit,
.button-default,
.button.default,
.comment-form input[type="submit"],
.fusion-button,
.fusion-button-default,
.price_slider_amount button,
.woocommerce .avada-order-details .order-again .button,
.woocommerce .avada-shipping-calculator-form .button,
.woocommerce .cart-collaterals .checkout-button,
.woocommerce .checkout #place_order,
.woocommerce .checkout_coupon .button,
.woocommerce .login .button,
.woocommerce .lost_reset_password input[type="submit"],
.woocommerce .register .button,
.woocommerce .single_add_to_cart_button,
.woocommerce button.button,
.woocommerce-MyAccount-content form .button,
.woocommerce.add_to_cart_inline .button,
input.button-default {
  background-color: var(--dws-primary);
  border-radius: var(--dws-radius-md);
}

.woocommerce .single_add_to_cart_button,
.woocommerce button.button {
  background: var(--dws-primary);
  color: var(--dws-white);
}

/* Button hover states */
.fusion-body .fusion-woo-cart-1 .fusion-button-wrapper .button {
  background: var(--dws-primary);
}

.fusion-body .fusion-woo-cart-1 .fusion-button-wrapper .button:hover {
  background: var(--dws-primary-dark);
  border-color: transparent;
}

/* Large button margin adjustment */
#tribe-bar-form .tribe-bar-submit input[type=submit],
.button-large,
.fusion-body .fusion-button-large,
.tml-submit-wrap input[type=submit],
.wpcf7-form .wpcf7-submit.button-large,
.wpcf7-form .wpcf7-submit.fusion-button-large {
  margin-left: 68px;
}

/* ==========================================================================
   Quantity Controls
   ========================================================================== */
.fusion-body .quantity,
.fusion-body .quantity .minus,
.fusion-body .quantity .plus,
.fusion-menu-cart-item img,
.woocommerce form.checkout #customer_details .col-1,
.woocommerce form.checkout #customer_details .col-2 {
  border-color: var(--dws-border-none);
  background-image: none;
  background-position: left top;
  background-repeat: no-repeat;
  background-size: cover;
  border-width: 0;
  border-style: solid;
  border-radius: var(--dws-radius-pill);
  box-shadow: var(--dws-shadow-lg);
}

.fusion-body .quantity .minus:hover,
.fusion-body .quantity .plus:hover {
  background-color: var(--dws-primary-dark);
}

/* Shop page counter button */
.fusion-body #main .fusion-woo-cart-1 .quantity input[type="button"] {
  background-color: var(--dws-primary);
  border-color: var(--dws-border-none);
  background-image: none;
  background-position: left top;
  background-repeat: no-repeat;
  background-size: cover;
  border-width: 0;
  border-style: solid;
  border-radius: var(--dws-radius-pill);
  box-shadow: var(--dws-shadow-lg);
}

.fusion-body #main .fusion-woo-cart-1 .quantity input[type="button"]:hover,
.fusion-body #main .fusion-woo-cart-1 .quantity input[type="button"]:focus {
  background-color: var(--dws-primary-dark);
}

.fusion-body #main .fusion-woo-cart-1 .quantity input[type="number"].qty {
  color: var(--dws-black-85);
}

.fusion-woo-cart .quantity input[type=number].qty {
  border: none;
}

/* ==========================================================================
   Dropdowns / Selects
   ========================================================================== */
select#subscription,
.select-dropdown {
  border-radius: 12px;
  background-color: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  line-height: 1.2;
  color: #151515;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,");
  background-repeat: no-repeat;
  background-position: calc(100% - 14px) center;
  background-size: 18px 18px;
  box-sizing: border-box;
  padding: 12px 44px 12px 14px;
  font-size: 15px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  padding-right: 0px;
  padding-left: 0px;
  text-align: center;
}

select#subscription:hover,
.select-dropdown:hover {
  border-color: var(--dws-primary-60);
  box-shadow: var(--dws-shadow-sm);
}

/* ==========================================================================
   My Account
   ========================================================================== */
.avada-myaccount-user .avada-myaccount-user-column {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  padding: var(--dws-spacing-xl) 0;
  border-right: none;
}

.avada-myaccount-user .username {
  display: inline;
  flex-grow: 1;
}

.avada-myaccount-user .username .hello:before {
  position: absolute;
  margin-left: -20px;
  font-family: awb-icons;
  content: "\f05d";
  color: var(--dws-primary);
}

/* ==========================================================================
   WooCommerce Notices
   ========================================================================== */
.fusion-body .wc-block-components-notice-banner {
  color: inherit;
  border-top: none;
  border-bottom: none;
}

.fusion-body .wc-block-components-notice-banner.is-info:before {
  content: "\f05a";
  color: red;
}

.fusion-body .wc-block-components-notice-banner.is-success:before {
  content: "\f05d";
  color: var(--dws-primary);
}

/* ==========================================================================
   Products
   ========================================================================== */
.products .fusion-product-wrapper {
  position: inherit;
  border: none;
}

/* ==========================================================================
   Layout Components
   ========================================================================== */

/* Image centering */
.fusion-image-element {
  margin-right: 0;
}

/* Column hover states */
.fusion-layout-column .fusion-column-wrapper.hover,
.fusion-layout-column .fusion-column-wrapper:hover {
  background-color: var(--dws-transparent);
}

.fusion-layout-column .fusion-column-wrapper {
  background-color: inherit;
}

/* Toggle/Accordion */
.fusion-accordian .panel-title .fusion-toggle-heading {
  margin-left: 10px;
}

.fusion-accordian .fusion-toggle-icon-right .fusion-toggle-heading {
  margin-right: 5px;
}

/* Mobile toggle menu */
.awb-menu__m-toggle {
  background-color: var(--dws-transparent);
}

/* Icons */
.fontawesome-icon.fb-icon-element.circle-yes {
  border-color: var(--dws-border-none);
  background-color: var(--dws-transparent);
}

/* Animated text */
.fusion-body .fusion-title .fusion-animated-texts-wrapper {
  position: absolute;
}

/* ==========================================================================
   Search
   ========================================================================== */
#market-search {
  padding: var(--dws-spacing-md) 14px;
  border-radius: 10px;
  border: 1px solid var(--dws-border-light);
  font-size: var(--dws-font-size-base);
  min-width: 280px;
  transition: border 0.15s ease, box-shadow 0.15s ease;
  color: #555;
}

/* ==========================================================================
   Accessibility Widget
   ========================================================================== */
.accessibility-widget {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100000;
  background: transparent;
  font-family: inherit;
}

.accessibility-toggle {
  background: var(--accessibility-primary, #007cba);
  color: var(--dws-white);
  border: none;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25em;
  transition: background 0.2s, transform 0.2s;
  z-index: 10000;
}

/* ==========================================================================
   Shop Grid System
   ========================================================================== */
.dw-products-grid,
.fusion-post-cards .fusion-grid,
.fusion-grid,
.fusion-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--dws-grid-gap);
  align-items: start;
  justify-items: center;
  padding: 0;
  margin: 0;
  list-style: none;
  box-sizing: border-box;
}

/* Column variations */
.dw-products-grid.dw-cols-2 { grid-template-columns: repeat(2, 1fr); }
.dw-products-grid.dw-cols-1 { grid-template-columns: 1fr; }

/* Grid items */
.dw-products-grid > li,
.fusion-grid > li,
.dw-product-card,
.product-grid-view,
.post-card {
  width: 100%;
  max-width: var(--dws-card-max-width);
  box-sizing: border-box;
}

/* ==========================================================================
   Shop Cards
   ========================================================================== */
.dw-product-card,
.product-grid-view,
.post-card,
.fusion-post-cards .product-grid-view,
.fusion-post-cards .post-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 250, 250, 0.99));
  border-radius: var(--dws-card-radius);
  overflow: hidden;
  box-shadow: var(--dws-card-shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  will-change: transform;
  width: 100%;
}

.dw-product-card:hover,
.product-grid-view:hover,
.post-card:hover,
.fusion-post-cards .product-grid-view:hover {
  transform: translateY(-6px);
  box-shadow: var(--dws-shadow-xl);
}

/* Card image area */
.dw-product-thumb,
.fusion-classic-product-image-wrapper,
.fusion-post-card-image,
.fusion-woo-product-image {
  background: var(--dws-white);
  display: block;
  width: 100%;
  overflow: hidden;
  border-top-left-radius: var(--dws-card-radius);
  border-top-right-radius: var(--dws-card-radius);
}

.dw-product-thumb img,
.fusion-post-card-image img,
.fusion-woo-product-image img,
.fusion-classic-product-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 320px;
  transition: transform 0.35s ease;
}

.dw-product-card:hover .dw-product-thumb img,
.product-grid-view:hover .fusion-classic-product-image-wrapper img,
.product-grid-view:hover .fusion-post-card-image img {
  transform: scale(1.04);
}

/* Card content */
.dw-product-body,
.fusion-builder-row-inner,
.fusion-column-wrapper .fusion-title,
.fusion-column-wrapper .fusion-text {
  padding: 14px var(--dws-spacing-lg);
}

.dw-product-title {
  margin: 0;
  font-size: var(--dws-font-size-md);
  font-weight: 700;
  color: var(--dws-black);
}

.dw-product-title a,
.fusion-title-heading a {
  color: inherit;
  text-decoration: none;
}

.dw-product-title a:hover,
.fusion-title-heading a:hover {
  color: var(--dws-primary);
  text-decoration: underline;
}

.product-cat-list,
.dw-product-cat {
  color: var(--dws-muted);
  font-size: var(--dws-font-size-xs);
  margin-top: var(--dws-spacing-xs);
}

/* Price block */
.dw-price-wrap,
.fusion-woo-price-tb,
.fusion-woo-price-tb-1,
.fusion-woo-price-tb-2,
.fusion-woo-price-tb-3,
.fusion-woo-price-tb-4,
.fusion-woo-price-tb-5,
.fusion-woo-price-tb-6 {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--dws-spacing-xs);
  min-width: 110px;
  padding: var(--dws-spacing-sm) 14px;
}

.dw-price,
.fusion-woo-price-tb .price,
.fusion-woo-price-tb p.price {
  font-weight: 700;
  font-size: var(--dws-font-size-md);
  color: var(--dws-black);
  white-space: nowrap;
}

.dw-price del,
.fusion-woo-price-tb del {
  color: var(--dws-muted);
  margin-right: var(--dws-spacing-xs);
}

.dw-price ins,
.fusion-woo-price-tb ins {
  color: var(--dws-black);
  font-weight: 700;
  text-decoration: none;
}

/* Card footer */
.dw-product-footer,
.product-meta {
  padding: var(--dws-spacing-md) var(--dws-spacing-lg);
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--dws-spacing-md);
  background: transparent;
  box-sizing: border-box;
  border-bottom-left-radius: var(--dws-card-radius);
  border-bottom-right-radius: var(--dws-card-radius);
}

.dw-add-btn {
  background: var(--dws-primary);
  color: var(--dws-white);
  border: none;
  padding: 10px 14px;
  border-radius: var(--dws-radius-sm);
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--dws-spacing-sm);
}

/* ==========================================================================
   Badges
   ========================================================================== */
.trial-badge,
.dw-trial {
  display: inline-flex;
  align-items: center;
  gap: var(--dws-spacing-sm);
  padding: var(--dws-spacing-xs) 10px;
  border-radius: var(--dws-radius-full);
  background: var(--dws-primary-light);
  color: var(--dws-primary);
  font-weight: 700;
  font-size: var(--dws-font-size-xs);
  border: 1px solid var(--dws-primary-border);
}

/* ==========================================================================
   Rollover Effects
   ========================================================================== */
.fusion-rollover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}

.fusion-rollover-content {
  width: 100%;
  padding: var(--dws-spacing-md);
  box-sizing: border-box;
  pointer-events: auto;
  display: flex;
  justify-content: space-between;
  gap: var(--dws-spacing-md);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.28) 100%);
  transform: translateY(20px);
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.dw-product-card:hover .fusion-rollover-content,
.product-grid-view:hover .fusion-rollover-content,
.post-card:hover .fusion-rollover-content {
  transform: translateY(0);
  opacity: 1;
}

/* Cart pill */
.fusion-rollover .cart-loading,
.dw-product-card .cart-loading {
  z-index: 2;
  display: inline-flex;
}

.fusion-rollover .cart-loading a,
.dw-product-card .cart-loading a {
  display: flex;
  align-items: center;
  gap: var(--dws-spacing-sm);
  background: rgba(255, 255, 255, 0.96);
  padding: var(--dws-spacing-sm) var(--dws-spacing-md);
  border-radius: var(--dws-radius-full);
  text-decoration: none;
  color: #0a0a0a;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

/* ==========================================================================
   Utilities
   ========================================================================== */

/* Fix Fusion inline width overrides */
.fusion-builder-row-inner[style*="width:104%"] {
  width: 100%;
  max-width: 100%;
}

/* Accessibility focus styles */
.dw-product-card a:focus,
.dw-product-card button:focus {
  outline: 3px solid rgba(0, 142, 214, 0.18);
  outline-offset: 3px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .dw-products-grid,
  .fusion-post-cards .fusion-grid,
  .fusion-grid,
  .fusion-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .dw-products-grid,
  .fusion-post-cards .fusion-grid,
  .fusion-grid,
  .fusion-grid-3 {
    grid-template-columns: 1fr;
  }
  
  .fusion-post-cards .product-grid-view,
  .dw-product-card {
    max-width: none;
  }
  
  .dw-product-body,
  .fusion-builder-row-inner {
    flex-direction: column;
    gap: var(--dws-spacing-sm);
    padding: var(--dws-spacing-md);
  }
  
  .dw-price-wrap {
    align-items: flex-start;
  }
  
  .dw-products-grid {
    gap: var(--dws-spacing-xl);
  }
}

/* ==========================================================================
   Additional Checkout & Payment Methods
   ========================================================================== */
.checkout .payment_methods .payment_box {
  background-image: none;
  background-position: left top;
  background-repeat: no-repeat;
  background-size: cover;
}

.avada-woo-one-page-checkout .woocommerce .checkout #customer_details .col-1,
.avada-woo-one-page-checkout .woocommerce .checkout #customer_details .col-2 {
  background-blend-mode: none;
}

.avada-myaccount-user .avada-myaccount-user-column {
  border-right: none;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  padding: var(--dws-spacing-xl) 0;
  border-right: 1px solid;
}

.avada-myaccount-user .username {
  display: inline;
  flex-grow: 1;
}

.avada-myaccount-user .username .hello:before {
  position: absolute;
  margin-left: -20px;
  font-family: awb-icons;
  content: "\f05d";
  color: var(--dws-primary);
}

/* ==========================================================================
   WooCommerce Notices
   ========================================================================== */
.fusion-body .wc-block-components-notice-banner {
  color: inherit;
  border-top: none;
  border-bottom: none;
}

.fusion-body .wc-block-components-notice-banner.is-info:before {
  content: "\f05a";
  color: red;
}

.fusion-body .wc-block-components-notice-banner.is-success:before {
  content: "\f05d";
  color: var(--dws-primary);
}

/* ==========================================================================
   Shop Grid System
   ========================================================================== */
.products .fusion-product-wrapper {
  position: inherit;
  border: none;
}

.shop_table .product-price {
  font-size: var(--dws-font-size-md);
  font-weight: 500;
}

/* ==========================================================================
   Shop Cards - Enhanced
   ========================================================================== */
/* Root tokens for shop */
:root {
  --dw-shop-gap: 28px;
  --dw-card-radius: var(--dws-radius-md);
  --dw-accent: var(--dws-primary);
  --dw-muted: var(--dws-muted);
  --dw-shadow: var(--dws-shadow-md);
  --dw-badge-bg: var(--dws-primary-light);
  --dw-badge-border: var(--dws-primary-border);
  --dw-max-card-width: 420px;
  --dw-image-aspect: 16 / 9;
}

/* Ensure the list resets */
.fusion-post-cards,
.fusion-grid,
.fusion-grid-3,
.fusion-grid-posts-cards {
  padding: 0;
  margin: 0;
  list-style: none;
}

/* Force a robust 3-column responsive grid */
.fusion-post-cards .fusion-grid,
.fusion-post-cards .fusion-grid-3,
.fusion-grid,
.fusion-grid-3,
.fusion-grid-posts-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--dw-shop-gap);
  align-items: start;
  justify-items: center;
  box-sizing: border-box;
}

/* Fallback for cases where Fusion wrapped items */
.fusion-post-cards .fusion-grid > li,
.fusion-grid > li,
.fusion-post-cards .product-grid-view,
.product-grid-view {
  width: 100%;
  max-width: var(--dw-max-card-width);
  box-sizing: border-box;
}

/* Card visuals */
.fusion-post-cards .product-grid-view,
.fusion-post-cards .post-card,
.product-grid-view,
.post-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(250,250,250,0.99));
  border-radius: var(--dw-card-radius);
  box-shadow: var(--dw-shadow);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
  width: 100%;
}

.fusion-post-cards .product-grid-view:hover,
.product-grid-view:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.09);
}

/* Image wrapper */
.fusion-classic-product-image-wrapper,
.fusion-post-card-image,
.fusion-woo-product-image {
  border-top-left-radius: var(--dw-card-radius);
  border-top-right-radius: var(--dw-card-radius);
  overflow: hidden;
  background: var(--dws-white);
}

.fusion-classic-product-image-wrapper img,
.fusion-post-card-image img,
.fusion-woo-product-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform .35s ease;
}

.product-grid-view:hover .fusion-classic-product-image-wrapper img {
  transform: scale(1.04);
}

/* Rollover overlay */
.fusion-rollover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}

.fusion-rollover-content {
  width: 100%;
  padding: var(--dws-spacing-md);
  box-sizing: border-box;
  pointer-events: auto;
  display: flex;
  justify-content: space-between;
  gap: var(--dws-spacing-md);
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.28) 100%);
  transform: translateY(20px);
  opacity: 0;
  transition: opacity .18s ease, transform .18s ease;
}

.product-grid-view:hover .fusion-rollover-content,
.post-card:hover .fusion-rollover-content {
  transform: translateY(0);
  opacity: 1;
}

/* Cart pill */
.fusion-rollover .cart-loading {
  z-index: 2;
  display: inline-flex;
}

.fusion-rollover .cart-loading a {
  display: flex;
  align-items: center;
  gap: var(--dws-spacing-sm);
  background: rgba(255,255,255,0.96);
  padding: var(--dws-spacing-sm) var(--dws-spacing-md);
  border-radius: 999px;
  text-decoration: none;
  color: #0a0a0a;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

/* Content area */
.fusion-builder-row-inner,
.fusion-column-wrapper .fusion-title,
.fusion-column-wrapper .fusion-text {
  padding: 14px var(--dws-spacing-lg);
}

.fusion-title-heading a {
  color: var(--dws-black);
  text-decoration: none;
  font-weight: 700;
}

.fusion-title-heading a:hover {
  color: var(--dw-accent);
  text-decoration: underline;
}

/* Price area styling */
.fusion-woo-price-tb,
.fusion-woo-price-tb-1,
.fusion-woo-price-tb-2,
.fusion-woo-price-tb-3,
.fusion-woo-price-tb-4,
.fusion-woo-price-tb-5,
.fusion-woo-price-tb-6 {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: var(--dws-spacing-sm) 14px;
}

.fusion-woo-price-tb .price,
.fusion-woo-price-tb p.price {
  font-weight: 700;
  font-size: var(--dws-font-size-base);
  color: var(--dws-black);
}

/* Product meta area */
.product-meta {
  padding: var(--dws-spacing-md) var(--dws-spacing-lg);
  border-top: 1px solid rgba(0,0,0,0.04);
  font-size: var(--dws-font-size-xs);
  color: var(--dw-muted);
  background: transparent;
}

/* Trial badge */
.trial-badge,
.dw-trial {
  display: inline-flex;
  align-items: center;
  gap: var(--dws-spacing-sm);
  padding: var(--dws-spacing-xs) 10px;
  border-radius: 999px;
  background: var(--dw-badge-bg);
  color: var(--dw-accent);
  font-weight: 700;
  font-size: var(--dws-font-size-xs);
  border: 1px solid var(--dw-badge-border);
}

/* ==========================================================================
   Additional Shop Styles
   ========================================================================== */
.dw-products-grid,
.fusion-post-cards .fusion-grid,
.fusion-grid,
.fusion-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--dw-shop-gap);
  align-items: start;
  justify-items: center;
  padding: 0;
  margin: 0;
  list-style: none;
  box-sizing: border-box;
}

.dw-products-grid.dw-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.dw-products-grid.dw-cols-1 {
  grid-template-columns: 1fr;
}

.dw-products-grid > li,
.fusion-grid > li,
.dw-product-card,
.product-grid-view,
.post-card {
  width: 100%;
  max-width: var(--dw-max-card-width);
  box-sizing: border-box;
}

.dw-product-card,
.product-grid-view,
.post-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(250,250,250,0.99));
  border-radius: var(--dw-card-radius);
  overflow: hidden;
  box-shadow: var(--dw-shadow);
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
  will-change: transform;
}

.dw-product-card:hover,
.product-grid-view:hover,
.post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.09);
}

.dw-product-thumb,
.fusion-classic-product-image-wrapper,
.fusion-post-card-image,
.fusion-woo-product-image {
  background: var(--dws-white);
  display: block;
  width: 100%;
  overflow: hidden;
}

.dw-product-thumb img,
.fusion-post-card-image img,
.fusion-woo-product-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: var(--dw-image-aspect);
  max-height: 320px;
  transition: transform .35s ease;
}

.dw-product-card:hover .dw-product-thumb img,
.product-grid-view:hover .fusion-post-card-image img {
  transform: scale(1.04);
}

.dw-product-card:hover .fusion-rollover-content,
.product-grid-view:hover .fusion-rollover-content,
.post-card:hover .fusion-rollover-content {
  transform: translateY(0);
  opacity: 1;
}

.dw-product-card .cart-loading {
  z-index: 2;
  display: inline-flex;
}

.dw-product-card .cart-loading a {
  display: flex;
  align-items: center;
  gap: var(--dws-spacing-sm);
  background: rgba(255,255,255,0.96);
  padding: var(--dws-spacing-sm) var(--dws-spacing-md);
  border-radius: 999px;
  text-decoration: none;
  color: #0a0a0a;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.dw-product-body,
.fusion-builder-row-inner {
  display: flex;
  align-items: flex-start;
  gap: var(--dws-spacing-md);
  padding: 14px var(--dws-spacing-lg);
  box-sizing: border-box;
}

.dw-product-meta {
  flex: 1 1 auto;
}

.dw-product-title {
  margin: 0;
  font-size: var(--dws-font-size-md);
  font-weight: 700;
  color: var(--dws-black);
}

.dw-product-title a {
  color: inherit;
  text-decoration: none;
}

.dw-product-title a:hover {
  color: var(--dw-accent);
  text-decoration: underline;
}

.product-cat-list,
.dw-product-cat {
  color: var(--dw-muted);
  font-size: var(--dws-font-size-xs);
  margin-top: var(--dws-spacing-xs);
}

.dw-price-wrap,
.fusion-woo-price-tb {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--dws-spacing-xs);
  min-width: 110px;
}

.dw-price,
.fusion-woo-price-tb .price {
  font-weight: 700;
  font-size: var(--dws-font-size-md);
  color: var(--dws-black);
  white-space: nowrap;
}

.dw-price small,
.dw-price-note {
  color: var(--dw-muted);
  font-weight: 600;
  font-size: var(--dws-font-size-xs);
}

.dw-price del,
.fusion-woo-price-tb del {
  color: var(--dw-muted);
  margin-right: var(--dws-spacing-xs);
}

.dw-price ins,
.fusion-woo-price-tb ins {
  color: var(--dws-black);
  font-weight: 700;
  text-decoration: none;
}

.dw-product-footer,
.product-meta {
  padding: var(--dws-spacing-md) var(--dws-spacing-lg);
  border-top: 1px solid rgba(0,0,0,0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--dws-spacing-md);
  background: transparent;
  box-sizing: border-box;
  border-bottom-left-radius: var(--dw-card-radius);
  border-bottom-right-radius: var(--dw-card-radius);
}

.dw-add-btn {
  background: var(--dw-accent);
  color: var(--dws-white);
  border: none;
  padding: 10px 14px;
  border-radius: var(--dws-radius-sm);
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--dws-spacing-sm);
}

/* ==========================================================================
   Additional Form & Input Styles
   ========================================================================== */
/* WooCommerce dropdown window */
select#subscription,
.select-dropdown {
  border-radius: 12px;
  background-color: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  line-height: 1.2;
  color: #151515;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,");
  background-repeat: no-repeat;
  background-position: calc(100% - 14px) center;
  background-size: 18px 18px;
  box-sizing: border-box;
  padding: 12px 44px 12px 14px;
  font-size: 15px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  padding-right: 0px;
  padding-left: 0px;
  text-align: center;
}

select#subscription:hover,
.select-dropdown:hover {
  border-color: var(--dws-primary-60);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   Additional Layout & Component Styles
   ========================================================================== */
.fusion-layout-column .fusion-column-wrapper.hover,
.fusion-layout-column .fusion-column-wrapper:hover {
  background-color: var(--dws-transparent);
}

.fusion-layout-column .fusion-column-wrapper {
  background-color: inherit;
}

.fusion-image-element {
  margin-right: 0;
}

.fusion-accordian .panel-title .fusion-toggle-heading {
  margin-left: 10px;
}

.fusion-accordian .fusion-toggle-icon-right .fusion-toggle-heading {
  margin-right: 5px;
}

.awb-menu__m-toggle {
  background-color: var(--dws-transparent);
}

.fontawesome-icon.fb-icon-element.circle-yes {
  border-color: var(--dws-transparent);
  background-color: var(--dws-transparent);
}

.fusion-body .fusion-title .fusion-animated-texts-wrapper {
  position: absolute;
}

.fusion-woo-cart .quantity input[type=number].qty {
  border: none;
}

.fusion-body #main .fusion-woo-cart-1 .quantity input[type="number"].qty {
  color: var(--dws-black-85);
}

/* ==========================================================================
   Search & Accessibility
   ========================================================================== */
#market-search {
  padding: var(--dws-spacing-md) 14px;
  border-radius: 10px;
  border: 1px solid var(--dws-border-light);
  font-size: var(--dws-font-size-base);
  min-width: 280px;
  transition: border .15s ease, box-shadow .15s ease;
  color: #555;
}

.accessibility-toggle {
  background: var(--accessibility-primary, #007cba);
  color: var(--dws-white);
  border: none;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25em;
  transition: background 0.2s, transform 0.2s;
  z-index: 10000;
}

.accessibility-widget {
  position: fixed;
  top: var(--dws-spacing-xl);
  right: var(--dws-spacing-xl);
  z-index: 100000;
  background: transparent;
  font-family: inherit;
}

/* Ability congruent badge mobile responsive */
@media (max-width: 720px) {
  .ability-congruent .badge {
    font-size: 0.875rem;
    gap: 8px;
    padding-bottom: 8px;
  }
  
  .ability-congruent .compare-card {
    padding: 12px;
  }
  
  /* Mobile responsive comparison table */
  .compare-wrap {
    margin: 0 -12px;
    padding: 0 12px;
  }
  
  .compare-card {
    padding: 12px;
  }
  
  .table-compare {
    min-width: 500px;
    font-size: 13px;
  }
  
  .table-compare thead th,
  .table-compare tbody td {
    padding: 8px 6px;
    font-size: 12px;
  }
  
  .table-compare thead th:first-child,
  .table-compare tbody td:first-child {
    position: sticky;
    left: 0;
    background: #fff;
    z-index: 1;
    min-width: 120px;
    padding-right: 12px;
  }
  
  .pill {
    font-size: 12px;
    padding: 5px 10px;
    margin-bottom: 10px;
  }
  
  /* Stack buttons on mobile */
  .compare-card div[style*="display:flex"] {
    flex-direction: column !important;
  }
  
  .compare-card .btn {
    width: 100%;
    margin-bottom: 8px;
  }
}

