/* =========================================================
   Aroma Amour — site-wide responsive (loads last)
   ========================================================= */

img,
video,
iframe,
embed,
object {
    max-width: 100%;
    height: auto;
}

table {
    max-width: 100%;
}

.overflow-x-auto,
.woocommerce-cart-form,
.woocommerce table.shop_table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ----- Inner pages / generic content ----- */
.main-wrapper {
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
}

.content > .wrapper,
.aroma-page-content,
.content-inner > .wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 16px 48px;
}

.aroma-page-content h2 {
    font-size: clamp(22px, 5vw, 32px);
    margin-bottom: 16px;
}

.aroma-page-content .entry-content,
.aroma-page-content .center-content,
.content .center-content {
    font-size: 15px;
    line-height: 1.7;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ----- Footer ----- */
footer.custom-footer-v2 .footer-content h3 {
    font-size: 22px;
}

footer.custom-footer-v2 .newsletter-form .btn {
    background: #f59425;
    color: #fff;
    border: 0;
}

.scroll-to-top-btn {
    background: #f59425 !important;
    color: #fff !important;
    border: 0 !important;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.aroma-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ----- Homepage extras ----- */
.him-her .col-md-6 {
    margin-bottom: 16px;
}

.him-her img {
    width: 100%;
    display: block;
    border-radius: 4px;
}

.home-about .about-img-left img,
.home-about .about-img-right img {
    width: 100%;
    display: block;
    margin-bottom: 12px;
    border-radius: 4px;
}

/* ----- Shop archive ----- */
.aroma-shop-page {
    padding: 20px 0 48px;
}

.aroma-shop-page .woocommerce-products-header {
    margin-bottom: 20px;
}

.aroma-shop-page .woocommerce-products-header h1,
.aroma-shop-page .page-title {
    font-size: clamp(24px, 5vw, 36px);
    font-weight: 700;
    margin: 0 0 8px;
}

.aroma-shop-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.aroma-shop-page ul.products {
    list-style: none;
    margin: 0;
    padding: 0;
    display: none !important;
}

/* ----- WooCommerce cart / checkout / account ----- */
.woocommerce-cart .main-wrapper,
.woocommerce-checkout .main-wrapper,
.woocommerce-account .main-wrapper {
    padding-top: 40px;
    padding-bottom: 40px;
}

.woocommerce-cart-form,
.woocommerce table.shop_table_responsive,
.shop_table_responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.woocommerce .cart-collaterals,
.woocommerce-checkout #customer_details,
.woocommerce-checkout #order_review {
    width: 100%;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce-page form .input-text {
    max-width: 100%;
    width: 100%;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
    max-width: 100%;
}

.woocommerce .aroma-cart-drawer a.button,
.woocommerce .aroma-cart-drawer button.button {
    max-width: 100%;
    float: none;
}

/* =========================================================
   Tablet and below
   ========================================================= */
@media (max-width: 991px) {
    .main-wrapper {
        padding-top: 36px !important;
        padding-left: 12px;
        padding-right: 12px;
    }

    .inner-title {
        padding-bottom: 28px;
    }

    .inner-title h1 {
        font-size: clamp(24px, 7vw, 32px) !important;
        margin-bottom: 8px !important;
        line-height: 1.2;
    }

    .inner-title h6 {
        font-size: 13px;
        opacity: 0.8;
    }

    .innerheader .logoforthisone img,
    .innerheader img {
        width: auto !important;
        max-height: 56px;
    }

    /* Neutralize desktop-only floats from assets/css/style.css */
    .lpheader .col-md-7.hero-lp,
    .lpheader .col-md-5,
    .topheaderbox,
    .stamp,
    ul.main-menu,
    ul.main-menu li {
        float: none !important;
    }

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

    .lp-stats {
        padding: 28px 0 !important;
    }

    .lp-stats h4 {
        font-size: clamp(28px, 8vw, 40px) !important;
        margin-bottom: 0 !important;
    }

    .lp-stats span {
        font-size: 11px;
        letter-spacing: 0.04em;
        margin-top: 4px !important;
    }

    .lp-stats .col-6 {
        margin-bottom: 18px;
    }

    .col-md-6.aboutcontent h1,
    .home-about .aboutcontent h1 {
        font-size: clamp(32px, 10vw, 48px) !important;
        margin: 10px 0 12px !important;
        line-height: 1.1;
    }

    .home-about .container.py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .home-about .aboutcontent {
        margin-bottom: 28px;
    }

    .col-md-5.about-img-left img {
        margin: 0 0 12px !important;
    }

    .titlerow h3 {
        font-size: clamp(24px, 6vw, 34px) !important;
    }

    .titlerow p {
        font-size: 14px;
    }

    section.product-list {
        padding: 40px 0 !important;
    }

    .logo-marquee img {
        height: 64px !important;
        padding: 0 16px !important;
    }

    .him-her {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    /* About page extras */
    .about-journey-float {
        position: static !important;
        transform: none !important;
        margin: 16px 0 0;
        max-width: 100%;
    }

    /* Single product */
    .aroma-sp-wrap {
        padding-left: 12px;
        padding-right: 12px;
    }

    .aroma-sp-fbt-row {
        flex-direction: column;
        align-items: stretch !important;
    }

    .aroma-sp-fbt-item {
        min-width: 0 !important;
        width: 100%;
    }

    .aroma-sp-fbt-plus {
        display: none;
    }

    .aroma-sp-feature-icons {
        justify-content: space-between;
        gap: 8px;
        flex-wrap: wrap;
    }

    .aroma-sp-feature {
        width: calc(50% - 8px) !important;
        margin-bottom: 8px;
    }

    .aroma-sp-reviews h2,
    .aroma-sp-related h2 {
        font-size: 22px !important;
    }

    .aroma-shop-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =========================================================
   Phones
   ========================================================= */
@media (max-width: 767px) {
    .main-wrapper {
        padding-top: 24px !important;
    }

    section.product-list .container,
    .him-her .container,
    .lp-stats .container,
    .home-about .container,
    .aroma-shop-page .container,
    footer.custom-footer-v2 > .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .single-list-item h4 {
        min-height: 0;
    }

    .single-list-item .product-card-body {
        padding: 10px 10px 14px;
    }

    .single-list-item h4 a {
        font-size: 12px !important;
        line-height: 1.3;
    }

    .single-list-item h6 {
        font-size: 10px !important;
        margin-bottom: 6px !important;
    }

    .single-list-item .list-price {
        font-size: 14px !important;
    }

    .single-list-item a.linkbtn {
        font-size: 12px !important;
        padding: 10px 8px !important;
    }

    .titlerow {
        margin-bottom: 18px !important;
        text-align: left;
    }

    .lp-stats .row > [class*="col-"] {
        text-align: center;
    }

    footer.custom-footer-v2 {
        text-align: left;
    }

    footer.custom-footer-v2 .py-5 {
        padding-top: 2rem !important;
    }

    .aroma-footer-bottom .container {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .aroma-footer-bottom .disclaimer {
        text-align: center !important;
        display: block;
        line-height: 1.4;
    }

    .woocommerce-cart-form .product-thumbnail img {
        width: 48px;
        height: auto;
    }

    .woocommerce .cart_totals,
    .woocommerce-checkout-review-order {
        margin-top: 20px;
    }

    .woocommerce-checkout .col2-set .col-1,
    .woocommerce-checkout .col2-set .col-2 {
        float: none !important;
        width: 100% !important;
    }

    .aroma-mini-cart-buttons {
        grid-template-columns: 1fr !important;
    }

    .aroma-sp-feature {
        width: 100% !important;
        display: flex;
        align-items: center;
        gap: 12px;
        text-align: left;
    }
}

@media (max-width: 575px) {
    .logo-marquee img {
        height: 48px !important;
        padding: 0 10px !important;
    }

    .lp-stats h4 {
        font-size: 26px !important;
    }

    .home-about .about-img-left,
    .home-about .about-img-right {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }

    .woocommerce table.shop_table_responsive tr {
        display: block;
        margin-bottom: 14px;
        border: 1px solid #eee;
        padding: 10px;
    }

    .woocommerce table.shop_table_responsive td {
        display: block;
        text-align: right !important;
        border: 0 !important;
    }

    .woocommerce table.shop_table_responsive td::before {
        content: attr(data-title) ": ";
        float: left;
        font-weight: 600;
        color: #555;
    }
}

/* Prevent accidental horizontal page scroll */
html,
body {
    overflow-x: hidden;
}

/* WOW.js: hide animated elements until they enter view */
.wow {
    visibility: hidden;
}

.wow.animated {
    visibility: visible;
}

@media (prefers-reduced-motion: reduce) {
    .wow {
        visibility: visible !important;
        animation: none !important;
    }
}
