/**
 * WooCommerce – Videohub360 Theme Styles
 *
 * Dedicated WooCommerce presentation layer. Enqueued only on pages where
 * WooCommerce is active. Uses the theme's existing CSS custom properties
 * so colours, spacing, and radii stay consistent site-wide.
 *
 * @package Videohub360_Theme
 * @since   1.1.0
 */

/* ==========================================================================
   1. GENERAL WOOCOMMERCE PAGE WRAPPER
   ========================================================================== */

.vh360-woocommerce-page {
    padding: 2rem 0 3rem;
}

.vh360-woocommerce-page .container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem var(--spacing);
}

/* Shop archive intentionally uses its own wide commerce wrapper instead of the
   theme's standard boxed .container.no-sidebar layout. */
.vh360-shop-archive {
    padding-top: 1.5rem;
}

.vh360-shop-archive-layout {
    width: min(1280px, calc(100vw - 3rem));
    margin: 0 auto;
    padding: 0;
}

/* Sidebar-aware grid for the shop archive layout */
.vh360-shop-archive-layout.has-sidebar {
    display: grid;
    gap: 2rem;
    align-items: start;
}

.vh360-shop-archive-layout.has-sidebar.sidebar-right {
    grid-template-columns: minmax(0, 1fr) 300px;
}

.vh360-shop-archive-layout.has-sidebar.sidebar-left {
    grid-template-columns: 300px minmax(0, 1fr);
}

@media (max-width: 991px) {
    .vh360-shop-archive-layout.has-sidebar.sidebar-right,
    .vh360-shop-archive-layout.has-sidebar.sidebar-left {
        grid-template-columns: 1fr;
    }
}

.vh360-shop-archive-main {
    width: 100%;
}

.vh360-single-product .container,
.woocommerce-cart .container,
.woocommerce-checkout .container,
.woocommerce-account .container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem var(--spacing);
}

/* ==========================================================================
   2. SHOP ARCHIVE – HEADER
   ========================================================================== */

.vh360-shop-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.vh360-shop-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 0.5rem;
}

.vh360-shop-header .term-description,
.vh360-shop-header .page-description {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}

/* ==========================================================================
   3. SHOP ARCHIVE – TOOLBAR (result count + ordering)
   ========================================================================== */

.vh360-shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.vh360-shop-toolbar .woocommerce-result-count {
    margin: 0;
    color: var(--text-light);
    font-size: 0.875rem;
}

.vh360-shop-toolbar .woocommerce-ordering select {
    appearance: none;
    -webkit-appearance: none;
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--bg-color);
    color: var(--text-color);
    font-size: 0.875rem;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236b7280'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 10px 6px;
}

/* ==========================================================================
   4. PRODUCT GRID
   ========================================================================== */

.vh360-shop-archive ul.products {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    list-style: none;
    padding: 0;
    margin: 0 0 2.5rem;
}

@media (max-width: 991px) {
    .vh360-shop-archive ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 575px) {
    .vh360-shop-archive ul.products {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

/* ==========================================================================
   5. PRODUCT CARD
   ========================================================================== */

ul.products li.product {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    box-shadow: var(--shadow-sm);
}

ul.products li.product:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* --- Thumbnail area --- */

ul.products li.product a img,
ul.products li.product .woocommerce-product-gallery img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

/* Wrap text portion */
ul.products li.product .vh360-product-card-body,
ul.products li.product > a ~ a,
ul.products li.product > a ~ span,
ul.products li.product > .price,
ul.products li.product > .button,
ul.products li.product > a.button,
ul.products li.product > .added_to_cart {
    padding-left: 1rem;
    padding-right: 1rem;
}

/* --- Title --- */

.vh360-shop-archive ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0.75rem 0 0.25rem;
    padding-left: 1rem;
    padding-right: 1rem;
    line-height: 1.4;
    box-sizing: border-box;
}

ul.products li.product a {
    text-decoration: none;
    color: inherit;
}

/* --- Price --- */

.vh360-shop-archive ul.products li.product .price,
.woocommerce ul.products li.product .price {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0.25rem 0 0.75rem;
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
}

ul.products li.product .price del {
    color: var(--text-light);
    font-weight: 400;
    margin-right: 0.35rem;
}

ul.products li.product .price ins {
    text-decoration: none;
}

/* --- Add-to-cart button --- */

ul.products li.product .button,
ul.products li.product a.button,
ul.products li.product a.added_to_cart {
    display: block;
    width: calc(100% - 2rem);
    margin: auto 1rem 1rem;
    padding: 0.6rem 1rem;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

ul.products li.product .button,
ul.products li.product a.button {
    background-color: var(--primary-color);
    color: #fff;
}

ul.products li.product .button:hover,
ul.products li.product a.button:hover {
    background-color: var(--secondary-color);
    color: #fff;
}

ul.products li.product a.added_to_cart {
    background-color: var(--success-color);
    color: #fff;
}

/* --- Sale badge --- */

ul.products li.product .onsale,
.vh360-single-product .onsale {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 1;
    background: var(--accent-red);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.25rem 0.6rem;
    border-radius: var(--border-radius);
    line-height: 1;
}

ul.products li.product {
    position: relative;
}

/* ==========================================================================
   6. PAGINATION
   ========================================================================== */

.woocommerce-pagination {
    text-align: center;
    margin: 2rem 0 1rem;
}

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

.woocommerce-pagination ul.page-numbers li a,
.woocommerce-pagination ul.page-numbers li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.woocommerce-pagination ul.page-numbers li a:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.woocommerce-pagination ul.page-numbers li span.current {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* ==========================================================================
   7. SINGLE PRODUCT – LAYOUT
   ========================================================================== */

.vh360-single-product .product {
    max-width: var(--max-width);
    margin: 0 auto;
}

.vh360-single-product div.product div.summary {
    margin-bottom: 2rem;
}

/* WooCommerce default uses a two-column float layout via .images + .summary.
   We reinforce it with modern layout. */

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

/* Gallery and summary occupy the two columns */
.vh360-single-product div.product div.images,
.vh360-single-product div.product .woocommerce-product-gallery {
    grid-column: 1 / 2;
    width: 100% !important; /* override WooCommerce inline width */
    float: none !important;
}

.vh360-single-product div.product div.summary {
    grid-column: 2 / 3;
    width: 100% !important;
    float: none !important;
}

/* Everything after the first two children (gallery + summary) spans full width */
.vh360-single-product div.product .woocommerce-tabs,
.vh360-single-product div.product .related.products,
.vh360-single-product div.product .up-sells,
.vh360-single-product div.product .upsells,
.vh360-single-product div.product .cross-sells {
    grid-column: 1 / -1;
}

@media (max-width: 767px) {
    .vh360-single-product div.product {
        display: block;
    }

    .vh360-single-product div.product div.images,
    .vh360-single-product div.product .woocommerce-product-gallery {
        margin-bottom: 1.5rem;
    }
}

/* --- Gallery image --- */

.vh360-single-product div.product div.images img,
.vh360-single-product div.product .woocommerce-product-gallery img {
    border-radius: var(--border-radius);
    width: 100%;
    height: auto;
}

/* ==========================================================================
   8. SINGLE PRODUCT – SUMMARY COMPONENTS
   ========================================================================== */

/* --- Title --- */
.vh360-single-product div.product .product_title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

/* --- Price --- */
.vh360-single-product div.product .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.vh360-single-product div.product .price del {
    color: var(--text-light);
    font-weight: 400;
    margin-right: 0.35rem;
}

.vh360-single-product div.product .price ins {
    text-decoration: none;
}

/* --- Short description --- */
.vh360-single-product div.product .woocommerce-product-details__short-description {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

/* --- Quantity field --- */
.vh360-single-product div.product .quantity .qty {
    width: 4rem;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    text-align: center;
}

/* --- Add-to-cart button (single) --- */
.vh360-single-product div.product .single_add_to_cart_button,
.vh360-single-product div.product button.single_add_to_cart_button {
    display: inline-block;
    padding: 0.85rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-transform: none;
    letter-spacing: 0;
}

.vh360-single-product div.product .single_add_to_cart_button:hover {
    background-color: var(--secondary-color);
}

/* --- Variations / select fields --- */
.vh360-single-product div.product .variations td select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    color: var(--text-color);
}

.vh360-single-product div.product .variations td.label label {
    font-weight: 600;
    color: var(--text-color);
}

/* --- Breadcrumbs --- */
.vh360-woocommerce-page .woocommerce-breadcrumb {
    font-size: 0.8125rem;
    color: var(--text-light);
    margin-bottom: 1.25rem;
}

.vh360-woocommerce-page .woocommerce-breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.vh360-woocommerce-page .woocommerce-breadcrumb a:hover {
    text-decoration: underline;
}

/* --- Notices --- */
.vh360-woocommerce-page .woocommerce-message,
.vh360-woocommerce-page .woocommerce-info,
.vh360-woocommerce-page .woocommerce-error {
    border-radius: var(--border-radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.vh360-woocommerce-page .woocommerce-message {
    background: color-mix(in srgb, var(--success-color, #10b981) 14%, var(--surface-1, #ffffff));
    border-left: 4px solid var(--success-color);
    color: var(--success-color, #10b981);
}

.vh360-woocommerce-page .woocommerce-info {
    background: color-mix(in srgb, var(--info-color, #6366f1) 12%, var(--surface-1, #ffffff));
    border-left: 4px solid var(--primary-color);
    color: var(--info-color, #6366f1);
}

.vh360-woocommerce-page .woocommerce-error {
    background: color-mix(in srgb, var(--error-color, #ef4444) 12%, var(--surface-1, #ffffff));
    border-left: 4px solid var(--error-color);
    color: var(--error-color, #ef4444);
}

/* ==========================================================================
   9. SINGLE PRODUCT – TABS
   ========================================================================== */

.vh360-single-product .woocommerce-tabs {
    margin-top: 2rem;
}

.vh360-single-product .woocommerce-tabs ul.tabs {
    list-style: none;
    display: flex;
    gap: 0;
    padding: 0;
    margin: 0 0 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.vh360-single-product .woocommerce-tabs ul.tabs::before,
.vh360-single-product .woocommerce-tabs ul.tabs::after {
    display: none; /* remove default WooCommerce pseudo borders */
}

.vh360-single-product .woocommerce-tabs ul.tabs li {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    border-radius: 0;
}

.vh360-single-product .woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.vh360-single-product .woocommerce-tabs ul.tabs li a:hover {
    color: var(--text-color);
}

.vh360-single-product .woocommerce-tabs ul.tabs li.active a {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.vh360-single-product .woocommerce-tabs .panel {
    padding: 0;
}

.vh360-single-product .woocommerce-tabs .panel h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 1rem;
    color: var(--text-color);
}

/* ==========================================================================
   10. RELATED / UP-SELL PRODUCTS
   ========================================================================== */

.vh360-single-product .related.products,
.vh360-single-product .up-sells,
.vh360-single-product .upsells {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.vh360-single-product .related.products > h2,
.vh360-single-product .up-sells > h2,
.vh360-single-product .upsells > h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

/* ==========================================================================
   11. MEMBERSHIP PRODUCT – PREMIUM-PLAN PRESENTATION
   ========================================================================== */

.vh360-membership-product div.product .product_title {
    font-size: 2rem;
    font-weight: 800;
}

.vh360-membership-product div.product .price {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.vh360-membership-product div.product .single_add_to_cart_button,
.vh360-membership-product div.product button.single_add_to_cart_button {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.vh360-membership-product div.product .single_add_to_cart_button:hover {
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
    transform: translateY(-1px);
}

.vh360-membership-product div.product .woocommerce-product-details__short-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-color);
}

/* ==========================================================================
   12. WOOCOMMERCE REVIEWS (replace generic WP comments)
   ========================================================================== */

.vh360-single-product #reviews h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
}

.vh360-single-product #reviews .commentlist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.vh360-single-product #reviews .commentlist li {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border-color);
}

.vh360-single-product #reviews .comment-form-rating label {
    font-weight: 600;
}

.vh360-single-product #reviews .comment-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    resize: vertical;
}

.vh360-single-product #reviews .comment-form .form-submit input[type="submit"] {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: var(--border-radius);
    padding: 0.65rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.vh360-single-product #reviews .comment-form .form-submit input[type="submit"]:hover {
    background-color: var(--secondary-color);
}

/* ==========================================================================
   13. NO-PRODUCTS / EMPTY STATE
   ========================================================================== */

.vh360-shop-archive .woocommerce-info {
    text-align: center;
    padding: 3rem 1rem;
}

/* ==========================================================================
   14. STAR RATING
   ========================================================================== */

.vh360-woocommerce-page .star-rating {
    color: var(--warning-color);
    font-size: 0.875rem;
}

.vh360-shop-archive ul.products li.product .star-rating,
.woocommerce ul.products li.product .star-rating {
    display: block;
    margin: 0 0 0.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
}

/* ==========================================================================
   15. GENERAL UTILITY OVERRIDES
   ========================================================================== */

/* Make WooCommerce images responsive globally */
.vh360-woocommerce-page img {
    max-width: 100%;
    height: auto;
}

/* Reset default float layout that WooCommerce applies */
.vh360-woocommerce-page .product::after {
    content: "";
    display: table;
    clear: both;
}

/* ==========================================================================
   16. MY ACCOUNT – PAGE LAYOUT
   ========================================================================== */

/*
 * The theme fully owns the My Account two-column structure.
 * WooCommerce ships default float/width/clear rules on the navigation and
 * content columns that conflict with modern grid layout.  We reset those
 * entirely and then *explicitly* place each section into its grid cell so
 * the browser never falls back to auto-placement.
 */

/* --- Reset native WooCommerce account column behaviour --- */
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content {
    float: none !important;
    clear: none !important;
    width: auto !important;
    max-width: none;
    min-width: 0;
    margin: 0;
    display: block;
    box-sizing: border-box;
}

/* --- Authoritative two-column grid wrapper --- */
.woocommerce-account .woocommerce {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    gap: 2rem;
    align-items: start;
}

/* Notices span full width in the first row, above the account columns */
.woocommerce-account .woocommerce > .woocommerce-message,
.woocommerce-account .woocommerce > .woocommerce-info,
.woocommerce-account .woocommerce > .woocommerce-error,
.woocommerce-account .woocommerce > .woocommerce-notices-wrapper {
    grid-column: 1 / -1;
    grid-row: 1;
}

/* --- Explicit grid placement: navigation → left column, row 2 --- */
.woocommerce-account .woocommerce-MyAccount-navigation {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
}

/* --- Explicit grid placement: content → right column, row 2 --- */
.woocommerce-account .woocommerce-MyAccount-content {
    grid-column: 2;
    grid-row: 2;
    align-self: stretch;
    width: 100%;
}

/* Ensure direct children inside the content column are not
   constrained by inherited max-width rules. */
.woocommerce-account .woocommerce-MyAccount-content > * {
    max-width: 100%;
}

/* --- Responsive: stack on small screens --- */
@media (max-width: 767px) {
    .woocommerce-account .woocommerce {
        display: block;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation,
    .woocommerce-account .woocommerce-MyAccount-content {
        grid-column: unset;
        grid-row: unset;
        width: auto !important;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation {
        margin-bottom: 1.5rem;
    }
}

/* ==========================================================================
   17. MY ACCOUNT – NAVIGATION PANEL
   ========================================================================== */

.woocommerce-account .woocommerce-MyAccount-navigation {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

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

.woocommerce-account .woocommerce-MyAccount-navigation li {
    margin: 0;
    border-bottom: 1px solid var(--border-color);
}

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

.woocommerce-account .woocommerce-MyAccount-navigation a {
    display: block;
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.woocommerce-account .woocommerce-MyAccount-navigation a:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

.woocommerce-account .woocommerce-MyAccount-navigation a:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: -2px;
}

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

/* ==========================================================================
   18. MY ACCOUNT – CONTENT PANEL
   ========================================================================== */

.woocommerce-account .woocommerce-MyAccount-content {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    padding: 1.75rem 2rem;
    min-height: 320px;
    /* Prevent grid blowout from wide tables; allow horizontal scroll */
    overflow-x: auto;
}

.woocommerce-account .woocommerce-MyAccount-content > p:first-child {
    margin-top: 0;
}

.woocommerce-account .woocommerce-MyAccount-content > p:last-child {
    margin-bottom: 0;
}

.woocommerce-account .woocommerce-MyAccount-content h2,
.woocommerce-account .woocommerce-MyAccount-content h3 {
    font-weight: 700;
    color: var(--text-color);
    margin-top: 0;
}

.woocommerce-account .woocommerce-MyAccount-content h2 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.woocommerce-account .woocommerce-MyAccount-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.woocommerce-account .woocommerce-MyAccount-content p {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.7;
}

.woocommerce-account .woocommerce-MyAccount-content a:not(.button) {
    color: var(--primary-color);
    text-decoration: none;
}

.woocommerce-account .woocommerce-MyAccount-content a:not(.button):hover {
    text-decoration: underline;
}

/* ==========================================================================
   19. MY ACCOUNT – DASHBOARD LANDING VIEW
   ========================================================================== */

.woocommerce-account .woocommerce-MyAccount-content > p:first-of-type {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-color);
}

.woocommerce-account .woocommerce-MyAccount-content > p + p {
    margin-top: 0.75rem;
}

.woocommerce-account .woocommerce-MyAccount-content > p a {
    font-weight: 600;
}

/* Notices inside content */
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-message,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-error {
    margin-bottom: 1.25rem;
}

/* ==========================================================================
   20. MY ACCOUNT – TABLES (Orders, Downloads, View Order)
   ========================================================================== */

.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-orders-table,
.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-table,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-table--order-details,
.woocommerce-account .woocommerce-MyAccount-content table.shop_table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.woocommerce-account .woocommerce-MyAccount-content table.shop_table thead th,
.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-table thead th {
    background-color: var(--bg-light);
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.75rem 1rem;
    border-bottom: 2px solid var(--border-color);
    text-align: left;
    white-space: nowrap;
}

.woocommerce-account .woocommerce-MyAccount-content table.shop_table tbody td,
.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-table tbody td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
    vertical-align: middle;
}

.woocommerce-account .woocommerce-MyAccount-content table.shop_table tbody tr:last-child td,
.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-table tbody tr:last-child td {
    border-bottom: none;
}

.woocommerce-account .woocommerce-MyAccount-content table.shop_table tfoot th,
.woocommerce-account .woocommerce-MyAccount-content table.shop_table tfoot td {
    padding: 0.75rem 1rem;
    border-top: 2px solid var(--border-color);
    font-weight: 600;
}

/* Action buttons inside tables */
.woocommerce-account .woocommerce-MyAccount-content table .button,
.woocommerce-account .woocommerce-MyAccount-content table a.button {
    display: inline-block;
    padding: 0.4rem 0.85rem;
    font-size: 0.8125rem;
    font-weight: 600;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: var(--border-radius);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.woocommerce-account .woocommerce-MyAccount-content table .button:hover,
.woocommerce-account .woocommerce-MyAccount-content table a.button:hover {
    background-color: var(--secondary-color);
}

/* Order status badges */
.woocommerce-account .woocommerce-MyAccount-content table .woocommerce-orders-table__cell-order-status {
    font-weight: 600;
    font-size: 0.8125rem;
}

/* Responsive tables – horizontal scroll on small screens */
@media (max-width: 767px) {
    .woocommerce-account .woocommerce-MyAccount-content table.shop_table,
    .woocommerce-account .woocommerce-MyAccount-content table.woocommerce-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .woocommerce-account .woocommerce-MyAccount-content table.shop_table thead,
    .woocommerce-account .woocommerce-MyAccount-content table.woocommerce-table thead {
        white-space: nowrap;
    }
}

/* ==========================================================================
   21. MY ACCOUNT – ADDRESS CARDS
   ========================================================================== */

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: row;
    gap: 1.75rem;
    align-items: stretch;
    justify-items: stretch;
    width: 100%;
}

/* Force WooCommerce's two address columns into a true side-by-side desktop layout.
   This prevents diagonal placement when native column/flex styles leak in. */
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses .u-column1.woocommerce-Address,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses .col-1.woocommerce-Address {
    grid-column: 1;
    grid-row: 1;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses .u-column2.woocommerce-Address,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses .col-2.woocommerce-Address {
    grid-column: 2;
    grid-row: 1;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses .woocommerce-Address,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses .u-column1.woocommerce-Address,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses .u-column2.woocommerce-Address,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses .col-1.woocommerce-Address,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses .col-2.woocommerce-Address {
    float: none !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    min-width: 0;
    min-height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--surface-1, #ffffff);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses .woocommerce-Address header,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses .woocommerce-Address .woocommerce-Address-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.875rem;
    margin: 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses .woocommerce-Address h2,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses .woocommerce-Address h3 {
    font-size: 1.45rem;
    line-height: 1.2;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses .woocommerce-Address a.edit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1rem;
    min-height: 42px;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 12px;
    text-decoration: none;
    transition: var(--transition);
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses .woocommerce-Address a.edit:hover {
    background-color: var(--secondary-color);
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses address {
    margin: 0;
    font-style: normal;
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.75;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses address:empty::before {
    content: 'You have not set up this type of address yet.';
    display: block;
    color: var(--text-light);
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses .woocommerce-Address p,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses .woocommerce-Address .woocommerce-address {
    margin: 0;
    color: var(--text-light);
}

@media (max-width: 767px) {
    .woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses {
        grid-template-columns: 1fr;
    }

    .woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses .u-column1.woocommerce-Address,
    .woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses .col-1.woocommerce-Address,
    .woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses .u-column2.woocommerce-Address,
    .woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses .col-2.woocommerce-Address {
        grid-column: 1;
        grid-row: auto;
    }

    .woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses .woocommerce-Address,
    .woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses .u-column1.woocommerce-Address,
    .woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses .u-column2.woocommerce-Address,
    .woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses .col-1.woocommerce-Address,
    .woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses .col-2.woocommerce-Address {
        padding: 1.25rem;
    }

    .woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses .woocommerce-Address h2,
    .woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses .woocommerce-Address h3 {
        font-size: 1.2rem;
    }
}

/* ==========================================================================
   22. MY ACCOUNT – FORMS (Account Details, Edit Address, Login/Register)
   ========================================================================== */

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-EditAccountForm,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-address-fields,
.woocommerce-account .woocommerce-MyAccount-content form.woocommerce-form,
.woocommerce-account .woocommerce-MyAccount-content form.edit-account {
    max-width: 640px;
}

/* Field rows */
.woocommerce-account .woocommerce-MyAccount-content .form-row {
    margin-bottom: 1.25rem;
}

.woocommerce-account .woocommerce-MyAccount-content .form-row label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.35rem;
}

.woocommerce-account .woocommerce-MyAccount-content .form-row label .required {
    color: var(--error-color);
}

/* Text inputs, selects, textareas */
.woocommerce-account .woocommerce-MyAccount-content input[type="text"],
.woocommerce-account .woocommerce-MyAccount-content input[type="email"],
.woocommerce-account .woocommerce-MyAccount-content input[type="tel"],
.woocommerce-account .woocommerce-MyAccount-content input[type="password"],
.woocommerce-account .woocommerce-MyAccount-content input[type="number"],
.woocommerce-account .woocommerce-MyAccount-content input[type="url"],
.woocommerce-account .woocommerce-MyAccount-content select,
.woocommerce-account .woocommerce-MyAccount-content textarea {
    width: 100%;
    padding: 0.6rem 0.85rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.woocommerce-account .woocommerce-MyAccount-content input[type="text"]:focus,
.woocommerce-account .woocommerce-MyAccount-content input[type="email"]:focus,
.woocommerce-account .woocommerce-MyAccount-content input[type="tel"]:focus,
.woocommerce-account .woocommerce-MyAccount-content input[type="password"]:focus,
.woocommerce-account .woocommerce-MyAccount-content input[type="number"]:focus,
.woocommerce-account .woocommerce-MyAccount-content input[type="url"]:focus,
.woocommerce-account .woocommerce-MyAccount-content select:focus,
.woocommerce-account .woocommerce-MyAccount-content textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.woocommerce-account .woocommerce-MyAccount-content textarea {
    min-height: 6rem;
    resize: vertical;
}

/* Select dropdown arrow */
.woocommerce-account .woocommerce-MyAccount-content select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236b7280'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 10px 6px;
    padding-right: 2rem;
}

/* Fieldset legend (password change section) */
.woocommerce-account .woocommerce-MyAccount-content fieldset {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.25rem;
    margin: 1.5rem 0;
}

.woocommerce-account .woocommerce-MyAccount-content fieldset legend {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-color);
    padding: 0 0.5rem;
}

/* Submit buttons */
.woocommerce-account .woocommerce-MyAccount-content button[type="submit"],
.woocommerce-account .woocommerce-MyAccount-content input[type="submit"],
.woocommerce-account .woocommerce-MyAccount-content .button:not(.wp-element-button) {
    display: inline-block;
    padding: 0.7rem 1.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.woocommerce-account .woocommerce-MyAccount-content button[type="submit"]:hover,
.woocommerce-account .woocommerce-MyAccount-content input[type="submit"]:hover,
.woocommerce-account .woocommerce-MyAccount-content .button:not(.wp-element-button):hover {
    background-color: var(--secondary-color);
}

.woocommerce-account .woocommerce-MyAccount-content button[type="submit"]:focus-visible,
.woocommerce-account .woocommerce-MyAccount-content input[type="submit"]:focus-visible,
.woocommerce-account .woocommerce-MyAccount-content .button:not(.wp-element-button):focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Inline validation */
.woocommerce-account .woocommerce-MyAccount-content .form-row.woocommerce-invalid input,
.woocommerce-account .woocommerce-MyAccount-content .form-row.woocommerce-invalid select {
    border-color: var(--error-color);
}

.woocommerce-account .woocommerce-MyAccount-content .form-row.woocommerce-validated input,
.woocommerce-account .woocommerce-MyAccount-content .form-row.woocommerce-validated select {
    border-color: var(--success-color);
}

/* ==========================================================================
   23. MY ACCOUNT – LOGIN / REGISTER FORMS
   ========================================================================== */

.woocommerce-account .woocommerce-form-login,
.woocommerce-account .woocommerce-form-register {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
}

.woocommerce-account .woocommerce-form-login h2,
.woocommerce-account .woocommerce-form-register h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

/* Side-by-side login/register layout */
.woocommerce-account #customer_login {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (max-width: 575px) {
    .woocommerce-account #customer_login {
        grid-template-columns: 1fr;
    }
}

.woocommerce-account #customer_login .form-row input[type="text"],
.woocommerce-account #customer_login .form-row input[type="email"],
.woocommerce-account #customer_login .form-row input[type="password"] {
    width: 100%;
    padding: 0.6rem 0.85rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.woocommerce-account #customer_login .form-row input[type="text"]:focus,
.woocommerce-account #customer_login .form-row input[type="email"]:focus,
.woocommerce-account #customer_login .form-row input[type="password"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.woocommerce-account #customer_login .form-row label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.35rem;
}

.woocommerce-account #customer_login button[type="submit"],
.woocommerce-account #customer_login input[type="submit"] {
    display: inline-block;
    padding: 0.7rem 1.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.woocommerce-account #customer_login button[type="submit"]:hover,
.woocommerce-account #customer_login input[type="submit"]:hover {
    background-color: var(--secondary-color);
}

/* Remember me checkbox */
.woocommerce-account .woocommerce-form__label-for-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    color: var(--text-color);
    cursor: pointer;
}

.woocommerce-account .woocommerce-form__label-for-checkbox input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: var(--primary-color);
}

/* Lost password link */
.woocommerce-account .woocommerce-LostPassword a {
    font-size: 0.875rem;
    color: var(--primary-color);
    text-decoration: none;
}

.woocommerce-account .woocommerce-LostPassword a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   24. MY ACCOUNT – VIEW ORDER DETAILS
   ========================================================================== */

/* Order details page heading area */
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-order-details {
    margin-bottom: 2rem;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-order-details .woocommerce-order-details__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 1rem;
}

/* Customer details section */
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-customer-details {
    margin-top: 2rem;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-customer-details .woocommerce-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (max-width: 575px) {
    .woocommerce-account .woocommerce-MyAccount-content .woocommerce-customer-details .woocommerce-columns {
        grid-template-columns: 1fr;
    }
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-customer-details address {
    font-style: normal;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.25rem;
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* Order updates / notes */
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-OrderUpdates {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-OrderUpdates li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-color);
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-OrderUpdates li:last-child {
    border-bottom: none;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-OrderUpdates .woocommerce-OrderUpdate-meta {
    font-size: 0.8125rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

/* ==========================================================================
   25. MY ACCOUNT – EMPTY STATES
   ========================================================================== */

/* No orders, no downloads, etc. */
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-message--info,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info {
    text-align: center;
    padding: 2rem 1.25rem;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-message--info .button,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info .button {
    margin-top: 0.75rem;
}

/* ==========================================================================
   26. MY ACCOUNT – BUTTONS GENERAL
   ========================================================================== */

/* "Browse products" and similar action buttons in empty states */
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Button,
.woocommerce-account .woocommerce-MyAccount-content a.woocommerce-Button {
    display: inline-block;
    padding: 0.65rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: var(--border-radius);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Button:hover,
.woocommerce-account .woocommerce-MyAccount-content a.woocommerce-Button:hover {
    background-color: var(--secondary-color);
}

/* ==========================================================================
   27. MY ACCOUNT – PAYMENT METHODS
   ========================================================================== */

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-MyAccount-paymentMethods {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-MyAccount-paymentMethods thead th {
    background-color: var(--bg-light);
    font-weight: 600;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.75rem 1rem;
    border-bottom: 2px solid var(--border-color);
    text-align: left;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-MyAccount-paymentMethods tbody td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

/* ==========================================================================
   SHOP STOREFRONT – NEW BRANDED SECTIONS (v1.2.0)
   ========================================================================== */

/* ==========================================================================
   S1. SHOP HERO BANNER
   ========================================================================== */

.vh360-shop-hero {
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: center;
    background-color: var(--bg-light);
    background-size: cover;
    background-position: center;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 2rem;
}

.vh360-shop-hero-overlay {
    position: absolute;
    inset: 0;
    background: #000;
    pointer-events: none;
    z-index: 1;
}

.vh360-shop-hero-inner {
    position: relative;
    z-index: 2;
    padding: 3rem 2.5rem;
    max-width: 700px;
}

.vh360-shop-hero--align-center .vh360-shop-hero-inner {
    margin: 0 auto;
    text-align: center;
}

.vh360-shop-hero--align-left .vh360-shop-hero-inner {
    text-align: left;
}

.vh360-shop-hero-eyebrow {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-purple);
    margin: 0 0 0.75rem;
}

.vh360-shop-hero-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin: 0 0 1rem;
}

.vh360-shop-hero-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin: 0 0 1.5rem;
}

.vh360-shop-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.vh360-shop-hero--align-center .vh360-shop-hero-actions {
    justify-content: center;
}

.vh360-shop-hero-btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    font-size: 0.9375rem;
    font-weight: 700;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.vh360-shop-hero-btn--primary {
    background: var(--primary-color);
    color: #fff;
}

.vh360-shop-hero-btn--primary:hover {
    background: var(--secondary-color);
    color: #fff;
}

.vh360-shop-hero-btn--secondary {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
}

.vh360-shop-hero-btn--secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

@media (max-width: 767px) {
    .vh360-shop-hero {
        min-height: 220px;
    }

    .vh360-shop-hero-inner {
        padding: 2rem 1.25rem;
    }

    .vh360-shop-hero-actions {
        flex-direction: column;
    }

    .vh360-shop-hero-btn {
        text-align: center;
    }
}

/* ==========================================================================
   S2. PREMIUM SHOP HEADER CARD
   ========================================================================== */

.vh360-shop-header-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.75rem 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.vh360-shop-header-card-inner {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.vh360-shop-header-card-meta {
    flex: 1 1 0;
    min-width: 0;
}

.vh360-shop-header-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-purple));
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    margin-bottom: 0.6rem;
}

.vh360-shop-header-card .vh360-shop-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 0.35rem;
}

.vh360-shop-header-count {
    font-size: 0.8125rem;
    color: var(--text-light);
    margin: 0 0 0.35rem;
}

.vh360-shop-header-microcopy {
    font-size: 0.8125rem;
    color: var(--text-light);
    margin: 0;
}

.vh360-shop-header-description {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9375rem;
    color: var(--text-light);
    line-height: 1.7;
}

.vh360-shop-header-description p:last-child {
    margin-bottom: 0;
}

@media (max-width: 575px) {
    .vh360-shop-header-card {
        padding: 1.25rem;
    }
}

/* ==========================================================================
   S3. BENEFITS / TRUST STRIP
   ========================================================================== */

.vh360-shop-benefits {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.vh360-shop-benefit {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1rem 1.1rem;
    box-shadow: var(--shadow-sm);
}

.vh360-shop-benefit-icon {
    flex-shrink: 0;
    color: var(--primary-color);
    margin-top: 0.1rem;
}

.vh360-shop-benefit-content {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.vh360-shop-benefit-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-color);
    display: block;
}

.vh360-shop-benefit-text {
    font-size: 0.8125rem;
    color: var(--text-light);
    line-height: 1.5;
    display: block;
}

@media (max-width: 991px) {
    .vh360-shop-benefits {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .vh360-shop-benefits {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   S4. FEATURED PRODUCT MODULE
   ========================================================================== */

.vh360-shop-featured-product {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}

.vh360-shop-featured-product-image {
    display: block;
    overflow: hidden;
}

.vh360-shop-featured-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.vh360-shop-featured-product-image:hover img {
    transform: scale(1.04);
}

.vh360-shop-featured-product-details {
    padding: 1.75rem 2rem 1.75rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    justify-content: center;
}

.vh360-shop-featured-badge {
    display: inline-block;
    background: var(--accent-purple);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    align-self: flex-start;
}

.vh360-shop-featured-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
    line-height: 1.3;
}

.vh360-shop-featured-title a {
    color: inherit;
    text-decoration: none;
}

.vh360-shop-featured-title a:hover {
    color: var(--primary-color);
}

.vh360-shop-featured-excerpt {
    font-size: 0.9375rem;
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}

.vh360-shop-featured-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.vh360-shop-featured-actions {
    margin-top: 0.25rem;
}

.vh360-shop-featured-cta {
    display: inline-block;
    padding: 0.65rem 1.5rem;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.vh360-shop-featured-cta:hover {
    background: var(--secondary-color);
    color: #fff;
}

@media (max-width: 767px) {
    .vh360-shop-featured-product {
        grid-template-columns: 1fr;
    }

    .vh360-shop-featured-product-details {
        padding: 1.25rem;
    }
}

/* ==========================================================================
   S5. CATEGORY NAVIGATION PILLS
   ========================================================================== */

.vh360-shop-category-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.vh360-shop-category-pill {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-light);
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}

.vh360-shop-category-pill:hover {
    background: var(--bg-color);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.vh360-shop-category-pill.is-active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* ==========================================================================
   S6. ENHANCED TOOLBAR (with search)
   ========================================================================== */

.vh360-shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.vh360-shop-toolbar-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.vh360-shop-toolbar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.vh360-shop-toolbar-category {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-color);
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
}

.vh360-shop-toolbar-search {
    display: flex;
    align-items: center;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.vh360-shop-toolbar-search:focus-within {
    border-color: var(--primary-color);
}

.vh360-shop-toolbar-search-input {
    border: none;
    background: transparent;
    padding: 0.45rem 0.75rem;
    font-size: 0.875rem;
    color: var(--text-color);
    outline: none;
    width: 180px;
}

.vh360-shop-toolbar-search-input::placeholder {
    color: var(--text-light);
}

.vh360-shop-toolbar-search-btn {
    background: transparent;
    border: none;
    border-left: 1px solid var(--border-color);
    padding: 0.45rem 0.65rem;
    cursor: pointer;
    color: var(--text-light);
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}

.vh360-shop-toolbar-search-btn:hover {
    color: var(--primary-color);
}

@media (max-width: 767px) {
    .vh360-shop-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .vh360-shop-toolbar-left,
    .vh360-shop-toolbar-right {
        justify-content: space-between;
    }

    .vh360-shop-toolbar-search {
        flex: 1 1 0;
    }

    .vh360-shop-toolbar-search-input {
        width: 100%;
    }
}

/* ==========================================================================
   S7. PRODUCT CARD ENHANCEMENTS
   ========================================================================== */

/*
 * Category badge is rendered after the thumbnail (hook priority 11) and uses
 * position:absolute to overlay the top-right corner of the product image.
 * The parent li.product already has position:relative.
 * Positioned at top-right to avoid conflict with the sale badge (top-left).
 */
.vh360-product-card-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 2;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.2rem 0.55rem;
    border-radius: var(--border-radius);
    background: var(--primary-color);
    color: #fff;
    line-height: 1.5;
    max-width: calc(50% - 0.5rem);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vh360-product-card-excerpt {
    font-size: 0.8125rem;
    color: var(--text-light);
    line-height: 1.5;
    margin: 0 0 0.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   S8. BRANDED EMPTY / NO-PRODUCTS STATE
   ========================================================================== */

.vh360-shop-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin: 2rem 0;
}

.vh360-shop-empty-state-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--text-light);
}

.vh360-shop-empty-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 0.5rem;
}

.vh360-shop-empty-text {
    font-size: 0.9375rem;
    color: var(--text-light);
    margin: 0 0 1.5rem;
}

.vh360-shop-empty-cta {
    display: inline-block;
    padding: 0.7rem 1.75rem;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: var(--border-radius);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    margin-bottom: 1rem;
}

.vh360-shop-empty-cta:hover {
    background: var(--secondary-color);
    color: #fff;
}

.vh360-shop-empty-admin-note {
    margin: 1.5rem auto 0;
    max-width: 520px;
    font-size: 0.8125rem;
    color: var(--text-light);
    background: color-mix(in srgb, var(--warning-color, #f59e0b) 12%, var(--surface-1, #ffffff));
    border: 1px solid var(--warning-color, #f59e0b);
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
}

/* ==========================================================================
   SHOP GRID RESET — override WooCommerce default float/width/margin rules
   that conflict with CSS Grid on the Videohub360 shop archive.
   High-specificity selectors are required so these declarations win against
   WooCommerce's bundled stylesheet regardless of load order.
   ========================================================================== */

body.woocommerce .vh360-shop-archive ul.products,
body.woocommerce-page .vh360-shop-archive ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 2rem !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 2.5rem !important;
    float: none !important;
    width: 100% !important;
}

body.woocommerce .vh360-shop-archive ul.products li.product,
body.woocommerce-page .vh360-shop-archive ul.products li.product {
    float: none !important;
    clear: none !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Disable WooCommerce's clearfix pseudo-elements on the grid container */
body.woocommerce .vh360-shop-archive ul.products::before,
body.woocommerce .vh360-shop-archive ul.products::after,
body.woocommerce-page .vh360-shop-archive ul.products::before,
body.woocommerce-page .vh360-shop-archive ul.products::after {
    display: none !important;
    content: none !important;
}

/* Override WooCommerce columns-N classes that set float/width on li.product */
body.woocommerce .vh360-shop-archive ul.products[class*="columns-"] li.product,
body.woocommerce-page .vh360-shop-archive ul.products[class*="columns-"] li.product {
    float: none !important;
    clear: none !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* High-specificity product image reset */
body.woocommerce .vh360-shop-archive ul.products li.product a img,
body.woocommerce-page .vh360-shop-archive ul.products li.product a img {
    width: 100% !important;
    aspect-ratio: 16 / 9;
    height: auto;
    object-fit: cover;
    display: block;
    margin: 0 !important;
}

@media (max-width: 991px) {
    body.woocommerce .vh360-shop-archive ul.products,
    body.woocommerce-page .vh360-shop-archive ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 1.5rem !important;
    }
}

@media (max-width: 575px) {
    body.woocommerce .vh360-shop-archive ul.products,
    body.woocommerce-page .vh360-shop-archive ul.products {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }
}
