/**
 * MacherHut Custom Styles
 * Overrides and customizations for header, navigation, and search
 *
 * @package MacherHut
 */

/* ==========================================================================
   SITE HEADER — Premium Redesign
   ========================================================================== */

/* Header wrapper */
.site-header {
    background: #fff !important;
    box-shadow: none !important;
    border: none !important;
    border-bottom: 1px solid var(--mh-border) !important;
    margin: 0 !important;
    padding: 0 !important;
}

.header-inner {
    min-height: 58px !important;
    padding: 7px 0 !important;
    margin: 0 !important;
    gap: 0.75rem !important;
}

.site-branding {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: 0 0 auto;
    margin: 0 !important;
    padding: 0 !important;
}

.site-branding .custom-logo-link,
.site-branding img,
.custom-logo-link img,
.site-branding .custom-logo-link img,
.custom-logo {
    max-height: 52px !important;
    max-width: 100% !important;
    width: auto !important;
    display: block;
    transition: transform 0.25s ease;
}

.site-logo,
.custom-logo {
    height: 52px !important;
    object-fit: contain !important;
    transform: translateY(-1px) !important;
}

/* Hide Top Bar as requested */
.top-bar {
    display: none !important;
}

/* Custom Slider Layout */
.phs-content-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 2rem;
}

.phs-content {
    text-align: left;
    flex: 1;
}

.phs-actions {
    justify-content: flex-start;
}

.phs-desc {
    margin-left: 0;
    margin-right: auto;
    white-space: normal !important;
}

.phs-image {
    flex-shrink: 0;
    width: 45%;
}

.phs-image img {
    width: 100%;
    height: 350px !important;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
    object-fit: cover;
    border-radius: 12px;
}

/* Mobile Fixes */
@media (max-width: 991px) {
    .phs-content-inner {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .phs-content {
        text-align: center !important;
    }

    .phs-actions {
        justify-content: center !important;
    }

    .phs-desc {
        margin: 0 auto 1.5rem auto !important;
    }

    .phs-image {
        width: 100% !important;
        max-width: 300px;
        margin: 0 auto;
    }

    .phs-image img {
        height: 250px !important;
    }

    .phs-title {
        white-space: normal !important;
        font-size: 1.8rem !important;
    }

    .site-branding .custom-logo-link,
    .site-branding img,
    .custom-logo-link img,
    .site-branding .custom-logo-link img,
    .custom-logo {
        max-height: 52px !important;
        max-width: 100% !important;
        width: auto !important;
    }

    .header-socials,
    .header-call-center,
    .header-divider {
        display: none !important;
    }

    .header-inner {
        flex-wrap: nowrap !important;
        gap: 10px !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    .site-branding {
        flex: 0 0 auto !important;
        order: 1 !important;
    }

    .header-actions {
        flex: 0 0 auto !important;
        order: 3 !important;
    }

    .header-search {
        flex: 1 1 auto !important;
        order: 2 !important;
        margin: 0 5px !important;
        display: flex !important;
        align-items: center !important;
    }

    .header-search .search-form {
        width: 100% !important;
        height: 38px !important;
        position: relative !important;
        display: flex !important;
        align-items: center !important;
    }

    /* Smaller search button on mobile */
    .header-search .search-submit {
        width: 38px !important;
        height: 38px !important;
        padding: 0 !important;
        top: 0 !important;
        right: 0 !important;
        bottom: auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .header-search .search-field {
        padding-right: 38px !important;
        height: 38px !important;
        font-size: 13px !important;
        margin: 0 !important;
    }
}

/* Cart Popup Buttons Side-by-Side */
.mini-cart-actions,
.woocommerce-mini-cart__buttons {
    flex-direction: row !important;
    gap: 10px !important;
}

.mini-cart-actions .button,
.woocommerce-mini-cart__buttons .button {
    flex: 1;
    text-align: center;
    margin: 0 !important;
    padding: 10px !important;
}

/* Center all Section Titles */
.section-title-v4 {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    border-bottom: none !important;
    margin-bottom: 2.5rem !important;
}

.section-title-v4 h2 {
    position: relative !important;
    padding-bottom: 0.75rem !important;
    margin-bottom: 0.5rem !important;
    width: auto !important;
}

.section-title-v4 h2::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 60px !important;
    height: 3px !important;
    background-color: var(--mh-primary) !important;
    border-radius: 2px !important;
}

/* Home page section slim spacing */
body.home .categories-circle-section {
    padding: 2rem 0 1rem !important;
}

body.home .products-grid-section-v4 {
    padding: 2rem 0 !important;
}

body.home .section-title-v4 {
    margin-bottom: 1rem !important;
}

body.home .section-title-v4 h2 {
    padding-bottom: 0.45rem !important;
    margin-bottom: 0.35rem !important;
}

body.home .section-title-v4 p {
    margin: 0 !important;
}

.product-videos-section {
    padding: 2.5rem 0;
}

.single-product-container-v4 .product-videos-section {
    margin-top: 2rem;
}

.product-videos-section .reviews-grid-v4 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.product-videos-section .review-video-card-v4,
.product-videos-section .youtube-slide-item {
    max-width: 420px;
    margin: 0 auto;
}

.product-videos-section .youtube-slide-item {
    min-width: 33.333%;
    padding: 0 0.75rem;
    box-sizing: border-box;
}

.product-videos-section .review-text-v4 {
    padding: 0.85rem;
}

.product-videos-section .review-text-v4 h4 {
    font-size: 0.9rem;
}

.product-videos-section .review-text-v4 p {
    font-size: 0.8rem;
}

.product-videos-section .video-play-btn-v4 {
    width: 44px;
    height: 44px;
}

@media (max-width: 960px) {
    .product-videos-section .youtube-slide-item {
        min-width: 50%;
    }
}

@media (max-width: 640px) {
    .product-videos-section {
        padding: 2rem 0;
    }

    .product-videos-section .reviews-grid-v4,
    .product-videos-section .youtube-slide-item {
        grid-template-columns: 1fr;
        min-width: 100%;
        max-width: 100%;
    }
}

/* Category Images Square and Larger */
.categories-circle-wrapper {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    justify-content: center !important;
    justify-items: center !important;
    gap: 0.5rem 0.35rem !important;
}

.category-circle-card {
    width: 205px !important;
}

.category-circle-img {
    width: 190px !important;
    height: 190px !important;
    border-radius: 20px !important;
    padding: 0 !important;
}

.category-circle-img img {
    border-radius: 12px !important;
}

@media (max-width: 767px) {
    .categories-circle-wrapper {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.75rem 0.4rem !important;
    }

    .category-circle-card {
        width: calc((100% - 0.35rem) / 2) !important;
        max-width: 150px !important;
    }

    .category-circle-img {
        width: min(34vw, 132px) !important;
        height: min(34vw, 132px) !important;
        border-radius: 16px !important;
    }

    .category-circle-name {
        font-size: 0.8rem !important;
        line-height: 1.2 !important;
    }
}

.custom-logo-link img:hover,
.site-branding .custom-logo-link img:hover {
    transform: scale(1.04);
    filter: drop-shadow(0 4px 14px rgba(13, 148, 136, 0.2));
}

.custom-logo-link {
    display: block;
    margin-right: 0;
}

/* Text logo fallback */
.site-title-link {
    display: block;
    margin-right: var(--mh-space-md);
}

.site-title-link .site-title {
    font-size: 2.1rem;
    font-weight: 900;
    color: var(--mh-primary);
    margin-bottom: 0.1rem;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.site-description {
    font-size: var(--mh-font-size-sm);
    color: var(--mh-text-muted);
    display: block;
}

/* ==========================================================================
   Header Search — Modern pill style
   ========================================================================== */

.header-search {
    max-width: 560px;
    flex: 1 1 560px;
    display: flex;
    justify-content: center;
    margin: 0 1rem;
}

.header-search .search-form {
    width: 100%;
}

.header-search .search-form {
    position: relative;
    display: flex;
    align-items: center;
}

.header-search .search-field {
    width: 100% !important;
    height: 42px !important;
    padding: 0 3.75rem 0 1rem !important;
    border-radius: 50px !important;
    border: 2px solid #e8e8e8 !important;
    font-size: 0.875rem !important;
    background: #f9f9f9 !important;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease !important;
    outline: none !important;
}

.header-search .search-field:focus {
    border-color: var(--mh-primary) !important;
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.2) !important;
}

.header-search .search-submit {
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    transform: none !important;
    background: var(--mh-primary) !important;
    border: none !important;
    border-radius: 0 50px 50px 0 !important;
    width: 65px !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    color: #fff !important;
    transition: background 0.2s ease !important;
}

.header-search .search-submit:hover {
    background: var(--mh-primary-dark) !important;
}

.header-search .search-submit svg {
    stroke: #fff !important;
}

/* ==========================================================================
   Header Action Icons — Bigger & Bolder
   ========================================================================== */

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.9rem !important;
    flex: 0 0 auto;
}

.header-call-center {
    gap: 0.55rem !important;
}

.call-icon {
    width: 36px !important;
    height: 36px !important;
}

.call-label {
    font-size: 0.68rem !important;
    margin-bottom: 0.18rem !important;
}

.call-number {
    font-size: 0.92rem !important;
}

.header-divider {
    height: 36px !important;
    opacity: 0.75 !important;
}

.header-action-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    color: #444 !important;
    background: #f4f4f4 !important;
    transition: all 0.2s ease !important;
    position: relative !important;
}

.header-action-link:hover {
    background: var(--mh-primary) !important;
    color: #fff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.2) !important;
}

.header-action-link svg {
    width: 22px !important;
    height: 22px !important;
}

/* Cart badge — larger and more prominent */
.cart-count {
    position: absolute !important;
    top: -4px !important;
    right: -4px !important;
    background: var(--mh-primary) !important;
    color: #fff !important;
    font-size: 0.75rem !important;
    font-weight: 800 !important;
    min-width: 22px !important;
    height: 22px !important;
    border-radius: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 4px !important;
    border: 2px solid #fff !important;
    line-height: 1 !important;
}

/* ==========================================================================
   Navigation — Slim & Premium Blue
   ========================================================================== */

.main-navigation {
    background: linear-gradient(135deg, #115e59 0%, #0d9488 60%, #0f766e 100%) !important;
    border-top: none !important;
    box-shadow: 0 2px 12px rgba(13, 148, 136, 0.3) !important;
}

.nav-menu>li>a {
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    padding: 0.45rem 1rem !important;
    margin: 0.15rem 0 !important;
    color: #fff !important;
    transition: all 0.2s ease !important;
    letter-spacing: 0.02em !important;
    text-shadow: none !important;
}

.nav-menu>li>a:hover,
.nav-menu>li.current-menu-item>a {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border-radius: var(--mh-radius) !important;
    position: relative;
}

.nav-menu>li>a:hover::after,
.nav-menu>li.current-menu-item>a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: #fff;
    border-radius: 2px;
}

/* Dropdown styling */
.nav-menu>li>.sub-menu {
    min-width: 220px;
    border-radius: var(--mh-radius);
    box-shadow: 0 8px 30px rgba(13, 148, 136, 0.15);
    border: 1px solid rgba(13, 148, 136, 0.12);
}

/* ==========================================================================
   Top Bar — Slightly refined
   ========================================================================== */

.top-bar {
    background: #f8f8f8 !important;
    border-bottom: 1px solid #eee !important;
    font-size: 0.82rem !important;
}

.top-bar-link {
    color: #555 !important;
    font-weight: 500 !important;
}

.top-bar-link:hover {
    color: var(--mh-primary) !important;
}

/* ==========================================================================
   Search Results Dropdown
   ========================================================================== */


.search-results-dropdown-v4 {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--mh-bg);
    border: 1px solid var(--mh-border-light);
    border-radius: var(--mh-radius);
    box-shadow: var(--mh-shadow-lg);
    z-index: 9999;
    margin-top: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
    display: none;
}

.search-results-dropdown-v4.active {
    display: block;
}

.search-results-dropdown-v4 .product-card-title {
    font-size: 0.9rem !important;
}

/* Ensure exactly 2 items show in Customer Reviews slider but make them BIG */
.single-product-videos {
    background-color: #ffffff !important;
}

.product-videos-section .review-video-card-v4 {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto;
}

.product-videos-section .youtube-slide-item {
    flex: 0 0 50% !important;
    min-width: 50% !important;
    max-width: 50% !important;
    padding: 0 0.5rem !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

@media (max-width: 991px) {
    .product-videos-section .youtube-slide-item {
        flex: 0 0 50% !important;
        min-width: 50% !important;
        max-width: 50% !important;
    }
}

@media (max-width: 640px) {
    .product-videos-section .youtube-slide-item {
        flex: 0 0 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
    }
}

.search-loading-v4 {
    padding: var(--mh-space-lg);
    text-align: center;
    color: var(--mh-text-muted);
}

.search-loading-v4 .search-spinner-v4 {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid var(--mh-border-light);
    border-top-color: var(--mh-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: var(--mh-space-sm);
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   Product Cards — Redesigned v4
   ========================================================================== */

.product-card {
    background: var(--mh-bg);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--mh-border-light);
    transition: all 0.28s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.product-card:hover {
    box-shadow: 0 12px 32px rgba(13, 148, 136, 0.2);
    transform: translateY(-6px);
    border-color: var(--mh-primary);
}

.product-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--mh-bg-alt);
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-card-image img {
    transform: scale(1.07);
}

.product-badge,
.sale-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    z-index: 2;
    background: var(--mh-danger);
    color: #fff;
}

/* Quick-action icon buttons (hover-only) */
.product-card-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.28s ease;
    z-index: 3;
}

.product-card:hover .product-card-actions {
    opacity: 1;
    transform: translateX(0);
}

/* Old quick view and ajax button styles removed to prevent conflicts with .pc__btn */

.product-card-content {
    padding: 1.1rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.35rem;
}

.product-card-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--mh-heading);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.1rem;
}

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

.product-card-title a:hover {
    color: var(--mh-primary);
}

.product-card-desc {
    font-size: 0.8rem;
    color: var(--mh-text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.15rem;
}

.product-card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    color: var(--mh-text-muted);
}

.product-card-rating .star-rating {
    color: #ffc107;
    font-size: 0.82rem;
}

.product-card-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--mh-primary);
    margin-top: auto;
    padding-top: 0.35rem;
}

.product-card-price del {
    color: var(--mh-text-muted);
    font-size: 0.85rem;
    font-weight: 400;
    margin-left: 4px;
}

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

/* Card Buttons — always visible, full-width */
.product-card-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 0.65rem;
}

@media (max-width: 768px) {
    .product-card-buttons {
        flex-direction: column !important;
    }
}

.product-card-buttons .btn {
    flex: 1;
    text-align: center;
    padding: 0.65rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    border: none !important;
    outline: none !important;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
}

.product-card-buttons .btn-primary {
    background: linear-gradient(135deg, var(--mh-primary) 0%, var(--mh-primary-dark) 100%);
    color: #fff;
    box-shadow: 0 4px 10px rgba(13, 148, 136, 0.25);
}

.product-card-buttons .btn-primary:hover {
    background: linear-gradient(135deg, var(--mh-primary-dark) 0%, var(--mh-primary-darker) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(13, 148, 136, 0.35);
}

.product-card-buttons .btn-accent {
    background: var(--mh-secondary);
    color: #fff;
}

.product-card-buttons .btn-accent:hover {
    background: var(--mh-secondary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.35);
}

/* ==========================================================================
   Mobile Navigation
   ========================================================================== */

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--mh-space-sm);
    width: 44px;
    height: 44px;
    justify-content: center;
    align-items: center;
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--mh-text);
    border-radius: 2px;
    transition: all var(--mh-transition);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ==========================================================================
   Global Spacing Adjustments
   ========================================================================== */

.container {
    max-width: var(--mh-container);
    padding-left: var(--mh-container-padding);
    padding-right: var(--mh-container-padding);
}

.section-padding {
    padding: var(--mh-space-3xl) 0;
}

/* ==========================================================================
   Forms
   ========================================================================== */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="url"],
input[type="tel"],
textarea,
select {
    padding: 0.875rem 1rem;
    font-size: var(--mh-font-size-md);
    border-radius: var(--mh-radius);
    border: 2px solid var(--mh-border);
    transition: all var(--mh-transition);
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--mh-primary);
    box-shadow: 0 0 0 4px var(--mh-primary-light);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    padding: 0.875rem 1.75rem;
    font-size: var(--mh-font-size-md);
    font-weight: 600;
    border-radius: var(--mh-radius);
    transition: all var(--mh-transition);
}

.btn-sm {
    padding: 0.625rem 1.25rem;
    font-size: var(--mh-font-size-sm);
}

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

.text-primary {
    color: var(--mh-primary) !important;
}

.bg-primary {
    background-color: var(--mh-primary) !important;
}

.border-primary {
    border-color: var(--mh-primary) !important;
}

.mt-0 {
    margin-top: 0 !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.ml-0 {
    margin-left: 0 !important;
}

.mr-0 {
    margin-right: 0 !important;
}

.p-0 {
    padding: 0 !important;
}

.py-0 {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.px-0 {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Responsive utilities */
@media (max-width: 991px) {
    .site-branding {
        min-height: auto;
    }

    .header-search {
        max-width: 100%;
        margin: 0;
    }
}

@media (max-width: 767px) {
    .header-search .search-field {
        height: 48px;
        padding-right: 3rem;
    }

    .header-search .search-submit {
        width: 36px;
        height: 36px;
    }

    .header-search .search-submit svg {
        width: 16px;
        height: 16px;
    }
}

/* ==========================================================================
   Single Product Info (v4)
   ========================================================================== */

.product-essential-info-v4 {
    background: #fff;
    padding: 2rem;
    border-radius: var(--mh-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    margin-bottom: 2rem;
    border: 1px solid var(--mh-border-light);
}

.product-categories-v4 {
    font-size: 0.85rem;
    color: var(--mh-text-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.product-categories-v4 a {
    color: var(--mh-primary);
}

.product-title-v4 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--mh-heading);
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.product-price-v4 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--mh-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-price-v4 del {
    color: #999;
    font-size: 1.2rem;
    font-weight: 600;
}

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

.product-short-desc-v4 {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px dashed #eaeaea;
}

.product-stock-v4 {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.product-stock-v4 .in-stock {
    color: #0f766e;
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(13, 148, 136, 0.2);
    padding: 6px 12px;
    border-radius: 50px;
    display: inline-flex;
}

.product-stock-v4 .out-of-stock {
    color: #dc3545;
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(220, 53, 69, 0.1);
    padding: 6px 12px;
    border-radius: 50px;
    display: inline-flex;
}

.product-variations-v4 {
    margin-bottom: 1.5rem;
}

.variation-label-v4 {
    font-size: 1rem;
    margin-bottom: 0.8rem;
    color: var(--mh-heading);
    font-weight: 700;
}

.variation-pills-v4 {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.variation-pill-v4 {
    padding: 8px 16px;
    border: 2px solid #ddd;
    border-radius: 50px;
    background: #fff;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    color: #444;
}

.variation-pill-v4:hover {
    border-color: var(--mh-primary);
    color: var(--mh-primary);
}

.variation-pill-v4.active {
    border-color: var(--mh-primary);
    background: var(--mh-primary);
    color: #fff;
    box-shadow: 0 4px 10px rgba(13, 148, 136, 0.2);
}

.qty-and-cart-v4 {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.qty-control-v4 {
    display: flex;
    align-items: center;
    border: 2px solid #eaeaea;
    border-radius: 50px;
    overflow: hidden;
    height: 52px;
    background: #fff;
}

.qty-btn-v4 {
    background: none;
    border: none;
    width: 44px;
    height: 100%;
    font-size: 1.2rem;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: bold;
}

.qty-btn-v4:hover {
    background: #f4f4f4;
    color: var(--mh-primary);
}

.qty-input-v4 {
    width: 50px;
    height: 100%;
    border: none;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--mh-heading);
    -moz-appearance: textfield;
    appearance: textfield;
}

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

.btn-add-to-cart-v4 {
    flex: 1;
    height: 60px !important;
    border-radius: 50px !important;
    background: #0ea5e9 !important;
    /* Beautiful Blue */
    color: #fff !important;
    border: none !important;
    font-size: 1.2rem !important;
    /* Slightly smaller to fit in one line */
    font-weight: 800 !important;
    /* Fatter text */
    white-space: nowrap !important;
    /* Prevent breaking into two lines */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3) !important;
    line-height: 1 !important;
    padding: 0 20px !important;
}

.btn-add-to-cart-v4:hover {
    background: #0284c7 !important;
    /* Darker blue on hover */
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.4) !important;
}

@media (max-width: 768px) {
    .qty-and-cart-v4 {
        flex-direction: column;
        align-items: center;
        /* Prevent qty box from stretching full width */
    }

    .qty-control-v4 {
        justify-content: center;
        width: auto !important;
        /* Let it size to its content */
    }

    .qty-input-v4 {
        width: 60px;
        /* Reset from 100px to avoid being too wide */
    }

    .btn-add-to-cart-v4 {
        flex: none !important;
        width: 100% !important;
    }
}

/* ==========================================================================
   Product Card Redesign (.pc)
   ========================================================================== */

.pc {
    background: #fff;
    border-radius: var(--mh-radius);
    overflow: hidden;
    border: 1px solid var(--mh-border-light);
    transition: all 0.28s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.pc:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: rgba(13, 148, 136, 0.2);
}

.pc__img {
    position: relative;
    padding-bottom: 100%;
    /* 1:1 aspect ratio */
    overflow: hidden;
    background: #f9f9f9;
}

.pc__img a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.pc__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.pc:hover .pc__img img {
    transform: scale(1.05);
}

.pc__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pc__badge--sale {
    background: #ff4757;
}

.pc__badge--out {
    background: #747d8c;
}

.pc__body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.pc__cat {
    font-size: 0.75rem;
    color: var(--mh-text-muted);
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pc__cat a {
    color: inherit;
}

.pc__title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    color: var(--mh-heading);
}

.pc__title a {
    color: inherit;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pc__title a:hover {
    color: var(--mh-primary);
}

.pc__price {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--mh-primary);
    margin-bottom: 1rem;
    margin-top: auto;
}

@media (max-width: 768px) {
    .pc__title {
        font-size: 0.85rem !important;
        line-height: 1.25 !important;
        margin-bottom: 0.35rem !important;
    }

    .pc__price {
        font-size: 0.95rem !important;
        margin-bottom: 0.5rem !important;
    }

    .pc__cat {
        font-size: 0.65rem !important;
        margin-bottom: 0.25rem !important;
    }

    .pc__body {
        padding: 0.65rem 0.3rem !important;
    }
}

.pc__price del {
    color: #999;
    font-size: 0.9rem;
    font-weight: 600;
    margin-right: 5px;
}

.pc__price ins {
    text-decoration: none;
}

.pc__btns {
    display: flex;
    flex-direction: row;
    gap: 0;
    margin: auto -1rem -1rem -1rem;
    border-top: 1px solid var(--mh-border-light);
    border-radius: 0 0 var(--mh-radius) var(--mh-radius);
    overflow: hidden;
}

@media (max-width: 768px) {
    .pc__btns {
        flex-direction: row !important;
        gap: 0 !important;
        margin: auto -0.3rem -0.65rem -0.3rem !important;
    }

    .pc__btn {
        font-size: .75rem !important;
        padding: 10px 8px !important;
    }
}

.pc__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex: 1;
    padding: 10px 8px;
    border-radius: 0 !important;
    border: none !important;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.5px;
}

.pc__btn svg {
    display: none;
}

/* Cart Button — premium blue outline */
.pc__btn--cart {
    background: #dbeafe;
    color: #0d9488;
    border-right: 1px solid rgba(13, 148, 136, 0.2) !important;
}

.pc__btn--cart:hover {
    background: #0d9488;
    color: #fff;
}

/* Order Button — premium solid blue gradient */
.pc__btn--order {
    background: linear-gradient(135deg, #0d9488, #0f766e);
    color: #fff;
    border: 1.5px solid transparent;
    box-shadow: 0 3px 10px rgba(13, 148, 136, 0.3);
}

.pc__btn--order:hover {
    background: linear-gradient(135deg, #0f766e, #115e59);
    box-shadow: 0 6px 18px rgba(13, 148, 136, 0.45);
    transform: translateY(-2px);
    color: #fff;
}

/* View Button — neutral */
.pc__btn--view {
    background: #f1f5f9;
    color: #475569;
    border: 1.5px solid #e2e8f0;
}

.pc__btn--view:hover {
    background: #e2e8f0;
    color: #1e293b;
}

/* ==========================================================================
   HEADER CTA BUTTON
   ========================================================================== */

.header-cta-btn {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    background: var(--mh-primary, #0d9488);
    color: #fff;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s, transform .15s;
}

.header-cta-btn:hover {
    background: #0f766e;
    transform: translateY(-1px);
}

/* ==========================================================================
   WHATSAPP FLOATING BUTTON
   ========================================================================== */

.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(37, 211, 102, .4);
    transition: transform .2s, box-shadow .2s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, .5);
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
}

/* Footer site logo */
.footer-site-logo {
    max-height: 50px;
    width: auto;
}

/* Products grid */
.products-grid-v4.products {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

@media (max-width: 768px) {
    .products-grid-v4.products {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 400px) {
    .products-grid-v4.products {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 16px;
        right: 16px;
        width: 50px;
        height: 50px;
    }

    .whatsapp-float svg {
        width: 24px;
        height: 24px;
    }
}

/* ==========================================================================
   HERO SLIDER
   ========================================================================== */

.hero-slider-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.hero-slide {
    display: none;
}

/* Checkout Form Restyling: Remove Inner Boxes and Enlarge Inputs */
.customer-info-section-v4,
.payment-method-section-v4,
.order-notes-section-v4,
.order-summary-v4 {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin-bottom: 1.5rem !important;
}

/* Enlarge input fields */
.form-group-v4 input,
.form-group-v4 select,
.form-group-v4 textarea {
    padding: 14px 16px !important;
    font-size: 16px !important;
    border-radius: 8px !important;
}

/* Make labels a bit larger and prominent too */
.form-group-v4 label {
    font-size: 14px !important;
    margin-bottom: 6px !important;
    display: inline-block;
}

/* Make the section titles in the form more clean */
.subsection-title-v4 {
    border-bottom: 1px solid var(--mh-border-light);
    padding-bottom: 8px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--mh-heading);
}

/* Fix mobile layout order for single product page */
@media (max-width: 991px) {
    .single-product-layout-v4 {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
    }

    .product-left-col-v4 {
        display: contents !important;
    }

    .product-gallery-v4 {
        order: 1 !important;
        margin-bottom: 0 !important;
    }

    .product-right-col-v4 {
        order: 2 !important;
        margin-bottom: 0 !important;
    }

    .product-tabs-v4 {
        order: 3 !important;
    }
}

/* Reduce unnecessary spaces on single product page */
.qty-and-cart-v4 {
    margin-bottom: 0.5rem !important;
}

.checkout-form-v4 {
    margin-top: 0.5rem !important;
}

.tab-content-v4 {
    padding: 1rem 1.25rem !important;
}

/* Hide empty elements to save space */
.product-short-desc-v4:empty {
    display: none !important;
}

.hero-slide.active {
    display: block;
}

.hero-slide img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}

.hero-slide a {
    display: block;
    position: relative;
}

.hero-slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 32px;
    background: linear-gradient(transparent, rgba(0, 0, 0, .7));
    color: #fff;
}

.hero-slide-content h2 {
    margin: 0 0 4px;
    font-size: 24px;
    font-weight: 700;
}

.hero-slide-content p {
    margin: 0;
    font-size: 15px;
    opacity: .9;
}

.hero-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, .85);
    border: none;
    border-radius: 50%;
    font-size: 22px;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
    transition: background .2s;
}

.hero-slider-btn:hover {
    background: #fff;
}

.hero-slider-prev {
    left: 12px;
}

.hero-slider-next {
    right: 12px;
}

@media (max-width: 768px) {
    .hero-slide img {
        height: 260px;
    }

    .hero-slide-content {
        padding: 16px 20px;
    }

    .hero-slide-content h2 {
        font-size: 18px;
    }

    .hero-slider-btn {
        width: 32px;
        height: 32px;
        font-size: 18px;
        line-height: 32px;
    }
}







/* Fixes for Menu Color and Cart Popup */
.main-navigation {
    background-color: #0ea5e9 !important;
}

.header-cart:hover .mini-cart-dropdown {
    display: none !important;
}

.header-cart.active .mini-cart-dropdown {
    display: block !important;
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important;
    width: 90vw !important;
    max-width: 450px !important;
    background: #fff !important;
    z-index: 999999 !important;
    box-shadow: 0 0 0 100vw rgba(0, 0, 0, 0.6) !important;
    border-radius: var(--mh-radius-lg) !important;
}



/* Fix Cart Page Layout and Unclosed Floats */
.woocommerce-cart-form {
    width: 100% !important;
    clear: both;
}

.cart-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    clear: both;
}

.cart-items-wrapper,
.cart-sidebar-wrapper,
.cart-collaterals {
    width: 100% !important;
    float: none !important;
}

@media (max-width: 991px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }
}

.woocommerce-cart::after,
.woocommerce-cart-form::after,
.cart-layout::after,
.shop-container-v4::after {
    content: " ";
    display: block;
    clear: both;
}



/* Make mini-cart item list internally scrollable so buttons are always visible */
.mini-cart-dropdown ul.woocommerce-mini-cart.cart_list,
.mini-cart-dropdown .wc-block-mini-cart__items,
.mini-cart-items {
    max-height: 45vh !important;
    overflow-y: auto !important;
    padding-right: 5px;
    margin-bottom: 10px !important;
}

.mini-cart-dropdown ul.woocommerce-mini-cart.cart_list li.woocommerce-mini-cart-item {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

/* Hide Back to Top button */
.back-to-top {
    display: none !important;
}

/* ==========================================================================
   SHOP PAGE - TWO COLUMN LAYOUT
   ========================================================================== */

.shop-layout {
    display: flex !important;
    gap: 30px;
    align-items: flex-start;
}

.shop-layout>.sidebar-v4 {
    width: 280px !important;
    flex: 0 0 280px !important;
    max-width: 280px !important;
    order: 1;
}

.shop-layout>.shop-content-v4 {
    flex: 1 !important;
    width: auto !important;
    max-width: none !important;
    order: 2;
    min-width: 0;
}

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

.shop-content-v4 .shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.shop-content-v4 .woocommerce-result-count {
    margin: 0;
    font-size: 13px;
    color: #666;
}

.sidebar-v4 {
    position: relative;
    z-index: 1;
}

.sidebar-v4 .sidebar-sticky {
    position: sticky;
    top: 100px;
}

.sidebar-sticky {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 20px;
    border: 1px solid #f0f0f0;
}

.sidebar-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid #0d9488;
}

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

.category-list-widget .category-item {
    border-bottom: 1px solid #f5f5f5;
}

.category-list-widget .category-item:last-child {
    border-bottom: none;
}

.category-list-widget .category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.category-list-widget .category-link:hover {
    background: #f8f8f8;
    color: #0d9488;
}

.category-list-widget .category-item.active .category-link {
    background: #0d9488;
    color: #fff;
}

.category-list-widget .category-name {
    font-weight: 500;
}

.category-list-widget .category-count {
    background: #f0f0f0;
    color: #666;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

.category-list-widget .category-item.active .category-count {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.category-list-widget .no-categories {
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 13px;
}

.shop-content-v4 {
    min-width: 0;
}

.category-description-widget {
    margin-top: 15px;
    padding: 15px;
    background: #f8f8f8;
    border-radius: 8px;
    border-left: 3px solid #0d9488;
}

.category-description-widget h4 {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.category-description-widget .category-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.shop-toolbar-left .woocommerce-result-count {
    font-size: 13px;
    color: #666;
    margin: 0;
}

.shop-toolbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.woocommerce-ordering select {
    padding: 8px 30px 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    color: #333;
    background: #fff;
    cursor: pointer;
}

.shop-view-toggle {
    display: flex;
    gap: 5px;
}

.view-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.view-btn:hover {
    border-color: #0d9488;
}

.view-btn.active {
    background: #0d9488;
    border-color: #0d9488;
    color: #fff;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.no-results-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: #f8f8f8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.no-results h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.no-results p {
    color: #666;
    margin-bottom: 20px;
}

@media (max-width: 991px) {
    .shop-layout {
        flex-direction: column !important;
    }

    .shop-layout>.sidebar-v4 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        order: 1;
    }

    .shop-layout>.shop-content-v4 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        order: 2;
    }

    .sidebar-v4 .sidebar-sticky {
        position: static;
    }

    .shop-content-v4 .shop-toolbar {
        flex-direction: column;

        align-items: flex-start;
    }

    .shop-content-v4 .shop-toolbar-right {
        width: 100%;
        justify-content: space-between;
    }
}

/* --- Fix Sidebar Alignment --- */
.shop-layout {
    align-items: flex-start !important;
}

.sidebar-v4,
.sidebar-v4 .sidebar-sticky {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.sidebar-sticky {
    border-top: none !important;
    border-radius: 0 0 12px 12px !important;
}

.shop-content-v4,
.shop-content-v4 .shop-toolbar {
    margin-top: 0 !important;
}

/* Ensure empty notices don't push content down */
.woocommerce-notices-wrapper:empty {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Adjust toolbar padding to match the sidebar's top visually */
.shop-content-v4 .shop-toolbar {
    padding-top: 0 !important;
}

/* Remove extra space at the top of the Checkout / Thank You page */
.woocommerce-checkout .section-padding {
    padding-top: 10px !important;
}

/* Product card buttons on mobile */
@media (max-width: 768px) {
    .pc__btn {
        font-size: .75rem !important;
        padding: 10px 8px !important;
    }
}

/* ==========================================================================
   Checkout Page Premium Aesthetics (V4.2)
   ========================================================================== */

.checkout-simple-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 991px) {
    .checkout-simple-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.checkout-simple-layout .checkout-section {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    padding: 1rem 2rem 2rem;
}

.checkout-simple-layout .checkout-section-title {
    color: #1a202c;
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 1rem;
}

.checkout-simple-layout .checkout-section-title svg {
    color: var(--mh-primary, #0d9488);
}

.checkout-simple-layout .input-text,
.checkout-simple-layout .input-select {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    width: 100%;
}

.checkout-simple-layout .input-text:focus,
.checkout-simple-layout .input-select:focus {
    background: #ffffff;
    border-color: var(--mh-primary, #0d9488);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
    outline: none;
}

.checkout-simple-layout .checkout-label {
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.5rem;
    display: block;
}

.checkout-simple-layout .order-review-wrapper {
    background: linear-gradient(to bottom, #ffffff, #f8fafc);
    border: 1px solid rgba(13, 148, 136, 0.1);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 1rem 2rem 2rem;
}

.checkout-simple-layout .order-review-wrapper h3 {
    color: #0f172a;
    font-weight: 800;
    font-size: 1.2rem;
    margin-top: 0;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.checkout-simple-layout .place-order-btn {
    background: linear-gradient(135deg, var(--mh-primary, #0d9488) 0%, var(--mh-primary-dark, #0f766e) 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 1.1rem;
    padding: 1rem;
    border-radius: 12px;
    border: none;
    box-shadow: 0 8px 20px rgba(13, 148, 136, 0.3);
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.checkout-simple-layout .place-order-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(13, 148, 136, 0.4);
    background: linear-gradient(135deg, var(--mh-primary-dark, #0f766e) 0%, #115e59 100%);
}

.checkout-trust {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px dashed #cbd5e1;
}

.checkout-trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
    text-align: center;
    flex: 1;
}

.checkout-trust-item svg {
    color: var(--mh-primary, #0d9488);
    width: 24px;
    height: 24px;
}

/* Fix Full-Screen Overflow Layout Issues */
html,
body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Elegant Order Summary Table */
.woocommerce-checkout-review-order-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: none !important;
}

.woocommerce-checkout-review-order-table th {
    text-align: left;
    font-weight: 600;
    color: #475569;
    padding: 12px 0;
    border-top: 1px solid #f1f5f9;
}

.woocommerce-checkout-review-order-table td {
    text-align: right;
    padding: 12px 0;
    border-top: 1px solid #f1f5f9;
}

.woocommerce-checkout-review-order-table .cart_item td.product-name {
    text-align: left;
}

.woocommerce-checkout-review-order-table .order-total th,
.woocommerce-checkout-review-order-table .order-total td {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    border-top: 2px solid #e2e8f0;
}

/* WooCommerce Checkout Payment Methods Beautiful Design */
#payment ul.payment_methods {
    list-style: none;
    padding: 0;
    margin: 0;
}

#payment ul.payment_methods li.wc_payment_method {
    margin-bottom: 12px;
}

#payment ul.payment_methods li.wc_payment_method .payment-method-header {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    background: #fff;
    transition: all 0.3s ease;
}

#payment ul.payment_methods li.wc_payment_method:has(input[type="radio"]:checked) .payment-method-header {
    border: 1px solid #22c55e;
    background: #dcfce7;
    box-shadow: 0 4px 6px -1px rgba(34, 197, 94, 0.1);
}

#payment ul.payment_methods li.wc_payment_method .payment-method-header>input.input-radio {
    margin-right: 12px !important;
    margin-top: 0 !important;
    width: 18px !important;
    height: 18px !important;
    cursor: pointer;
    vertical-align: middle;
}

#payment ul.payment_methods li.wc_payment_method .payment-method-header>label {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    font-weight: 600;
    color: #0f172a;
    font-size: 16px;
    cursor: pointer;
    display: inline-block !important;
    vertical-align: middle;
}

#payment ul.payment_methods li.wc_payment_method .payment_box {
    width: 100%;
    margin-top: 12px;
    padding: 15px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    color: #64748b;
}

#payment ul.payment_methods li.payment_method_macherhut_bkash .payment_box {
    padding: 0;
    background: transparent;
    border: none;
    margin-top: 0;
}

#shipping_method {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: right;
}

#shipping_method li {
    margin-bottom: 4px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}

#shipping_method li input {
    margin: 0;
}

/* ==========================================================================
   Product Description Tables
   ========================================================================== */
.woocommerce-product-details__short-description table,
.woocommerce-Tabs-panel table,
.product-description-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

.woocommerce-product-details__short-description table th,
.woocommerce-Tabs-panel table th,
.product-description-content table th,
.woocommerce-product-details__short-description table td,
.woocommerce-Tabs-panel table td,
.product-description-content table td {
    padding: 12px 16px;
    border: 1px solid #000000;
    text-align: left;
    vertical-align: middle;
}

.woocommerce-product-details__short-description table th,
.woocommerce-Tabs-panel table th,
.product-description-content table th {
    background-color: #f8fafc;
    font-weight: 600;
    color: #1e293b;
}

.woocommerce-product-details__short-description table tr:nth-child(even),
.woocommerce-Tabs-panel table tr:nth-child(even),
.product-description-content table tr:nth-child(even) {
    background-color: #fcfcfc;
}

.woocommerce-product-details__short-description table tr:hover,
.woocommerce-Tabs-panel table tr:hover,
.product-description-content table tr:hover {
    background-color: #f1f5f9;
}

/* Remove Border and Padding from Single Product Gallery */
.product-gallery-v4,
.main-image-wrapper-v4 {
    border: none !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.main-image-wrapper-v4 img {
    border-radius: var(--mh-radius-lg) !important;
}

/* Custom Price Color Requested by User */
.product-card-price,
.product-price-v4,
.pc__price,
.product-card-price-v4,
.product-display-price-v4,
.item-price-v4,
.mini-cart-item-price,
.price-label-v4,
.live-search-price-v4,
.sticky-bar-price,
.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
    color: #0f766e !important;
}