/**
 * Digtek WooCommerce Custom Styles
 * Clean Woodmart-Style Dark Layout
 */

/* ==========================================================================
   1. Global Shop Background (Dark Theme)
   ========================================================================== */
body.woocommerce-page,
.digtek-woodmart-shop {
    background-color: #111111;
    color: #a3a3a3;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Base link colors for shop */
.digtek-woodmart-shop a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.digtek-woodmart-shop a:hover {
    color: #ffffff;
}

.digtek-woodmart-shop h1,
.digtek-woodmart-shop h2,
.digtek-woodmart-shop h3,
.digtek-woodmart-shop h4,
.digtek-woodmart-shop h5,
.digtek-woodmart-shop h6 {
    color: #ffffff;
}

/* Base Container */
.digtek-shop-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   2. Page Header (Title & Breadcrumbs)
   ========================================================================== */
.digtek-woodmart-header {
    background-color: #161616;
    border-bottom: 1px solid #222;
    padding: 40px 0;
    margin-bottom: 40px;
}

.digtek-woodmart-header .header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.digtek-woodmart-header h1.page-title {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 15px;
    letter-spacing: -0.5px;
}

.woocommerce-breadcrumb {
    font-size: 13px;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.woocommerce-breadcrumb a {
    color: #aaa;
}

.woocommerce-breadcrumb a:hover {
    color: #fff;
}

/* ==========================================================================
   3. Main Architecture (Sidebar + Grid)
   ========================================================================== */
.digtek-woodmart-content-area {
    display: flex;
    gap: 40px;
    padding-bottom: 80px;
}

/* Sidebar */
.digtek-woodmart-sidebar {
    width: 280px;
    flex-shrink: 0;
}

.sticky-sidebar {
    position: sticky;
    top: 30px;
}

/* Main Products Area */
.digtek-woodmart-products {
    flex: 1;
    min-width: 0;
}

/* ==========================================================================
   4. Shop Toolbar
   ========================================================================== */
.digtek-woodmart-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #222;
}

.digtek-woodmart-toolbar .woocommerce-result-count {
    margin: 0;
    font-size: 14px;
    color: #888;
}

.digtek-woodmart-toolbar .woocommerce-ordering select {
    background-color: transparent;
    border: none;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding-right: 20px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right center;
    outline: none;
}

.digtek-woodmart-toolbar .woocommerce-ordering select option {
    background-color: #111;
    color: #fff;
}

/* ==========================================================================
   4.5. Featured Offers Hero Slider
   ========================================================================== */
.digtek-woodmart-hero-slider-wrap {
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.digtek-shop-hero-slider {
    height: 400px;
}

.hero-slide-item {
    background-size: cover;
    background-position: center;
    position: relative;
    height: 100%;
}

.hero-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(17, 17, 17, 0.9) 0%, rgba(17, 17, 17, 0.4) 50%, transparent 100%);
    display: flex;
    align-items: center;
    padding-left: 60px;
}

.hero-slide-content {
    max-width: 500px;
}

.hero-slide-content .hero-subtitle {
    color: #83b735;
    /* Woodmart accent */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
    margin-bottom: 15px;
    display: block;
}

.hero-slide-content h2 {
    color: #fff;
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.1;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero-slide-content .hero-price {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 30px;
}

.hero-slide-content .hero-price del {
    color: #888;
    font-size: 18px;
    font-weight: 400;
    margin-right: 10px;
}

.hero-slide-content .hero-price ins {
    text-decoration: none;
    color: #83b735;
}

.hero-slide-content .hero-button {
    background-color: #83b735;
    color: #fff;
    padding: 14px 35px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
}

.hero-slide-content .hero-button:hover {
    background-color: #fff;
    color: #111;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(131, 183, 53, 0.4);
}

.digtek-woodmart-hero-slider-wrap .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.5;
}

.digtek-woodmart-hero-slider-wrap .swiper-pagination-bullet-active {
    opacity: 1;
    background: #83b735;
}

/* ==========================================================================
   5. Filter Sidebar Widgets & Visual Swatches
   ========================================================================== */
.digtek-woodmart-sidebar .widget {
    margin-bottom: 40px;
}

.digtek-woodmart-sidebar .widget-title {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #222;
    display: inline-block;
}

.digtek-woodmart-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Base Category/Nav Lists */
.digtek-woodmart-sidebar ul li {
    padding: 8px 0;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.digtek-woodmart-sidebar ul li a {
    color: #a3a3a3;
    font-size: 14px;
    position: relative;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.digtek-woodmart-sidebar ul li a:hover {
    color: #fff;
    transform: translateX(5px);
}

.digtek-woodmart-sidebar ul li .count {
    font-size: 11px;
    color: #888;
    background: transparent;
    /* Changed to match screenshot */
    border: 1px solid #444;
    /* Subtle pill border */
    padding: 2px 7px;
    border-radius: 12px;
    margin-left: auto;
    line-height: 1.2;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

/* Category Accordion Toggles */
.digtek-cat-toggle {
    position: absolute;
    right: 0;
    top: 8px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #666;
    font-size: 18px;
    transition: color 0.2s;
}

.digtek-cat-toggle:hover {
    color: #83b735;
}

.widget_product_categories ul.children {
    display: none;
    margin-left: 15px;
    margin-top: 5px;
    padding-left: 10px;
    border-left: 1px solid #333;
}

/* --- Woodmart Visual Swatches --- */
.digtek-swatch-item {
    display: inline-flex !important;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
}

.digtek-swatch-item .swatch-term-name {
    transition: color 0.3s;
}

.digtek-swatch-item:hover .swatch-term-name,
.digtek-swatch-item.chosen .swatch-term-name {
    color: #fff;
}

/* Color Circles */
.swatch-bg-color {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.digtek-swatch-color:hover .swatch-bg-color,
.digtek-swatch-color.chosen .swatch-bg-color {
    transform: scale(1.1);
    box-shadow: 0 0 0 2px #fff;
}

/* Brand Images */
.swatch-bg-image {
    width: 60px;
    height: auto;
    object-fit: contain;
    background: #fff;
    /* Brands often have white backgrounds, keep bright */
    border-radius: 4px;
    padding: 5px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.digtek-swatch-image:hover .swatch-bg-image,
.digtek-swatch-image.chosen .swatch-bg-image {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    border: 1px solid #444;
}

/* Labels / Buttons */
.digtek-swatch-label {
    margin-right: -10px;
    /* Counteract flex gap for pure labels */
}

.swatch-label {
    background: #222;
    color: #ccc;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid #333;
}

.digtek-swatch-label:hover .swatch-label,
.digtek-swatch-label.chosen .swatch-label {
    background: #fff;
    color: #111;
    border-color: #fff;
}

/* Widget Layout Adjustments for Image/Label grids */
.widget_layered_nav.digtek-swatches-image ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.widget_layered_nav.digtek-swatches-image ul li {
    padding: 0;
    width: auto;
    display: block;
    /* Override flex so images float cleanly */
}

/* User Request: Do not show product count for images */
.widget_layered_nav.digtek-swatches-image ul li .count {
    display: none !important;
}

/* Active Filters Block */
.widget_layered_nav_filters ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.widget_layered_nav_filters ul li {
    padding: 0;
    margin: 0;
    background: transparent;
}

.widget_layered_nav_filters ul li a {
    background: #1a1a1a;
    border: 1px solid #333;
    padding: 5px 12px 5px 30px;
    border-radius: 20px;
    color: #aaa;
    font-size: 12px;
    text-transform: uppercase;
    position: relative;
    transition: all 0.3s;
}

.widget_layered_nav_filters ul li a::before {
    content: '×';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #ff4a4a;
}

.widget_layered_nav_filters ul li a:hover {
    background: #fff;
    color: #111;
    border-color: #fff;
    transform: translateY(-2px);
}

/* ==========================================================================
   6. WooCommerce Plugin Widgets styling (Price Slider, Ratings, Status)
   ========================================================================== */
/* Price Slider styling */
.widget_price_filter .price_slider_wrapper {
    margin-top: 15px;
}

.widget_price_filter .ui-slider .ui-slider-range {
    background-color: #83b735;
    /* Woodmart green */
}

.widget_price_filter .ui-slider .ui-slider-handle {
    background-color: #83b735;
    border: 3px solid #111;
    width: 14px;
    height: 14px;
    top: -5px;
}

.widget_price_filter .ui-slider {
    background-color: #333;
    height: 4px;
    border: none;
}

.widget_price_filter .price_slider_amount {
    display: flex;
    flex-direction: row-reverse;
    /* Button on right, Price on left like screenshot */
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
}

.widget_price_filter .price_slider_amount .button {
    background: #1a1a1a;
    color: #fff;
    border: 1px solid #333;
    padding: 6px 18px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 3px;
    text-transform: uppercase;
    transition: all 0.3s;
}

.widget_price_filter .price_slider_amount .button:hover {
    background: #83b735;
    border-color: #83b735;
}

.widget_price_filter .price_slider_amount .price_label {
    color: #888;
    font-size: 14px;
}

.widget_price_filter .price_slider_amount .price_label span {
    font-weight: 600;
    color: #fff;
}

/* Custom Checkboxes (Status Filter) */
.digtek-woodmart-sidebar input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid #555;
    border-radius: 2px;
    background: transparent;
    position: relative;
    cursor: pointer;
    margin-right: 10px;
    vertical-align: middle;
}

.digtek-woodmart-sidebar input[type="checkbox"]:checked {
    border-color: #83b735;
}

.digtek-woodmart-sidebar input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 4px;
    height: 8px;
    border: solid #83b735;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Top Rated Products Widget */
.widget_top_rated_products ul,
.widget_recent_reviews ul,
.widget_products ul {
    border: none;
}

.widget_top_rated_products ul li,
.widget_recent_reviews ul li,
.widget_products ul li {
    display: flex;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid #222;
}

.widget_top_rated_products ul li img,
.widget_recent_reviews ul li img,
.widget_products ul li img {
    width: 65px;
    height: auto;
    margin-right: 15px;
    border-radius: 4px;
    float: none;
}

.widget_top_rated_products ul li .product-title,
.widget_products ul li .product-title {
    color: #fff;
    font-size: 14px;
    margin-bottom: 5px;
    font-weight: 600;
    display: block;
}

.widget_top_rated_products ul li .star-rating {
    margin-bottom: 5px;
    font-size: 12px;
}

.widget_price_filter .price_slider {
    background: #333;
    height: 4px;
    border-radius: 2px;
    margin-bottom: 20px;
    position: relative;
}

.widget_price_filter .ui-slider-range {
    background: #fff;
    height: 100%;
    position: absolute;
}

.widget_price_filter .ui-slider-handle {
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: -5px;
    cursor: ew-resize;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    outline: none;
}

.widget_price_filter .price_slider_amount {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.widget_price_filter .price_slider_amount .button {
    background: #222;
    color: #fff;
    border: none;
    padding: 6px 15px;
    border-radius: 3px;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.widget_price_filter .price_slider_amount .button:hover {
    background: #444;
}

/* ==========================================================================
   7. Single Product Page Overrides (Woodmart Dark Theme)
   ========================================================================== */
.single-product .product_title {
    color: #fff !important;
    font-size: 32px !important;
    font-weight: 700 !important;
    margin-bottom: 20px;
    line-height: 1.2;
}

/* The Buy Box Glassmorphism */
.single-product div.product form.cart {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 12px;
    margin-top: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.single-product div.product p.price {
    color: #83b735 !important;
    font-size: 28px !important;
    font-weight: 600;
}

/* Quantity & Add to Cart */
.single-product .quantity .qty {
    background: #111 !important;
    color: #fff !important;
    border: 1px solid #333 !important;
    height: 45px;
    border-radius: 4px;
}

.single-product div.product form.cart .button {
    height: 45px;
    background: #83b735 !important;
    color: #fff !important;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    border: none;
    padding: 0 40px;
    transition: all 0.3s ease;
}

.single-product div.product form.cart .button:hover {
    background: #fff !important;
    color: #111 !important;
    transform: translateY(-2px);
}

/* Woodmart Dark Tabs */
.single-product .woocommerce-tabs {
    margin-top: 60px;
    background: transparent !important;
}

.single-product .woocommerce-tabs ul.tabs {
    border-bottom: 1px solid #333;
    padding: 0;
    margin: 0 0 30px 0;
    display: flex;
    justify-content: center;
}

.single-product .woocommerce-tabs ul.tabs li {
    background: transparent !important;
    border: none !important;
    padding: 0 20px 15px 20px !important;
    margin: 0 !important;
    position: relative;
    border-radius: 0 !important;
}

.single-product .woocommerce-tabs ul.tabs li a {
    color: #888 !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 16px;
    transition: color 0.3s;
}

.single-product .woocommerce-tabs ul.tabs li.active a,
.single-product .woocommerce-tabs ul.tabs li a:hover {
    color: #fff !important;
}

/* Tab underline animation */
.single-product .woocommerce-tabs ul.tabs li::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0%;
    height: 2px;
    background: #83b735;
    transition: width 0.3s ease;
}

.single-product .woocommerce-tabs ul.tabs li.active::after {
    width: 100%;
}

.single-product .woocommerce-Tabs-panel {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 8px;
    color: #ccc;
}

.single-product .woocommerce-Tabs-panel h2 {
    color: #fff;
    margin-bottom: 20px;
}

/* Single Product Gallery (Subtle shadow on dark bg) */
.single-product .woocommerce-product-gallery__image img {
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   8. Premium Product Cards (Woodmart Style)
   ========================================================================== */
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin: 0 !important;
}

.woocommerce ul.products li.product {
    background: transparent;
    position: relative;
    text-align: left;
    margin: 0 !important;
    width: 100% !important;
    transition: all 0.3s ease;
}

/* Image Wrapper */
.woocommerce ul.products li.product .product-image-wrapper {
    position: relative;
    overflow: hidden;
    margin-bottom: 15px;
    background: #1a1a1a;
    border-radius: 8px;
}

.woocommerce ul.products li.product img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 1/1;
    /* Square images like woodmart */
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    display: block;
}

.woocommerce ul.products li.product:hover img {
    transform: scale(1.05);
    /* Slight zoom on image */
}

/* Badges */
.woocommerce ul.products li.product .onsale,
.woocommerce span.onsale {
    position: absolute;
    top: 15px;
    left: 15px;
    /* Woodmart places badges top left usually */
    right: auto;
    background: #83b735;
    /* Woodmart green */
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 3px;
    line-height: 1;
    z-index: 10;
    min-height: auto;
    min-width: auto;
}

/* Product Info Content Wrapper */
.woocommerce ul.products li.product .product-content-wrapper {
    position: relative;
    padding: 10px 0;
    background: #111;
    /* Ensure solid background so button slides behind/below cleanly */
    z-index: 5;
}

/* Category Note */
.woocommerce ul.products li.product .product-category {
    font-size: 12px;
    color: #777;
    margin-bottom: 5px;
    display: block;
    transition: color 0.3s;
}

.woocommerce ul.products li.product .product-category a {
    color: inherit;
}

.woocommerce ul.products li.product .product-category a:hover {
    color: #fff;
}

/* Title */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #ffffff;
    line-height: 1.4;
    transition: color 0.3s;
}

.woocommerce ul.products li.product:hover .woocommerce-loop-product__title {
    color: #fff;
    /* Could add an accent color hover here if desired */
}

/* Price */
.woocommerce ul.products li.product .price {
    font-size: 16px;
    font-weight: 600;
    color: #83b735;
    /* Woodmart accent color */
    margin-bottom: 0;
    display: block;
    transition: transform 0.3s ease;
}

.woocommerce ul.products li.product .price del {
    color: #666;
    font-weight: 400;
    font-size: 14px;
    margin-right: 5px;
}

/* Star Rating */
.woocommerce .star-rating {
    margin: 0 0 10px;
    font-size: 12px;
    color: #e5b22b;
}

/* ==========================================================================
   7. The Hover Button Effect (The Magic)
   ========================================================================== */
.woocommerce ul.products li.product .button-wrapper {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    /* Align to bottom of content wrapper */
    transform: translateY(100%);
    /* Hide below the card */
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 1;
    padding-top: 15px;
}

/* Provide a clipping context on the product card */
.woocommerce ul.products li.product {
    padding-bottom: 40px;
    /* Space for the button to slide into without pushing other grid items */
    margin-bottom: -40px !important;
    /* Offset the padding so grid looks normal */
}

/* When hovered, shift content UP slightly to make room, and slide button UP */
.woocommerce ul.products li.product:hover .product-content-wrapper {
    transform: translateY(-20px);
}

.woocommerce ul.products li.product:hover .button-wrapper {
    transform: translateY(-20px);
    /* Slide up into the space created */
    opacity: 1;
    visibility: visible;
}

/* The actual button styling */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .added_to_cart {
    display: block;
    width: 100%;
    text-align: center;
    background-color: #222;
    color: #fff;
    padding: 12px 15px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    transition: background-color 0.3s ease;
}

.woocommerce ul.products li.product .button:hover {
    background-color: #fff;
    color: #000;
}

/* Loading Spinner Overlay Restyling */
.digtek-wc-loading::before {
    background: rgba(17, 17, 17, 0.7);
    backdrop-filter: blur(3px);
    z-index: 100;
}

.digtek-wc-loading::after {
    border-top: 3px solid #83b735;
    border-right: 3px solid #333;
    border-bottom: 3px solid #333;
    border-left: 3px solid #333;
    z-index: 101;
}

/* ==========================================================================
   8. Responsive Design
   ========================================================================== */
@media (max-width: 991px) {
    .digtek-woodmart-content-area {
        flex-direction: column;
    }

    .digtek-woodmart-sidebar {
        width: 100%;
        margin-bottom: 30px;
    }

    .sticky-sidebar {
        position: static;
    }

    .woocommerce ul.products {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 575px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
    }

    .digtek-woodmart-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}
/* Custom AJAX Loader rules */
.digtek-wc-loading {
    position: relative;
    pointer-events: none;
}
.digtek-wc-loading::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(17, 17, 17, 0.7);
    z-index: 999;
}
.digtek-wc-loading::before {
    content: "";
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 40px; height: 40px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: #83b735;
    border-radius: 50%;
    animation: digtek-spin 1s linear infinite;
    z-index: 1000;
}
@keyframes digtek-spin { 
    to { transform: translate(-50%, -50%) rotate(360deg); } 
}
