@import url("global.css");

/* Layout */
@import url("layout/navigation.css");
@import url("layout/header.css?v=2.7");
@import url("components/product-card.css?v=1.4");
@import url("layout/footer.css?v=1.2");

.woocommerce-js h2 {
    margin-bottom: 16px;
}

/* ==========================================================================
   HIRAMON TESTIMONIALS - REVIEW SUBMISSION FORM
   ========================================================================== */

/* Toggle Action Button Container */
.hm-testimonials__action-wrap {
    margin-top: 2.2rem;
    display: flex;
    justify-content: center;
}

/* .hm-btn--outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    background-color: transparent;
    color: #8c3b24;
    border: 1.5px solid #8c3b24;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: all 0.25s ease-in-out;
} */
.toggle-review-btn {
    font-size: 1rem;
    padding: 12px 24px;
}

.toggle-review-btn:hover,
.toggle-review-btn:focus-visible,
.toggle-review-btn:focus {
    background-color: #5B0B00;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(140, 59, 36, 0.2);
    border: 2px solid var(--hm-color-maroon);
}

/* Expandable Drawer Panel */
.hm-review-panel {
    max-width: 760px;
    margin: 2.5rem auto 3rem;
    background: #ffffff;
    border: 1px solid #e7ded4;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(44, 24, 16, 0.06);
    overflow: hidden;
    animation: hmFadeSlideDown 0.35s ease forwards;
}

@keyframes hmFadeSlideDown {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hm-review-panel__inner {
    padding: 2.25rem 2rem;
}

.hm-review-panel__header {
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 1px dashed #e7ded4;
    padding-bottom: 1.25rem;
}

.hm-review-panel__header h3 {
    font-size: 1.5rem;
    color: #5B0B00;
    margin: 0 0 0.5rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.hm-review-panel__header p {
    font-size: 0.925rem;
    color: #7a6e65;
    margin: 0;
}

/* Form Layout & Fields */
.hm-review-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.hm-review-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

@media (max-width: 640px) {
    .hm-review-form__row {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

.hm-form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.hm-form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #433935;
    margin-bottom: 0.45rem;
}

.hm-form-group input[type="text"],
.hm-form-group select,
.hm-form-group textarea {
    width: 100%;
    padding: 0.50rem 0.95rem;
    background-color: #faf8f5;
    border: 1px solid #d8cdc2;
    border-radius: 4px;
    font-size: 0.925rem;
    color: #2b2523;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    box-sizing: border-box;
}

.hm-form-group input[type="text"]:focus,
.hm-form-group select:focus,
.hm-form-group textarea:focus {
    outline: none;
    border-color: #8c3b24;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(140, 59, 36, 0.12);
}

.hm-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.hm-form-group input[type="file"] {
    font-size: 0.875rem;
    color: #7a6e65;
    padding: 0.4rem 0;
}

.hm-form-group input[type="file"]::file-selector-button {
    padding: 0.45rem 1rem;
    border: 1px solid #d8cdc2;
    background: #f4ede6;
    color: #433935;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.825rem;
    cursor: pointer;
    margin-right: 0.75rem;
    transition: background 0.2s ease;
}

.hm-form-group input[type="file"]::file-selector-button:hover {
    background: #eae0d5;
}

/* Footer Buttons */
.hm-review-form__footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.75rem;
}

.hm-btn--gold {
    padding: 0.85rem 1.85rem;
    background-color: #5B0B00;
    /* Primary Brand Accent */
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease;
}

.hm-btn--gold:hover {
    background-color: #732f1c;
    box-shadow: 0 4px 14px rgba(140, 59, 36, 0.25);
    transform: translateY(-1px);
}

.hm-btn--gold:disabled {
    background-color: #bfa39b;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.hm-btn--text {
    background: transparent;
    border: none;
    color: #7a6e65;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.hm-btn--text:hover {
    color: #2b2523;
}

/* Status Messages */
.hm-form-message {
    padding: 0.85rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-top: 0.5rem;
}

.hm-form-message--success {
    background-color: #eaf6ee;
    color: #1a6332;
    border: 1px solid #bce2c7;
}

.hm-form-message--error {
    background-color: #fdf0ee;
    color: #a82315;
    border: 1px solid #f6c8c3;
}



/* ==========================================================================
   HIRAMON MOBILE STICKY BOTTOM BAR
   ========================================================================== */

/* Completely hide on desktop screens */
@media (min-width: 769px) {
    .hm-mobile-nav {
        display: none !important;
    }
}

/* Mobile Display & Safe Spacing */
@media (max-width: 768px) {

    /* Prevent sticky bar from covering page footer/content */
    .hm-footer {
        padding-bottom: calc(100px + env(safe-area-inset-bottom, 12px)) !important;
    }

    .hm-mobile-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 9999;
        pointer-events: none;
        /* Let empty space pass clicks through */
        padding: 0 10px calc(12px + env(safe-area-inset-bottom, 0px));
    }

    .hm-mobile-nav__wrapper {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        max-width: 480px;
        margin: 0 auto;
    }

    /* WhatsApp Floating Circle Button */
    .hm-mobile-nav__wa-btn {
        pointer-events: auto;
        width: 52px;
        height: 52px;
        flex-shrink: 0;
        background-color: #25D366;
        color: #ffffff;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 18px rgba(37, 211, 102, 0.4);
        position: relative;
        text-decoration: none;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .hm-mobile-nav__wa-btn:active {
        transform: scale(0.92);
    }

    .hm-mobile-nav__wa-btn svg {
        width: 28px;
        height: 28px;
    }

    .hm-mobile-nav__pulse {
        position: absolute;
        inset: -3px;
        border-radius: 50%;
        border: 2px solid #25D366;
        opacity: 0.8;
        animation: hmWaPulse 2.4s infinite cubic-bezier(0.25, 0.46, 0.45, 0.94);
        pointer-events: none;
    }

    @keyframes hmWaPulse {
        0% {
            transform: scale(1);
            opacity: 0.8;
        }

        60% {
            transform: scale(1.25);
            opacity: 0;
        }

        100% {
            transform: scale(1.25);
            opacity: 0;
        }
    }

    /* Actions Rounded Island */
    .hm-mobile-nav__bar {
        pointer-events: auto;
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: space-around;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        /* border: 1px solid #e5e5e5; */
        box-shadow: 0 8px 24px rgba(44, 24, 16, 0.20);
        border-radius: 35px;
        height: 56px;
        padding: 0 8px;
    }

    /* Action Links & Buttons */
    .hm-mobile-nav__link {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex: 1;
        height: 100%;
        color: #1a1a1a;
        text-decoration: none;
        background: transparent;
        border: none;
        padding: 0;
        cursor: pointer;
        position: relative;
        transition: color 0.15s ease;
    }

    .hm-mobile-nav__link:active,
    .hm-mobile-nav__link:hover {
        color: #8c3b24;
        /* Terracotta accent */
    }

    .hm-mobile-nav__icon-box {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hm-mobile-nav__icon {
        width: 20px;
        height: 20px;
        stroke-width: 1.9;
    }

    .hm-mobile-nav__label {
        font-size: 0.65rem;
        font-weight: 600;
        margin-top: 2px;
        letter-spacing: 0.01em;
    }

    /* Dynamic Notification Count Badge */
    .hm-mobile-nav__badge {
        position: absolute;
        top: -6px;
        right: -10px;
        background-color: #8c3b24;
        color: #ffffff;
        font-size: 0.625rem;
        font-weight: 700;
        min-width: 17px;
        height: 17px;
        line-height: 17px;
        border-radius: 9px;
        text-align: center;
        padding: 0 4px;
        box-sizing: border-box;
        border: 1.5px solid #ffffff;
    }

    .hm-mobile-nav__badge.is-empty {
        display: none;
    }

    /* Expandable Search Drawer */
    .hm-mobile-search-drawer {
        position: fixed;
        left: 16px;
        right: 16px;
        bottom: calc(76px + env(safe-area-inset-bottom, 0px));
        background: #ffffff;
        border-radius: 12px;
        border: 1px solid #e7ded4;
        box-shadow: 0 10px 30px rgba(44, 24, 16, 0.18);
        padding: 10px 14px;
        display: none;
        pointer-events: auto;
        z-index: 10000;
        animation: hmSlideUp 0.2s ease forwards;
    }

    .hm-mobile-search-drawer.is-active {
        display: block;
    }

    @keyframes hmSlideUp {
        from {
            opacity: 0;
            transform: translateY(8px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .hm-mobile-search-drawer__content {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .hm-mobile-search-drawer__form {
        flex: 1;
        display: flex;
        align-items: center;
        background: #faf8f5;
        border: 1px solid #d8cdc2;
        border-radius: 6px;
        padding: 0 10px;
    }

    .hm-mobile-search-drawer__form input[type="search"] {
        flex: 1;
        border: none;
        background: transparent;
        padding: 8px 4px;
        font-size: 0.875rem;
        color: #2b2523;
        outline: none;
    }

    .hm-mobile-search-drawer__form button {
        background: transparent;
        border: none;
        color: #8c3b24;
        cursor: pointer;
        padding: 4px;
        display: flex;
    }

    .hm-mobile-search-drawer__close {
        background: transparent;
        border: none;
        font-size: 1.1rem;
        color: #7a6e65;
        cursor: pointer;
        padding: 4px 8px;
    }

    .hm-mobile-nav__bar {
        pointer-events: none;
        opacity: 0;
        transform: translateY(140%) scale(0.95);
        transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
            opacity 0.25s ease;
        will-change: transform, opacity;
    }

    /* Slides up smoothly when scrolled past the header */
    .hm-mobile-nav__bar.is-visible {
        pointer-events: auto;
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}




/**********==========Start Smooth scroller CSS==========**********/
#ast-scroll-top {
    background-color: #ffffff;
    font-size: 15px;
    position: fixed;
    text-align: center;
    cursor: pointer;
    z-index: 99;
    width: 40px;
    height: 40px;
    line-height: 2.1;
    color: #5b0b00;
    border-radius: 50%;
    content: "";
    outline: inherit;
    bottom: 100px !important;
    display: none !important;
}

.ast-scroll-top-icon .ast-icon.icon-arrow {
    margin: 15px auto auto;
    display: block;
    width: 15px;
}

/**====================== Start Global Responsive CSS ========================**/
@media (max-width: 580px) {

    .hm-review-panel__inner {
        padding: 20px 20px;
    }

    .hm-btn--gold {
        padding: 10px 10px;
        font-size: 14px;
        letter-spacing: 0.0;
    }

    .hm-review-form__footer {
        gap: 10px;
    }
}



/* ==========================================================================
   HIRAMON PRODUCT LISTING GRID CSS 
   ========================================================================== */
.hm-archive-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

.hm-product-listing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
    margin: 0;
    padding: 0;
}

@media (max-width: 991px) {
    .hm-product-listing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 580px) {
    .hm-product-listing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}



/* ==========================================================================
   YITH WISHLIST - ICON-ONLY NORMALIZATION FOR PRODUCT CARD
   ========================================================================== */

.yith-wcwl-add-to-wishlist-button .yith-wcwl-add-to-wishlist-button__label {
    display: none;
}

.yith-wcwl-add-to-wishlist-button.yith-wcwl-add-to-wishlist-button--anchor svg.yith-wcwl-icon-svg,
.yith-wcwl-add-to-wishlist-button.yith-wcwl-add-to-wishlist-button--anchor img {
    width: 22px !important;
    max-width: 22px !important;
}