/*
Theme Name: Nexlotech Marketplace
Theme URI: https://nexlotech.com
Author: Nexlotech
Author URI: https://nexlotech.com
Description: A modern, professional marketplace for selling digital products using Bootstrap 5 and WooCommerce.
Version: 1.0.3
Text Domain: nexlotech-marketplace
Tags: e-commerce, two-columns, left-sidebar, right-sidebar, custom-background, custom-colors
*/

:root {
    /* Color Scheme */
    --primary-color: #262d33;
    /* Dark Blue Brand */
    --secondary-color: #82b440;
    /* Green Brand */
    --accent-color: #82b440;

    /* Light Mode Defaults */
    --bg-body: #f8f9fa;
    --bg-card: #ffffff;
    --text-main: #2c3e50;
    --text-muted: #6c757d;
    --border-color: #dee2e6;

    /* Typography */
    --font-heading: 'Archivo', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-code: 'Monaco', monospace;
}

h1,
h2,
h3,
h4,
h5,
h6,
.feature-title-large {
    font-family: var(--font-heading);
    font-stretch: 125%;
    /* Expanded attribute for Archivo */
    font-weight: 800;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-body);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

code,
pre,
.technical-detail {
    font-family: var(--font-code);
}

/* Utilities */
.text-primary-custom {
    color: var(--primary-color);
}

.text-secondary-custom {
    color: var(--secondary-color);
}

.text-accent {
    color: var(--accent-color);
}

.bg-card-custom {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
}

/* WooCommerce Overrides */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    background-color: var(--bg-card);
    border-radius: 8px;
    padding: 1rem;
    transition: transform 0.2s;
    border: 1px solid var(--border-color);
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.woocommerce span.onsale {
    background-color: var(--accent-color);
}

.woocommerce a.button.alt {
    background-color: var(--secondary-color);
    color: white;
}

.woocommerce a.button.alt:hover {
    background-color: var(--primary-color);
}

/* ThemeForest Layout Additions */

.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15) !important;
}

.product-card .group:hover .card-overlay {
    opacity: 1 !important;
}

.card-overlay {
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
}

.hero-section {
    background-color: #262626;
    /* Dark ThemeForest-like grey */
}

/* Navbar Customizations */
.navbar-dark .nav-link {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.navbar-brand svg,
.navbar-brand i {
    vertical-align: middle;
}

/* Search Form Rounded */
.form-control:focus {
    box-shadow: none;
    border-color: var(--secondary-color);
}

.header-main {
    background: #fff;
    z-index: 1030;
}

/* Hero Redesign Support */
.hero-section {
    position: relative;
    z-index: 1;
}

.hero-bg-wrapper {
    z-index: -1;
}

.hero-bg-wrapper video,
.hero-bg-wrapper .object-fit-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-section h1 {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}



/* Why Us Section Styling */
.section-why-us {
    position: relative;
    z-index: 1;
}

.feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(33, 123, 254, 0.1);
}

.feature-icon:hover {
    background-color: var(--primary-color) !important;
    color: #fff !important;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(33, 123, 254, 0.2);
}

.ls-wide {
    letter-spacing: 2px;
}

.py-6 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.why-us-image-experience {
    transition: transform 0.5s ease;
}

.section-why-us:hover .why-us-image-experience {
    transform: scale(1.02);
}



/* Professional Search Bar */
.search-group-custom .form-control {
    border-right: none;
}

.search-group-custom .form-select {
    border-right: none;
    background-color: var(--bg-body);
    max-width: 150px;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

.search-group-custom .btn {
    border-top-right-radius: 6px !important;
    border-bottom-right-radius: 6px !important;
}



/* Header Refinements */
.header-main {
    box-shadow: 0 1px 0 rgba(0, 0, 0, .05);
}

.navbar-nav .nav-link {
    position: relative;
    padding: 0.5rem 1rem;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 80%;
}

/* Ensure Menu Items Have Spacing */
.navbar-nav .nav-item {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

/* Header Text White Adjustment */
.header-main .navbar-nav .nav-link {
    color: var(--text-main);
}


/* Fixed Dropdown & Menu Styles */
.navbar-dark .navbar-nav .nav-link {
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 1rem 1rem !important;
    /* Override BS padding */
    color: rgba(255, 255, 255, 0.6) !important;
    transition: color 0.2s ease;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.show {
    color: #fff !important;
}

.dropdown-menu {
    border: none;
    border-radius: 0;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    margin-top: 0;
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.dropdown-item:hover {
    background-color: var(--bg-body);
    color: var(--secondary-color);
}

/* Desktop Dropdown Hover */
@media (min-width: 992px) {
    .dropdown:hover>.dropdown-menu {
        display: block;
        margin-top: 0;
    }
}

/* Mobile Menu Fixes */
@media (max-width: 991px) {
    .navbar-collapse {
        background-color: #212529;
        /* Match bg-dark */
        padding: 1rem;
        border-radius: 0 0 0.5rem 0.5rem;
    }

    .navbar-nav .nav-link {
        padding-left: 0 !important;
    }

    .dropdown-menu {
        background-color: transparent;
        border: none;
        box-shadow: none;
        padding-left: 1rem;
    }

    .dropdown-item {
        color: rgba(255, 255, 255, 0.6);
    }

    .dropdown-item:hover {
        background-color: transparent;
        color: #fff;
    }
}

/* Ensure Dropdown Items are Visible on Desktop */
@media (min-width: 992px) {
    .dropdown-item {
        color: #212529 !important;
        /* Force dark text on white bg */
    }

    .dropdown-item:hover {
        background-color: #f8f9fa;
        color: var(--secondary-color) !important;
    }
}

/* Mobile Account Button Styling */
.btn-account {
    border-color: #dee2e6 !important;
    transition: all 0.2s ease;
}

.btn-account:hover {
    background-color: #fff !important;
    border-color: var(--secondary-color) !important;
}

/* Mobile Toggler - Categories Button Style */
@media (max-width: 991px) {
    .navbar-toggler {
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        border-radius: 4px;
        padding: 5px 12px !important;
        background-color: rgba(255, 255, 255, 0.05);
        color: #fff !important;
        width: auto !important;
        /* Ensure it wraps text */
    }

    .navbar-toggler span {
        font-family: var(--font-heading);
        font-size: 0.8rem !important;
        /* Smaller text */
        letter-spacing: 0.5px;
        display: flex;
        align-items: center;
    }

    .navbar-toggler i {
        font-size: 1.1rem;
    }

    /* Ensure Icon and Text Alignment */
    .navbar-toggler span i {
        margin-right: 6px !important;
    }
}

/* --- Single Product Page (Envato Style) --- */

/* Tab Navigation */
.product-nav-tabs .nav-link {
    font-size: 0.95rem;
    color: #6c757d;
    transition: all 0.2s ease;
}

.product-nav-tabs .nav-link:hover {
    color: var(--text-main);
}

.product-nav-tabs .nav-link.active {
    color: var(--text-main) !important;
    border-bottom-color: var(--secondary-color) !important;
}

/* Price Card */
.display-5 {
    font-weight: 700;
    color: var(--primary-color);
}

.text-success {
    color: var(--secondary-color) !important;
}

/* Sidebar Tables */
.table-striped>tbody>tr:nth-of-type(odd)>* {
    --bs-table-accent-bg: #f9f9f9;
}

/* Add to Cart Button Customization */
.single_add_to_cart_button {
    width: 100%;
    background-color: var(--secondary-color) !important;
    /* Green */
    border-color: var(--secondary-color) !important;
    padding: 12px 20px !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    margin-top: 10px;
}

.single_add_to_cart_button:hover {
    background-color: #72a035 !important;
    /* Darker Green */
    transform: translateY(-2px);
}

/* User Content Typography */
.user-content h2,
.user-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.user-content p {
    line-height: 1.7;
    color: #555;
    margin-bottom: 1.5rem;
}

.user-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 1rem 0;
}

/* Fix: Prevent WooCommerce CSS from affecting header logo */
.site-header .navbar-brand img {
    height: 34px !important;
    width: auto !important;
    max-width: none !important;
}

/* Fix WooCommerce Product Thumbnails */
.woocommerce ul.products li.product img,
.woocommerce-page ul.products li.product img,
.product-card img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.product-card .card-img-top {
    height: 200px !important;
    object-fit: cover !important;
}

/* Ensure product images load */
.woocommerce img.attachment-woocommerce_thumbnail {
    width: 100% !important;
    height: auto !important;
}

/* Envato-Style Product Cards */
.product-card {
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

.product-card .card-title a {
    color: #262d33;
    transition: color 0.2s;
}

.product-card .card-title a:hover {
    color: #82b440;
}

.product-card .card-img-top {
    transition: transform 0.3s ease;
}

.product-card:hover .card-img-top {
    transform: scale(1.05);
}

.product-card .btn-outline-secondary {
    border-color: #dee2e6;
    color: #6c757d;
}

.product-card .btn-outline-secondary:hover {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #262d33;
}

.product-card .btn-outline-primary {
    border-color: #82b440;
    color: #82b440;
}

.product-card .btn-outline-primary:hover {
    background-color: #82b440;
    border-color: #82b440;
    color: #fff;
}

/* Category Badge */
.product-card .badge {
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Ensure sharp product images */
.product-card img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Professional Mobile Menu (Envato Style) */
.mobile-nav-menu .nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: background-color 0.2s, padding-left 0.2s;
}

.mobile-nav-menu .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.05);
    padding-left: 1.75rem !important;
}

.mobile-nav-menu .nav-link:active {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Mobile Menu Toggle Button */
.navbar-toggler {
    background-color: rgba(255, 255, 255, 0.05);
    transition: all 0.2s;
}

.navbar-toggler:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4) !important;
}

/* Offcanvas Customization */
.offcanvas {
    max-width: 280px;
}

.offcanvas-title {
    font-size: 1rem;
    letter-spacing: 1px;
}

/* Mobile Submenu Styles */
.mobile-nav-menu .submenu {
    background-color: rgba(0, 0, 0, 0.2);
}

.mobile-nav-menu .submenu .nav-link {
    font-size: 0.85rem;
    padding-left: 2.5rem !important;
    border-bottom-color: rgba(255, 255, 255, 0.05) !important;
}

.mobile-nav-menu .submenu .nav-link:hover {
    padding-left: 2.75rem !important;
}

.mobile-nav-menu .nav-link i.bi-chevron-down {
    transition: transform 0.3s;
    font-size: 0.75rem;
}

.mobile-nav-menu .nav-link[aria-expanded="true"] i.bi-chevron-down {
    transform: rotate(180deg);
}

/* Prevent submenu parent link from navigating */
.mobile-nav-menu .menu-item-has-children>a {
    cursor: pointer;
}

/* Full-Width Inline Mobile Menu */
#mobileMenuCollapse {
    background-color: #212529;
    width: 100%;
}

#mobileMenuCollapse .mobile-nav-menu {
    width: 100%;
    margin: 0;
}

#mobileMenuCollapse .nav-link {
    width: 100%;
}

/* Mobile Submenu - Inline Style */
#mobileMenuCollapse .submenu {
    background-color: rgba(0, 0, 0, 0.3);
    margin: 0 !important;
}

#mobileMenuCollapse .submenu .nav-item {
    padding-left: 0;
}

#mobileMenuCollapse .submenu .nav-link {
    padding-left: 3rem !important;
    font-size: 0.85rem;
    border-bottom-color: rgba(255, 255, 255, 0.05) !important;
}

#mobileMenuCollapse .submenu .nav-link:hover {
    padding-left: 3.25rem !important;
}

/* Chevron rotation for submenus */
#mobileMenuCollapse .nav-link[aria-expanded="true"] i.bi-chevron-down {
    transform: rotate(180deg);
}

/* Ensure Categories button icon and text stay on same line */
.navbar-toggler {
    white-space: nowrap;
    display: inline-flex !important;
    align-items: center !important;
}

.navbar-toggler i {
    flex-shrink: 0;
}

.navbar-toggler span {
    flex-shrink: 0;
}

/* Force 4 columns on shop page */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1.5rem !important;
}

@media (max-width: 991px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 575px) {
    .woocommerce ul.products {
        grid-template-columns: 1fr !important;
    }
}

.woocommerce ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
}

/* Fix WooCommerce Shop Grid - Force 4 columns */
.woocommerce ul.products,
.woocommerce-page ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1.5rem !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
    display: block !important;
}

/* Responsive */
@media (max-width: 991px) {

    .woocommerce ul.products,
    .woocommerce-page ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 767px) {

    .woocommerce ul.products,
    .woocommerce-page ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 575px) {

    .woocommerce ul.products,
    .woocommerce-page ul.products {
        grid-template-columns: 1fr !important;
    }
}

/* Force hide Categories button on desktop */
@media (min-width: 992px) {
    .navbar-toggler {
        display: none !important;
    }
}

/* Fix shop page first column visibility */
.woocommerce .products,
.woocommerce-page .products {
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
}

/* Ensure proper container on shop page */
.woocommerce,
.woocommerce-page {
    width: 100%;
    overflow-x: visible;
}

/* Fix any negative margins */
.woocommerce ul.products,
.woocommerce-page ul.products {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Ensure shop container has proper padding */
.woocommerce .container,
.woocommerce-page .container {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

/* Reset any WooCommerce default margins that might push content */
.woocommerce-page .woocommerce,
.woocommerce .woocommerce {
    margin: 0 !important;
}

/* Ensure products start from the left edge of container */
.woocommerce ul.products li.product:first-child,
.woocommerce-page ul.products li.product:first-child {
    margin-left: 0 !important;
}

/* Apply theme colors to all buttons */
.btn-primary,
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.single_add_to_cart_button {
    background-color: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
    color: #fff !important;
}

.btn-primary:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.single_add_to_cart_button:hover {
    background-color: #6fa030 !important;
    border-color: #6fa030 !important;
    color: #fff !important;
}

/* Secondary/Outline buttons */
.btn-outline-primary {
    border-color: var(--secondary-color) !important;
    color: var(--secondary-color) !important;
}

.btn-outline-primary:hover {
    background-color: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
    color: #fff !important;
}

/* Product card buttons */
.product-card .btn-outline-primary {
    border-color: var(--secondary-color) !important;
    color: var(--secondary-color) !important;
}

.product-card .btn-outline-primary:hover {
    background-color: var(--secondary-color) !important;
    color: #fff !important;
}

/* Remove WooCommerce clearfix that causes left gap */
.woocommerce .products ul::after,
.woocommerce .products ul::before,
.woocommerce ul.products::after,
.woocommerce ul.products::before {
    content: none !important;
    display: none !important;
}

/* Override WooCommerce float-based layout completely */
.woocommerce ul.products {
    clear: both !important;
    display: grid !important;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none !important;
}

/* Remove any clearfix from product items */
.woocommerce ul.products li.product::before,
.woocommerce ul.products li.product::after {
    display: none !important;
}

/* Cart Page - Proceed to Checkout Button */
.wc-block-cart__submit-button,
.wc-block-components-button.wp-element-button {
    display: inline-block !important;
    padding: 12px 32px !important;
    background-color: var(--secondary-color) !important;
    color: #fff !important;
    border: 2px solid var(--secondary-color) !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    text-decoration: none !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    width: 100% !important;
}

.wc-block-cart__submit-button:hover,
.wc-block-components-button.wp-element-button:hover {
    background-color: #6fa030 !important;
    border-color: #6fa030 !important;
    color: #fff !important;
}

.wc-block-cart__submit-container {
    width: 100%;
    margin-top: 1rem;
}

.wc-block-components-button__text {
    color: #fff !important;
    font-weight: 600 !important;
}

/* Cart totals section */
.wc-block-cart__submit {
    margin-top: 1rem;
}

/* Make sure the button is visible */
.wp-block-woocommerce-proceed-to-checkout-block {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Center text in all WooCommerce buttons */
.wc-block-components-button__text {
    display: block !important;
    text-align: center !important;
    width: 100% !important;
}

/* Center text in checkout button */
.wc-block-components-checkout-place-order-button,
.wc-block-components-button {
    text-align: center !important;
    justify-content: center !important;
    align-items: center !important;
}

/* ========================================
   SINGLE PRODUCT PAGE - PROFESSIONAL TYPOGRAPHY
   ======================================== */

/* Price Card Styling */
.single-product-price-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 2rem;
}

.single-product-price-card .price-label {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

/* Regular Price (Strikethrough) */
.single-product-price-card .price del,
.single-product-price-card .price del .woocommerce-Price-amount {
    font-size: 1.5rem !important;
    color: #999 !important;
    font-weight: 400 !important;
    text-decoration: line-through !important;
}

/* Sale Price (Main Price) */
.single-product-price-card .price ins,
.single-product-price-card .price ins .woocommerce-Price-amount,
.single-product-price-card .price>.woocommerce-Price-amount {
    font-size: 2.5rem !important;
    color: #262d33 !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    line-height: 1.2 !important;
}

/* Features List */
.single-product-price-card .features-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.single-product-price-card .features-list li {
    font-size: 0.9375rem;
    color: #495057;
    padding: 0.5rem 0;
    display: flex;
    align-items: flex-start;
}

.single-product-price-card .features-list li i {
    color: var(--secondary-color);
    margin-right: 0.75rem;
    font-size: 1rem;
    margin-top: 0.125rem;
}

/* Extended Support Option */
.single-product-price-card .support-option {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 1rem;
    margin: 1.5rem 0;
}

.single-product-price-card .support-option label {
    font-size: 0.9375rem;
    color: #495057;
    font-weight: 500;
    margin: 0;
    cursor: pointer;
}

.single-product-price-card .support-option .price-tag {
    font-size: 1rem;
    color: #262d33;
    font-weight: 600;
}

/* Quantity Input */
.single-product-price-card .quantity input {
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    width: 80px;
    text-align: center;
}

/* Purchase Button */
.single-product-price-card .single_add_to_cart_button {
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    padding: 1rem 2rem !important;
    width: 100% !important;
    border-radius: 6px !important;
    text-transform: none !important;
    letter-spacing: 0.3px !important;
}

/* Price Disclaimer */
.single-product-price-card .price-disclaimer {
    font-size: 0.8125rem;
    color: #6c757d;
    text-align: center;
    margin-top: 1rem;
    line-height: 1.5;
}

/* Product Title */
.single-product-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #262d33;
    margin-bottom: 1rem;
    line-height: 1.3;
}

/* Product Meta (Author, Category) */
.product-meta-info {
    font-size: 0.9375rem;
    color: #6c757d;
}

.product-meta-info a {
    color: #495057;
    font-weight: 500;
    text-decoration: none;
}

.product-meta-info a:hover {
    color: var(--secondary-color);
}

/* Tab Navigation */
.product-tabs .nav-link {
    font-size: 1rem;
    font-weight: 500;
    color: #495057;
    padding: 1rem 1.5rem;
}

.product-tabs .nav-link.active {
    color: var(--secondary-color);
    font-weight: 600;
}

/* Product Description */
.product-description {
    font-size: 1rem;
    line-height: 1.7;
    color: #495057;
}

.product-description h2,
.product-description h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #262d33;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.product-description p {
    margin-bottom: 1rem;
}

/* Metadata Table */
.product-metadata-table {
    font-size: 0.9375rem;
}

.product-metadata-table th {
    font-weight: 600;
    color: #495057;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-metadata-table td {
    color: #6c757d;
}

/* ========================================
   PRODUCT PRICE IMPROVEMENTS
   ======================================== */

/* Strike-through price - lighter and smaller */
.single-product-price-card .price del,
.single-product-price-card .price del .woocommerce-Price-amount,
.woocommerce-Price-amount del,
del .woocommerce-Price-amount {
    font-size: 1.25rem !important;
    color: #adb5bd !important;
    font-weight: 300 !important;
    text-decoration: line-through !important;
    opacity: 0.7 !important;
}

/* Sale price - keep bold and prominent */
.single-product-price-card .price ins,
.single-product-price-card .price ins .woocommerce-Price-amount {
    font-size: 2.25rem !important;
    font-weight: 700 !important;
    color: #262d33 !important;
}

/* ========================================
   QUANTITY SELECTOR WITH PLUS/MINUS
   ======================================== */

/* Quantity wrapper */
.quantity {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-bottom: 1rem;
}

/* Quantity input */
.quantity input.qty {
    width: 80px !important;
    height: 45px !important;
    text-align: center !important;
    border: 1px solid #ced4da !important;
    border-radius: 4px !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    padding: 0 !important;
    -moz-appearance: textfield !important;
}

/* Remove spinner arrows */
.quantity input.qty::-webkit-outer-spin-button,
.quantity input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

/* Plus/Minus buttons */
.quantity .qty-btn {
    width: 35px;
    height: 45px;
    border: 1px solid #ced4da;
    background: #f8f9fa;
    color: #495057;
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    user-select: none;
}

.quantity .qty-btn:hover {
    background: #e9ecef;
    color: #262d33;
}

.quantity .qty-btn:active {
    background: #dee2e6;
}

.quantity .qty-btn.minus {
    border-radius: 4px 0 0 4px;
    border-right: none;
}

.quantity .qty-btn.plus {
    border-radius: 0 4px 4px 0;
    border-left: none;
}

/* Adjust input when buttons are present */
.quantity.has-buttons input.qty {
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
}

/* ========================================
   SINGLE PRODUCT PRICE - INLINE DISPLAY
   ======================================== */

/* Price container - inline display */
.single-product-price-card .price,
.woocommerce div.product p.price {
    display: flex !important;
    align-items: baseline !important;
    gap: 0.75rem !important;
    flex-wrap: wrap !important;
}

/* Strike-through price - lighter and smaller */
.single-product-price-card .price del,
.single-product-price-card .price del .woocommerce-Price-amount,
.woocommerce div.product p.price del,
.woocommerce div.product p.price del .woocommerce-Price-amount {
    font-size: 1.5rem !important;
    color: #adb5bd !important;
    font-weight: 300 !important;
    text-decoration: line-through !important;
    opacity: 0.7 !important;
    order: 1 !important;
}

/* Sale price - 3rem max size */
.single-product-price-card .price ins,
.single-product-price-card .price ins .woocommerce-Price-amount,
.single-product-price-card .price>.woocommerce-Price-amount,
.woocommerce div.product p.price ins,
.woocommerce div.product p.price ins .woocommerce-Price-amount,
.woocommerce div.product p.price>.woocommerce-Price-amount {
    font-size: 3rem !important;
    color: #262d33 !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    line-height: 1 !important;
    order: 2 !important;
}

/* Remove default ins styling */
.single-product-price-card .price ins,
.woocommerce div.product p.price ins {
    background: none !important;
    text-decoration: none !important;
}

/* ========================================
   PRICE CARD SPECIFIC STYLING (OVERRIDE)
   ======================================== */

/* Only apply inline price to the price card sidebar */
.single-product-price-card .price-wrap .price,
.card-body .price-wrap .price {
    display: flex !important;
    align-items: baseline !important;
    gap: 0.75rem !important;
    flex-wrap: wrap !important;
}

/* Remove global inline styling */
.woocommerce div.product p.price {
    display: block !important;
}

/* Price card specific - strikethrough */
.single-product-price-card .price-wrap del,
.single-product-price-card .price-wrap del .woocommerce-Price-amount,
.card-body .price-wrap del,
.card-body .price-wrap del .woocommerce-Price-amount {
    font-size: 1.5rem !important;
    color: #adb5bd !important;
    font-weight: 300 !important;
    text-decoration: line-through !important;
    opacity: 0.7 !important;
    display: inline !important;
}

/* Price card specific - sale price */
.single-product-price-card .price-wrap ins,
.single-product-price-card .price-wrap ins .woocommerce-Price-amount,
.single-product-price-card .price-wrap>.price .woocommerce-Price-amount,
.card-body .price-wrap ins,
.card-body .price-wrap ins .woocommerce-Price-amount {
    font-size: 3rem !important;
    color: #262d33 !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    line-height: 1 !important;
    display: inline !important;
    background: none !important;
}

/* Update sale price to 1.8rem */
.single-product-price-card .price-wrap ins,
.single-product-price-card .price-wrap ins .woocommerce-Price-amount,
.single-product-price-card .price-wrap>.price .woocommerce-Price-amount,
.card-body .price-wrap ins,
.card-body .price-wrap ins .woocommerce-Price-amount,
.single-product-price-card .price ins,
.single-product-price-card .price ins .woocommerce-Price-amount {
    font-size: 1.8rem !important;
}

/* ========================================
   MY ACCOUNT PAGE STYLING
   ======================================== */

/* Page Title */
.woocommerce-account .entry-title {
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: #262d33 !important;
    margin-bottom: 2rem !important;
}

/* Account Layout */
.woocommerce-account .woocommerce {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

/* Navigation Sidebar */
.woocommerce-MyAccount-navigation {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-MyAccount-navigation li {
    margin: 0;
    border-bottom: 1px solid #f0f0f0;
}

.woocommerce-MyAccount-navigation li:last-child {
    border-bottom: none;
}

.woocommerce-MyAccount-navigation a {
    display: block;
    padding: 1rem 1.5rem;
    color: #495057;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
}

.woocommerce-MyAccount-navigation a:hover {
    background: #f8f9fa;
    color: var(--secondary-color);
    padding-left: 1.75rem;
}

.woocommerce-MyAccount-navigation li.is-active a {
    background: var(--secondary-color);
    color: #fff;
    font-weight: 600;
}

.woocommerce-MyAccount-navigation li.is-active a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #6fa030;
}

/* Logout Link */
.woocommerce-MyAccount-navigation-link--customer-logout a {
    color: #dc3545;
}

.woocommerce-MyAccount-navigation-link--customer-logout a:hover {
    background: #fff5f5;
    color: #c82333;
}

/* Content Area */
.woocommerce-MyAccount-content {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.woocommerce-MyAccount-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: #495057;
    margin-bottom: 1rem;
}

.woocommerce-MyAccount-content strong {
    color: #262d33;
    font-weight: 600;
}

.woocommerce-MyAccount-content a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
}

.woocommerce-MyAccount-content a:hover {
    color: #6fa030;
    text-decoration: underline;
}

/* Welcome Message */
.woocommerce-MyAccount-content>p:first-of-type {
    background: #f8f9fa;
    border-left: 4px solid var(--secondary-color);
    padding: 1rem 1.5rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

/* Responsive */
@media (max-width: 991px) {
    .woocommerce-account .woocommerce {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .woocommerce-MyAccount-navigation {
        order: 2;
    }

    .woocommerce-MyAccount-content {
        order: 1;
    }
}

@media (max-width: 767px) {
    .woocommerce-MyAccount-navigation a {
        padding: 0.875rem 1.25rem;
        font-size: 0.875rem;
    }

    .woocommerce-MyAccount-content {
        padding: 1.5rem;
    }
}

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

.woocommerce-orders-table thead {
    background: #f8f9fa;
}

.woocommerce-orders-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #262d33;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e5e5e5;
}

.woocommerce-orders-table td {
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
    color: #495057;
}

.woocommerce-orders-table tr:hover {
    background: #f8f9fa;
}

/* Buttons */
.woocommerce-MyAccount-content .button,
.woocommerce-MyAccount-content .woocommerce-button {
    background: var(--secondary-color) !important;
    color: #fff !important;
    border: none !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    font-size: 0.9375rem !important;
    transition: all 0.2s ease !important;
}

.woocommerce-MyAccount-content .button:hover,
.woocommerce-MyAccount-content .woocommerce-button:hover {
    background: #6fa030 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(130, 180, 64, 0.3);
}

/* ========================================
   MY ACCOUNT LAYOUT FIX
   ======================================== */

/* Force container to be a flex container */
.woocommerce-account .woocommerce {
    display: flex !important;
    align-items: flex-start !important;
    gap: 30px !important;
    max-width: 100% !important;
    margin-top: 2rem;
}

/* Sidebar Navigation Styling */
.woocommerce-account .woocommerce-MyAccount-navigation {
    flex: 0 0 280px !important;
    /* Fixed width */
    width: 280px !important;
    max-width: 280px !important;
    float: none !important;
    margin-right: 0 !important;
    order: 1 !important;
    /* Ensure sidebar is first */
}

/* Content Area Styling */
.woocommerce-account .woocommerce-MyAccount-content {
    flex: 1 !important;
    /* Take remaining space */
    width: auto !important;
    float: none !important;
    order: 2 !important;
    min-width: 0 !important;
    /* Prevent flexbox overflow */
    padding: 2rem !important;
    /* Ensure padding inside content box */
    box-sizing: border-box !important;
}

/* Welcome Message Box Fix */
.woocommerce-MyAccount-content>p:first-of-type {
    background-color: #f8f9fa !important;
    border-left: 4px solid var(--secondary-color) !important;
    padding: 15px 20px !important;
    margin-bottom: 30px !important;
    display: block !important;
    width: 100% !important;
    border-radius: 4px;
}

/* Active Link Styling */
.woocommerce-MyAccount-navigation ul li.is-active a {
    background-color: var(--secondary-color) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
}

/* Responsive Fix for Mobile */
@media (max-width: 991px) {
    .woocommerce-account .woocommerce {
        flex-direction: column !important;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation,
    .woocommerce-account .woocommerce-MyAccount-content {
        width: 100% !important;
        flex: auto !important;
        max-width: 100% !important;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation {
        margin-bottom: 2rem !important;
    }
}

/* ========================================
   MY ACCOUNT - ADDRESSES STYLING
   ======================================== */

/* Address Page Intro Notification */
.woocommerce-account .woocommerce-MyAccount-content p {
    background-color: #f8f9fa;
    /* border-left: 4px solid var(--secondary-color); */
    padding: 15px 20px;
    /* margin-bottom: 20px; */
    border-radius: 4px;
    /* color: #495057; */
}

/* Address Layout - Flex Grid */
.woocommerce-Addresses {
    display: flex !important;
    /* Override potential floats */
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 2rem;
}

.woocommerce-Address {
    flex: 1;
    min-width: 300px;
    /* Ensure they don't get too squashed */
    width: 50%;
    /* Fallback */
}

/* Headings */
.woocommerce-Address-title h3 {
    font-size: 2rem !important;
    font-weight: 800 !important;
    color: #262d33 !important;
    margin-bottom: 0 !important;
    float: none !important;
    width: auto;
}

/* "Add / Edit" Links */
.woocommerce-Address-title .edit {
    float: none !important;
    color: var(--secondary-color) !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    font-size: 1rem !important;
    margin-top: 5px;
    /* Visual adjustment */
}

.woocommerce-Address-title .edit:hover {
    color: #6fa030 !important;
    text-decoration: underline !important;
}

/* Clearfix for header */
.woocommerce-Address-title {
    display: flex !important;
    align-items: baseline !important;
    gap: 15px !important;
    flex-wrap: wrap !important;
    border-bottom: none !important;
    margin-bottom: 1rem;
}

/* Address Body Text */
.woocommerce-Address address {
    font-style: normal;
    font-size: 1rem;
    line-height: 1.6;
    color: #6c757d;
    margin-top: 0.5rem;
    border: none !important;
    padding: 0 !important;
}

/* Checkout Order Summary Block Background */
.wp-block-woocommerce-checkout-order-summary-block {
    background: #fff;
    padding: 20px;
    /* Adding some padding for better aesthetics inside the box */
    border-radius: 8px;
    /* Matching theme rounded corners */
}

/* Fix alignment of Address Title and Link */
.woocommerce-Address-title {
    display: flex !important;
    align-items: baseline !important;
    /* Ensure text sits on the same bottom line */
    gap: 15px !important;
    flex-wrap: wrap !important;
}

/* Ensure no extra margins disrupt the baseline */
.woocommerce-Address-title h3 {
    margin-bottom: 0 !important;
    line-height: 1 !important;
    /* Tighten line height for better alignment check */
}

/* Push the link down slightly if font metrics are off */
.woocommerce-Address-title .edit {
    margin-top: 0 !important;
    /* Remove top margin that might push it down */
    position: relative;
    top: -2px;
    /* Micro-adjustment to lift it slightly if needed, or set positive to push down */
    align-self: baseline !important;
}

/* Center text in Place Order button */
.wc-block-components-checkout-place-order-button .wc-block-components-checkout-place-order-button__text {
    display: flex;
    /* Ensure flexbox is active for justify-content to work */
    justify-content: center;
    width: 100%;
    /* Ensure it takes full width to center properly */
}

/* ========================================
   REWORKED ADDRESSES SECTION
   ======================================== */

/* Main Grid Container */
.woocommerce-account .u-columns.woocommerce-Addresses {
    display: grid !important;
    /* grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important; */
    /* gap: 30px !important; */
    /* margin-top: 2rem !important; */
}

/* Disable Legacy Floats/Widths */
.woocommerce-account .u-columns.woocommerce-Addresses .u-column1,
.woocommerce-account .u-columns.woocommerce-Addresses .u-column2 {
    float: none !important;
    width: 100% !important;
    /* margin: 0 !important; */
    /* padding: 0 !important; */
}

/* Address Card Styling */
.woocommerce-Address {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    /* Equal height */
    display: flex;
    flex-direction: column;
}

.woocommerce-Address:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.05);
    border-color: #dee2e6;
}

/* Card Header (Title + Link) Flexbox */
.woocommerce-Address-title {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
    margin-bottom: 20px !important;
    padding-bottom: 15px !important;
    border-bottom: 1px solid #f1f3f5 !important;
}

/* H2/H3 Typography */
.woocommerce-Address-title h2,
.woocommerce-Address-title h3 {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #212529 !important;
    margin: 0 !important;
    line-height: 1.2;
}

/* "Add / Edit" Button Badge Style */
.woocommerce-Address-title .edit {
    display: inline-flex !important;
    align-items: center;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    color: var(--secondary-color) !important;
    background-color: rgba(111, 160, 48, 0.1) !important;
    /* Tint of theme color */
    padding: 8px 16px !important;
    border-radius: 50px !important;
    /* Pill shape */
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.woocommerce-Address-title .edit:hover {
    background-color: var(--secondary-color) !important;
    color: #ffffff !important;
    text-decoration: none !important;
    box-shadow: 0 3px 6px rgba(111, 160, 48, 0.2);
}

/* Address Body Content */
.woocommerce-Address address {
    font-style: normal !important;
    font-size: 1rem !important;
    line-height: 1.7 !important;
    color: #495057 !important;
    flex-grow: 1;
    /* Pushes content to fill height */
}

/* Responsive Handling */
@media (max-width: 768px) {
    .woocommerce-account .u-columns.woocommerce-Addresses {
        grid-template-columns: 1fr !important;
    }

    .woocommerce-Address {
        padding: 20px;
    }
}

/* ========================================
   ADDRESS CARD - STACKED LAYOUT FIX
   ======================================== */

/* Change Header Layout to Stack items */
.woocommerce-Address-title {
    display: flex !important;
    flex-direction: column !important;
    /* Stack vertically */
    align-items: flex-start !important;
    /* Left align */
    justify-content: flex-start !important;
    gap: 10px !important;
    margin-bottom: 20px !important;
    padding-bottom: 20px !important;
    border-bottom: 1px solid #f1f3f5 !important;
    /* The separator line */
}

/* Ensure Title is full width if needed */
.woocommerce-Address-title h2,
.woocommerce-Address-title h3 {
    width: 100%;
    margin-bottom: 5px !important;
    font-size: 1.75rem !important;
    /* Slightly larger as per screenshot */
}

/* Button style adjustment */
.woocommerce-Address-title .edit {
    margin-top: 0 !important;
    /* Reset margin */
    display: inline-block !important;
    /* Ensure it respects padding/radius */
    width: auto !important;
}

/* Address Body Text - Ensure it has some breathing room */
.woocommerce-Address address {
    padding-top: 5px;
}

/* ========================================
   ALIGNMENT FIX FOR ACCOUNT SIDEBAR
   ======================================== */

.woocommerce-account .entry-content,
.woocommerce-account .woocommerce {
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
    margin-left: 0 !important;
}

/* ========================================
   SINGLE PRODUCT - QUANTITY & FORM
   ======================================== */

/* Add margin bottom to the cart form */
.woocommerce div.product form.cart {
    margin-bottom: 15px !important;
}

/* Make Quantity Selector Full Width in Sidebar */
.woocommerce div.product .card form.cart .quantity {
    width: 100% !important;
    float: none !important;
    margin-right: 0 !important;
    margin-bottom: 10px !important;
    /* Spacing between quantity and button */
    display: flex !important;
}

.woocommerce div.product .card form.cart .quantity input.qty {
    width: 100% !important;
    /* Input takes available space */
    text-align: center;
    padding-left: 0;
    padding-right: 0;
}

/* Adjust plus/minus buttons if present to fit full width layout */
.woocommerce div.product .card form.cart .quantity .qty-btn {
    flex: 0 0 40px;
    /* Fixed width for buttons */
}

/* ========================================
   SWIPER CAROUSEL OVERRIDES
   ======================================== */

/* Ensure slides size to their content for 'auto' width mode */
.categorySwiper .swiper-slide,
.filterTabsSwiper .swiper-slide {
    width: auto !important;
    height: auto !important;
    /* For equal height buttons */
}

/* Fix flex wrapper behavior if Bootstrap interferes */
.categorySwiper .swiper-wrapper,
.filterTabsSwiper .swiper-wrapper {
    align-items: center;
    /* Vertically center items */
}

/* Optional: Add some padding to container to avoid cutting off shadows/outlines */
.filterTabsSwiper {
    padding: 5px 0;
}

/* ========================================
   WOOCOMMERCE NOTICES
   ======================================== */

.woocommerce-notices-wrapper {
    margin: 20px auto;
    max-width: 90%;
    /* Default to wider on small screens */
    width: 100%;
}

@media (min-width: 768px) {
    .woocommerce-notices-wrapper {
        max-width: 70%;
    }
}

.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem !important;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 1.5rem;
    position: relative;
    border: 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    animation: notice-shake 0.5s cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes notice-shake {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}

@keyframes border-pulse-green {

    0%,
    100% {
        border-left-color: #10b981;
    }

    50% {
        border-left-color: #34d399;
        box-shadow: -2px 0 8px rgba(16, 185, 129, 0.2);
    }
}

@keyframes border-pulse-blue {

    0%,
    100% {
        border-left-color: #3b82f6;
    }

    50% {
        border-left-color: #60a5fa;
        box-shadow: -2px 0 8px rgba(59, 130, 246, 0.2);
    }
}

@keyframes border-pulse-red {

    0%,
    100% {
        border-left-color: #ef4444;
    }

    50% {
        border-left-color: #f87171;
        box-shadow: -2px 0 8px rgba(239, 68, 68, 0.2);
    }
}

/* Success Message */
.woocommerce-message {
    background-color: #ecfdf5;
    /* Green-50 */
    border-left: 4px solid #10b981;
    /* Green-500 */
    color: #064e3b;
    /* Green-900 */
    animation: notice-shake 0.5s cubic-bezier(.36, .07, .19, .97) both, border-pulse-green 2s infinite;
}

/* Pseudo-element for icon - Check Circle */
/* Pseudo-element for icon - Check Circle */
.woocommerce-message::before {
    content: "\F26B";
    /* Bootstrap Icons check-circle */
    font-family: "bootstrap-icons";
    font-size: 1.25rem;
    margin-right: 0.75rem;
    color: #10b981;
    position: static !important;
    /* Ensure it doesn't overlap */
    flex-shrink: 0;
}

/* Info Message */
.woocommerce-info {
    background-color: #eff6ff;
    border-left: 4px solid #3b82f6;
    color: #1e3a8a;
    animation: notice-shake 0.5s cubic-bezier(.36, .07, .19, .97) both, border-pulse-blue 2s infinite;
}

.woocommerce-info::before {
    content: "\F431";
    /* info-circle */
    font-family: "bootstrap-icons";
    margin-right: 0.75rem;
    color: #3b82f6;
}

/* Error Message */
.woocommerce-error {
    background-color: #fef2f2;
    border-left: 4px solid #ef4444;
    color: #991b1b;
    list-style: none !important;
    margin: 0 !important;
    padding-left: 1.5rem !important;
    animation: notice-shake 0.5s cubic-bezier(.36, .07, .19, .97) both, border-pulse-red 2s infinite;
}

.woocommerce-error::before {
    display: none;
}

.woocommerce-error li {
    display: flex;
    align-items: center;
    width: 100%;
}

.woocommerce-error li::before {
    content: "\F33A";
    /* exclamation-circle */
    font-family: "bootstrap-icons";
    margin-right: 0.5rem;
    color: #ef4444;
}

/* Buttons inside Notices */
.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button {
    float: none !important;
    background-color: white !important;
    border: 1px solid currentColor !important;
    color: inherit !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    transition: all 0.2s ease !important;
    margin-left: auto !important;
    /* Push button to right */
    white-space: nowrap;
}

.woocommerce-message .button:hover,
.woocommerce-info .button:hover {
    background-color: currentColor !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Sticky Sidebar on Single Product */
.sticky-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 2rem;
    align-self: flex-start;
    z-index: 10;
}

/* Premium Glowing Card Animation */
.premium-glow-card {
    position: relative;
    padding: 1.5px;
    /* Border thickness */
    background: transparent !important;
}

.premium-glow-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(#217bfe,
            #078efb,
            #ac87eb,
            #ee4d5d,
            #217bfe);
    animation: rotate-border 6s linear infinite;
    /* Slower, more elegant rotation */
    z-index: -1;
}

.premium-glow-card::after {
    content: '';
    position: absolute;
    inset: 1.5px;
    /* Match padding for border thickness */
    background: #fff;
    /* Static white background for card */
    border-radius: inherit;
    z-index: -1;
}

/* Subtle outer glow pulse */
@keyframes glow-pulse {
    0% {
        box-shadow: 0 0 5px rgba(33, 123, 254, 0.2);
    }

    50% {
        box-shadow: 0 0 15px rgba(33, 123, 254, 0.4);
    }

    100% {
        box-shadow: 0 0 5px rgba(33, 123, 254, 0.2);
    }
}

.premium-glow-card {
    animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes rotate-border {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* --- Pricing Card Refinements --- */

/* Price Formatting */
.price-wrap .display-5 {
    line-height: 1.1;
}

.price-wrap del {
    display: block;
    font-size: 1.1rem;
    color: #adb5bd !important;
    font-weight: 500;
    text-decoration: line-through;
    opacity: 1;
    margin-bottom: 0;
}

.price-wrap ins {
    text-decoration: none;
    display: inline-block;
    color: #212529;
    /* Dark color */
}

/* Feature List Icons */
.list-unstyled .bi {
    width: 24px;
    text-align: center;
}

/* Hide Quantity Input in Sidebar (Single Product) */
.product-type-simple .sidebar .quantity,
.product-type-simple .col-lg-4 .quantity,
.card-body .quantity {
    display: none !important;
}

/* Ensure Add to Cart Button fills width in the grid */
.d-grid .single_add_to_cart_button {
    width: 100%;
    margin-top: 0;
    /* Remove top margin we added earlier if inside grid */
    border-radius: 4px;
    /* Match design */
}

/* Support Toggle Custom Size */
.form-switch .form-check-input {
    cursor: pointer;
}

/* Enquiry Button Hover */
.btn-outline-secondary:hover {
    background-color: #6c757d;
    color: #fff;
    border-color: #6c757d;
}

/* Fix for standard price (no sale) */
.price-wrap .amount {
    color: inherit;
}

/* Hide Quantity Selector on Product Page */
.single-product .quantity {
    display: none !important;
}

/* Customization Options Styling */
.customization-options .option-item {
    transition: all 0.3s ease;
}

.customization-options .option-item:hover {
    border-color: #0d6efd !important;
}

.customization-options .form-check-input:checked~.form-check-label {
    color: #0d6efd;
    font-weight: 600;
}

.hosting-sub-options {
    border-left: 2px solid #eee;
    padding-left: 1rem;
}

/* Simple Product Card Carousel Styling */
.product-card-simple {
    height: 480px;
    /* Base height for the large cards */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card-simple:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.product-hover-overlay {
    backdrop-filter: blur(2px);
    transition: opacity 0.3s ease;
    z-index: 2;
}

.product-card-simple:hover .product-hover-overlay {
    opacity: 1 !important;
}

.product-image-wrapper {
    z-index: 1;
}

/* Category List Styling */
.category-header-swiper {
    width: 100%;
    overflow: hidden;
}

.category-header-list {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    /* Swiper needs no warp */
    gap: 0;
    margin-bottom: 0;
    border: none;
    width: auto !important;
}

.category-header-item {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-main);
    text-decoration: none;
    padding: 0 15px;
    white-space: nowrap;
    transition: all 0.3s ease;
    border: none !important;
    background: transparent !important;
}

.category-header-item:hover,
.category-header-item.active {
    color: var(--primary-color) !important;
    font-weight: 700;
}

.category-header-divider {
    color: #e0e0e0;
    font-size: 1.1rem;
    user-select: none;
}

.tab-pane.fade {
    transition: opacity 0.2s linear;
}

@media (max-width: 767px) {
    .product-card-simple {
        height: 350px;
    }

    .category-header-item {
        font-size: 0.9rem;
        padding: 0 8px;
    }

    .category-header-divider {
        font-size: 0.9rem;
    }
}

/* ========================================
   MODERN FEATURE SECTIONS (Image Type Section)
   ======================================== */
.section-features-modern {
    padding: 100px 0;
    overflow: hidden;
}

.feature-row {
    display: flex;
    align-items: center;
    margin-bottom: 150px;
}

.feature-row:last-child {
    margin-bottom: 0;
}

.feature-content {
    padding: 0 60px;
}

.feature-title-large {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 1.5rem;
}

.feature-subtitle {
    font-size: 1.5rem;
    color: #333;
    font-weight: 700;
    margin-bottom: 1rem;
}

.feature-description {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Visuals with floating effect */
.feature-visual-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-visual-bg {
    position: absolute;
    width: 120%;
    height: 120%;
    border-radius: 50%;
    z-index: -1;
    filter: blur(80px);
    opacity: 0.2;
}

.feature-main-shot {
    width: 100%;
    max-width: 550px;
    border-radius: 12px;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.1), 0 15px 35px rgba(0, 0, 0, 0.05);
    z-index: 2;
    transition: transform 0.5s ease;
}

.feature-floating-shot {
    position: absolute;
    width: 60%;
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    z-index: 3;
    transition: all 0.5s ease;
}

.shot-top-right {
    top: -40px;
    right: -40px;
}

.shot-bottom-left {
    bottom: -40px;
    left: -40px;
}

.feature-row:hover .feature-main-shot {
    transform: translateY(-10px);
}

/* Alternating Handled in HTML via order classes */

/* Colors */
.text-sell {
    color: #00D084;
}

.bg-sell {
    background-color: #00D084;
}

.btn-sell {
    background-color: #00D084;
    color: #fff;
    border: none;
}

.btn-sell:hover {
    background-color: #00b371;
    color: #fff;
}

.text-showcase {
    color: #00B0FF;
}

.bg-showcase {
    background-color: #00B0FF;
}

.btn-showcase {
    background-color: #00B0FF;
    color: #fff;
    border: none;
}

.btn-showcase:hover {
    background-color: #0099dd;
    color: #fff;
}

.text-engage {
    color: #FF6D00;
}

.bg-engage {
    background-color: #FF6D00;
}

.btn-engage {
    background-color: #FF6D00;
    color: #fff;
    border: none;
}

.btn-engage:hover {
    background-color: #e65c00;
    color: #fff;
}

@media (max-width: 991px) {

    .feature-row,
    .feature-row:nth-child(even) {
        flex-direction: column;
        text-align: center;
        margin-bottom: 80px;
    }

    .feature-content {
        padding: 0;
        margin-top: 50px;
    }

    .feature-title-large {
        font-size: 3rem;
    }

    .feature-visual-wrapper {
        width: 100%;
    }
}



/* ========================================
   MODERN BLOG POST CARDS (Wix/SquareSpace Style)
   ======================================== */
.modern-blog-card {
    border: none;
    background: transparent;
    margin-bottom: 2rem;
}

.modern-blog-img-wrap {
    width: 100%;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.modern-blog-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.modern-blog-card:hover .modern-blog-img-wrap img {
    transform: scale(1.05);
}

.modern-blog-badge {
    text-transform: uppercase;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    color: #000;
    margin-bottom: 0.75rem;
    display: block;
}

.modern-blog-title {
    font-family: var(--font-heading);
    font-stretch: 125%;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: #000;
    margin-bottom: 1rem;
    transition: opacity 0.3s;
}

.modern-blog-title a {
    color: inherit;
    text-decoration: none;
}

.modern-blog-title:hover {
    opacity: 0.7;
}

.modern-blog-meta {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
}

.modern-blog-meta span {
    margin: 0 4px;
}

@media (max-width: 991px) {
    .modern-blog-title {
        font-size: 2rem;
    }
}