/* Scoped styles for Frontend Content Pages (About, Policies, etc.) */

/* Prevent global horizontal scroll safely */
html,
body {
    max-width: 100%;
}
body {
    overflow-x: hidden;
}

.frontend-page-content-section {
    padding: 90px 0;
    overflow-x: hidden; /* Scoped safety */
}

.frontend-page-content-wrap {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
    box-sizing: border-box;
}

.frontend-page-title {
    color: #F2C88A;
    margin-bottom: 34px;
    font-weight: 800;
    text-align: center;
}

.frontend-page-content {
    width: 100%;
    max-width: 100%;
    color: #F2C88A;
    text-align: center;
    line-height: 1.85;
    font-size: 18px;
    overflow-wrap: anywhere;
    word-break: normal;
    box-sizing: border-box;
}

/* Force primary color and prevent overflow for all nested elements */
.frontend-page-content *,
.frontend-page-content p,
.frontend-page-content li,
.frontend-page-content span,
.frontend-page-content div {
    color: #F2C88A !important;
    max-width: 100% !important;
    overflow-wrap: anywhere;
    box-sizing: border-box;
}

.frontend-page-content h1,
.frontend-page-content h2,
.frontend-page-content h3,
.frontend-page-content h4,
.frontend-page-content h5,
.frontend-page-content h6 {
    color: #F2C88A !important;
    text-align: center;
    margin-top: 28px;
    margin-bottom: 16px;
    font-weight: 800;
    max-width: 100%;
}

.frontend-page-content ul,
.frontend-page-content ol {
    display: inline-block;
    max-width: 100%;
    text-align: left;
    margin: 16px auto;
    padding-left: 24px;
}

.frontend-page-content a {
    color: #F2C88A !important;
    text-decoration: underline;
}

/* Responsive media handling */
.frontend-page-content img,
.frontend-page-content video,
.frontend-page-content iframe {
    max-width: 100% !important;
    height: auto !important;
}

.frontend-page-content table {
    width: 100% !important;
    display: block;
    overflow-x: auto;
    margin-left: auto;
    margin-right: auto;
    color: #F2C88A !important;
    border-collapse: collapse;
}

/* Page banner overflow safety */
.page-banner {
    max-width: 100%;
    overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .frontend-page-content-section {
        padding: 70px 0;
    }
    .frontend-page-content-wrap {
        max-width: 760px;
        padding: 0 22px;
    }
}

@media (max-width: 575.98px) {
    .frontend-page-content-section {
        padding: 50px 0;
    }
    .frontend-page-content-wrap {
        padding: 0 18px;
    }
    .frontend-page-content {
        font-size: 16px;
        line-height: 1.75;
    }
}

/* Footer Scoped Styles */
.frontend-footer-main-row {
    align-items: flex-start;
}

.frontend-footer-widget {
    max-width: 360px;
    margin: 0 auto;
}

.frontend-footer-logo {
    max-height: 328px; /* 82px * 4 */
    width: min(760px, 100%); /* 190px * 4, constrained to 100% parent */
    object-fit: contain;
    display: block;
}

.frontend-footer-logo-link {
    display: inline-flex;
    align-items: center;
    width: 100%;
}

.frontend-footer-logo-text {
    color: #F2C88A;
    font-size: 24px;
    font-weight: 800;
    text-decoration: none;
    transition: 0.3s;
}

.frontend-footer-logo-text:hover {
    color: #fff;
}

.frontend-footer-copyright {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

@media (min-width: 992px) {
    .frontend-footer-brand-widget .footer-brand-wrap {
        text-align: left;
    }
}

@media (max-width: 991.98px) {
    .footer__item {
        text-align: center;
        margin-bottom: 30px;
    }
    .frontend-footer-logo {
        width: min(520px, 90vw);
        max-height: 240px;
        margin-left: auto;
        margin-right: auto;
    }
    .frontend-footer-logo-link,
    .frontend-footer-logo-text {
        justify-content: center;
        text-align: center;
    }
    .footer__item ul {
        display: inline-block;
        text-align: left;
    }
    .social-icon {
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .frontend-footer-logo {
        width: min(360px, 88vw);
        max-height: 180px;
    }
}

/* Homepage AJAX Section Skeletons */
.frontend-section-skeleton {
    width: 100%;
    min-height: 280px;
    border-radius: 24px;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.04),
        rgba(242, 200, 138, 0.08),
        rgba(255, 255, 255, 0.04)
    );
    background-size: 200% 100%;
    animation: frontendSkeletonPulse 1.5s ease-in-out infinite;
}

.frontend-section-skeleton-promo {
    min-height: 420px;
}

.frontend-section-skeleton-products {
    min-height: 620px;
}

.frontend-section-skeleton-deal {
    min-height: 720px;
}

.frontend-section-skeleton-marquee {
    min-height: 170px;
    border-radius: 0;
}

.frontend-section-skeleton-early-products {
    min-height: 620px;
}

@keyframes frontendSkeletonPulse {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.js-home-section-loader {
    transition: opacity 0.4s ease;
}

.js-home-section-loader.is-loaded {
    opacity: 1;
}

/* Frontend header action icons */
.top__header .top__wrapper .account__wrap .account .user__icon a i,
.top__header .top__wrapper .account__wrap .cart .cart__icon i,
.top__header .top__wrapper .search__wrp button i {
    font-size: 26px !important;
    line-height: 1 !important;
}

.top__header .top__wrapper .account__wrap .account .user__icon,
.top__header .top__wrapper .account__wrap .cart .cart__icon,
.top__header .top__wrapper .search__wrp button {
    min-width: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.top__header .top__wrapper .search__wrp button {
    height: 100%;
    top: 0;
    left: 10px;
}

/* Mobile menu icon thickness */
.header-bar span {
    height: 3px !important;
}

/* Sub-menu icon size */
.header-wrapper .main-menu li .sub-menu li a i {
    font-size: 18px !important;
}

/* Header spacing and responsiveness */
.top__header .top__wrapper .account__wrap {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: nowrap;
}

@media (max-width: 1600px) {
    .top__header .top__wrapper .account__wrap {
        gap: 20px;
    }
}

@media (max-width: 1199.98px) {
    .top__header .top__wrapper .account__wrap {
        gap: 15px;
    }
}

@media (max-width: 991.98px) {
    .top__header .top__wrapper .account__wrap .acc__cont {
        display: none;
    }
    .top__header .top__wrapper .account__wrap {
        gap: 12px;
    }
    .top__header .top__wrapper .search__wrp {
        display: none !important;
    }
    .top__header .top__wrapper .account__wrap {
        margin-left: 0 !important;
    }
    .top__header .top__wrapper .main__logo {
        margin-left: 0 !important;
        margin-right: auto !important;
    }
}

/* Frontend Toast Notifications */
.frontend-toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.frontend-toast {
    min-width: 280px;
    max-width: 380px;
    border-radius: 16px;
    padding: 16px 18px;
    background: #F2C88A;
    color: #2d1d0a;
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: auto;
    border: 1px solid rgba(255,255,255,0.1);
}

.frontend-toast.is-error {
    background: #dc3545;
    color: #fff;
}

.frontend-toast-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    background: rgba(0,0,0,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.frontend-toast.is-error .frontend-toast-icon {
    background: rgba(255,255,255,0.2);
}

.frontend-toast-message {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

/* Loading state for buttons */
.js-add-to-cart.is-loading,
.js-toggle-wishlist.is-loading {
    opacity: 0.7;
    pointer-events: none;
}

.js-add-to-cart.disabled {
    background-color: #6c757d !important;
    color: #fff !important;
    cursor: not-allowed;
    pointer-events: none;
}

.js-add-to-cart.disabled i {
    color: #ccc !important;
}

/* Wishlist Active State */
.wishlist.is-wishlisted i,
.wishlist.is-active i {
    color: #F2C88A !important;
}

/* Cart & Wishlist Page Refinements */
.shopping-cart .product-details img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.shopping-cart .product-quantity input {
    width: 50px;
    height: 40px;
    background: transparent;
    border: 1px solid rgba(242, 200, 138, 0.3);
    color: #fff;
    text-align: center;
    border-radius: 0;
    border-left: none;
    border-right: none;
}

/* Hide number arrows */
.shopping-cart .product-quantity input::-webkit-outer-spin-button,
.shopping-cart .product-quantity input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.shopping-cart .product-quantity input[type=text],
.shopping-cart .product-quantity input[type=number] {
    -moz-appearance: textfield;
}

.quantity-control .qty-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(242, 200, 138, 0.3);
    color: #F2C88A;
    cursor: pointer;
    transition: 0.3s;
}

.quantity-control .qty-btn:hover {
    background: rgba(242, 200, 138, 0.1);
}

.quantity-control .qty-btn.minus {
    border-radius: 6px 0 0 6px;
}

.quantity-control .qty-btn.plus {
    border-radius: 0 6px 6px 0;
}

.shopping-cart .remove-product {
    background: transparent;
    border: none;
    color: #ff4d4d;
    cursor: pointer;
    transition: 0.3s;
}

.shopping-cart .remove-product:hover {
    color: #ff0000;
    transform: scale(1.2);
}

.cart-page .totals-value {
    color: #F2C88A;
    font-size: 20px;
}

/* Mobile Cart View Adjustments */
@media (max-width: 767.98px) {
    .shopping-cart.mobile-view .product {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 15px;
    }
    .shopping-cart.mobile-view .product-details {
        width: 100%;
    }
}

/* Wishlist Action Buttons */
.wishlist-add-to-cart {
    background: #F2C88A;
    color: #2d1d0a;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: 0.3s;
    border: none;
}

.wishlist-add-to-cart:hover {
    background: #fff;
    color: #2d1d0a;
}

/* Frontend Header Search & Suggestions Dropdown */
.top__header .top__wrapper .search__wrp {
    position: relative;
}
.top__header .top__wrapper .search__wrp form {
    position: relative;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}
.header-search-suggestions {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 9999;
    display: none;
    background: #111;
    border: 1px solid rgba(242, 200, 138, 0.35);
    border-radius: 18px;
    padding: 10px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.header-search-suggestions.is-open {
    display: block;
}

.header-search-suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 14px;
    color: #fff;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}
.header-search-suggestion-item:hover {
    background: rgba(242, 200, 138, 0.12);
    color: #F2C88A;
}
.header-search-suggestion-item img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 10px;
    flex: 0 0 44px;
}
.header-search-suggestion-item strong {
    font-weight: 600;
}
.header-search-suggestion-item small {
    display: block;
    opacity: 0.65;
    margin-top: 2px;
}
.header-search-suggestion-price {
    margin-left: auto;
    color: #F2C88A;
    white-space: nowrap;
}
.header-search-suggestions-empty {
    padding: 12px;
    color: rgba(255,255,255,.75);
    text-align: center;
}

/* Fix header cart price wrap issue and display inline */
.top__header .top__wrapper .account__wrap .cart {
    width: auto !important;
    min-width: 174px;
}
.top__header .top__wrapper .account__wrap .cart .c__one {
    white-space: nowrap !important;
    display: inline-block;
}

/* Header Action Buttons Standardization */
.top__header .top__wrapper .account__wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: auto !important;
}

.top__header .top__wrapper .account__wrap .header-action-pill {
    min-height: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    overflow: hidden;
    text-decoration: none;
    white-space: nowrap;
    box-sizing: border-box;
    transition: 0.3s;
}

.top__header .top__wrapper .account__wrap .header-action-wishlist,
.top__header .top__wrapper .account__wrap .header-action-account {
    background-color: #ffffff;
    width: 156px;
    color: #191919;
    border: none;
}

.top__header .top__wrapper .account__wrap .header-action-cart {
    background-color: #ffffff;
    width: 174px;
    color: #191919;
    border: none;
}

/* Vertically center icons/text */
.top__header .top__wrapper .account__wrap .header-action-icon,
.top__header .top__wrapper .account__wrap .header-action-text,
.top__header .top__wrapper .account__wrap .header-action-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    line-height: 1;
    box-sizing: border-box;
}

.top__header .top__wrapper .account__wrap .header-action-icon {
    min-width: 51px;
    background-color: #F2C88A;
    height: 100%;
}

.top__header .top__wrapper .account__wrap .header-action-wishlist .header-action-icon,
.top__header .top__wrapper .account__wrap .header-action-account .header-action-icon {
    border-top-left-radius: 999px;
    border-bottom-left-radius: 999px;
}

.top__header .top__wrapper .account__wrap .header-action-icon i {
    font-size: 18px !important;
    line-height: 1 !important;
    color: #000000 !important;
}

.top__header .top__wrapper .account__wrap .header-action-text {
    flex-grow: 1;
    font-size: 14px;
    font-weight: 500;
    color: #191919 !important;
    padding: 0 10px;
    justify-content: center;
}
.top__header .top__wrapper .account__wrap .header-action-text * {
    color: #191919 !important;
}

.top__header .top__wrapper .account__wrap .header-action-cart .header-action-text {
    padding-left: 15px;
    padding-right: 5px;
    font-weight: 600;
}

.top__header .top__wrapper .account__wrap .header-action-count {
    background-color: #191919;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    min-width: 44px;
    height: 100%;
    border-top-right-radius: 999px;
    border-bottom-right-radius: 999px;
}

/* Hover effects */
.top__header .top__wrapper .account__wrap .header-action-pill:hover {
    box-shadow: 0 4px 15px rgba(242, 200, 138, 0.4);
    transform: translateY(-2px);
}

/* Responsiveness overrides to prevent layout break */
@media (max-width: 991.98px) {
    .top__header .top__wrapper .account__wrap .header-action-pill {
        width: 40px !important;
        height: 40px !important;
        min-height: 40px !important;
        min-width: 40px !important;
        border-radius: 50% !important;
        background-color: transparent !important;
        justify-content: center !important;
        position: relative !important;
        overflow: visible !important;
    }
    .top__header .top__wrapper .account__wrap .header-action-count {
        position: absolute !important;
        top: -4px !important;
        right: -8px !important;
        min-width: 20px !important;
        height: 20px !important;
        border-radius: 50% !important;
        font-size: 11px !important;
        padding: 0 4px !important;
        display: inline-flex !important;
        background-color: #ffffff !important;
        color: #000000 !important;
    }
    .top__header .top__wrapper .account__wrap .header-action-icon {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        border-radius: 50% !important;
        background-color: #F2C88A !important;
    }
    .top__header .top__wrapper .account__wrap .header-action-wishlist .header-action-icon,
    .top__header .top__wrapper .account__wrap .header-action-account .header-action-icon {
        border-radius: 50% !important;
    }
    .top__header .top__wrapper .account__wrap .header-action-cart {
        background-color: transparent !important;
    }
    .top__header .top__wrapper .account__wrap .header-action-text {
        display: none !important;
    }
}


