/* css/custom.css */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Mozilla+Headline:wght@200..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&amp;display=swap');
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&amp;display=swap');
@import url('https://fonts.googleapis.com/css2?family=Prompt:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Google+Sans:ital,opsz,wght@0,17..18,400..700;1,17..18,400..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&display=swap');

/* ----------------------------------------------------
   Figtree
---------------------------------------------------- */
@font-face {
    font-family: 'Figtree Medium';
    src: url('../fonts/Figtree-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Figtree';
    src: url('../fonts/Figtree-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Figtree Bold';
    src: url('../fonts/Figtree-Bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* ----------------------------------------------------
   DM Sans
---------------------------------------------------- */
@font-face {
    font-family: 'DM Sans Medium';
    src: url('..fonts/DMSans-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DM Sans Bold';
    src: url('../fonts/DMSans-Bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DM Sans';
    src: url('../fonts/DMSans-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ----------------------------------------------------
   LINE Seed JP
---------------------------------------------------- */
@font-face {
    font-family: 'LINE Seed JP Thin';
    src: url('../fonts/LINESeedJP-Thin.woff2') format('woff2');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'LINE Seed JP';
    src: url('../fonts/LINESeedJP-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'LINE Seed JP Bold';
    src: url('../fonts/LINESeedJP-Bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'LINE Seed JP ExtraBold';
    src: url('../fonts/LINESeedJP-ExtraBold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* ----------------------------------------------------
   Root
---------------------------------------------------- */
:root {
  --page-bg: #ffffff;
  --gray-bg: #f4f5f7 !important;
  --dark: #000 !important;
  --dark-gray: #333 !important;
  --light-gray: #666 !important;
  --lighter-gray: #999 !important;
  --lightest-gray: #F1F2F6 !important;
  --white: #fff !important;
  --gray: #666 !important;
  --text: #0f1720 !important;
  --text-dark: #000 !important;
  --maincolor: #825de6 !important;
  --maincolor2: #6336e3 !important;
  --text-white: #fff !important;
  --shadow: 0 12px 30px rgba(18, 28, 40, 0.06);
  --radius: 14px;
  --gap: 22px;
  --max-w: 500px;
  --orange: #ec9b49 !important;
  --red: #dc2626 !important;
  --green: #1ab54d !important;
  --light-green: #76d294 !important;
  --light-yellow: #fff5e9 !important;
  --yellow: #ffdaae !important;
  --gray-f5: #f5f5f5 !important;
  --light-purple-bg: rgba(108, 92, 231, 0.06);
  --card-hr-color: rgba(255, 255, 255, .6);
  --card-hr-color-2: rgba(255, 255, 255, .2);
}

/* ----------------------------------------------------
   Custom Popup
---------------------------------------------------- */
.popup-address .modal-dialog {
  max-width: min(650px, 90vw);
}

.popup-address .modal-content {
  margin: 8px;
  padding: 30px 0px 30px;
}

.popup-address .modal-content > .wrap {
  overflow-y: auto;
  padding: 0px 20px;
}

.popup-address .modal-content > .wrap::-webkit-scrollbar {
  width: 2px;
}

.popup-address .modal-content .icon-close-popup {
  top: 0px;
  right: 20px;
}

.popup-address .tf-product-info-item {
  margin-bottom: 15px;
  display: flex;
  gap: 18px;
  align-items: center;
}

/* ----------------------------------------------------
   UI/UX
---------------------------------------------------- */
.orders-table .order-store,
.orders-table .order-total,
.orders-table .order-status,
.orders-table .order-actions {
  width: 150px
}

.orders-table .order-date {
  width: 100px
}

.orders-table {
  table-layout: fixed;
}

.address-add-form,
.address-edit-form{
    display:none;
}

.img-box {
    position: relative;
    width:50px;
    height:60px;
    min-width:50px;
    overflow:visible; /* allow badge to extend outside */
    border-radius:8px;
    display:block;
    background:#f5f5f5;
}

.img-box img {
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    border-radius:8px;
}

.img-box .quantity {
    position:absolute;
    top:-6px;
    right:-6px;
    width:20px;
    height:20px;
    border-radius:50%;
    background:var(--dark-gray);
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:11px;
    font-weight:600;
    z-index:2;
}

.img-box-cart {
    position: relative;
    width:70px;
    height:90px;
    min-width:50px;
    overflow:visible; /* allow badge to extend outside */
    border-radius:8px;
    display:block;
    background:#f5f5f5;
    margin-right:15px;
}

.img-box-cart img {
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    border-radius:8px;
}

.cart-table td {
    vertical-align: middle;
}

.verification-badge {
  width: 20px;
  height: 20px;
  /* object-fit: contain; */
  /* gap: 6px; */
  display: inline-flex;
  vertical-align: middle;
  margin: -2px 0 0 3px;
  transform: translateY(2px);
}

#place-order:disabled{
    opacity:0.5;
    cursor:not-allowed;
    pointer-events:none;
}

.product-title-truncate {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.img-slider {
    width:50px;
    height:600px;
    min-width:50px;
    overflow:hidden;
    display:block;
    background:#f5f5f5;
}

.img-slider img {
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.qa-image {
    width:100%;
    height:90px !important;
    /* min-width:95px; */
    overflow:hidden;
    border-radius:8px;
    display:block;
    background:#f5f5f5;
}

.qa-image img {
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

/* ----------------------------------------------------
   Custom Toggle Slider
---------------------------------------------------- */
/* Hide default checkbox */
.toggle-slider{
    appearance:none;
    -webkit-appearance:none;
    position:relative;
    width:46px;
    height:26px;
    border-radius: 4px !important;
    background:#d6dbe3;
    cursor:pointer;
    transition:all .25s ease;
    outline:none;
    flex-shrink:0;
}

/* Knob */
.toggle-slider::before{
    content:"";
    position:absolute;
    top:3px;
    left:3px;
    width:20px;
    height:20px;
    border-radius: 2px;
    background:#fff;
    transition:all .25s ease;
    /* box-shadow:0 2px 5px rgba(0,0,0,.18); */
}

/* ON */
.toggle-slider:checked{
    background:var(--maincolor);
}

.toggle-slider:checked::before{
    left:23px;
}

/* OFF */
.toggle-slider:not(:checked){
    background:#d1d5db;
}

/* Focus */
/* .toggle-slider:focus{
    box-shadow:0 0 0 3px rgba(37,99,235,.15);
} */

/* ----------------------------------------------------
   Modal Content
---------------------------------------------------- */
.modal-dialog .modal-content a {
  font-size: 14px !important;
  opacity: .8 !important;
}

.modal-dialog .modal-content .price {
  font-size: 18px !important;
  opacity: .8 !important;
}

/* ----------------------------------------------------
   Cart
---------------------------------------------------- */
.link-line {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-top: 1px solid rgba(0, 0, 0, .06);
  font-size: 14px;
}

.link-line .label {
  font-weight: normal;
  opacity: .6;
}

.link-line .value {
  font-weight: 600 !important;
}

.link-line:first-of-type {
  border-top: 0;
}

.faint-bar {
  height: 8px;
  border-radius: 6px;
  background: linear-gradient(90deg,#f4f6f8,#f0f3f6);
  margin: 12px 0;
}

.billing-wrap {
    max-width: 480px;
}

.opacity-full {
    opacity: 1 !important;
}

/* ----------------------------------------------------
    Tracking Bar
---------------------------------------------------- */
.order-tracker{
    display:flex;
    justify-content:space-between;
    position:relative;
    margin:30px 0 20px;
    --line-start: 12%;
    --line-end: 12%;
    --progress: 0%;
}

/* Grey line */
.order-tracker::before{
    content:'';
    position:absolute;
    top:15px;
    left:var(--line-start);
    right:var(--line-end);
    height:2px;
    background:#e5e7eb;
    z-index:1;
}

/* Purple progress */
.order-tracker::after{
    content:'';
    position:absolute;
    top:15px;
    left:12%;
    right:12%;
    height:2px;
    background:var(--maincolor);
    transform-origin:left center;
    transform:scaleX(var(--progress));
    z-index:2;
}

.tracker-step{
    position:relative;
    z-index:3;
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
    flex:1;
}

.tracker-icon{
    width:30px;
    height:30px;
    border-radius:5px;
    border:2px solid #e5e7eb;
    background:#e5e7eb;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:13px;
    font-weight:500;
    color:#999;
    transition:.3s ease;
}

.tracker-label{
    margin-top:10px;
    font-size:12px;
    color:#666;
    max-width:140px;
    line-height:1.4;
}

/* Completed */
.tracker-step.completed .tracker-icon{
    background:var(--maincolor);
    border:none;
    color:#fff;
    /* box-shadow:0 8px 20px rgba(0, 0, 0, .25); */
}

/* Current */
.tracker-step.active .tracker-icon{
    /* border:3px dashed var(--maincolor); */
    border:2px solid var(--maincolor);
    color:#fff;
    background:var(--maincolor);
}

.tracker-step.active .tracker-label{
    color:var(--maincolor);
    font-weight:600;
}

/* Mobile */
@media (max-width:768px){

    /* .order-tracker{
        flex-wrap:wrap;
        gap:30px;
    } */

    .order-tracker::before,
    .order-tracker::after{
        display:none;
    }

    /* .tracker-step{
        flex:0 0 48%;
    } */

    .tracker-icon{
        width:30px;
        height:30px;
        font-size:13px;
    }

    .tracker-label{
        font-size:11px;
    }
}

/* ----------------------------------------------------
   Typography
---------------------------------------------------- */
input[type="password"],
input[type="email"],
input[type="text"],
input[type="file"],
input[type="num"],
textarea,
button,
body, p, select, a {
font-family: 'Figtree', sans-serif !important;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Syne', sans-serif !important;
  font-weight: 600 !important;
}

.fs-12 {
    font-size: 12px !important;
}

.fs-13 {
    font-size: 13px !important;
}

.fs-14 {
    font-size: 14px !important;
}

.fs-16 {
    font-size: 16px !important;
}

.fs-18 {
    font-size: 18px !important;
}

.fs-20 {
    font-size: 20px !important;
}

.fs-25 {
    font-size: 25px !important;
}

.fs-30 {
    font-size: 30px !important;
}

.hdr-title {
font-family: 'Syne', sans-serif !important;
}

.rounded {
border-radius: 6px !important;
}

.rounded-2 {
border-radius: 13px !important;
}

.fw-600 { font-weight: 600 !important; }
.fw-700 { font-weight: 700 !important; }
.fw-800 { font-weight: 800 !important; }
.text-uppercase { text-transform: uppercase !important; }
.text-xxs { font-size: 10px !important; letter-spacing: 0.5px }
.text-xs { font-size: 11px !important; letter-spacing: 0.2px }
.text-sm { font-size: 12px !important; letter-spacing: 0.2px }
.text-md { font-size: 13px !important; letter-spacing: 0.2px }
.text-bold { font-weight: 700 !important; letter-spacing: 0.2px }
.text-semibold { font-weight: 600 !important; letter-spacing: 0.2px }
.text-underline { text-decoration: underline !important; }
.text {color: var(--text) !important; }
.text-gray {color: var(--dark-gray) !important; }
.text-light-gray {color: var(--lighter-gray) !important; }
.text-green {color: var(--green) !important; }
.text-red {color: var(--red) !important; }
.text-light-green {color: var(--light-green) !important; }
.text-dark { color: var(--dark) !important; }
.maincolor { color: var(--maincolor); }
.maincolor2 { color: var(--maincolor2); }
.muted { color: var(--text) !important; opacity: .5 !important; }
.text-muted { color: var(--text) !important; opacity: .9 !important; }
.lh-1 { line-height: 20px !important; }
.lh-2 { line-height: 25px !important; }
.ls-sm { letter-spacing: 0.5px; }
.-mt-5 { margin-top: -5px; }
.-mt-10 { margin-top: -10px; }
.-mt-15 { margin-top: -15px; }
.-mt-20 { margin-top: -20px; }
.-mt-25 { margin-top: -25px; }
.-mt-30 { margin-top: -30px; }
.-mb-5 { margin-bottom: -5px; }
.-mb-10 { margin-bottom: -10px; }
.-mb-15 { margin-bottom: -15px; }
.-mb-25 { margin-bottom: -25px; }
.-mb-10 { margin-bottom: -10px; }
.-mb-30 { margin-bottom: -30px; }

.text-lg {
font-family: 'LINE Seed JP', sans-serif !important;
font-size: 40px !important;
}

.money {
font-family: 'LINE Seed JP', sans-serif !important;
}

.parent-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* .parent-center img {
    display: block;
    max-width: 100%;
    height: auto;
} */

/* .parent-center img {
    display: block;
    margin: 0 auto;
} */

/* #liveClock {
  font-size: 13px;
  color: #999;
  margin-top: 10px;
} */

/* .date-time {
  display: flex;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #555;
} */

/* ----------------------------------------------------
   Logo (Responsive)
---------------------------------------------------- */
/* Desktop */
/* .navbar-left .logo-area {
  margin-left: -48px;
} */

/* Tablets */
/* @media (max-width: 992px) {
  .navbar-left .logo-area {
    margin-left: -24px;
  }
}

.banner-feature__shape {
  width: 225px;
} */

/* Mobile */
/* @media (max-width: 576px) {
  .navbar-left .logo-area {
    margin-left: -24px;
  }
  .banner-feature__shape {
  display: none;
}
} */

/* ----------------------------------------------------
   Toast
---------------------------------------------------- */
#toast-container {
  position: fixed;
  top: 50px;             /* distance from bottom */
  left: 50%;                /* center horizontally */
  transform: translateX(-50%);  /* perfect left-right centering */
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 11px !important;
  text-align: center;

  animation: toastIn 0.45s cubic-bezier(.21,1.02,.73,1),
             toastOut 0.35s ease-in forwards;
  animation-delay: 0s, 3s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px); /* slide UP from below */
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(10px); /* slide DOWN */
  }
}

@media (max-width: 576px) {
#toast-container {
  width: 80%;
}
}

/* ----------------------------------------------------
   Badges
---------------------------------------------------- */
.yellow-bg {
  background-color: var(--yellow);
  color: var(--text);
  border-radius: 6px;
  text-align: center;
}

.green-bg {
  background-color: #20b66b;
  color: var(--white);
  border-radius: 6px;
  text-align: center;
}

.d-badge {
  display: inline-block;
  background: #34c97e;
  color: var(--text-white);
  padding: 1px 5px 1px 5px;
  margin-right: 3px;
  border-radius: 5px;
  text-align: center;
}

.badge-green {
  display: inline-block;
  background: var(--green);
  color: hsl(0, 0%, 100%) !important;
  padding: 5px 10px 4px 10px;
  border-radius: 3px;
  text-align: center;
}

.badge-orange {
  display: inline-block;
  background: var(--orange);
  color: hsl(0, 0%, 100%) !important;
  padding: 5px 10px 4px 10px;
  border-radius: 3px;
  text-align: center;
}

.badge-red {
  display: inline-block;
  background: var(--red);
  color: var(--text-white);
  padding: 5px 10px 4px 10px;
  border-radius: 3px;
  text-align: center;
}

.badge-purple {
  display: inline-block;
  background: var(--maincolor);
  color: var(--text-white);
  padding: 5px 10px 4px 10px;
  border-radius: 3px;
  text-align: center;
}

.badge-label {
  display: inline-block;
  background: var(--maincolor);
  color: var(--text-white);
  padding: 0 6px 0 6px;
  border-radius: 3px;
  text-align: center;
  font-size: 9px;
}

.badge-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: #666;
  color: #fff !important;

  width: 20px;
  height: 20px;

  font-size: 11px !important;
  font-weight: 550;
  border-radius: 3px;
}

.badge-gray {
  display: inline-block;
  background: #888;
  color: #fff !important;
  padding: 5px 10px 4px 10px;
  font-size: 11px;
  font-weight: 550;
  border-radius: 3px;
  text-align: center;
}

.badge-black {
  display: inline-block;
  background: var(--dark);
  color: var(--text-white);
  padding: 5px 10px 4px 10px;
  border-radius: 3px;
  text-align: center;
}

.badge-dark {
  display: inline-block;
  background: var(--dark-gray);
  color: var(--text-white);
  padding: 5px 10px 4px 10px;
  border-radius: 3px;
  text-align: center;
}

.badge-white {
  display: inline-block;
  background: var(--white);
  color: var(--text);
  padding: 5px 10px 4px 10px;
  border-radius: 3px;
  text-align: center;
}

.badge-white:hover {
  background: var(--dark);
  color:var(--white);
}

.badge-hover:hover, .badge-hover:active {
  background: var(--maincolor) !important;
  color: #fff !important;
}

.gray-bg {
  background: #e4e4e4 !important;
  border-radius: 4px;
}

.border-none {
  border: 0;
}

.border {
  border: 1px solid #b8b8b8 !important;
  border-radius: 4px !important;
}

#place-order:disabled{
    opacity:0.5;
    cursor:not-allowed;
    pointer-events:none;
}

.tf-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* .rounded-circle {
  padding: 2px;
  border: 1px solid rgba(0, 0, 0, 0.3);
} */

/* ----------------------------------------------------
   Soft HR line
---------------------------------------------------- */
/* Simple and soft */
hr {
  border: none;
  height: 1px;
  background: rgba(0, 0, 0, 0.2);
  margin: 15px 0;
}

/* Extra soft (Modern UI) */
/* hr {
  border: none;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(0,0,0,0.6),
    transparent
  );
  margin: 28px 0;
} */

/* Dark & friendly */
/* hr {
  border: none;
  height: 1px;
  background: rgba(255, 255, 255, 0.5);
  margin: 24px 0;
} */

/* ------------------------------------------------
   Lazy Image Fade-In (Clean & Smooth)
------------------------------------------------ */
img.lazy-img {
    opacity: 0;
    transform: scale(0.97);
    transition: opacity .45s ease, transform .45s ease;
}

img.lazy-img.img-loaded {
    opacity: 1;
    transform: scale(1);
}

img.lazy-img.img-error {
    opacity: 1;
    filter: grayscale(1);
}

/* ----------------------------------------------------
   Cart
---------------------------------------------------- */
/* .line {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-top: 1px solid rgba(15,23,31,0.04);
  font-size: 15px;
}

.faint-bar {
  height: 8px;
  border-radius: 6px;
  background: linear-gradient(90deg,#f4f6f8,#f0f3f6);
  margin: 12px 0;
}

.total-row .label {
  font-size: 16px;
  font-weight: normal;
  color: #888;
}

.total-row .value {
  font-size: 16px;
  font-weight: 600;
} */

.for-mobile {
  display: none;
}

.for-desktop {
  display: block;
}

/* ----------------------------------------------------
   Mobile (Responsive)
---------------------------------------------------- */
@media (max-width: 767px) {

  .slider-mobile {
    margin-top: -35px !important;
  }

  .for-mobile {
    display: block;
  }
  
  .for-desktop {
    display: none;
  }

  .tf-cart-item {
    display: flex !important;
    flex-wrap: wrap;
    position: relative;
    padding-inline-start: 0;
    min-height: 0;
    margin-bottom: 12px;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
  }

  .tf-cart-item td {
    padding: 0;
    margin: 0;
    border: none !important;
  }

  .tf-cart-item td[cart-data-title]:before {
    display: none;
  }

  /* Row 1: image + title + remove */
  .tf-cart-item_product {
    display: flex !important;
    order: 0;
    flex-basis: 100%;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 12px !important;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--line) !important;
  }

  .tf-cart-item .img-box-cart {
    width: 64px;
    height: 80px;
    min-width: 64px;
    margin-right: 0;
  }

  .tf-cart-item .cart-info {
    flex: 1;
    min-width: 0;
    padding-right: 30px;
  }

  .tf-cart-item .cart-info .cart-title {
    line-height: 1.3;
  }

  .tf-cart-item .cart-info .text-muted.text-sm {
    font-size: 11.5px;
    margin-top: 3px;
  }

  .tf-cart-item .tf-cart-item_product .cart-info .remove-cart {
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 14px;
    right: 14px;
    width: 26px;
    height: 26px;
    margin-top: 0 !important;
    border-radius: 50%;
    background: var(--bg-2, #f6f6f6);
    font-size: 0;
    text-decoration: none !important;
  }

  .tf-cart-item .remove-cart i {
    font-size: 12px;
    color: var(--text);
  }

  /* Row 2: price / qty / total in one line */
  .tf-cart-item_price,
  .tf-cart-item_quantity,
  .tf-cart-item_total {
    display: flex !important;
    width: auto !important;
  }

  .tf-cart-item_price {
    order: 1;
    align-items: center;
  }

  .tf-cart-item_quantity {
    order: 2;
    flex: 1;
    justify-content: center !important;
  }

  .tf-cart-item_total {
    order: 3;
    align-items: center;
  }

  .tf-cart-item .cart-price {
    font-size: 13px;
    color: var(--text);
  }

  .tf-cart-item .cart-total {
    font-size: 14px;
    font-weight: 700 !important;
    color: var(--main);
  }

  .tf-cart-item .wg-quantity {
    min-width: 84px;
    width: 84px;
    height: 30px;
    border-radius: 20px;
  }

  .tf-cart-item .wg-quantity .btn-quantity {
    width: 26px;
    height: 30px;
    font-size: 16px;
  }

  .tf-cart-item .wg-quantity input {
    width: 30px;
    height: 30px;
    font-size: 13px;
  }

  .tf-page-cart-footer {
    border-radius: 16px;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, .05);
  }

  .tf-page-cart-checkout {
    padding: 20px 16px !important;
  }

  .cart-checkout-btn .tf-btn {
    border-radius: 12px !important;
  }

  .stagger-item {
    height: 80px !important;
  }

  .orders-table .order-store,
  .orders-table .order-total,
  .orders-table .order-status,
  .orders-table .order-actions {
    width: 215px
  }

  .orders-table .order-date {
    width: 125px
  }

    html,
    body {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    html::-webkit-scrollbar,
    body::-webkit-scrollbar {
        display: none;
    }

    .-mt-30 { margin-top: -5px; }
}

  /* ----------------------------------------------------
    Featured Products (index.php) - Fill Container + Zoom on Hover

    The base theme's object-fit:cover rule in styles.css is scoped
    to ".article-thumb a img" (image wrapped in a link), but this
    section's actual markup has no <a> around the image (it's
    ".article-thumb .product-img img" directly) — so that rule
    never matched here, and images rendered at their own natural
    aspect ratio instead of filling the 460px container, leaving
    visible letterboxing for any image whose proportions didn't
    happen to match. .product-img itself also needs 100% height,
    since without it the div only grows to fit its content and
    the image's height:100% has nothing to actually be 100% of.
  ---------------------------------------------------- */
  .blog-article-item .article-thumb .product-img {
      width: 100%;
      height: 100%;
  }
  .blog-article-item .article-thumb .product-img img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: all 1s;
  }
  .blog-article-item .article-thumb .product-img:hover img {
      transform: scale(1.1);
  }
/* ----------------------------------------------------
   Virtual Try-On Modal (product.php)
---------------------------------------------------- */
/* .tf-product-info-tryon-badge {
  margin-bottom: 18px;
} */

.tryon-badge-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 8px 25px;
  border: 1px solid var(--gray);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  line-height: 29px;
  background: var(--gray-bg);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}

.gray-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  background: var(--lightest-gray);
  border: 1px solid var(--lightest-gray);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 25px;
  border-radius: 6px;
  text-align: center;
  cursor: none;
}

.tryon-badge-btn i {
  font-size: 13px;
  line-height: 1;
}

.tryon-badge-btn:hover,
.tryon-badge-btn:focus {
  background-color: var(--primary);
  color: #fff;
  text-decoration: none;
}

.popup-tryon .tryon-body {
  padding: 24px;
  max-height: 95vh;
  overflow-y: auto;
}

.tf-product-modal .modal-dialog {
  max-width: min(500px, 95vw);
}

.tf-product-modal .modal-dialog {
  max-width: min(500px, 95vw);
}

.popup-tryon .tryon-body::-webkit-scrollbar {
  width: 2px;
}

.tryon-help {
  font-size: 13px;
  /* color: #6b7280; */
  margin-bottom: 16px;
}

/* 1 / 1 → square
4 / 5 → gentle portrait (common for Instagram-style photos)
3 / 4 → what you have now — a bit taller than 4/5
9 / 16 → tall/narrow, phone-camera-shaped */

.tryon-dropzone {
  position: relative;
  border: 1.5px dashed #d1d5db;
  border-radius: 12px;
  aspect-ratio: 4 / 5;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  background: #fafafa;
  transition: border-color .2s ease;
}

.tryon-dropzone:hover {
  border-color: #111;
}

.tryon-dropzone-empty {
  text-align: center;
  color: #9ca3af;
}

.tryon-dropzone-empty i {
  display: block;
  margin-bottom: 8px;
}

.tryon-dropzone-hint {
  display: block;
  font-size: 12px;
  margin-top: 4px;
}

.tryon-preview-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  touch-action: none; /* let JS own the drag gesture, don't let the browser scroll on touch */
}

.tryon-preview-canvas:active {
  cursor: grabbing;
}

.tryon-change-photo-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}

.tryon-change-photo-btn:hover {
  background: rgba(0, 0, 0, 0.75);
}

.tryon-drag-hint {
  text-align: center;
  font-size: 13px;
  color: #9ca3af;
  margin-top: 8px;
}

.tryon-error,
.tryon-error-text {
  color: #dc2626;
  font-size: 13px;
  margin-top: 8px;
}

.tryon-step {
  text-align: center;
  margin-top: -25px;
}

.tryon-spinner {
  width: 40px;
  height: 40px;
  margin: 24px auto 16px;
  border: 3px solid #e5e7eb;
  border-top-color: #111;
  border-radius: 50%;
  animation: tryon-spin 0.8s linear infinite;
}

@keyframes tryon-spin {
  to { transform: rotate(360deg); }
}

.tryon-loading-text {
  font-size: 14px;
  color: #6b7280;
}

.tryon-result-img {
  width: 100%;
  border-radius: 12px;
  max-height: 480px;
  object-fit: contain;
  background: #f5f5f5;
}