:root {
    --primary: #087c72;
    --primary-dark: #06665f;
    --text: #183330;
    --muted: #71817e;
    --background: #f5f8f7;
    --white: #ffffff;
    --border: #e2ebe8;
    --green: #23845c;
    --red: #c75656;
    --premium-surface: #ffffff;
    --premium-soft: #edf5f2;
    --premium-shadow: 0 12px 36px rgba(24, 51, 48, 0.08);
    --premium-shadow-hover: 0 18px 42px rgba(24, 51, 48, 0.13);
    --premium-radius: 20px;
}

html {
    scroll-padding-top: 20px;
    scrollbar-gutter: stable;
}

body {
    background: var(--background);
    color: var(--text);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a,
input,
select,
textarea,
summary {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 3px solid rgba(8, 124, 114, 0.28);
    outline-offset: 3px;
}

#app {
    width: min(100%, 1440px);
    min-height: 100vh;
    margin-inline: auto;
    padding: 0 28px calc(108px + env(safe-area-inset-bottom));
}

.page {
    min-height: calc(100vh - 100px);
    background: transparent;
}

.main-header {
    width: min(100%, 1200px);
    margin: 0 auto;
    padding: 25px 0 18px;
}

.logo-area {
    gap: 14px !important;
}

.logo-icon {
    overflow: hidden;
    border-radius: 15px !important;
    box-shadow: 0 5px 16px rgba(8, 124, 114, 0.2);
}

.logo-text h1 {
    color: var(--text) !important;
    letter-spacing: -0.035em;
}

.logo-text p {
    color: var(--muted) !important;
}

.search-section,
.products-section {
    width: min(100%, 1200px);
    margin-inline: auto;
}

.search-section {
    padding: 8px 0 26px;
}

.search-box {
    display: flex;
    align-items: center;
    min-height: 54px;
    gap: 13px;
    padding: 0 18px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--white);
    box-shadow: 0 5px 18px rgba(24, 51, 48, 0.04);
    color: var(--muted);
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.search-box:focus-within {
    border-color: rgba(8, 124, 114, 0.55);
    box-shadow: 0 0 0 4px rgba(8, 124, 114, 0.09);
}

.search-box input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-size: 15px;
}

.section-title,
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 17px;
}

.section-title h2,
.section-header h2 {
    color: var(--text);
    font-size: clamp(20px, 2.4vw, 27px);
    font-weight: 700;
    letter-spacing: -0.035em;
}

.product-grid,
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    padding: 0;
    background: transparent !important;
}

.product-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--premium-radius);
    background: var(--premium-surface);
    box-shadow: 0 5px 18px rgba(24, 51, 48, 0.045);
    cursor: pointer;
    transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: #c6dbd5;
    box-shadow: var(--premium-shadow-hover);
}

.product-image-wrap {
    position: relative;
    display: grid;
    place-items: center;
    height: auto;
    aspect-ratio: 1 / 0.88;
    overflow: hidden;
    padding: 18px;
    background: linear-gradient(145deg, #f8fbfa, #edf4f1);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform 240ms ease;
}

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

.discount-badge {
    position: absolute;
    z-index: 1;
    top: 12px;
    left: 12px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #e8f4ec;
    color: #26734f;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.025em;
}

.wishlist-btn {
    position: absolute;
    z-index: 2;
    top: 10px;
    right: 10px;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(226, 235, 232, 0.9);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: #64736f;
    box-shadow: 0 4px 12px rgba(24, 51, 48, 0.08);
}

.wishlist-btn:hover,
.wishlist-btn .fa-solid {
    color: #d45865;
}

.product-info {
    padding: 15px 16px 17px;
}

.product-info h3 {
    display: -webkit-box;
    overflow: hidden;
    min-height: 2.8em;
    margin: 0 0 5px;
    color: var(--text);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.product-description {
    display: -webkit-box;
    overflow: hidden;
    min-height: 2.9em;
    margin: 0 0 11px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.product-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 7px;
    color: var(--primary);
    font-size: 16px;
    font-weight: 800;
}

.product-price del {
    color: #98a5a1;
    font-size: 12px;
    font-weight: 500;
}

.empty-state,
.orders-empty,
.pro-cart-empty,
.videos-state {
    border: 1px solid var(--border);
    border-radius: var(--premium-radius);
    background: var(--white);
    color: var(--muted);
}

.empty-state,
.orders-empty {
    padding: 36px 22px;
    text-align: center;
}

.empty-state h3,
.orders-empty h3 {
    margin: 10px 0 5px;
    color: var(--text);
    font-size: 18px;
}

.inner-page-header {
    z-index: 20;
    display: flex;
    width: min(100%, 900px);
    height: 74px;
    align-items: center;
    gap: 14px;
    margin: 0 auto 20px;
    padding: 0 2px;
    border-bottom: 1px solid var(--border);
    background: rgba(245, 248, 247, 0.94);
    backdrop-filter: blur(14px);
}

.inner-page-header h2 {
    color: var(--text);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.back-btn,
.login-skip-btn {
    display: inline-grid;
    min-width: 42px;
    min-height: 42px;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: var(--white);
    color: var(--text);
    transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.back-btn:hover,
.login-skip-btn:hover {
    transform: translateY(-1px);
    background: var(--premium-soft);
    color: var(--primary);
}

.page-content,
.checkout-container,
.payment-container,
.account-container,
.order-summary-content,
.order-success-content,
.support-page,
.order-details-page {
    width: min(100%, 900px);
    margin-inline: auto;
}

.page-content {
    padding: 0 0 24px;
}

.page-content > h2,
.page-content > h3 {
    color: var(--text);
}

.pro-product-page {
    width: min(100%, 1120px);
    margin: 0 auto;
    padding: 12px 0 120px;
}

.pro-product-header {
    min-height: 54px;
    margin-bottom: 18px;
}

.pro-back-btn,
.pro-header-actions > button {
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--white);
    color: var(--text);
}

.pro-product-image-section {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 26px;
    background: linear-gradient(145deg, #f9fbfa, #edf5f2);
}

.pro-product-image-section img {
    width: 100%;
    max-height: 480px;
    object-fit: contain;
}

.pro-product-info {
    padding: 26px 0;
}

.pro-brand,
.pro-subtitle,
.pro-rating-row,
.pro-section p {
    color: var(--muted);
}

.pro-product-info h1,
.pro-product-info h2 {
    color: var(--text);
    font-size: clamp(25px, 4vw, 36px);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.2;
}

.pro-price-row {
    display: flex;
    align-items: baseline;
    gap: 11px;
    margin: 18px 0;
}

.pro-price-row strong {
    color: var(--primary);
    font-size: 27px;
}

.pro-price-row del {
    color: #9aa8a4;
}

.pro-section,
.pro-details-section {
    margin-top: 18px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--white);
}

.pro-section h2,
.pro-section h3,
.pro-details-section h2,
.pro-details-section h3 {
    margin-bottom: 10px;
    color: var(--text);
}

.pro-point {
    padding: 9px 0;
    color: #52635f;
    line-height: 1.6;
}

.product-quantity-control,
.pro-quantity {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    gap: 12px;
    padding: 4px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: #f8fbfa;
}

.product-quantity-control button,
.pro-quantity button {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 10px;
    background: var(--white);
    color: var(--primary);
}

.pro-bottom-bar {
    z-index: 30;
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 14px max(24px, calc((100vw - 1120px) / 2));
    border-top: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -8px 26px rgba(24, 51, 48, 0.07);
    backdrop-filter: blur(16px);
}

.pro-bottom-bar > button,
.pro-add-cart,
.pro-buy-now,
.pro-checkout-btn,
.save-continue-btn,
.checkout-continue-btn,
.order-success-primary,
.account-data-submit,
.support-ticket-section button[type="submit"],
.support-page button[type="submit"] {
    min-height: 48px;
    border-radius: 14px;
    background: var(--primary);
    color: var(--white);
    font-weight: 700;
    box-shadow: 0 7px 18px rgba(8, 124, 114, 0.17);
    transition: transform 170ms ease, background 170ms ease, box-shadow 170ms ease;
}

.pro-bottom-bar > button:hover,
.pro-add-cart:hover,
.pro-buy-now:hover,
.pro-checkout-btn:hover,
.save-continue-btn:hover,
.checkout-continue-btn:hover,
.order-success-primary:hover,
.account-data-submit:hover,
.support-ticket-section button[type="submit"]:hover,
.support-page button[type="submit"]:hover {
    transform: translateY(-1px);
    background: var(--primary-dark);
    box-shadow: 0 10px 23px rgba(8, 124, 114, 0.22);
}

.pro-add-cart,
.pro-buy-now {
    flex: 1;
    max-width: 380px;
}

.pro-cart-wrapper,
.checkout-container,
.order-summary-section,
.payment-container,
.order-detail-block,
.support-ticket-section,
.account-data-form,
.account-data-note,
.saved-address-card {
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--premium-radius);
    background: var(--white);
    box-shadow: 0 5px 20px rgba(24, 51, 48, 0.04);
}

.pro-cart-empty {
    padding: 42px 22px;
    text-align: center;
}

.pro-cart-empty-icon {
    color: #8eaaa3;
    font-size: 38px;
}

.pro-cart-empty h2,
.pro-cart-empty h3 {
    margin: 12px 0 6px;
    color: var(--text);
}

.pro-cart-shop-btn,
.pro-checkout-btn {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
    padding: 0 22px;
}

.pro-cart-items {
    display: grid;
    gap: 14px;
}

.pro-cart-item {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    box-sizing: border-box;
    min-width: 0;
}

.pro-cart-image {
    width: 90px;
    height: 90px;
    max-width: 100%;
    min-width: 0;
    border-radius: 15px;
    background: var(--premium-soft);
    object-fit: contain;
}

.pro-cart-image img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.pro-cart-items,
.pro-cart-details,
.pro-cart-top {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.pro-cart-top {
    align-items: flex-start;
}

.pro-cart-top > div {
    flex: 1 1 0;
    min-width: 0;
}

.pro-cart-top h3,
.pro-cart-top p {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.pro-cart-top h3,
.pro-cart-details h3 {
    color: var(--text);
    font-size: 15px;
}

.pro-cart-price-row,
.pro-cart-bottom,
.pro-summary-row,
.summary-price-row,
.order-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pro-cart-price-row,
.pro-cart-bottom {
    min-width: 0;
    max-width: 100%;
    flex-wrap: wrap;
}

.pro-cart-price-row > * {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.pro-cart-bottom {
    align-items: center;
}

.pro-quantity {
    box-sizing: border-box;
    max-width: 100%;
    flex: 0 1 auto;
}

.pro-quantity button {
    flex: 0 0 auto;
}

.pro-quantity strong {
    min-width: 0;
    overflow-wrap: anywhere;
}

.pro-item-total {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    text-align: right;
}

.pro-cart-summary,
.price-breakdown {
    display: grid;
    gap: 12px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.pro-total-row,
.summary-price-total {
    color: var(--text);
    font-size: 18px;
    font-weight: 800;
}

.checkout-container {
    display: grid;
    gap: 18px;
}

.form-group {
    display: grid;
    gap: 7px;
    margin: 0;
}

.form-group label,
.account-data-form label,
.support-ticket-section label {
    color: #405652;
    font-size: 13px;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea,
.account-data-form input,
.account-data-form select,
.account-data-form textarea,
.support-ticket-section input,
.support-ticket-section select,
.support-ticket-section textarea,
#editProfilePage input,
#editProfilePage select {
    width: 100%;
    min-height: 48px;
    padding: 11px 14px;
    border: 1px solid #dce7e3;
    border-radius: 13px;
    background: #fbfdfc;
    color: var(--text);
    font-size: 14px;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.form-group textarea,
.account-data-form textarea,
.support-ticket-section textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.account-data-form input:focus,
.account-data-form select:focus,
.account-data-form textarea:focus,
.support-ticket-section input:focus,
.support-ticket-section select:focus,
.support-ticket-section textarea:focus,
#editProfilePage input:focus,
#editProfilePage select:focus {
    border-color: var(--primary);
    outline: 0;
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(8, 124, 114, 0.09);
}

.form-row-dual {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.checkout-sticky-bar {
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px max(24px, calc((100vw - 900px) / 2));
    border-top: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -8px 26px rgba(24, 51, 48, 0.07);
    backdrop-filter: blur(16px);
}

.checkout-sticky-total,
.checkout-sticky-total strong {
    color: var(--text);
    font-size: 18px;
    font-weight: 800;
}

.checkout-continue-btn {
    min-width: 180px;
    padding: 0 22px;
}

.order-summary-content {
    display: grid;
    gap: 16px;
}

#orderSummaryPage .order-summary-content {
    padding-bottom: calc(77px + env(safe-area-inset-bottom, 0px) + 24px);
}

.order-summary-section {
    margin: 0;
}

.summary-section-heading,
.order-summary-section h3,
.order-detail-block h4 {
    margin-bottom: 14px;
    color: var(--text);
    font-size: 16px;
    font-weight: 700;
}

.address-summary-card {
    padding: 17px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: #f8fbfa;
}

.summary-product-row {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
}

.summary-product-image {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: var(--premium-soft);
    object-fit: contain;
}

.summary-product-info,
.summary-product-info h4,
.summary-product-subtitle {
    min-width: 0;
}

.summary-product-info h4 {
    color: var(--text);
    font-size: 14px;
}

.summary-product-subtitle {
    color: var(--muted);
    font-size: 12px;
}

.summary-product-prices,
.summary-line-total {
    color: var(--text);
    font-weight: 700;
}

.summary-quantity-control {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
}

.summary-price-row {
    padding: 6px 0;
    color: #52635f;
    font-size: 14px;
}

.summary-discount-row,
.summary-savings-note {
    color: var(--green);
}

.payment-container {
    display: grid;
    gap: 18px;
}

.payment-due-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    color: var(--muted);
}

.payment-due-row strong {
    color: var(--text);
    font-size: 24px;
}

.payment-methods {
    display: grid;
    gap: 11px;
}

.payment-method {
    display: flex;
    min-height: 76px;
    align-items: center;
    gap: 14px;
    padding: 13px 15px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--white);
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.payment-method:hover,
.payment-method--selected {
    border-color: rgba(8, 124, 114, 0.55);
    background: #f3faf7;
    box-shadow: 0 0 0 3px rgba(8, 124, 114, 0.06);
}

.payment-method input {
    accent-color: var(--primary);
}

.payment-method__icon {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 13px;
    background: var(--premium-soft);
    color: var(--primary);
}

.payment-method__content {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.payment-method__title {
    color: var(--text);
    font-weight: 700;
}

.payment-method__subtitle,
.payment-note {
    color: var(--muted);
    font-size: 12px;
}

.payment-method__badge {
    margin-left: auto;
    padding: 5px 9px;
    border-radius: 999px;
    background: #edf5f1;
    color: #4a7565;
    font-size: 11px;
    font-weight: 600;
}

.payment-note {
    padding: 13px 15px;
    border-radius: 13px;
    background: #f6f9f8;
    line-height: 1.6;
}

#payNowBtn {
    width: 100%;
    min-height: 52px;
    border-radius: 15px;
    background: var(--primary);
    color: white;
    font-weight: 700;
}

.order-success-content {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 26px;
    background: var(--white);
    box-shadow: var(--premium-shadow);
    text-align: center;
}

.order-success-icon {
    display: grid;
    width: 76px;
    height: 76px;
    place-items: center;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #e8f5ed;
    color: #2e8a5e;
    font-size: 30px;
}

.order-success-content h1,
.order-success-content h2 {
    color: var(--text);
    letter-spacing: -0.035em;
}

.order-success-copy {
    color: var(--muted);
}

.order-success-details {
    display: grid;
    gap: 10px;
    margin: 22px 0;
    padding: 17px;
    border-radius: 16px;
    background: #f7faf9;
    text-align: left;
}

.order-success-primary,
.order-success-secondary {
    min-width: 180px;
    margin: 5px;
    padding: 0 20px;
}

.order-success-secondary {
    min-height: 46px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--white);
    color: var(--primary);
    font-weight: 700;
}

.orders-state {
    padding: 16px;
    border-radius: 14px;
    background: #f7faf9;
    color: var(--muted);
    text-align: center;
}

.order-card {
    overflow: hidden;
    margin: 0 0 14px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 4px 16px rgba(24, 51, 48, 0.04);
}

.order-card__main {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 17px;
}

.order-card__thumb {
    width: 62px;
    height: 62px;
    flex: 0 0 auto;
    border-radius: 13px;
    background: var(--premium-soft);
    object-fit: contain;
}

.order-card__info {
    min-width: 0;
    flex: 1;
}

.order-card__title {
    margin: 0 0 4px;
    color: var(--text);
    font-size: 15px;
    font-weight: 700;
}

.order-card__meta,
.order-card__summary {
    color: var(--muted);
    font-size: 12px;
}

.order-card__aside {
    display: grid;
    justify-items: end;
    gap: 7px;
    color: var(--text);
    font-weight: 700;
}

.order-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    background: #edf5f1;
    color: #347253;
    font-size: 11px;
    font-weight: 700;
}

.order-status-badge.is-cancelled {
    background: #fbefef;
    color: #a64c4c;
}

.order-detail-block {
    margin-bottom: 14px;
}

.order-items {
    display: grid;
}

.order-item-row {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.order-item-image {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    background: var(--premium-soft);
    object-fit: contain;
}

.order-item-info {
    min-width: 0;
    flex: 1;
    color: var(--text);
}

.order-item-price {
    color: var(--text);
    font-weight: 700;
}

.order-timeline {
    display: grid;
    gap: 0;
}

.timeline-step {
    position: relative;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    color: var(--muted);
}

.timeline-step:not(:last-child)::after {
    position: absolute;
    top: 34px;
    bottom: -14px;
    left: 14px;
    width: 2px;
    background: var(--border);
    content: "";
}

.timeline-dot {
    z-index: 1;
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 2px solid #d5e1dd;
    border-radius: 50%;
    background: var(--white);
}

.timeline-step.is-complete .timeline-dot,
.timeline-step.is-current .timeline-dot {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--white);
}

.timeline-step.is-current .timeline-label {
    color: var(--text);
    font-weight: 700;
}

.timeline-label,
.timeline-date,
.timeline-time {
    font-size: 12px;
}

.order-price-row {
    padding: 8px 0;
    color: #52635f;
}

.order-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.order-support-btn {
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: var(--white);
    color: var(--primary);
    font-weight: 600;
}

.modern-account-container {
    width: min(100%, 760px);
    margin-inline: auto;
}

.modern-profile-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--white) !important;
    box-shadow: var(--premium-shadow);
}

.modern-profile-info {
    gap: 14px;
    padding: 20px !important;
}

.modern-profile-text h3,
#accountName {
    color: var(--text) !important;
}

.modern-profile-text p,
#accountEmail {
    color: var(--muted) !important;
}

.modern-edit-btn {
    min-height: 38px;
    padding: 0 14px;
    border-radius: 12px !important;
    background: var(--premium-soft) !important;
    color: var(--primary) !important;
    font-weight: 700;
}

.account-shortcut-grid {
    gap: 13px;
    margin: 16px 0;
}

.account-shortcut-box,
.account-menu-item {
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--white) !important;
    color: var(--text) !important;
    transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.account-shortcut-box:hover,
.account-menu-item:hover {
    transform: translateY(-1px);
    border-color: #c4d9d3;
    box-shadow: 0 7px 20px rgba(24, 51, 48, 0.06);
}

.account-menu-list {
    display: grid;
    gap: 9px;
}

.account-menu-item {
    min-height: 54px;
    padding-inline: 16px;
}

.modern-logout-btn {
    min-height: 46px;
    border: 1px solid #f0dada !important;
    border-radius: 14px !important;
    background: #fff8f8 !important;
    color: #aa4e4e !important;
}

.account-data-page {
    width: min(100%, 760px);
    margin-inline: auto;
}

.account-data-form {
    display: grid;
    gap: 14px;
}

.account-data-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.account-data-submit,
.support-ticket-section button[type="submit"],
.support-page button[type="submit"] {
    padding: 0 20px;
}

.saved-address-list {
    display: grid;
    gap: 12px;
    margin-bottom: 16px;
}

.saved-address-card {
    box-shadow: none;
}

.saved-address-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.support-page {
    display: grid;
    gap: 16px;
}

.support-faq-list,
.support-ticket-section {
    border-radius: var(--premium-radius);
    background: var(--white);
}

.support-faq-list details {
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
}

.support-faq-list details:last-child {
    border-bottom: 0;
}

.support-faq-list summary {
    color: var(--text);
    font-weight: 600;
    cursor: pointer;
}

.support-faq-list p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.65;
}

.support-ticket-section {
    display: grid;
    gap: 14px;
    border: 1px solid var(--border);
    box-shadow: 0 5px 20px rgba(24, 51, 48, 0.04);
}

.support-ticket-card {
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fbfdfc;
}

.support-ticket-meta {
    color: var(--muted);
    font-size: 12px;
}

.video-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--premium-radius);
    background: var(--white);
    box-shadow: 0 6px 22px rgba(24, 51, 48, 0.06);
}

.video-media {
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #e9f0ed;
}

.video-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-info {
    padding: 16px 18px 19px;
}

.video-title {
    color: var(--text);
    font-size: 16px;
    font-weight: 700;
}

.video-description {
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.videos-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.videos-state {
    padding: 18px;
    text-align: center;
}

.policy-list,
.info-list,
.language-list {
    display: grid;
    gap: 10px;
}

.policy-list a,
.info-list a,
.language-list button,
.policy-list button {
    display: flex;
    min-height: 52px;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--white);
    color: var(--text);
    text-decoration: none;
}

.terms-page,
#termsPage .page-content,
#policyDetailPage .page-content,
#infoPage .page-content {
    width: min(100%, 900px);
    margin-inline: auto;
}

#logoutConfirmOverlay {
    padding: 18px !important;
    background: rgba(18, 38, 35, 0.42) !important;
    backdrop-filter: blur(8px) !important;
}

#logoutConfirmOverlay > div {
    max-width: 390px !important;
    border-radius: 24px !important;
    box-shadow: 0 25px 80px rgba(11, 34, 30, 0.22) !important;
}

#customToast {
    z-index: 100001;
    max-width: min(420px, calc(100vw - 32px));
    border: 1px solid rgba(226, 235, 232, 0.9);
    border-radius: 15px;
    box-shadow: 0 12px 34px rgba(20, 42, 39, 0.17);
    backdrop-filter: blur(14px);
}

.login-screen-wrapper {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 28px 18px;
    background:
        radial-gradient(ellipse at 12% 10%, rgba(8, 124, 114, 0.08), transparent 34%),
        var(--background);
}

.login-screen-page {
    width: min(100%, 440px);
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 26px;
    background: var(--white);
    box-shadow: var(--premium-shadow);
}

.login-screen-header {
    min-height: 42px;
}

.login-screen-header .login-skip-btn {
    display: inline-flex;
    width: auto;
    gap: 5px;
    padding: 0 13px;
    color: var(--primary);
}

.login-brand {
    margin: 10px 0 24px;
    text-align: center;
}

.login-brand img {
    width: 68px;
    height: 68px;
    margin: 0 auto 13px;
    border-radius: 19px;
    box-shadow: 0 6px 18px rgba(8, 124, 114, 0.18);
}

.login-brand h1 {
    color: var(--text);
    font-size: 25px;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.login-brand p {
    margin-top: 5px;
    color: var(--muted);
}

#welcomeEmailSection {
    margin-bottom: 14px;
}

.login-form-label,
.login-otp-label {
    display: block;
    margin-bottom: 7px;
    color: #405652;
    font-size: 13px;
    font-weight: 600;
}

.login-input-wrapper,
.login-otp-input-wrapper {
    position: relative;
}

.login-form-input,
.login-otp-input {
    border: 1px solid #dce7e3 !important;
    border-radius: 14px !important;
    background: #fbfdfc !important;
    color: var(--text) !important;
    box-shadow: none !important;
}

.login-form-input:focus,
.login-otp-input:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(8, 124, 114, 0.09) !important;
}

#sendOtpBtn,
#googleSignInBtn {
    width: 100%;
    min-height: 52px;
    border-radius: 14px;
    background: var(--primary);
    color: var(--white);
    font-weight: 700;
    box-shadow: 0 7px 18px rgba(8, 124, 114, 0.17);
}

#sendOtpBtn:hover,
#googleSignInBtn:hover {
    background: var(--primary-dark);
}

#emailSignInNavBtn {
    min-height: 44px !important;
    border-radius: 10px !important;
    color: var(--primary) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

#emailSignInNavBtn:hover {
    color: var(--primary-dark) !important;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.login-otp-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 10px 0 18px;
}

.login-otp-destination {
    overflow-wrap: anywhere;
    color: var(--muted);
    font-size: 13px;
}

.login-otp-edit,
.login-resend-btn {
    min-height: 38px;
    padding: 0 11px;
    border-radius: 11px;
    background: var(--premium-soft);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
}

.login-otp-verify-btn {
    width: 100%;
    min-height: 50px;
    border-radius: 14px;
    background: var(--primary);
    color: var(--white);
    font-weight: 700;
}

.login-otp-timer {
    margin-top: 15px;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

.bottom-nav {
    z-index: 90;
    display: flex !important;
    width: 100%;
    min-height: 70px;
    align-items: stretch;
    justify-content: center;
    gap: 8px;
    padding: 7px max(14px, env(safe-area-inset-left)) calc(7px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(226, 235, 232, 0.9);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -8px 24px rgba(24, 51, 48, 0.08);
    backdrop-filter: blur(18px);
}

.bottom-nav.hidden {
    display: none !important;
}

.bottom-nav .nav-item {
    display: flex;
    width: min(25%, 150px);
    min-height: 50px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border-radius: 13px;
    background: transparent;
    color: #82918d;
    font-size: 11px;
    font-weight: 600;
    transition: color 160ms ease, background 160ms ease;
}

.bottom-nav .nav-item i {
    font-size: 18px;
}

.bottom-nav .nav-item.active {
    background: #edf6f3;
    color: var(--primary);
}

@media (min-width: 768px) {
    #app {
        padding: 0 38px 120px;
    }

    .bottom-nav {
        right: 50%;
        bottom: 20px !important;
        left: auto;
        width: min(620px, calc(100vw - 48px));
        min-height: 70px;
        transform: translateX(50%);
        border: 1px solid rgba(226, 235, 232, 0.95);
        border-radius: 21px;
        box-shadow: 0 12px 38px rgba(24, 51, 48, 0.15);
    }

    .home-page,
    #homePage {
        padding-top: 10px;
    }

    .pro-product-page {
        display: grid;
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
        align-items: start;
        column-gap: 48px;
    }

    .pro-product-header {
        grid-column: 1 / -1;
    }

    .pro-product-image-section {
        grid-column: 1;
        grid-row: 2 / span 5;
        position: sticky;
        top: 24px;
    }

    .pro-product-info,
    .pro-section,
    .pro-details-section {
        grid-column: 2;
        margin-top: 0;
    }

    .pro-product-info {
        padding: 4px 0 10px;
    }
}

@media (min-width: 1200px) {
    #app {
        padding-inline: 48px;
    }

    .main-header,
    .search-section,
    .products-section {
        width: min(100%, 1280px);
    }

    .product-grid,
    .products-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    #app {
        padding: 0 16px calc(84px + env(safe-area-inset-bottom));
    }

    .main-header {
        padding: 18px 0 12px;
    }

    .search-section {
        padding: 8px 0 21px;
    }

    .product-grid,
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .product-image-wrap {
        padding: 12px;
    }

    .product-info {
        padding: 12px 12px 14px;
    }

    .product-info h3 {
        font-size: 13px;
    }

    .product-description {
        font-size: 11px;
    }

    .product-price {
        font-size: 14px;
    }

    .discount-badge {
        top: 8px;
        left: 8px;
        padding: 4px 7px;
        font-size: 9px;
    }

    .wishlist-btn {
        top: 7px;
        right: 7px;
        width: 34px;
        height: 34px;
    }

    .inner-page-header {
        height: 62px;
        margin-bottom: 15px;
    }

    .inner-page-header h2 {
        font-size: 18px;
    }

    .page-content {
        padding-bottom: 18px;
    }

    .pro-product-page {
        padding-top: 5px;
    }

    .pro-product-info {
        padding: 20px 2px;
    }

    .pro-section,
    .pro-details-section,
    .pro-cart-wrapper,
    .checkout-container,
    .order-summary-section,
    .payment-container,
    .order-detail-block,
    .support-ticket-section,
    .account-data-form,
    .account-data-note {
        padding: 16px;
        border-radius: 17px;
    }

    .pro-bottom-bar {
        gap: 9px;
        padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    }

    .pro-bottom-bar > button,
    .pro-add-cart,
    .pro-buy-now {
        min-height: 48px;
        padding-inline: 12px;
        font-size: 13px;
    }

    .form-row-dual,
    .account-data-form-row {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .checkout-sticky-bar {
        gap: 10px;
        padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    }

    .checkout-sticky-total,
    .checkout-sticky-total strong {
        font-size: 16px;
    }

    .checkout-continue-btn {
        min-width: 145px;
        min-height: 46px;
        padding-inline: 13px;
        font-size: 13px;
    }

    .summary-product-row {
        grid-template-columns: 52px minmax(0, 1fr);
        gap: 10px;
    }

    .summary-product-image {
        width: 52px;
        height: 52px;
    }

    .summary-line-total {
        grid-column: 2;
        justify-self: start;
    }

    .payment-method {
        min-height: 68px;
        gap: 10px;
        padding: 11px;
    }

    .payment-method__badge {
        padding: 4px 7px;
        font-size: 10px;
    }

    .order-card__main {
        align-items: flex-start;
        gap: 10px;
        padding: 13px;
    }

    .order-card__thumb {
        width: 50px;
        height: 50px;
    }

    .order-card__aside {
        font-size: 12px;
    }

    .timeline-step {
        grid-template-columns: 28px minmax(0, 1fr);
    }

    .timeline-date,
    .timeline-time {
        grid-column: 2;
        margin-top: -7px;
    }

    .videos-list {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .login-screen-wrapper {
        min-height: 100svh;
        padding: 18px 14px;
    }

    .login-screen-page {
        padding: 20px;
        border-radius: 22px;
    }

    .login-brand h1 {
        font-size: 22px;
    }

    .bottom-nav {
        min-height: 66px;
        gap: 2px;
        padding: 5px 8px calc(5px + env(safe-area-inset-bottom));
    }

    .bottom-nav .nav-item {
        width: 25%;
        min-height: 48px;
        font-size: 10px;
    }

    .bottom-nav .nav-item i {
        font-size: 17px;
    }
}

@media (max-width: 380px) {
    #app {
        padding-inline: 12px;
    }

    .product-grid,
    .products-grid {
        gap: 9px;
    }

    .product-info {
        padding-inline: 10px;
    }

    .product-price {
        gap: 5px;
        font-size: 13px;
    }

    .pro-cart-item {
        grid-template-columns: 68px minmax(0, 1fr);
        gap: 11px;
    }

    .pro-cart-image {
        width: 68px;
        height: 68px;
    }

    .login-screen-page {
        padding: 17px;
    }

    .checkout-sticky-bar {
        padding-inline: 10px;
    }

    .checkout-continue-btn {
        min-width: 132px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.tracking-order-details {
    display: grid;
    gap: 14px;
}

.tracking-product-card,
.tracking-status-card,
.tracking-payment-card {
    margin: 0;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--premium-shadow);
}

.tracking-order-id {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.tracking-order-id > div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.tracking-order-id > div > span,
.tracking-order-id small {
    color: var(--muted);
    font-size: 11px;
}

.tracking-order-id > div > strong {
    color: var(--text);
    font-size: 14px;
    overflow-wrap: anywhere;
}

.tracking-copy-button {
    display: inline-flex;
    min-height: 40px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--white);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
}

.tracking-products {
    display: grid;
    gap: 8px;
    padding-top: 12px;
}

.tracking-product-row {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 8px 0;
}

.tracking-product-total {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 12px;
}

.tracking-product-total strong {
    color: var(--text);
    font-size: 13px;
}

.tracking-status-heading {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.tracking-confirmed-icon {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: #e8f5ee;
    color: #218653;
    font-size: 15px;
}

.tracking-status-heading h3 {
    margin: 0;
    color: var(--text);
    font-size: 16px;
    font-weight: 700;
}

.tracking-status-heading p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.tracking-progress {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    margin: 24px 0 20px;
}

.tracking-progress::before {
    position: absolute;
    top: 14px;
    right: 16.66%;
    left: 16.66%;
    height: 2px;
    background: #dce5e2;
    content: "";
}

.tracking-stage {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: 7px;
    min-width: 0;
    color: var(--muted);
    text-align: center;
}

.tracking-stage-dot {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 2px solid #cbd6d2;
    border-radius: 50%;
    background: var(--white);
    color: #fff;
    font-size: 12px;
}

.tracking-stage.is-complete .tracking-stage-dot {
    border-color: #23845c;
    background: #23845c;
    color: #fff;
}

.tracking-stage > strong {
    color: var(--text);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
}

.tracking-stage.is-current > strong {
    color: var(--primary-dark);
    font-weight: 700;
}

.tracking-stage-date {
    color: var(--muted);
    font-size: 10px;
    line-height: 1.35;
}

.tracking-shipment-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 14px;
    padding: 11px 0;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 11px;
    overflow-wrap: anywhere;
}

.tracking-updates {
    border-top: 1px solid var(--border);
}

.tracking-updates summary {
    display: flex;
    min-height: 46px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.tracking-updates summary::-webkit-details-marker {
    display: none;
}

.tracking-updates[open] summary > i {
    transform: rotate(180deg);
}

.tracking-updates summary > i {
    transition: transform 160ms ease;
}

.tracking-updates ol {
    display: grid;
    gap: 0;
    padding: 0 0 4px;
    list-style: none;
}

.tracking-update {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 10px;
    padding: 8px 0;
}

.tracking-update-dot {
    width: 10px;
    height: 10px;
    margin: 4px;
    border: 2px solid #23845c;
    border-radius: 50%;
    background: var(--white);
}

.tracking-update > div {
    display: grid;
    gap: 3px;
}

.tracking-update strong {
    color: var(--text);
    font-size: 12px;
}

.tracking-update time {
    color: var(--muted);
    font-size: 11px;
}

@media (max-width: 420px) {
    .tracking-product-card,
    .tracking-status-card,
    .tracking-payment-card {
        padding: 15px;
    }

    .tracking-product-row {
        grid-template-columns: 50px minmax(0, 1fr);
        gap: 10px;
    }

    .tracking-product-row .order-item-image {
        width: 50px;
        height: 50px;
    }

    .tracking-product-row .order-item-price {
        grid-column: 2;
        justify-self: start;
    }
}
