:root {
    --wt-bg: #faf8f5;
    --wt-cream: #f5f0eb;
    --wt-ink: #1a1a1a;
    --wt-ink-light: #3d3d3d;
    --wt-muted: #6b6b6b;
    --wt-line: #e8e4df;
    --wt-white: #ffffff;
    --wt-accent: #8b7355;
    --wt-tr: all 0.35s ease;
    --wt-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--wt-font);
    background: var(--wt-bg);
    color: var(--wt-ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Header */
.wt-header {
    position: sticky;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(250,248,245,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--wt-line);
}
.wt-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.wt-logo {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 2px;
    color: var(--wt-ink);
    max-width: 120px;
}
.wt-logo img { max-height: 32px; width: auto; }
.wt-nav {
    display: flex;
    gap: 40px;
    align-items: center;
}
.wt-nav a {
    font-size: 0.875rem;
    color: var(--wt-muted);
    transition: var(--wt-tr);
}
.wt-nav a:hover { color: var(--wt-ink); }
.wt-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.wt-icon-btn {
    width: 40px; height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wt-ink);
    font-size: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--wt-tr);
}
.wt-icon-btn:hover { color: var(--wt-accent); }
.wt-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.wt-burger span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--wt-ink);
    transition: var(--wt-tr);
}

/* h6po80.js */
#to-top {
    width: 40px; height: 40px;
    background: var(--wt-ink);
    color: var(--wt-white);
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 30px; right: 20px;
    z-index: 9999;
    cursor: pointer;
    font-size: 12px;
    display: none;
    transition: var(--wt-tr);
    text-align: center;
    line-height: 40px;
    vertical-align: middle;
}
#to-top:hover { background: var(--wt-accent); }

.shop-cart {
    display: none;
    width: 360px;
    background: var(--wt-white);
    border: 1px solid var(--wt-line);
    position: absolute;
    top: 38px; right: -10px;
    padding: 20px;
    z-index: 1100;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}
.shop-cart::after {
    content: '';
    position: absolute;
    top: -7px; right: 20px;
    width: 14px; height: 14px;
    background: var(--wt-white);
    transform: rotate(45deg);
    border-left: 1px solid var(--wt-line);
    border-top: 1px solid var(--wt-line);
}
.shop-cart-body { max-height: 320px; overflow-y: auto; }
.shop-cart-total {
    padding: 14px 0;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--wt-line);
    margin-top: 14px;
    font-size: 0.85rem;
}
.shop-cart-subtotal { font-weight: 600; }
.shop-cart-footer { padding-top: 10px; }
.chekc_btn {
    background: var(--wt-ink);
    color: var(--wt-white);
    padding: 12px;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: var(--wt-tr);
}
.chekc_btn:hover { background: var(--wt-accent); }
.shop-cart-icon:hover .shop-cart { display: block; }
.cart-count {
    position: absolute;
    top: -6px; right: -6px;
    background: var(--wt-accent);
    color: var(--wt-white);
    font-size: 0.65rem;
    min-width: 18px; height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    padding: 1px;
}

.overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2500;
}
.Pop-up {
    display: none;
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    background: var(--wt-white);
    z-index: 3200;
    max-width: 900px;
    width: 92%;
    max-height: 88vh;
    overflow-y: auto;
    border: 1px solid var(--wt-line);
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}
.Pop-up .top_header {
    display: flex;
    align-items: center;
    padding: 16px;
    justify-content: flex-end;
    border-bottom: 1px solid var(--wt-line);
}
.Pop-up .products_box { padding: 24px; }

.side-menu {
    position: fixed;
    top: 0; left: -100%;
    width: 85%;
    max-width: 360px;
    height: 100%;
    background: var(--wt-bg);
    z-index: 3100;
    transition: left 0.35s ease;
    overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
    border-right: 1px solid var(--wt-line);
}
.side-menu.active { left: 0; }
.menu-header {
    position: sticky;
    top: 0;
    z-index: 10;
    height: 64px;
    background: var(--wt-cream);
    display: flex;
    align-items: center;
    padding: 0 20px;
    font-weight: 600;
    font-size: 0.875rem;
    justify-content: space-between;
}
.menu-close {
    font-size: 24px;
    cursor: pointer;
    width: 36px; height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.menu-list { list-style: none; padding: 16px 0; }
.menu-item {
    border-bottom: 1px solid var(--wt-line);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
.menu-link,
.menu-link-sub,
.menu-link-sub-2 {
    word-break: break-word;
    overflow-wrap: anywhere;
}
.menu-link {
    display: block;
    padding: 14px 20px;
    font-size: 0.875rem;
    transition: var(--wt-tr);
    flex: 1;
}
.menu-link:hover { background: var(--wt-cream); color: var(--wt-accent); }
.menu-arrow {
    transition: transform 0.3s;
    padding: 14px 20px;
    cursor: pointer;
    font-size: 0.75rem;
    color: var(--wt-muted);
    display: flex;
    align-items: center;
}
.menu-arrow.expanded { transform: rotate(90deg); }
.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--wt-cream);
    width: 100%;
}
.submenu.expanded { max-height: 600px; }
.submenu .menu-link { padding-left: 40px; }
.submenu .submenu .menu-link { padding-left: 60px; }

/* ===== Quick View popup styles ===== */
.products_box { padding: 24px; }
.products_box .pro_title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.3;
    color: var(--wt-ink);
}
.products_box .box_price {
    margin-bottom: 20px;
}
.products_box .discount_price {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--wt-ink);
    margin-right: 12px;
     text-decoration: line-through;
}
.products_box .price {
    font-size: 1rem;
    color: var(--wt-muted);
   
}
.products_box .sku_code {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.products_box .sku_code select {
    padding: 10px 14px;
    border: 1px solid var(--wt-line);
    background: var(--wt-white);
    font-size: 0.875rem;
    min-width: 160px;
    cursor: pointer;
}
.products_box .quantity-control {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 20px;
    border: 1px solid var(--wt-line);
    width: fit-content;
}
.products_box .quantity-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: var(--wt-bg);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wt-ink);
    transition: var(--wt-tr);
}
.products_box .quantity-btn:hover {
    background: var(--wt-line);
}
.products_box .quantity-input {
    width: 60px;
    height: 44px;
    border: none;
    border-left: 1px solid var(--wt-line);
    border-right: 1px solid var(--wt-line);
    text-align: center;
    font-size: 0.875rem;
    color: var(--wt-ink);
    -moz-appearance: textfield;
}
.products_box .quantity-input::-webkit-outer-spin-button,
.products_box .quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.products_box .btn {
    display: flex;
    gap: 12px;
}
.products_box .btn .button {
    flex: 1;
    padding: 14px 24px;
    background: var(--wt-ink);
    color: var(--wt-white);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 1px solid var(--wt-ink);
    text-align: center;
    cursor: pointer;
    transition: var(--wt-tr);
}
.products_box .btn .button:hover {
    background: transparent;
    color: var(--wt-ink);
}

/* ===== Shop cart popup items ===== */
.shop-cart-body { max-height: 360px; overflow-y: auto; }
.shop-cart-body a { text-decoration: none; color: var(--wt-ink); }
.shop-cart-items {
    padding: 12px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--wt-line);
}
.shop-img img { object-fit: contain; width: 50px; height: 50px; }
.shop-info { flex: 1; }
.shop-info h4 { font-size: 0.85rem; font-weight: 600; margin-bottom: 4px; line-height: 1.3; }
.shop-delete {
    background: var(--wt-accent);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    text-align: center;
    color: var(--wt-white);
    flex: none;
    font-size: 10px;
    line-height: 20px;
    cursor: pointer;
}

/* ===== Cart page items (rendered by h6po80.js) ===== */
.cart-items { min-height: 120px; }
.cart-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid var(--wt-line);
}
.cart-item .item-image { width: 100px; height: 100px; flex-shrink: 0; background: var(--wt-cream); overflow: hidden; }
.cart-item .item-image img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.cart-item .item-details { flex: 1; }
.cart-item .item-title { display: block; font-size: 0.75rem; font-weight: 600; color: var(--wt-ink); margin-bottom: 6px; text-decoration: none; }
.cart-item .item-title:hover { color: var(--wt-accent); }
.cart-item .item-sku { font-size: 0.8rem; color: var(--wt-muted); margin-bottom: 8px; }
.cart-item .item-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cart-item .btn-remove {
    background: var(--wt-accent);
    padding: 2px 5px;
    height: 20px;  
    text-align: center;
    color: var(--wt-white);
    font-size: 10px;
    line-height: 20px;
    cursor: pointer;
    border: none;
}
.cart-item .quantity-control { display: flex; align-items: center; border: 1px solid var(--wt-line); width: fit-content; }
.cart-item .quantity-btn { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; font-size: 14px; background: none; border: none; color: var(--wt-ink); cursor: pointer; }
.cart-item .quantity-input { width: 40px; text-align: center; border: none; background: none; font-size: 13px; color: var(--wt-ink); -moz-appearance: textfield; }
.cart-item .quantity-input::-webkit-outer-spin-button,
.cart-item .quantity-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cart-item .item-price { text-align: right; min-width: 80px; }
.cart-item .price-current { display: block; font-size: 0.75rem; font-weight: 600; color: var(--wt-ink); }
.cart-item .price-original { display: block; font-size: 0.85rem; color: var(--wt-muted); text-decoration: line-through; }
.continue-shopping { padding: 24px 0; }
.continue-shopping-btn { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--wt-muted); text-decoration: none; transition: color 0.3s; }
.continue-shopping-btn:hover { color: var(--wt-accent); }

/* ===== Wishlist page items (rendered by h6po80.js) ===== */
.wishlist-items { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.wishlist-item { background: var(--wt-bg); border: 1px solid var(--wt-line); }
.wishlist-item .item-image { position: relative; aspect-ratio: 3/4; overflow: hidden; background: var(--wt-cream); }
.wishlist-item .item-image img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.wishlist-item .item-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--wt-ink);
    color: var(--wt-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    border: none;
}
.wishlist-item .item-details { padding: 10px; text-align: center; }
.wishlist-item .item-title { font-size: 0.75rem; font-weight: 500; margin-bottom: 8px; }
.wishlist-item .item-title a { color: var(--wt-ink); text-decoration: none; }
.wishlist-item .item-title a:hover { color: var(--wt-accent); }
.wishlist-item .item-price { margin-bottom: 12px; }
.wishlist-item .price-current { font-size: 0.75rem; font-weight: 600; color: var(--wt-ink); margin-right: 8px; }
.wishlist-item .price-original { font-size: 0.85rem; color: var(--wt-muted); text-decoration: line-through; }
.wishlist-item .btn-add-to-cart {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--wt-ink);
    color: var(--wt-white);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}
.wishlist-item .btn-add-to-cart:hover { background: var(--wt-accent); }

@media (max-width: 900px) {
    .wishlist-items { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .cart-item { flex-direction: column; align-items: flex-start; gap: 10px; }
    .cart-item .item-image { width: 80px; height: 80px; }
    .cart-item .item-price { text-align: left; }
    .wishlist-items { grid-template-columns: repeat(2, 1fr); }
}

/* Successful toast (add to cart / wishlist) */
.successful_title {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3500;
    background: var(--wt-ink);
    color: var(--wt-white);
    padding: 14px 32px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    animation: wtToastIn 0.3s ease, wtToastOut 0.5s ease 3s forwards;
    max-width: 90%;
}
@keyframes wtToastIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes wtToastOut {
    from { opacity: 1; }
    to { opacity: 0; visibility: hidden; }
}

@media (max-width: 768px) {
    .wt-nav { display: none; }
    .wt-burger { display: flex; }
    .shop-cart-icon:hover .shop-cart { display: none !important; }
    .successful_title { top: 64px; font-size: 12px; padding: 12px 20px; }
}


/* Description image overflow fix */
.wt-pd-desc img { max-width: 100%; height: auto; }
/* Mobile: always show action buttons */
@media (max-width: 768px) {
    .wt-product-overlay, .wt-related-grid .wt-product-overlay { transform: translateY(0) !important; display: flex !important; }
}
/* Mobile side menu link wrapping */
.side-menu a,
#jq-sideMenu a,
.submenu a {
    word-break: break-word;
    overflow-wrap: anywhere;
}
