/* Shared store layout — header, nav, footer */
.store-body {
    font-family: 'Montserrat', sans-serif;
    background: #fff;
    color: #111;
}

.store-header {
    border-bottom: 1px solid #eee;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.store-header__inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.65rem 1rem;
    max-width: 1320px;
    margin: 0 auto;
    position: relative;
}

@media (max-width: 991px) {
    .store-header__inner {
        justify-content: center;
        min-height: 48px;
    }

    .store-header__menu {
        position: absolute;
        left: 0.25rem;
        top: 50%;
        transform: translateY(-50%);
    }

    .store-header__actions {
        position: absolute;
        right: 0.5rem;
        top: 50%;
        transform: translateY(-50%);
    }
}

.store-header__logo {
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: 0.14em;
    color: #111;
    text-decoration: none;
    white-space: nowrap;
}

.store-header__logo:hover {
    color: #111;
}

.store-header__logo-img {
    max-height: 36px;
    max-width: 120px;
    object-fit: contain;
}

.store-header__menu {
    color: #111;
    padding: 0;
    text-decoration: none;
}

.store-header__search {
    flex: 1;
    max-width: 480px;
    margin: 0 auto;
    position: relative;
}

.store-header__search input {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 2px;
    padding: 0.45rem 2.5rem 0.45rem 0.85rem;
    font-size: 0.85rem;
    background: #fafafa;
}

.store-header__search input:focus {
    outline: none;
    border-color: #bbb;
    background: #fff;
}

.store-header__search button {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    border: none;
    background: none;
    padding: 0 0.75rem;
    color: #666;
    cursor: pointer;
}

.store-header__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
    flex-shrink: 0;
}

.store-header__login {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: #111;
    text-decoration: none;
}

.store-header__login:hover {
    color: #e85d04;
}

.store-header__icon {
    color: #111;
    font-size: 1.1rem;
    position: relative;
    text-decoration: none;
    line-height: 1;
}

.store-header__icon:hover {
    color: #e85d04;
}

.store-header__badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: #e85d04;
    color: #fff;
    font-size: 0.58rem;
    font-weight: 700;
    border-radius: 999px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.qty-stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.qty-stepper__btn {
    border: none;
    background: #f5f5f5;
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    color: #333;
}

.qty-stepper__btn:hover { background: #eee; }

.qty-stepper__input {
    width: 3rem !important;
    text-align: center;
    border: none !important;
    border-left: 1px solid #ddd !important;
    border-right: 1px solid #ddd !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0.25rem !important;
    -moz-appearance: textfield;
}

.qty-stepper__input::-webkit-outer-spin-button,
.qty-stepper__input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.store-nav {
    border-bottom: 1px solid #eee;
    background: #fff;
    position: relative;
    z-index: 1025;
    overflow: visible;
}

.store-nav__wrap {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: center;
    overflow: visible;
}

.store-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0 2.25rem;
    justify-content: center;
}

.store-nav__item {
    position: relative;
    margin: 0;
    padding: 0;
}

.store-nav__item.has-mega:hover .store-mega,
.store-nav__item.has-mega:focus-within .store-mega {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.store-nav__item.is-nav-first .store-mega {
    left: 0;
    transform: translate(0, 6px);
}

.store-nav__item.is-nav-first.has-mega:hover .store-mega,
.store-nav__item.is-nav-first.has-mega:focus-within .store-mega {
    transform: translate(0, 0);
}

.store-nav__item.is-nav-last .store-mega {
    left: auto;
    right: 0;
    transform: translate(0, 6px);
}

.store-nav__item.is-nav-last.has-mega:hover .store-mega,
.store-nav__item.is-nav-last.has-mega:focus-within .store-mega {
    transform: translate(0, 0);
}

.store-nav__item.has-mega:hover .store-nav__caret,
.store-nav__item.has-mega:focus-within .store-nav__caret {
    transform: rotate(180deg);
}

.store-nav__trigger {
    color: #6b7280;
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.045em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.7rem 0;
    white-space: nowrap;
}

.store-nav__trigger:hover {
    color: #4b5563;
}

.store-nav__caret {
    font-size: 0.65rem;
    transition: transform 0.2s ease;
}

.store-mega {
    position: absolute;
    left: 50%;
    top: 100%;
    padding-top: 0.35rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 1050;
}

.store-mega__panel {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    border: 1px solid #eee;
    padding: 1.35rem 1.5rem 1.5rem;
    min-width: min(220px, 92vw);
    max-width: min(960px, 96vw);
    width: max-content;
}

.store-mega__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.25rem 2rem;
}

.store-mega__heading {
    display: inline-block;
    font-size: 0.95rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 0.65rem;
    text-decoration: none;
}

.store-mega__heading:hover {
    color: #111;
    text-decoration: underline;
}

.store-mega__links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.store-mega__links li {
    margin: 0 0 0.4rem;
}

.store-mega__links a {
    color: #666;
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 500;
    line-height: 1.35;
}

.store-mega__links a:hover {
    color: #111;
}

.store-mega__view-all {
    margin-top: 0.35rem;
    padding-top: 0.35rem;
    border-top: 1px solid #f0f0f0;
}

.store-mega__view-all a {
    font-weight: 600;
    color: #111;
}

/* Legacy flat nav links (fallback) */
.store-nav__list > li > a:not(.store-nav__trigger) {
    color: #6b7280;
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.045em;
    display: inline-block;
    padding: 0.7rem 0;
}

.store-mobile-nav__group {
    border-bottom: 1px solid #f0f0f0;
}

.store-mobile-nav__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border: none;
    background: none;
    padding: 0.85rem 0;
    font-weight: 700;
    font-size: 0.95rem;
    color: #222;
    text-align: left;
}

.store-mobile-nav__sub {
    padding: 0 0 0.75rem 0.5rem;
}

.store-mobile-nav__sub a {
    display: block;
    padding: 0.45rem 0;
    font-weight: 500;
    font-size: 0.9rem;
    color: #555;
    text-decoration: none;
}

.store-mobile-nav__col-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #111;
    margin-top: 0.5rem;
    padding: 0.35rem 0 0.15rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.store-mobile-nav {
    margin: 0;
    padding: 0;
}

.store-mobile-nav a {
    display: block;
    padding: 0.75rem 0;
    min-height: 44px;
    font-weight: 600;
    color: #222;
    text-decoration: none;
}

.store-mobile-nav a:hover {
    color: #e85d04;
}

.star-picker { display: inline-flex; gap: 0.15rem; }
.star-picker__btn {
    border: none; background: none; padding: 0;
    font-size: 1.35rem; line-height: 1; color: #ddd; cursor: pointer;
}
.star-picker__btn.is-active,
.star-picker__btn.is-hover { color: #f5a623; }

.store-footer {
    background: #f8f8f8;
    border-top: 1px solid #eee;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #666;
}

/* SweetAlert2 — store theme */
.store-swal-popup {
    border-radius: 14px !important;
    padding: 1.25rem 1.25rem 1rem !important;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18) !important;
}
.store-swal-title {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    color: #212529 !important;
}
.store-swal-text {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 0.95rem !important;
    color: #555 !important;
}
.store-swal-confirm {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    padding: 0.55rem 1.35rem !important;
}

/* Mobile bottom navigation */
.store-bottom-nav {
    display: none;
}

@media (max-width: 991.98px) {
    .store-body {
        padding-bottom: 56px;
    }

    .store-bottom-nav {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1040;
        height: 56px;
        background: #fff;
        border-top: 1px solid #e8e8e8;
        box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
    }

    .store-bottom-nav__item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.15rem;
        text-decoration: none;
        color: #777;
        font-size: 0.68rem;
        font-weight: 600;
        letter-spacing: 0.02em;
    }

    .store-bottom-nav__item i {
        font-size: 1.2rem;
        line-height: 1;
    }

    .store-bottom-nav__item.is-active {
        color: #111;
    }

    .store-footer {
        margin-bottom: 0;
        padding-bottom: 0.5rem;
    }
}

/* Wishlist heart over product image */
.product-wishlist-heart {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    z-index: 5;
}

.product-wishlist-heart__btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    color: #111;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    text-decoration: none;
    padding: 0;
    cursor: pointer;
}

.product-wishlist-heart__btn:hover {
    color: #c0392b;
    background: #fff;
}

.product-wishlist-heart__btn i {
    font-size: 1.15rem;
}

.product-gallery__canvas,
.custom-editor__canvas {
    position: relative;
}

/* Landing MEN | Customize | WOMEN strip */
.bw-gender-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin: 0 0 clamp(0.65rem, 1.8vh, 1rem);
    flex-shrink: 0;
}

.bw-gender-strip__link {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-decoration: none;
    color: #111;
}

.bw-gender-strip__customize {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #111;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.bw-gender-strip__customize:hover {
    color: #fff;
    background: #333;
}

.bw-gender-strip__customize i {
    font-size: 1.05rem;
}

/* Order list product preview */
.order-card-product {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.order-card-product__img {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
    background: #f3f3f3;
    flex-shrink: 0;
}

.order-card-product__name {
    font-size: 0.92rem;
    font-weight: 700;
    color: #111;
    line-height: 1.35;
}

.order-card-product__meta {
    font-size: 0.78rem;
    color: #777;
}

.review-card__photos {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.review-card__photos img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #eee;
}
