/* ── Theme-two color token (used by dashboard styles) ── */
:root { --theme-color: #111111; }

/* ── Fix anchor defaults inside theme-two components ── */
.profile__nav-item { text-decoration: none; }

/* ── Cart page responsive ── */
@media (max-width: 768px) {
  .cart-grid { grid-template-columns: 1fr !important; }
  .cart-grid > :last-child { position: static !important; }

  /* Hide the table header on mobile — labels are redundant once rows stack */
  .cart-row--header { display: none !important; }

  /* Stack each row into two grid rows: product info full-width, then qty + subtotal split */
  .cart-row {
    grid-template-columns: auto 1fr !important;
    row-gap: 12px;
    column-gap: 12px;
  }
  .cart-row > :nth-child(1) { grid-column: 1 / -1; }                /* product info: full row */
  .cart-row > :nth-child(2) { grid-column: 1 / 2; justify-self: start; } /* quantity */
  .cart-row > :nth-child(3) { display: none !important; }           /* hide per-unit price; subtotal is what matters */
  .cart-row > :nth-child(4) { grid-column: 2 / 3; text-align: end; }/* subtotal */

  /* Cart header dropdown: never wider than the viewport on phones */
  .cart-dropdown {
    width: calc(100vw - 16px) !important;
    max-width: 360px !important;
  }
}

/* ── Phone input: make intl-tel-input look correct without Bootstrap ── */
.iti { display: block; }
.iti input[type="tel"].form-control {
  width: 100% !important;
  height: 44px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  font-size: 14px;
  font-family: "Arimo", sans-serif;
}
.checkout__input-wrap .iti { display: block; }

/* ── Site nav category mega-menu spacing ── */
.site-nav__dropdown-title {
  display: block !important;          /* title is an <a> (inline) — margin-bottom won't apply without this */
  margin: 0 0 18px !important;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
}
.site-nav__dropdown-list { gap: 12px !important; }

/* ── Bootstrap-notify toasts (bootstrap CSS not loaded in theme-two) ── */
.alert {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  min-width: 260px;
  max-width: 340px;
  padding: 14px 18px;
  border-radius: 10px;
  font-family: "Arimo", sans-serif;
  font-size: 14px;
  color: #fff;
  box-shadow: 0 6px 24px rgba(0,0,0,0.15);
  border: none;
}
.alert-success { background: #2e7d32; }
.alert-danger  { background: #c62828; }
.alert-info    { background: #1565c0; }
.alert-warning { background: #e65100; }
.close { display: none; }

/* ── Spacing ── */
.section-b-space { padding-bottom: 70px; }

/* ── Buttons ── */
.btn-solid {
  padding: 9px 16px;
  color: #ffffff;
  letter-spacing: 0.05em;
  border: 2px solid var(--theme-color);
  background: var(--theme-color);
  transition: background 300ms ease-in-out;
  text-decoration: none;
  cursor: pointer;
}
.btn-solid:hover { background: #333333; border-color: #333333; color: #fff; }
.btn-solid.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-solid-primary {
  padding: 9px 16px;
  border: 2px solid #0d6efd;
  color: #ffffff;
  background: #0d6efd;
  transition: background 300ms ease-in-out;
  cursor: pointer;
}
.btn-solid-primary:hover { background: #0b5ed7; }

/* ── Badges ── */
.custom-badge { padding: 4px 10px; font-size: 12px; }

/* ── Error text ── */
.error-text { color: red; }

/* ── Dashboard section ── */
.dashboard-section .dashboard-sidebar {
  position: sticky;
  top: 30px;
  z-index: 1;
  padding: 30px 0 15px;
  background-color: #f8f8f8;
}
.dashboard-section .dashboard-sidebar .profile-top {
  padding: 0 16px;
  margin-bottom: 20px;
}
.dashboard-section .dashboard-sidebar .profile-top .profile-image img {
  width: 80px;
  margin: 0 auto;
  display: block;
  border-radius: 50%;
}
.dashboard-section .dashboard-sidebar .profile-top .profile-detail {
  text-align: center;
  margin-top: 12px;
}
.dashboard-section .dashboard-sidebar .profile-top .profile-detail h5 {
  font-weight: 700;
  margin-bottom: 4px;
}
.dashboard-section .dashboard-sidebar .profile-top .profile-detail h6 {
  color: #777;
  margin-bottom: 3px;
  font-size: 13px;
  word-break: break-all;
}
.dashboard-section .dashboard-sidebar .faq-tab .nav-tabs { box-shadow: none; padding: 0; }

.dashboard-section .faq-content .card {
  border: none;
  background-color: #f8f8f8;
  margin-top: 20px;
}
.dashboard-section .dashboard-table h3 {
  text-transform: capitalize;
  font-size: 17px;
  color: #222;
  margin-bottom: 15px;
  font-weight: 600;
}
.dashboard-section .dashboard-table img { width: 50px; }
.dashboard-section .dashboard-table .table thead th { border-top: none; }
.dashboard-section .dashboard-table .table th,
.dashboard-section .dashboard-table .table td { vertical-align: middle; text-align: center; }
.dashboard-section .top-sec { display: flex; align-items: center; margin-bottom: 15px; }
.dashboard-section .top-sec h3 { color: #000; font-size: 18px; margin-bottom: 0; font-weight: 600; }
.dashboard-section .top-sec .btn { margin-left: auto; }
.dashboard-section .dashboard-box .dashboard-title {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
}
.dashboard-section .dashboard-box .dashboard-title h4 { font-weight: 700; margin-bottom: 0; }
.dashboard-section .dashboard-box .dashboard-detail ul { padding: 0; margin: 0; list-style: none; }
.dashboard-section .dashboard-box .dashboard-detail ul li { display: block; margin-bottom: 10px; }
.dashboard-section .dashboard-box .dashboard-detail ul li .details { display: flex; }
.dashboard-section .dashboard-box .dashboard-detail ul li .details h6 { margin-bottom: 0; }
.dashboard-section .dashboard-box .dashboard-detail ul li .details .left { width: 150px; }
.dashboard-section .dashboard-box .dashboard-detail ul li .details .left h6 { color: #4e4e4e; }
.dashboard-section .dashboard-box .dashboard-detail ul li .details .right { display: flex; align-items: center; }
.dashboard-section .dashboard-box .dashboard-detail ul li .details .right h6 { font-weight: 500; }
.dashboard-section .dashboard-box .dashboard-detail ul li:last-child { margin-bottom: 0; }
.edit-link { color: var(--theme-color); margin-left: 10px; text-transform: capitalize; }

/* ── faq sidebar tabs ── */
.faq-tab .nav-tabs {
  display: block;
  border-bottom: none;
  background-color: #ffffff;
  padding: 10px 0;
}
.faq-tab .nav-tabs .nav-item { display: block; margin-bottom: 0; }
.faq-tab .nav-tabs .nav-item .nav-link {
  color: #000;
  font-size: 14px;
  border: none;
  transition: all 0.3s;
  border-radius: 0;
  background-color: #f8f8f8;
  cursor: pointer;
  padding: 10px 16px;
  display: block;
}
.faq-tab .nav-tabs .nav-item .nav-link.active,
.faq-tab .nav-tabs .nav-item .nav-link:hover {
  border: none;
  border-right: 2px solid var(--theme-color);
  color: var(--theme-color);
}

/* ── User dashboard section ── */
.user-dashboard-section .faq-content .tab-pane .card { min-height: 40vh; }
.user-dashboard-section .faq-content .tab-pane .card-body { padding: 24px; }
.user-dashboard-section .address-book-section .select-box .address-box {
  padding: 15px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
}
.user-dashboard-section .address-book-section .select-box .address-box .top h6 {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
}
.user-dashboard-section .address-book-section .select-box .address-box .middle { margin-top: 10px; }
.user-dashboard-section .address-book-section .select-box .address-box .middle .address p {
  margin-bottom: 4px;
  color: rgba(0,0,0,.7);
  font-size: 13px;
}
.user-dashboard-section .address-book-section .select-box .address-box .bottom {
  border-top: 1px solid #ddd;
  display: flex;
  text-align: center;
  padding-top: 12px;
  margin-top: 10px;
  justify-content: space-between;
}
.user-dashboard-section .address-book-section .select-box .address-box .bottom .bottom_btn {
  width: 47.5%;
  font-weight: 600;
  padding: 8px 4px;
  border-radius: 5px;
  background: #f8f8f8;
  color: #222;
  text-align: center;
  cursor: pointer;
  font-size: 13px;
}
.user-dashboard-section .address-book-section .select-box .address-box .bottom .bottom_btn:hover {
  background: #eee;
}
.user-dashboard-section.dashboard-section .dashboard-table .table thead th { font-size: 14px; }

/* ── Checkout form inside dashboard ── */
.checkout-page .checkout-form .form-group { position: relative; margin-bottom: 20px; }
.checkout-page .checkout-form .form-group .field-label {
  line-height: 24px;
  color: #333;
  margin-bottom: 8px;
  font-weight: 700;
}
.checkout-page .checkout-form input[type=text],
.checkout-page .checkout-form input[type=email],
.checkout-page .checkout-form input[type=password],
.checkout-page .checkout-form input[type=tel],
.checkout-page .checkout-form input[type=number] {
  width: 100%;
  padding: 0 16px;
  height: 44px;
  border: 1px solid #ddd;
  border-radius: 4px;
}
.checkout-page .checkout-form select,
.checkout-page .checkout-form textarea {
  width: 100%;
  padding: 8px 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  min-height: 44px;
}

/* ── Profile overview info list ── */
.profile__info-list { margin: 0 0 8px; padding: 0; }
.profile__info-row { display: flex; gap: 24px; padding: 10px 0; border-bottom: 1px solid #f0f0f0; }
.profile__info-row:last-child { border-bottom: none; }
.profile__info-row dt { width: 160px; flex-shrink: 0; font-size: 13px; color: #6b6b6b; font-weight: 500; }
.profile__info-row dd { margin: 0; font-size: 13px; font-weight: 600; color: #111111; }

/* ── Profile content form inputs ── */
.profile__content.checkout-page .checkout-form .form-group { position: relative; margin-bottom: 20px; }
.profile__content.checkout-page .checkout-form .form-group .field-label {
  line-height: 24px; color: #333; margin-bottom: 8px; font-weight: 700; font-size: 14px;
}
.profile__content.checkout-page .checkout-form input[type=text],
.profile__content.checkout-page .checkout-form input[type=email],
.profile__content.checkout-page .checkout-form input[type=password],
.profile__content.checkout-page .checkout-form input[type=tel],
.profile__content.checkout-page .checkout-form input[type=number] {
  width: 100%; padding: 0 16px; height: 44px;
  border: 1px solid #ddd; border-radius: 8px;
}
.profile__content.checkout-page .checkout-form select,
.profile__content.checkout-page .checkout-form textarea {
  width: 100%; padding: 8px 16px; border: 1px solid #ddd; border-radius: 8px; min-height: 44px;
}
.profile__content.checkout-page .field-label {
  line-height: 24px; color: #333; margin-bottom: 8px; font-weight: 700; font-size: 14px;
}

/* ── Order/address table inside profile ── */
.profile__content .cart-table img { width: 50px; }
.profile__content .cart-table th, .profile__content .cart-table td { vertical-align: middle; }

/* ── Currency nav dropdown ── */
[x-cloak] { display: none !important; }
.site-nav__currency-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
  background: none;
  border: none;
  cursor: pointer;
}
.site-nav__currency-code {
  font-family: "Arimo", sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #111111;
}
.site-nav__currency-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  min-width: 180px;
  padding: 8px 0;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  z-index: 200;
}
.site-nav__currency-option {
  display: block;
  width: 100%;
  padding: 10px 16px;
  text-align: start;
  background: none;
  border: none;
  cursor: pointer;
  font-family: "Arimo", sans-serif;
  font-size: 13px;
  color: #111111;
  transition: background 0.15s;
}
.site-nav__currency-option:hover { background: #f5f5f5; }
.site-nav__currency-option.is-active { font-weight: 700; }

/* ── Dynamic theme color overrides (Theme Two) ── */

/* Nav */
.site-nav__cart-badge { background: var(--theme-color, #111111); }

/* Cart dropdown */
.cart-dropdown__qty-badge { border-color: var(--theme-color, #111111); color: var(--theme-color, #111111); }
.cart-dropdown__btn--primary { background: var(--theme-color, #111111); border-color: var(--theme-color, #111111); }
.cart-dropdown__btn--secondary { border-color: var(--theme-color, #111111); color: var(--theme-color, #111111); }

/* Currency picker save */
.currency-dropdown__save { background: var(--theme-color, #111111); }

/* Phone row — keep code + number on the same line at all screen sizes */
@media (max-width: 900px) {
    .checkout__phone-row {
        grid-template-columns: auto 1fr;
    }
}

/* Footer */
.site-footer { background: var(--theme-color, #111111); }
.site-footer__inner { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
@media (max-width: 1024px) { .site-footer__inner { grid-template-columns: 1fr; } }

/* Footer — pages links section */
.site-footer__links-title {
    font-family: Arimo, sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 20px;
}
.site-footer__links-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.site-footer__links-list li a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-family: Arimo, sans-serif;
    font-size: 15px;
    line-height: 24px;
    transition: color 0.15s;
}
.site-footer__links-list li a:hover { color: #fff; text-decoration: underline; }

/* View-cart page */
.view-cart__checkout { background: var(--theme-color, #111111); }

/* Checkout — selected address card */
.checkout__address-card.is-selected { border-color: var(--theme-color, #111111); }
.is-selected .checkout__address-radio-ui { border-color: var(--theme-color, #111111); }
.is-selected .checkout__address-radio-ui::after { background: var(--theme-color, #111111); }

/* Checkout — dropdowns (country / phone code) focus/open states */
.checkout__search-select-trigger.is-open,
.checkout__search-select-trigger:focus-visible { border-color: var(--theme-color, #111111); }
.checkout__phone-code--open { border-color: var(--theme-color, #111111); }

/* Checkout — payment / shipping options */
.checkout__option-card.is-selected { border-color: var(--theme-color, #111111); }
.is-selected .checkout__option-radio { border-color: var(--theme-color, #111111); }
.is-selected .checkout__option-radio::after { background: var(--theme-color, #111111); }
.checkout__payment-card.is-selected { border-color: var(--theme-color, #111111); }

/* Checkout — action buttons */
.checkout__place-order { background: var(--theme-color, #111111); }
.checkout__modal-save { background: var(--theme-color, #111111); }

/* Thank-you page */
.checkout--thank-you .thank-you__method-card { border-color: var(--theme-color, #111111); }

/* Auth page */
.auth-page__submit { background: var(--theme-color, #111111); }

/* Home page */
.home__product-cart { background: var(--theme-color, #111111); }

/* Shop page */
.shop__product-cart { background: var(--theme-color, #111111); }
.shop__page-btn.is-active,
.shop__page-btn--arrow:not(:disabled) { background: var(--theme-color, #111111); border-color: var(--theme-color, #111111); }
.shop__apply-btn { background: var(--theme-color, #111111); }
.shop__filter-btn { color: var(--theme-color, #141718); }
.shop__filter-text { color: var(--theme-color, #141718); }
.shop__view-btn.is-active { background: var(--theme-color, #141718); }

/* Product page */
.product--missing .product__inner button { background: var(--theme-color, #111111); }
.product__add-btn { background: var(--theme-color, #111111); }
.product__related-cart { background: var(--theme-color, #111111); }

/* Profile */
.profile__nav-item.is-active { background: var(--theme-color, #111111); }
.profile__save-btn { background: var(--theme-color, #111111); }
.profile__btn--dark { background: var(--theme-color, #111111); }
.profile__btn--outline { border-color: var(--theme-color, #111111); color: var(--theme-color, #111111); }

/* Order modal */
.order-modal__btn--outline { border-color: var(--theme-color, #111111); color: var(--theme-color, #111111); }

/* faq/profile sidebar active tab */
.faq-tab .nav-tabs .nav-item .nav-link.active,
.faq-tab .nav-tabs .nav-item .nav-link:hover { border-color: var(--theme-color, #111111); color: var(--theme-color, #111111); }

/* Star ratings */
.home__product-stars { color: var(--theme-color, #111111); }
.shop__stars svg { fill: var(--theme-color, #141718); }
.shop__product-stars { color: var(--theme-color, #141718); }
.product__stars { color: var(--theme-color, #141718); }

/* Shop sidebar checkboxes (listing page) */
.shop__checkbox input:checked + .shop__checkbox-box { background: var(--theme-color, #141718); border-color: var(--theme-color, #141718); }

/* Auth / checkout checkbox accent */
.auth-page__checkbox input { accent-color: var(--theme-color, #141718); }

/* Product page tabs active indicator */
.product__tab.is-active { color: var(--theme-color, #141718); border-bottom-color: var(--theme-color, #141718); }

/* Product images centered within uniform square containers (home + shop, grid + carousel + list) */
.home__product-media,
.shop__product-media { aspect-ratio: 1 / 1; }
.home__product-link--media,
.shop__product-link--media { width: 100%; height: 100%; }
.home__product-img,
.shop__product-img { height: 100%; object-fit: contain; object-position: center; }

