/**
 * XTROY Gaming — Custom Styles
 * Storefront child theme overrides + custom components.
 * All classes prefixed with xtroy- to avoid Storefront conflicts.
 */

/* ========== CSS VARIABLES ========== */
:root {
    --xtroy-white: #fff;
    --xtroy-off-white: #f8f8f8;
    --xtroy-light-gray: #f0f0f0;
    --xtroy-mid-gray: #e0e0e0;
    --xtroy-text-gray: #888;
    --xtroy-text-dark: #1a1a1a;
    --xtroy-text-body: #444;
    --xtroy-accent: #e63422;
    --xtroy-accent-hover: #cc2d1d;
    --xtroy-accent-glow: rgba(230,52,34,0.12);
    --xtroy-accent-soft: rgba(230,52,34,0.06);
    --xtroy-green: #1a9e5c;
    --xtroy-black: #111;
    --xtroy-font-display: 'Sora', sans-serif;
    --xtroy-font-body: 'DM Sans', sans-serif;
    --xtroy-shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --xtroy-shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --xtroy-shadow-lg: 0 8px 40px rgba(0,0,0,0.1);
    --xtroy-shadow-xl: 0 20px 60px rgba(0,0,0,0.12);
    --xtroy-radius: 12px;
    --xtroy-max-width: 1280px;
    --xtroy-nav-height: 72px;
    --xtroy-announcement-height: 37px;
}

/* ========== BASE ========== */
.xtroy-theme { font-family: var(--xtroy-font-body); color: var(--xtroy-text-dark); background: var(--xtroy-white); }
.xtroy-theme h1, .xtroy-theme h2, .xtroy-theme h3, .xtroy-theme h4 { font-family: var(--xtroy-font-display); }

/* ========== ANNOUNCEMENT BAR ========== */
.xtroy-announcement-bar {
    background: var(--xtroy-black); color: #fff; text-align: center;
    padding: 9px 20px; font-size: 13px; letter-spacing: .5px; font-weight: 500;
    position: relative; z-index: 1001; min-height: var(--xtroy-announcement-height);
}
.xtroy-announcement-bar a,
.xtroy-announcement-bar span { color: var(--xtroy-accent); font-weight: 700; text-decoration: none; margin-left: 8px; }
.xtroy-announcement-bar a:hover { text-decoration: underline; }

/* ========== NAVBAR — sticky, always white ========== */
.xtroy-navbar {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--xtroy-light-gray);
    transition: box-shadow .25s ease;
}
.xtroy-navbar--scrolled { box-shadow: 0 2px 8px rgba(0,0,0,0.04); }

/* WP admin bar offsets */
body.admin-bar .xtroy-navbar { top: 32px; }
@media (max-width: 782px) {
    body.admin-bar .xtroy-navbar { top: 46px; }
}

.xtroy-navbar .xtroy-logo { color: var(--xtroy-text-dark); }
.xtroy-navbar .xtroy-nav-link { color: var(--xtroy-text-body); }
.xtroy-navbar .xtroy-nav-link:hover { color: var(--xtroy-text-dark); }
.xtroy-navbar .xtroy-nav-actions svg { color: var(--xtroy-text-body); }
.xtroy-navbar .xtroy-nav-actions svg:hover { color: var(--xtroy-text-dark); }
.xtroy-navbar .xtroy-hamburger span { background: var(--xtroy-text-dark); }

.xtroy-nav-inner {
    max-width: none; width: 100%; margin: 0 auto; padding: 0 40px;
    display: flex; align-items: center; justify-content: space-between; height: var(--xtroy-nav-height);
}
.xtroy-logo {
    font-family: var(--xtroy-font-display); font-size: 28px; font-weight: 800;
    letter-spacing: -1px; transition: color .4s; text-decoration: none;
}
.xtroy-logo em { font-style: normal; color: var(--xtroy-accent); }
.xtroy-logo--image { display: flex; align-items: center; height: 100%; }
/* the_custom_logo() outputs its own <a class="custom-logo-link"><img class="custom-logo">;
   constrain both, and strip Storefront's inherited bottom margin (it offsets the
   flex centering and makes the logo sit high). */
.xtroy-logo img,
.xtroy-logo .custom-logo { display: block; width: auto; height: auto; max-height: 52px; margin: 0 !important; }
.xtroy-logo .custom-logo-link { display: flex; align-items: center; line-height: 0; margin: 0 !important; }

.xtroy-nav-menu { display: flex; gap: 0; list-style: none; align-items: center; height: 100%; margin: 0; padding: 0; }
.xtroy-nav-item { position: relative; height: 100%; display: flex; align-items: center; }
.xtroy-nav-link {
    font-size: 14px; font-weight: 500; padding: 0 18px; height: 100%;
    display: flex; align-items: center; gap: 5px; position: relative;
    transition: color .2s; letter-spacing: .3px; text-decoration: none;
}
.xtroy-nav-link::after {
    content: ''; position: absolute; bottom: 0; left: 18px; right: 18px;
    height: 2px; background: var(--xtroy-accent); transform: scaleX(0);
    transition: transform .3s cubic-bezier(.25,1,.5,1);
}
.xtroy-nav-link:hover::after { transform: scaleX(1); }
.xtroy-nav-arrow { width: 12px; height: 12px; transition: transform .3s; }
.xtroy-nav-item:hover .xtroy-nav-arrow { transform: rotate(180deg); }

/* ========== MEGA MENU ========== */
.xtroy-mega-menu {
    position: absolute; top: 100%; left: 50%;
    width: 820px; background: #fff; border-radius: 0 0 16px 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12); border: 1px solid var(--xtroy-light-gray);
    border-top: 2px solid var(--xtroy-accent); padding: 32px;
    opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(8px);
    transition: opacity .3s cubic-bezier(.25,1,.5,1), transform .3s cubic-bezier(.25,1,.5,1), visibility .3s;
    pointer-events: none;
}
.xtroy-nav-item:hover .xtroy-mega-menu,
.xtroy-nav-item:focus-within .xtroy-mega-menu {
    opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); pointer-events: auto;
}
.xtroy-mega-menu--sm { width: 320px; }
.xtroy-mega-grid { display: grid; grid-template-columns: 1fr 1fr 280px; gap: 28px; }
.xtroy-mega-col h3 {
    font-family: var(--xtroy-font-display); font-size: 13px; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase; color: var(--xtroy-accent);
    margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--xtroy-light-gray);
}
.xtroy-mega-links { display: flex; flex-direction: column; gap: 2px; }
.xtroy-mega-link {
    display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px;
    font-size: 14px; color: var(--xtroy-text-body); transition: all .2s; text-decoration: none;
}
.xtroy-mega-link:hover { background: var(--xtroy-off-white); color: var(--xtroy-text-dark); transform: translateX(4px); }
.xtroy-mega-link-icon {
    width: 32px; height: 32px; border-radius: 8px; background: var(--xtroy-off-white);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    transition: all .2s; color: var(--xtroy-text-gray);
}
.xtroy-mega-link:hover .xtroy-mega-link-icon { background: var(--xtroy-accent); color: #fff; }
.xtroy-mega-link span { font-weight: 500; }
.xtroy-mega-link small { display: block; font-size: 11px; color: var(--xtroy-text-gray); font-weight: 400; margin-top: 1px; }

.xtroy-mega-featured {
    background: var(--xtroy-off-white); border-radius: 12px; overflow: hidden;
    display: flex; flex-direction: column; text-decoration: none; color: var(--xtroy-text-dark);
}
.xtroy-mega-featured-img {
    height: 160px; background: linear-gradient(135deg, var(--xtroy-light-gray), var(--xtroy-mid-gray));
    display: flex; align-items: center; justify-content: center; font-size: 12px;
    color: var(--xtroy-text-gray); overflow: hidden;
}
.xtroy-mega-featured-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.xtroy-mega-featured:hover .xtroy-mega-featured-img img { transform: scale(1.05); }
.xtroy-mega-featured-content { padding: 16px; }
.xtroy-mega-featured-tag {
    font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--xtroy-accent); margin-bottom: 6px;
}
.xtroy-mega-featured-content h4 { font-family: var(--xtroy-font-display); font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.xtroy-mega-featured-content p { font-size: 12px; color: var(--xtroy-text-gray); margin-bottom: 10px; }
.xtroy-mega-featured-cta {
    font-size: 12px; font-weight: 600; color: var(--xtroy-accent);
    display: inline-flex; align-items: center; gap: 4px; transition: gap .2s;
}
.xtroy-mega-featured:hover .xtroy-mega-featured-cta { gap: 8px; }

.xtroy-dropdown-menu {
    position: absolute; top: 100%; left: 0; min-width: 200px;
    background: #fff; border-radius: 0 0 12px 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.1); border: 1px solid var(--xtroy-light-gray);
    border-top: 2px solid var(--xtroy-accent); padding: 10px;
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: all .3s cubic-bezier(.25,1,.5,1); pointer-events: none;
}
.xtroy-nav-item:hover .xtroy-dropdown-menu,
.xtroy-nav-item:focus-within .xtroy-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
.xtroy-dropdown-link {
    display: block; padding: 9px 14px; border-radius: 8px; font-size: 14px;
    color: var(--xtroy-text-body); transition: all .2s; font-weight: 500; text-decoration: none;
}
.xtroy-dropdown-link:hover { background: var(--xtroy-off-white); color: var(--xtroy-text-dark); transform: translateX(4px); }

.xtroy-nav-actions { display: flex; align-items: center; gap: 18px; }
.xtroy-nav-action-btn { background: none; border: none; padding: 0; position: relative; display: flex; color: inherit; cursor: pointer; }
.xtroy-nav-actions svg { transition: all .2s; }
.xtroy-nav-actions svg:hover { transform: scale(1.1); }
.xtroy-cart-badge {
    position: absolute; top: -6px; right: -8px; background: var(--xtroy-accent); color: #fff;
    font-size: 10px; font-weight: 700; width: 18px; height: 18px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}

/* ========== HAMBURGER ========== */
.xtroy-hamburger {
    display: none; background: none; border: none; padding: 4px;
    width: 32px; height: 24px; position: relative; z-index: 1002; cursor: pointer;
}
.xtroy-hamburger span {
    display: block; width: 100%; height: 2px; border-radius: 2px;
    position: absolute; left: 0; transition: all .35s cubic-bezier(.25,1,.5,1);
}
.xtroy-hamburger span:nth-child(1) { top: 2px; }
.xtroy-hamburger span:nth-child(2) { top: 11px; }
.xtroy-hamburger span:nth-child(3) { top: 20px; }
.xtroy-hamburger.open span:nth-child(1) { top: 11px; transform: rotate(45deg); }
.xtroy-hamburger.open span:nth-child(2) { opacity: 0; transform: translateX(10px); }
.xtroy-hamburger.open span:nth-child(3) { top: 11px; transform: rotate(-45deg); }
.xtroy-hamburger.open span { background: var(--xtroy-text-dark) !important; }

/* ========== MOBILE DRAWER ========== */
.xtroy-mobile-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 999;
    opacity: 0; visibility: hidden; transition: all .35s; backdrop-filter: blur(4px);
}
.xtroy-mobile-overlay.open { opacity: 1; visibility: visible; }

.xtroy-mobile-drawer {
    position: fixed; top: 0; right: -100%; width: 340px; max-width: 85vw; height: 100vh;
    background: #fff; z-index: 1001; padding: 80px 28px 28px; overflow-y: auto;
    transition: right .4s cubic-bezier(.25,1,.5,1); box-shadow: -10px 0 40px rgba(0,0,0,0.1);
}
.xtroy-mobile-drawer.open { right: 0; }

.xtroy-mobile-drawer-close {
    position: absolute; top: 22px; right: 22px; width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: none; border: none; padding: 0; cursor: pointer;
    color: var(--xtroy-text-dark); border-radius: 50%; transition: background .2s, color .2s;
}
.xtroy-mobile-drawer-close:hover { background: var(--xtroy-light-gray); color: var(--xtroy-accent); }

.xtroy-mobile-nav-links { display: flex; flex-direction: column; gap: 0; }
.xtroy-mobile-nav-link {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 0; font-size: 16px; font-weight: 600; color: var(--xtroy-text-dark);
    border-bottom: 1px solid var(--xtroy-light-gray); transition: color .2s; text-decoration: none;
}
.xtroy-mobile-nav-link:hover { color: var(--xtroy-accent); }
.xtroy-mobile-arrow { width: 16px; height: 16px; color: var(--xtroy-text-gray); transition: transform .3s; }
.xtroy-mobile-nav-item.expanded .xtroy-mobile-arrow { transform: rotate(180deg); }

.xtroy-mobile-submenu { max-height: 0; overflow: hidden; transition: max-height .4s cubic-bezier(.25,1,.5,1); }
.xtroy-mobile-nav-item.expanded .xtroy-mobile-submenu { max-height: 500px; }
.xtroy-mobile-sub-link {
    display: block; padding: 10px 0 10px 16px; font-size: 14px; color: var(--xtroy-text-body);
    font-weight: 500; transition: all .2s; border-bottom: 1px solid rgba(0,0,0,0.04); text-decoration: none;
}
.xtroy-mobile-sub-link:hover { color: var(--xtroy-accent); transform: translateX(4px); }
.xtroy-mobile-sub-label {
    font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
    color: var(--xtroy-accent); padding: 14px 0 6px 16px;
}
.xtroy-mobile-cta { margin-top: 28px; display: flex; flex-direction: column; gap: 10px; }
.xtroy-mobile-cta-btn {
    display: block; width: 100%; padding: 14px; border: none; border-radius: 10px;
    font-size: 14px; font-weight: 600; text-align: center; transition: all .3s; text-decoration: none;
}
.xtroy-mobile-cta-primary { background: var(--xtroy-accent); color: #fff; }
.xtroy-mobile-cta-primary:hover { background: var(--xtroy-accent-hover); }
.xtroy-mobile-cta-outline { background: none; border: 2px solid var(--xtroy-text-dark); color: var(--xtroy-text-dark); }
.xtroy-mobile-cta-outline:hover { background: var(--xtroy-text-dark); color: #fff; }

/* ========== BUTTONS ========== */
.xtroy-btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--xtroy-accent); color: #fff; font-family: var(--xtroy-font-body);
    font-size: 14px; font-weight: 600; padding: 15px 34px; border: none; border-radius: 8px;
    cursor: pointer; transition: all .3s cubic-bezier(.25,1,.5,1); letter-spacing: .3px;
    text-decoration: none; position: relative; overflow: hidden;
}
.xtroy-btn-primary:hover {
    background: var(--xtroy-accent-hover); transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(230,52,34,.3); color: #fff;
}
.xtroy-btn-outline {
    display: inline-flex; align-items: center; gap: 8px;
    background: transparent; color: var(--xtroy-text-dark); font-family: var(--xtroy-font-body);
    font-size: 14px; font-weight: 600; padding: 15px 34px; border: 2px solid var(--xtroy-text-dark);
    border-radius: 8px; cursor: pointer; transition: all .3s; text-decoration: none;
}
.xtroy-btn-outline:hover { background: var(--xtroy-text-dark); color: #fff; transform: translateY(-3px); }

/* ========== HERO SLIDER ========== */
.xtroy-hero-slider { position: relative; overflow: hidden; background: var(--xtroy-off-white); margin-top: 0; }
.xtroy-slides-container { display: flex; transition: transform .7s cubic-bezier(.65,0,.35,1); will-change: transform; }
.xtroy-slide {
    min-width: 100%; min-height: 620px; display: flex; align-items: center;
    padding: 60px 40px; position: relative;
}
.xtroy-slide-bg { position: absolute; inset: 0; overflow: hidden; }
.xtroy-slide-bg picture { display: block; width: 100%; height: 100%; }
.xtroy-slide-bg img { width: 100%; height: 100%; object-fit: cover; transition: transform 6s ease-out; }
.xtroy-slide.active .xtroy-slide-bg img { transform: scale(1.05); }
.xtroy-slide-bg-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(255,255,255,.45) 0%, rgba(255,255,255,.2) 60%, transparent 100%);
}
.xtroy-slide-inner {
    max-width: var(--xtroy-max-width); margin: 0 auto; width: 100%;
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
    position: relative; z-index: 2;
}
.xtroy-slide-content { opacity: 0; transform: translateY(40px); }
.xtroy-slide.active .xtroy-slide-content { animation: xtroySlideIn .8s .2s cubic-bezier(.16,1,.3,1) forwards; }
@keyframes xtroySlideIn { to { opacity: 1; transform: translateY(0); } }

.xtroy-slide-tag {
    display: inline-block; background: var(--xtroy-accent); color: #fff;
    font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
    padding: 6px 14px; border-radius: 4px; margin-bottom: 20px;
}
.xtroy-slide-title {
    font-family: var(--xtroy-font-display); font-size: 54px; font-weight: 800;
    line-height: 1.08; letter-spacing: -2px; margin-bottom: 16px; color: var(--xtroy-text-dark);
}
.xtroy-slide-desc { font-size: 17px; color: var(--xtroy-text-body); max-width: 420px; margin-bottom: 32px; line-height: 1.7; }
.xtroy-slide-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* Image-only slides — shown at the uploaded image's natural aspect ratio (no crop) */
.xtroy-slide--image { padding: 0; min-height: 0; display: block; }
.xtroy-slide--image .xtroy-slide-image-link { display: block; }
.xtroy-slide--image picture,
.xtroy-slide--image picture img { display: block; width: 100%; height: auto; }
.xtroy-slide-image-placeholder { width: 100%; aspect-ratio: 16 / 6; background: linear-gradient(135deg,#f5f5f5 0%,#e8e8e8 100%); }

.xtroy-slider-progress { position: absolute; bottom: 0; left: 0; height: 3px; background: var(--xtroy-accent); z-index: 10; transition: width .3s; width: 0; }
.xtroy-slider-progress.animating { transition: width 5s linear; width: 100%; }

.xtroy-slider-controls { position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 10; }
.xtroy-slider-dot {
    width: 10px; height: 10px; border-radius: 50%; background: rgba(0,0,0,.15);
    border: none; cursor: pointer; transition: all .4s cubic-bezier(.25,1,.5,1); padding: 0;
}
.xtroy-slider-dot.active { background: var(--xtroy-accent); width: 36px; border-radius: 5px; }

.xtroy-slider-arrows {
    position: absolute; top: 50%; transform: translateY(-50%); width: 100%;
    display: flex; justify-content: space-between; padding: 0 20px; pointer-events: none; z-index: 10;
}
.xtroy-slider-arrow {
    width: 50px; height: 50px; border-radius: 50%; background: #fff;
    border: 1px solid var(--xtroy-mid-gray); display: flex; align-items: center; justify-content: center;
    cursor: pointer; pointer-events: auto; transition: all .3s; color: var(--xtroy-text-dark); box-shadow: var(--xtroy-shadow-sm);
}
.xtroy-slider-arrow:hover { background: var(--xtroy-text-dark); color: #fff; border-color: var(--xtroy-text-dark); transform: scale(1.1); }

/* ========== HOMEPAGE SECTIONS ========== */
.xtroy-section { padding: 20px 40px; }
.xtroy-section-header { text-align: center; margin-bottom: 34px; max-width: var(--xtroy-max-width); margin-left: auto; margin-right: auto; }
.xtroy-section-subtitle {
    font-size: 12px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
    color: var(--xtroy-accent); margin-bottom: 10px;
}
.xtroy-section-title { font-family: var(--xtroy-font-display); font-size: 40px; font-weight: 800; letter-spacing: -1.5px; margin: 0 !important; }
.xtroy-section-header .xtroy-section-subtitle { margin-top: 0; }
.xtroy-section-desc { font-size: 16px; color: var(--xtroy-text-gray); margin-top: 10px; max-width: 500px; margin-left: auto; margin-right: auto; }

.xtroy-cat-grid { max-width: var(--xtroy-max-width); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.xtroy-category-card { border-radius: var(--xtroy-radius); overflow: hidden; position: relative; aspect-ratio: 3/4; display: block; text-decoration: none; transition: all .45s cubic-bezier(.25,1,.5,1); }
.xtroy-cat-card-img { position: absolute; inset: 0; overflow: hidden; }
.xtroy-cat-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.25,1,.5,1); }
.xtroy-category-card:hover .xtroy-cat-card-img img { transform: scale(1.06); }
.xtroy-cat-card-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, var(--xtroy-off-white), var(--xtroy-light-gray)); display: flex; align-items: center; justify-content: center; color: var(--xtroy-text-gray); font-size: 13px; }
.xtroy-cat-card-overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.7) 0%, rgba(0,0,0,.1) 50%, transparent 100%); z-index: 2; }
.xtroy-cat-card-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 28px; z-index: 3; color: #fff; }
.xtroy-cat-card-content h3 { font-family: var(--xtroy-font-display); font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.xtroy-cat-card-content p { font-size: 13px; opacity: .7; }

/* Categories slider — grid on desktop, swipe carousel (arrows + dots) on tablet/mobile */
.xtroy-cat-slider { max-width: var(--xtroy-max-width); margin: 0 auto; }
.xtroy-cat-viewport { position: relative; }
.xtroy-cat-arrow,
.xtroy-cat-dots { display: none; }

.xtroy-bestsellers-wrap { max-width: var(--xtroy-max-width); margin: 0 auto; }

.xtroy-features-grid { max-width: var(--xtroy-max-width); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.xtroy-feature-card { text-align: center; padding: 44px 30px; border-radius: var(--xtroy-radius); border: 1px solid var(--xtroy-light-gray); transition: all .4s cubic-bezier(.25,1,.5,1); position: relative; overflow: hidden; background: #fff; }
.xtroy-feature-card:hover { transform: translateY(-4px); box-shadow: var(--xtroy-shadow-md); border-color: transparent; }
.xtroy-feature-icon { width: 60px; height: 60px; margin: 0 auto 20px; background: var(--xtroy-off-white); border-radius: 16px; display: flex; align-items: center; justify-content: center; color: var(--xtroy-accent); }
.xtroy-feature-card h3 { font-family: var(--xtroy-font-display); font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.xtroy-feature-card p { font-size: 14px; color: var(--xtroy-text-gray); line-height: 1.7; }

.xtroy-newsletter-section { background: var(--xtroy-white); text-align: center; }
.xtroy-newsletter-form { max-width: 500px; margin: 0 auto; display: flex; gap: 10px; }
.xtroy-newsletter-form input[type="email"] { flex: 1; padding: 15px 22px; border: 2px solid var(--xtroy-light-gray); border-radius: 10px; font-family: var(--xtroy-font-body); font-size: 14px; outline: none; }
.xtroy-newsletter-form input[type="email"]:focus { border-color: var(--xtroy-accent); }

/* ========== PAGE HERO (shared template-part) ========== */
.xtroy-page-hero { background: var(--xtroy-off-white); padding: 40px 40px; text-align: center; }
.xtroy-page-hero-inner { max-width: 720px; margin: 0 auto; }
.xtroy-page-hero .xtroy-section-subtitle { margin-bottom: 12px; }
.xtroy-page-hero h1 { font-family: var(--xtroy-font-display); font-size: 48px; font-weight: 800; letter-spacing: -1.5px; margin-bottom: 16px; line-height: 1.1; }
.xtroy-page-hero p { font-size: 17px; color: var(--xtroy-text-gray); line-height: 1.6; }

/* ========== GENERIC PAGE / READING COLUMN ========== */
.xtroy-page-content { max-width: 720px; margin: 0 auto; padding: 60px 24px; font-size: 16px; line-height: 1.8; color: var(--xtroy-text-body); }
.xtroy-page-content h2 { font-family: var(--xtroy-font-display); font-size: 28px; margin: 48px 0 16px; color: var(--xtroy-text-dark); }
.xtroy-page-content h3 { font-family: var(--xtroy-font-display); font-size: 20px; margin: 32px 0 12px; color: var(--xtroy-text-dark); }
.xtroy-page-content p { margin-bottom: 20px; }
.xtroy-page-content ul, .xtroy-page-content ol { padding-left: 24px; margin-bottom: 20px; }
.xtroy-page-content li { margin-bottom: 8px; }
.xtroy-page-content a { color: var(--xtroy-accent); }

/* ========== FAQ ACCORDION ========== */
.xtroy-faq-section { max-width: 820px; margin: 0 auto; padding: 60px 24px; }
.xtroy-faq-cat { margin-bottom: 36px; }
.xtroy-faq-cat h2 { font-family: var(--xtroy-font-display); font-size: 22px; color: var(--xtroy-text-dark); margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid var(--xtroy-accent); display: inline-block; }
.xtroy-faq-item { border: 1px solid var(--xtroy-light-gray); border-radius: 10px; margin-bottom: 10px; overflow: hidden; transition: border-color .25s; }
.xtroy-faq-item:hover { border-color: var(--xtroy-mid-gray); }
.xtroy-faq-item summary { padding: 18px 24px; font-weight: 600; font-size: 15px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.xtroy-faq-item summary::-webkit-details-marker { display: none; }
.xtroy-faq-item summary::after { content: '+'; font-size: 22px; color: var(--xtroy-accent); transition: transform .3s; }
.xtroy-faq-item[open] summary::after { transform: rotate(45deg); }
.xtroy-faq-item-body { padding: 0 24px 18px; color: var(--xtroy-text-body); line-height: 1.7; }

/* ========== CONTACT PAGE ========== */
.xtroy-contact-grid { max-width: var(--xtroy-max-width); margin: 0 auto; padding: 60px 24px; display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; }
.xtroy-contact-info h2 { font-family: var(--xtroy-font-display); font-size: 18px; margin-bottom: 8px; color: var(--xtroy-text-dark); }
.xtroy-contact-info p, .xtroy-contact-info address { font-style: normal; color: var(--xtroy-text-body); line-height: 1.7; margin-bottom: 24px; white-space: pre-line; }
.xtroy-contact-form { background: var(--xtroy-off-white); padding: 32px; border-radius: var(--xtroy-radius); }
.xtroy-contact-form-title { font-family: var(--xtroy-font-display); font-size: 18px; margin-bottom: 16px; color: var(--xtroy-text-dark); }
.xtroy-contact-form label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--xtroy-text-dark); }
.xtroy-contact-form input[type="text"], .xtroy-contact-form input[type="email"], .xtroy-contact-form input[type="tel"], .xtroy-contact-form textarea { width: 100%; padding: 12px 16px; border: 1px solid var(--xtroy-mid-gray); border-radius: 8px; font-family: var(--xtroy-font-body); font-size: 14px; margin-bottom: 14px; background: #fff; }
.xtroy-contact-form textarea { resize: vertical; min-height: 120px; }
.xtroy-contact-form input:focus, .xtroy-contact-form textarea:focus { outline: none; border-color: var(--xtroy-accent); }
.xtroy-contact-kvkk { font-size: 12px; color: var(--xtroy-text-gray); margin: 12px 0; }
.xtroy-contact-kvkk a { color: var(--xtroy-accent); }
.xtroy-contact-map { max-width: var(--xtroy-max-width); margin: 0 auto 60px; padding: 0 24px; }
.xtroy-contact-map iframe { display: block; width: 100%; height: 420px; border: 0; border-radius: var(--xtroy-radius); box-shadow: var(--xtroy-shadow-sm); }
@media (max-width: 640px) { .xtroy-contact-map iframe { height: 300px; } }

/* ========== 404 PAGE ========== */
.xtroy-404 { padding: 120px 24px; text-align: center; max-width: 600px; margin: 0 auto; }
.xtroy-404-num { font-family: var(--xtroy-font-display); font-size: 140px; font-weight: 900; line-height: 1; color: var(--xtroy-accent); letter-spacing: -6px; }
.xtroy-404 h1 { font-family: var(--xtroy-font-display); font-size: 36px; margin: 16px 0 12px; }
.xtroy-404 p { color: var(--xtroy-text-gray); font-size: 16px; line-height: 1.6; margin-bottom: 32px; }
.xtroy-404-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ========== SEARCH PAGE ========== */
.xtroy-search-results { max-width: var(--xtroy-max-width); margin: 0 auto; padding: 60px 24px; }
.xtroy-search-result { padding: 24px 0; border-bottom: 1px solid var(--xtroy-light-gray); }
.xtroy-search-result h2 { font-family: var(--xtroy-font-display); font-size: 22px; margin-bottom: 6px; }
.xtroy-search-result h2 a { color: var(--xtroy-text-dark); text-decoration: none; }
.xtroy-search-result h2 a:hover { color: var(--xtroy-accent); }
.xtroy-search-result p { color: var(--xtroy-text-gray); line-height: 1.6; }

/* ========== FOOTER ========== */
.xtroy-footer { background: var(--xtroy-text-dark); color: #fff; padding: 60px 40px 30px; }
.xtroy-footer-inner { max-width: var(--xtroy-max-width); margin: 0 auto; }
.xtroy-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.xtroy-footer-logo { display: inline-block; margin-bottom: 12px; text-decoration: none; }
.xtroy-footer-logo img { display: block; width: auto; height: auto; max-height: 44px; }
.xtroy-footer .footer-brand p { font-size: 14px; color: rgba(255,255,255,.5); line-height: 1.7; max-width: 280px; }
.xtroy-footer-social { display: flex; gap: 10px; margin-top: 20px; }
.xtroy-social-icon { width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all .3s; color: rgba(255,255,255,.6); font-size: 12px; font-weight: 600; text-decoration: none; }
.xtroy-social-icon:hover { background: var(--xtroy-accent); color: #fff; transform: translateY(-2px); }
.xtroy-footer-col .xtroy-footer-col-title { font-family: var(--xtroy-font-display); font-size: 14px; font-weight: 700; margin-bottom: 18px; }
.xtroy-footer-menu { list-style: none; margin: 0; padding: 0; }
.xtroy-footer-menu li { margin: 0; }
.xtroy-footer-col a,
.xtroy-footer-col .xtroy-footer-link { display: block; font-size: 13px; color: rgba(255,255,255,.5); margin-bottom: 10px; transition: all .2s; text-decoration: none; }
.xtroy-footer-col a:hover { color: #fff; transform: translateX(4px); }
.xtroy-footer-col .xtroy-footer-link.is-disabled { cursor: default; }
.xtroy-footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: rgba(255,255,255,.35); flex-wrap: wrap; gap: 16px; }
.xtroy-payment-methods { display: flex; gap: 6px; flex-wrap: wrap; }
.xtroy-payment-icon { padding: 4px 12px; background: rgba(255,255,255,.08); border-radius: 4px; font-size: 10px; font-weight: 600; color: rgba(255,255,255,.5); }

/* ========== SCROLL ANIMATIONS ========== */
.xtroy-reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.xtroy-reveal.visible { opacity: 1; transform: translateY(0); }
.xtroy-stagger-1 { transition-delay: .05s; }
.xtroy-stagger-2 { transition-delay: .1s; }
.xtroy-stagger-3 { transition-delay: .15s; }
.xtroy-stagger-4 { transition-delay: .2s; }

/* ========== STOREFRONT OVERRIDES ========== */
.xtroy-theme .site-header { display: none; }
.xtroy-theme .site-footer { display: none; }
.xtroy-theme .storefront-breadcrumb { display: none; }
.xtroy-theme #content { padding-top: 0; }

/* ========== WOOCOMMERCE: SHOP / ARCHIVE (Mağaza) ========== */
.xtroy-shop { max-width: none; margin: 0; padding: 8px 40px 80px; }

/* Toolbar: result count (left) + sort (right); notices stack full-width on top */
.xtroy-shop-toolbar { display: flow-root; padding-bottom: 20px; margin-bottom: 32px; border-bottom: 1px solid var(--xtroy-light-gray); }
.xtroy-shop-toolbar .woocommerce-result-count { float: left; margin: 0; line-height: 44px; font-size: 14px; color: var(--xtroy-text-gray); }
.xtroy-shop-toolbar .woocommerce-ordering { float: right; margin: 0; }
.xtroy-shop-toolbar .woocommerce-ordering select {
    font-family: var(--xtroy-font-body); font-size: 14px; font-weight: 500; color: var(--xtroy-text-dark);
    padding: 11px 42px 11px 16px; border: 1px solid var(--xtroy-mid-gray); border-radius: 8px; background-color: #fff;
    cursor: pointer; -webkit-appearance: none; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center;
}
.xtroy-shop-toolbar .woocommerce-ordering select:focus { outline: none; border-color: var(--xtroy-accent); }

/* Left filter sidebar */
.xtroy-shop-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; align-items: start; }
.xtroy-shop-sidebar { position: sticky; top: calc(var(--xtroy-nav-height) + 24px); display: flex; flex-direction: column; gap: 20px; }
.xtroy-shop-main { min-width: 0; }
/* Shop cards: auto-fill so they keep a sensible size (no giant stretch) */
.xtroy-shop .xtroy-shop-main ul.products { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.xtroy-filter-card { background: #fff; border: 1px solid var(--xtroy-light-gray); border-radius: var(--xtroy-radius); padding: 20px; }
.xtroy-filter-title { font-family: var(--xtroy-font-display); font-size: 15px; font-weight: 800; letter-spacing: .3px; color: var(--xtroy-text-dark); margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--xtroy-light-gray); }
.xtroy-filter-cats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.xtroy-filter-cats a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--xtroy-text-body); text-decoration: none; transition: all .2s; }
.xtroy-filter-cats a:hover { background: var(--xtroy-off-white); color: var(--xtroy-text-dark); }
.xtroy-filter-cats a.active { background: var(--xtroy-text-dark); color: #fff; }
.xtroy-filter-cats a em { font-style: normal; font-size: 12px; color: var(--xtroy-text-gray); }
.xtroy-filter-cats a.active em { color: rgba(255,255,255,.6); }
.xtroy-price-inputs { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.xtroy-price-inputs input { width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid var(--xtroy-mid-gray); border-radius: 8px; font-family: var(--xtroy-font-body); font-size: 14px; background: #fff; }
.xtroy-price-inputs input:focus { outline: none; border-color: var(--xtroy-accent); }
.xtroy-price-inputs span { color: var(--xtroy-text-gray); }
.xtroy-price-filter .xtroy-btn-outline { width: 100%; justify-content: center; padding: 11px 16px; }
.xtroy-price-clear { display: inline-block; margin-top: 10px; font-size: 12px; color: var(--xtroy-text-gray); text-decoration: underline; }
.xtroy-price-clear:hover { color: var(--xtroy-accent); }

/* Product grid (shop, related, homepage shortcodes) */
.xtroy-theme ul.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 0; padding: 0; list-style: none; }
.xtroy-theme ul.products::before, .xtroy-theme ul.products::after { content: none; display: none; }
.xtroy-theme ul.products li.product {
    width: auto !important; margin: 0 !important; float: none !important; padding: 0;
    display: flex; flex-direction: column; position: relative; background: #fff;
    border: 1px solid var(--xtroy-light-gray); border-radius: var(--xtroy-radius); overflow: hidden;
    transition: transform .4s cubic-bezier(.25,1,.5,1), box-shadow .4s, border-color .4s;
}
.xtroy-theme ul.products li.product:hover { transform: translateY(-6px); box-shadow: var(--xtroy-shadow-xl); border-color: transparent; }
.xtroy-theme ul.products li.product a.woocommerce-LoopProduct-link { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.xtroy-theme ul.products li.product img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; margin: 0; display: block; background: var(--xtroy-off-white); transition: transform .5s cubic-bezier(.25,1,.5,1); }
.xtroy-theme ul.products li.product:hover img { transform: scale(1.05); }
.xtroy-theme ul.products li.product .woocommerce-loop-product__title { font-family: var(--xtroy-font-display); font-size: 16px; font-weight: 700; line-height: 1.35; color: var(--xtroy-text-dark); padding: 16px 18px 0; }
.xtroy-theme ul.products li.product .star-rating { margin: 10px 18px 0; font-size: 13px; color: var(--xtroy-accent); }
.xtroy-theme ul.products li.product .price { padding: 8px 18px 0; font-family: var(--xtroy-font-display); font-size: 18px; font-weight: 800; color: var(--xtroy-text-dark); }
.xtroy-theme ul.products li.product .price del { color: var(--xtroy-text-gray); font-weight: 500; font-size: 14px; margin-right: 6px; }
.xtroy-theme ul.products li.product .price ins { text-decoration: none; color: var(--xtroy-accent); }
.xtroy-theme ul.products li.product .button,
.xtroy-theme ul.products li.product .add_to_cart_button,
.xtroy-theme ul.products li.product .added_to_cart {
    margin: auto 18px 18px; padding: 12px 18px; border-radius: 8px; background: var(--xtroy-text-dark); color: #fff;
    font-family: var(--xtroy-font-body); font-size: 13px; font-weight: 600; letter-spacing: .3px; text-align: center;
    border: none; text-decoration: none; display: block; transition: background .3s, transform .3s;
}
.xtroy-theme ul.products li.product .button:hover,
.xtroy-theme ul.products li.product .add_to_cart_button:hover,
.xtroy-theme ul.products li.product .added_to_cart:hover { background: var(--xtroy-accent); }
/* Hide WooCommerce's appended "View cart" link — a toast covers it instead */
.xtroy-theme ul.products li.product .added_to_cart { display: none !important; }
.xtroy-theme ul.products li.product .button:focus,
.xtroy-theme ul.products li.product .button:focus-visible { outline: 2px solid var(--xtroy-accent); outline-offset: 2px; }
.xtroy-theme ul.products li.product .onsale {
    position: absolute; top: 12px; left: 12px; right: auto; z-index: 2; margin: 0; min-height: 0; min-width: 0;
    background: var(--xtroy-accent); color: #fff; font-family: var(--xtroy-font-body); font-size: 11px; font-weight: 700;
    letter-spacing: .5px; text-transform: uppercase; line-height: 1.4; padding: 5px 12px; border-radius: 100px;
}

/* Pagination */
.xtroy-theme .woocommerce-pagination { margin-top: 48px; text-align: center; }
.xtroy-theme .woocommerce-pagination ul { display: inline-flex; gap: 8px; border: none !important; margin: 0; padding: 0; }
.xtroy-theme .woocommerce-pagination ul li { border: none !important; margin: 0; overflow: visible; }
.xtroy-theme .woocommerce-pagination ul li a,
.xtroy-theme .woocommerce-pagination ul li span {
    display: flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 14px;
    border-radius: 8px; border: 1px solid var(--xtroy-light-gray) !important; background: #fff; font-weight: 600;
    color: var(--xtroy-text-body); transition: all .2s;
}
.xtroy-theme .woocommerce-pagination ul li a:hover { border-color: var(--xtroy-accent) !important; color: var(--xtroy-accent); background: #fff; }
.xtroy-theme .woocommerce-pagination ul li span.current { background: var(--xtroy-accent); color: #fff; border-color: var(--xtroy-accent) !important; }

/* WooCommerce notices — branded. The icon uses the WooCommerce icon font
   which renders as mojibake here, so we hide it. */
.xtroy-theme .woocommerce-info,
.xtroy-theme .woocommerce-message,
.xtroy-theme .woocommerce-error,
.xtroy-theme .woocommerce-noreviews,
.xtroy-theme .woocommerce-NoReviews {
    position: relative; border-radius: var(--xtroy-radius); border: 1px solid var(--xtroy-light-gray); border-top: 3px solid var(--xtroy-accent);
    background: var(--xtroy-off-white); color: var(--xtroy-text-body); font-size: 14px; padding: 16px 22px; list-style: none;
}
.xtroy-theme .woocommerce-info::before,
.xtroy-theme .woocommerce-message::before,
.xtroy-theme .woocommerce-error::before,
.xtroy-theme .woocommerce-noreviews::before { content: "" !important; display: none !important; }
.xtroy-theme .woocommerce-message { border-top-color: var(--xtroy-green); }
.xtroy-theme .woocommerce-error { border-top-color: var(--xtroy-accent); }
.xtroy-theme .woocommerce-info .button,
.xtroy-theme .woocommerce-message .button { background: var(--xtroy-text-dark) !important; color: #fff !important; border-radius: 8px; }
.xtroy-theme .woocommerce-info .button:hover,
.xtroy-theme .woocommerce-message .button:hover { background: var(--xtroy-accent) !important; color: #fff !important; }
/* Remove the WooCommerce ".wc-forward" arrow (→) from these buttons */
.xtroy-theme .button.wc-forward::after,
.xtroy-theme .woocommerce-info .button::after,
.xtroy-theme .woocommerce-message .button::after { content: none !important; display: none !important; }
/* Gallery zoom trigger uses the broken icon font — hide it (click still zooms) */
.single-product .woocommerce-product-gallery__trigger { display: none !important; }

/* ========== WOOCOMMERCE: SINGLE PRODUCT ========== */
.xtroy-product-page { max-width: var(--xtroy-max-width); margin: 0 auto; padding: 8px 24px 60px; }
.xtroy-theme .woocommerce-breadcrumb { font-size: 13px; color: var(--xtroy-text-gray); margin-bottom: 28px; }
.xtroy-theme .woocommerce-breadcrumb a { color: var(--xtroy-text-body); }
.xtroy-theme .woocommerce-breadcrumb a:hover { color: var(--xtroy-accent); }

.single-product div.product { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; align-items: start; margin: 0; }
.single-product div.product::before, .single-product div.product::after { content: none; display: none; }
.single-product div.product > .woocommerce-product-gallery { grid-column: 1; grid-row: 1; width: auto !important; float: none !important; margin: 0 !important; }
.single-product div.product > .xtroy-vgallery { grid-column: 1; grid-row: 1; align-self: start; min-width: 0; }
.single-product div.product > .summary,
.single-product div.product > .entry-summary { grid-column: 2; grid-row: 1; width: auto !important; float: none !important; margin: 0 !important; }

/* Gallery */
.single-product .woocommerce-product-gallery { position: relative; }
.single-product .woocommerce-product-gallery .flex-viewport { height: auto !important; }
.single-product .woocommerce-product-gallery__image { position: relative; overflow: hidden; text-align: center; border-radius: var(--xtroy-radius); }
.single-product .woocommerce-product-gallery .woocommerce-product-gallery__image img:not(.zoomImg) { width: 100% !important; height: auto !important; margin: 0 auto; display: block; }
.single-product .woocommerce-product-gallery .flex-control-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; padding: 0; }
.single-product .woocommerce-product-gallery .flex-control-thumbs li { width: 72px; margin: 0; list-style: none; }
.single-product .woocommerce-product-gallery .flex-control-thumbs img { border-radius: 8px; opacity: .55; cursor: pointer; transition: opacity .2s; }
.single-product .woocommerce-product-gallery .flex-control-thumbs img:hover,
.single-product .woocommerce-product-gallery .flex-control-thumbs .flex-active img { opacity: 1; }
.single-product div.product > .onsale,
.single-product .woocommerce-product-gallery .onsale {
    position: absolute !important; top: 14px; left: 14px; right: auto; z-index: 5; margin: 0; min-height: 0; min-width: 0; border: none;
    background: var(--xtroy-accent); color: #fff; font-family: var(--xtroy-font-body); font-size: 12px; font-weight: 700;
    letter-spacing: .5px; text-transform: uppercase; line-height: 1.4; padding: 6px 14px; border-radius: 100px;
}

/* Summary (sticky) */
.single-product .summary { position: sticky; top: calc(var(--xtroy-nav-height) + 24px); }
.single-product .summary .product_title { font-family: var(--xtroy-font-display); font-size: 34px; font-weight: 800; line-height: 1.15; letter-spacing: -1px; margin: 0 0 14px; color: var(--xtroy-text-dark); }
.single-product .summary .price { font-family: var(--xtroy-font-display); font-size: 30px; font-weight: 800; color: var(--xtroy-text-dark); margin: 0 0 20px; }
.single-product .summary .price del { color: var(--xtroy-text-gray); font-weight: 500; font-size: 20px; margin-right: 10px; }
.single-product .summary .price ins { text-decoration: none; color: var(--xtroy-accent); }
.single-product .summary .woocommerce-product-details__short-description { color: var(--xtroy-text-body); line-height: 1.7; font-size: 15px; margin-bottom: 24px; }
.single-product .summary .variations { width: 100%; margin: 0 0 16px; border-collapse: collapse; }
.single-product .summary .variations th,
.single-product .summary .variations td { padding: 6px 0; vertical-align: middle; }
.single-product .summary .variations select { width: 100%; padding: 12px 16px; border: 1px solid var(--xtroy-mid-gray); border-radius: 8px; font-family: var(--xtroy-font-body); font-size: 14px; background: #fff; }
.single-product .summary form.cart { display: flex; align-items: center; gap: 12px; margin: 0 0 24px; flex-wrap: wrap; }
.single-product .summary form.cart .quantity { margin: 0; }
.single-product .summary form.cart .quantity input.qty { width: 74px; height: 52px; border: 1px solid var(--xtroy-mid-gray); border-radius: 10px; text-align: center; font-family: var(--xtroy-font-body); font-size: 15px; font-weight: 600; background: #fff; }
.single-product .summary .single_add_to_cart_button {
    flex: 1; min-width: 200px; height: 52px; padding: 0 32px; border: none; border-radius: 10px; cursor: pointer;
    background: var(--xtroy-accent); color: #fff; font-family: var(--xtroy-font-body); font-size: 15px; font-weight: 700;
    letter-spacing: .3px; transition: all .3s;
}
.single-product .summary .single_add_to_cart_button:hover { background: var(--xtroy-accent-hover); transform: translateY(-2px); box-shadow: 0 8px 25px var(--xtroy-accent-glow); }
.single-product .summary .product_meta { margin-top: 4px; padding-top: 18px; border-top: 1px solid var(--xtroy-light-gray); font-size: 13px; color: var(--xtroy-text-gray); }
.single-product .summary .product_meta > span { display: block; margin-bottom: 6px; }
.single-product .summary .product_meta a { color: var(--xtroy-text-body); }
.single-product .summary .product_meta a:hover { color: var(--xtroy-accent); }

/* Tabs + related span full width under the 2-col grid */
.single-product div.product > .woocommerce-tabs,
.single-product div.product > .upsells,
.single-product div.product > .related { grid-column: 1 / -1; }
.single-product div.product .woocommerce-tabs,
.single-product div.product .woocommerce-tabs.wc-tabs-wrapper { display: block !important; width: 100% !important; margin-top: 64px; }
.single-product div.product .woocommerce-tabs ul.tabs { display: flex !important; flex-wrap: wrap; gap: 8px; list-style: none; width: 100% !important; float: none !important; clear: both; margin: 0 0 28px; padding: 0; border-bottom: 1px solid var(--xtroy-light-gray); }
.single-product .woocommerce-tabs ul.tabs::before, .single-product .woocommerce-tabs ul.tabs::after { content: none; display: none; }
.single-product .woocommerce-tabs ul.tabs li { background: none; border: none; border-radius: 0; margin: 0; padding: 0; }
.single-product .woocommerce-tabs ul.tabs li::before, .single-product .woocommerce-tabs ul.tabs li::after { content: none; display: none; }
.single-product .woocommerce-tabs ul.tabs li a { display: block; padding: 14px 6px; margin-bottom: -1px; font-family: var(--xtroy-font-display); font-size: 15px; font-weight: 700; color: var(--xtroy-text-gray); border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; text-decoration: none; }
.single-product .woocommerce-tabs ul.tabs li.active a,
.single-product .woocommerce-tabs ul.tabs li a:hover { color: var(--xtroy-text-dark); border-bottom-color: var(--xtroy-accent); }
.single-product div.product .woocommerce-tabs .panel,
.single-product div.product .woocommerce-tabs .woocommerce-Tabs-panel,
.single-product div.product .woocommerce-tabs .wc-tab { display: block !important; clear: both !important; float: none !important; width: 100% !important; max-width: 820px; margin: 0 !important; font-size: 15px; line-height: 1.8; color: var(--xtroy-text-body); }
.single-product .woocommerce-tabs .panel h2 { font-family: var(--xtroy-font-display); font-size: 24px; color: var(--xtroy-text-dark); margin: 0 0 14px; }
.single-product .related > h2,
.single-product .upsells > h2 { font-family: var(--xtroy-font-display); font-size: 28px; font-weight: 800; letter-spacing: -1px; color: var(--xtroy-text-dark); margin: 64px 0 28px; }

/* Trust badges (single-product template) */
.xtroy-trust-badges { display: flex; flex-wrap: wrap; gap: 40px; justify-content: center; margin: 56px 0; padding: 26px 24px; border-top: 1px solid var(--xtroy-light-gray); border-bottom: 1px solid var(--xtroy-light-gray); }
.xtroy-trust-badge { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--xtroy-text-body); }
.xtroy-trust-badge svg { color: var(--xtroy-accent); flex-shrink: 0; }

/* ========== WOOCOMMERCE: QUICK-VIEW DIALOG ========== */
.xtroy-qv-overlay {
    position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 24px;
    background: rgba(17,17,17,.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.xtroy-qv-overlay.open { opacity: 1; visibility: visible; }
.xtroy-qv-dialog {
    position: relative; width: 100%; max-width: 1040px; max-height: 92vh; overflow-y: auto; background: #fff;
    border-radius: var(--xtroy-radius); box-shadow: var(--xtroy-shadow-xl);
    transform: translateY(16px) scale(.98); transition: transform .3s cubic-bezier(.16,1,.3,1);
}
.xtroy-qv-overlay.open .xtroy-qv-dialog { transform: none; }
.xtroy-qv-close {
    position: absolute; top: 12px; right: 12px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; border: none;
    background: var(--xtroy-off-white); color: var(--xtroy-text-dark); font-size: 24px; line-height: 1; cursor: pointer;
    display: flex; align-items: center; justify-content: center; transition: background .2s, color .2s;
}
.xtroy-qv-close:hover { background: var(--xtroy-accent); color: #fff; }

.xtroy-qv { display: grid; grid-template-columns: 1fr 1fr; }
.xtroy-qv-media { position: relative; background: var(--xtroy-off-white); }
.xtroy-qv-media .xtroy-vgallery { padding: 24px; }
.xtroy-qv-media .xtroy-vgallery__main { background: #fff; }
.xtroy-qv-image { position: relative; display: block; height: 100%; }
.xtroy-qv-image img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; display: block; }
.xtroy-qv-media .onsale {
    position: absolute; top: 14px; left: 14px; margin: 0; min-height: 0; min-width: 0; background: var(--xtroy-accent); color: #fff;
    font-family: var(--xtroy-font-body); font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
    line-height: 1.4; padding: 5px 12px; border-radius: 100px;
}
.xtroy-qv-summary { padding: 48px 44px; }
.xtroy-qv-title { font-family: var(--xtroy-font-display); font-size: 26px; font-weight: 800; line-height: 1.2; letter-spacing: -.5px; margin: 0 0 12px; color: var(--xtroy-text-dark); }
.xtroy-qv-price { font-family: var(--xtroy-font-display); font-size: 24px; font-weight: 800; color: var(--xtroy-text-dark); margin-bottom: 16px; }
.xtroy-qv-price del { color: var(--xtroy-text-gray); font-weight: 500; font-size: 18px; margin-right: 8px; }
.xtroy-qv-price ins { text-decoration: none; color: var(--xtroy-accent); }
.xtroy-qv-desc { font-size: 14px; line-height: 1.7; color: var(--xtroy-text-body); margin-bottom: 20px; }
.xtroy-qv-desc p { margin: 0 0 10px; }

/* WooCommerce variation form inside the dialog — stack label over control */
.xtroy-qv .variations,
.xtroy-qv .variations tbody,
.xtroy-qv .variations tr,
.xtroy-qv .variations th,
.xtroy-qv .variations td { display: block; width: auto; margin: 0; padding: 0; border: none; background: none; text-align: left; }
.xtroy-qv .variations { margin-bottom: 14px; }
.xtroy-qv .variations tr { margin-bottom: 16px; }
.xtroy-qv .variations th.label { margin-bottom: 8px; font-size: 13px; font-weight: 700; color: var(--xtroy-text-dark); }
.xtroy-qv .variations select { width: 100%; padding: 11px 14px; border: 1px solid var(--xtroy-mid-gray); border-radius: 8px; font-family: var(--xtroy-font-body); font-size: 14px; background: #fff; }
.xtroy-qv .variations .reset_variations { display: inline-block; margin-top: 8px; }
.xtroy-qv .reset_variations { display: inline-block; margin-top: 6px; font-size: 12px; color: var(--xtroy-text-gray); }
.xtroy-qv .woocommerce-variation-price { font-family: var(--xtroy-font-display); font-size: 22px; font-weight: 800; color: var(--xtroy-text-dark); margin: 8px 0 12px; }
.xtroy-qv .woocommerce-variation-availability { font-size: 13px; color: var(--xtroy-text-body); margin-bottom: 10px; }
.xtroy-qv form.cart { margin: 6px 0 0; }
.xtroy-qv .woocommerce-variation-add-to-cart { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.xtroy-qv form.cart .quantity input.qty { width: 70px; height: 50px; border: 1px solid var(--xtroy-mid-gray); border-radius: 10px; text-align: center; font-family: var(--xtroy-font-body); font-size: 15px; font-weight: 600; background: #fff; }
.xtroy-qv .single_add_to_cart_button {
    flex: 1; min-width: 180px; height: 50px; padding: 0 28px; border: none; border-radius: 10px; cursor: pointer;
    background: var(--xtroy-accent); color: #fff; font-family: var(--xtroy-font-body); font-size: 15px; font-weight: 700; transition: all .3s;
}
.xtroy-qv .single_add_to_cart_button:hover { background: var(--xtroy-accent-hover); transform: translateY(-2px); box-shadow: 0 8px 25px var(--xtroy-accent-glow); }
.xtroy-qv .single_add_to_cart_button.disabled,
.xtroy-qv .single_add_to_cart_button[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.xtroy-qv .single_add_to_cart_button.loading { opacity: .7; cursor: wait; }
.xtroy-qv-fullpage { display: inline-flex; align-items: center; gap: 6px; margin-top: 22px; font-family: var(--xtroy-font-display); font-size: 13px; font-weight: 700; letter-spacing: .3px; color: var(--xtroy-text-dark); text-decoration: none; border-bottom: 2px solid var(--xtroy-accent); padding-bottom: 3px; transition: color .2s, gap .2s; }
.xtroy-qv-fullpage:hover { color: var(--xtroy-accent); gap: 10px; }
.xtroy-qv-inline-error, .xtroy-qv-error { color: var(--xtroy-accent); font-size: 13px; margin-top: 10px; }
.xtroy-qv-error { padding: 40px; text-align: center; }

/* Loading + success states */
.xtroy-qv-loading { min-height: 240px; display: flex; align-items: center; justify-content: center; }
.xtroy-qv-loading::after { content: ''; width: 34px; height: 34px; border: 3px solid var(--xtroy-light-gray); border-top-color: var(--xtroy-accent); border-radius: 50%; animation: xtroySpin .8s linear infinite; }
@keyframes xtroySpin { to { transform: rotate(360deg); } }
.xtroy-qv-success { padding: 56px 36px; text-align: center; }
.xtroy-qv-success-icon { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: var(--xtroy-green); color: #fff; font-size: 32px; display: flex; align-items: center; justify-content: center; }
.xtroy-qv-success-title { font-family: var(--xtroy-font-display); font-size: 22px; font-weight: 800; color: var(--xtroy-text-dark); margin: 0 0 22px; }
.xtroy-qv-success-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ========== COLOUR SWATCHES (dialog + product page) ========== */
.xtroy-swatch-select { display: none !important; }
.xtroy-swatches { display: flex; flex-wrap: wrap; gap: 18px; padding: 4px 0 2px; }
.xtroy-swatch {
    width: 34px; height: 34px; padding: 0; border-radius: 50%; cursor: pointer; position: relative;
    border: 2px solid var(--xtroy-mid-gray); background-clip: padding-box;
    transition: transform .15s, box-shadow .15s, border-color .15s;
}
.xtroy-swatch:hover { transform: scale(1.08); }
.xtroy-swatch.active { border-color: #fff; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--xtroy-accent); }
.xtroy-swatch--unknown { display: flex; align-items: center; justify-content: center; background: var(--xtroy-off-white); color: var(--xtroy-text-gray); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.xtroy-swatch--disabled { opacity: .3; pointer-events: none; }
/* Photo swatches: a square thumbnail + colour name underneath. */
.xtroy-swatch--photo {
    width: 104px; height: auto; border: none; border-radius: 0; background: none; overflow: visible;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.xtroy-swatch--photo:hover { transform: none; }
.xtroy-swatch--photo img {
    width: 104px; height: 104px; object-fit: cover; display: block;
    border: 2px solid var(--xtroy-mid-gray); border-radius: 12px; transition: border-color .15s, box-shadow .15s;
}
.xtroy-swatch--photo:hover img { border-color: var(--xtroy-text-gray); }
.xtroy-swatch--photo.active { box-shadow: none; border-color: transparent; }
.xtroy-swatch--photo.active img { border-color: var(--xtroy-accent); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--xtroy-accent); }
.xtroy-swatch__name { font-size: 13px; font-weight: 600; color: var(--xtroy-text-body); text-align: center; line-height: 1.25; max-width: 104px; }
.xtroy-swatch--photo.active .xtroy-swatch__name { color: var(--xtroy-accent); }

/* ========== VARIATION GALLERY (custom, swaps per colour) ========== */
.woocommerce-product-gallery.xtroy-vgallery-hidden { display: none !important; }
.xtroy-vgallery { display: flex; flex-direction: column; gap: 12px; }
.xtroy-vgallery__main {
    position: relative; overflow: hidden; border-radius: var(--xtroy-radius);
    background: var(--xtroy-off-white); cursor: zoom-in; aspect-ratio: 1 / 1;
}
.xtroy-vgallery__main img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .1s ease-out; }
.xtroy-vgallery__thumbs { display: flex; flex-wrap: wrap; gap: 10px; }
.xtroy-vgallery:not(.has-thumbs) .xtroy-vgallery__thumbs { display: none; }
.xtroy-vgallery__thumb {
    width: 72px; height: 72px; padding: 0; border: 2px solid var(--xtroy-mid-gray);
    border-radius: 8px; overflow: hidden; cursor: pointer; background: #fff; transition: border-color .15s;
}
.xtroy-vgallery__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.xtroy-vgallery__thumb:hover { border-color: var(--xtroy-text-gray); }
.xtroy-vgallery__thumb.active { border-color: var(--xtroy-accent); }

/* Full-screen image lightbox */
body.xtroy-noscroll { overflow: hidden; }
.xtroy-lightbox {
    position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,.88); padding: 30px; cursor: zoom-out;
}
.xtroy-lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.xtroy-lightbox__close {
    position: absolute; top: 18px; right: 22px; width: 42px; height: 42px; border: none; border-radius: 50%;
    background: rgba(255,255,255,.15); color: #fff; font-size: 26px; line-height: 1; cursor: pointer;
}
.xtroy-lightbox__close:hover { background: rgba(255,255,255,.3); }

/* ========== SEARCH OVERLAY ========== */
.xtroy-search-overlay {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1100; padding: 22px 24px;
    background: rgba(255,255,255,0.99); border-bottom: 1px solid var(--xtroy-light-gray); box-shadow: var(--xtroy-shadow-md);
    transform: translateY(-100%); opacity: 0; visibility: hidden; transition: transform .3s cubic-bezier(.16,1,.3,1), opacity .3s, visibility .3s;
}
body.admin-bar .xtroy-search-overlay { top: 32px; }
.xtroy-search-overlay.open { transform: translateY(0); opacity: 1; visibility: visible; }
.xtroy-search-form { max-width: var(--xtroy-max-width); margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.xtroy-search-form input[type="search"] { flex: 1; min-width: 0; padding: 14px 18px; border: 1px solid var(--xtroy-mid-gray); border-radius: 10px; font-family: var(--xtroy-font-body); font-size: 16px; }
.xtroy-search-form input[type="search"]:focus { outline: none; border-color: var(--xtroy-accent); }
.xtroy-search-form button[type="submit"] { background: var(--xtroy-accent); color: #fff; border: none; border-radius: 10px; padding: 14px 28px; font-weight: 700; font-size: 15px; cursor: pointer; }
.xtroy-search-form button[type="submit"]:hover { background: var(--xtroy-accent-hover); }
.xtroy-search-close { background: none; border: none; font-size: 28px; line-height: 1; color: var(--xtroy-text-gray); cursor: pointer; padding: 0 6px; }
.xtroy-search-close:hover { color: var(--xtroy-text-dark); }

/* ========== QUANTITY STEPPER (− / +) ========== */
.xtroy-qty { display: inline-flex; align-items: center; border: 1px solid var(--xtroy-mid-gray); border-radius: 8px; overflow: hidden; width: auto !important; }
.xtroy-qty input.qty { border: none !important; border-radius: 0 !important; width: 50px !important; height: 44px !important; padding: 0 !important; text-align: center; font-weight: 600; background: #fff; -moz-appearance: textfield; }
.xtroy-qty input.qty::-webkit-outer-spin-button,
.xtroy-qty input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.xtroy-qty-btn { width: 40px; height: 44px; flex: 0 0 auto; border: none; background: var(--xtroy-off-white); color: var(--xtroy-text-dark); font-size: 18px; line-height: 1; cursor: pointer; transition: background .2s; }
.xtroy-qty-btn:hover { background: var(--xtroy-mid-gray); }
.xtroy-qty-btn:disabled { opacity: .4; cursor: not-allowed; }
.xtroy-qty-minus { border-right: 1px solid var(--xtroy-mid-gray); }
.xtroy-qty-plus { border-left: 1px solid var(--xtroy-mid-gray); }

/* Hide the garbled WooCommerce-font icon on the cart "remove" link (× is the text) */
.xtroy-theme a.remove::before,
.xtroy-theme .product-remove a::before { content: none !important; display: none !important; }

/* ========== TOAST (bottom-right, with product image / name / colour) ========== */
.xtroy-toast-stack { position: fixed; right: 24px; bottom: 24px; z-index: 3000; display: flex; flex-direction: column; gap: 12px; width: 360px; max-width: calc(100vw - 32px); pointer-events: none; }
.xtroy-toast {
    pointer-events: auto; position: relative; display: flex; align-items: flex-start; gap: 14px;
    background: #fff; border: 1px solid var(--xtroy-light-gray); border-left: 4px solid var(--xtroy-green);
    border-radius: var(--xtroy-radius); box-shadow: var(--xtroy-shadow-lg); padding: 14px 16px;
    opacity: 0; transform: translateX(24px); transition: opacity .3s, transform .3s;
}
.xtroy-toast.show { opacity: 1; transform: translateX(0); }
.xtroy-toast-thumb { width: 56px; height: 56px; flex-shrink: 0; border-radius: 8px; overflow: hidden; background: var(--xtroy-off-white); border: 1px solid var(--xtroy-light-gray); }
.xtroy-toast-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.xtroy-toast-body { flex: 1; min-width: 0; padding-right: 16px; }
.xtroy-toast-head { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--xtroy-green); margin-bottom: 4px; }
.xtroy-toast-check { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: var(--xtroy-green); color: #fff; font-size: 11px; }
.xtroy-toast-name { font-family: var(--xtroy-font-display); font-size: 15px; font-weight: 700; color: var(--xtroy-text-dark); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xtroy-toast-color { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--xtroy-text-gray); margin-top: 3px; }
.xtroy-toast-dot { width: 13px; height: 13px; border-radius: 50%; border: 1px solid var(--xtroy-mid-gray); flex-shrink: 0; }
.xtroy-toast-link { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--xtroy-accent); text-decoration: none; }
.xtroy-toast-link:hover { text-decoration: underline; }
.xtroy-toast-close { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border: none; background: none; color: var(--xtroy-text-gray); font-size: 18px; line-height: 1; cursor: pointer; border-radius: 50%; }
.xtroy-toast-close:hover { color: var(--xtroy-text-dark); background: var(--xtroy-off-white); }

/* ========== WOOCOMMERCE: CART (Sepet) ========== */
/* Cart/checkout use full width — page.php's 720px reading column cramps them
   (and forces the block cart into single-column mode). */
.woocommerce-cart .xtroy-page-content,
.woocommerce-checkout .xtroy-page-content { max-width: none !important; padding: 28px 40px 80px; }

/* Compact page hero on cart/checkout — the full 80px hero wastes space here */
.woocommerce-cart .xtroy-page-hero,
.woocommerce-checkout .xtroy-page-hero { padding: 32px 24px; }
.woocommerce-cart .xtroy-page-hero h1,
.woocommerce-checkout .xtroy-page-hero h1 { font-size: 30px; margin-bottom: 0; }
.woocommerce-cart .xtroy-page-hero .xtroy-section-subtitle,
.woocommerce-checkout .xtroy-page-hero .xtroy-section-subtitle,
.woocommerce-cart .xtroy-page-hero p,
.woocommerce-checkout .xtroy-page-hero p { display: none; }

.xtroy-cart { max-width: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 40px; align-items: start; }
.xtroy-cart-main { margin: 0; }

.xtroy-cart-item {
    display: grid; grid-template-columns: 200px minmax(0, 1fr) auto;
    grid-template-areas: "img info total" "img qty total";
    column-gap: 28px; row-gap: 14px; align-items: center;
    position: relative; padding: 24px 48px 24px 24px; margin-bottom: 16px;
    border: 1px solid var(--xtroy-light-gray); border-radius: var(--xtroy-radius); background: #fff;
}
.xtroy-cart-item__img { grid-area: img; align-self: start; }
.xtroy-cart-item__img img { width: 200px; height: 200px; object-fit: cover; border-radius: 12px; display: block; background: var(--xtroy-off-white); }
.xtroy-cart-item__info { grid-area: info; }
.xtroy-cart-item__info h2 { font-family: var(--xtroy-font-display); font-size: 18px; font-weight: 700; line-height: 1.3; margin: 0 0 4px; }
.xtroy-cart-item__info h2 a { color: var(--xtroy-text-dark); text-decoration: none; }
.xtroy-cart-item__info h2 a:hover { color: var(--xtroy-accent); }
.xtroy-cart-item__info dl, .xtroy-cart-item__info .variation { font-size: 13px; color: var(--xtroy-text-gray); margin: 2px 0 0; }
.xtroy-cart-item__info dl dt, .xtroy-cart-item__info dl dd { display: inline; margin: 0; font-weight: 400; }
.xtroy-cart-item__unit { font-size: 13px; color: var(--xtroy-text-gray); margin-top: 6px; }
.xtroy-cart-item__qty { grid-area: qty; }
.xtroy-cart-item__qty .quantity { margin: 0; }
.xtroy-cart-item__qty input.qty { width: 76px; height: 44px; border: 1px solid var(--xtroy-mid-gray); border-radius: 8px; text-align: center; font-family: var(--xtroy-font-body); font-weight: 600; font-size: 15px; background: #fff; }
.xtroy-cart-item__total { grid-area: total; align-self: center; text-align: right; font-family: var(--xtroy-font-display); font-size: 18px; font-weight: 800; color: var(--xtroy-text-dark); }
.xtroy-cart-item__total del { color: var(--xtroy-text-gray); font-weight: 400; font-size: 14px; }
.xtroy-cart-item__remove { position: absolute; top: 12px; right: 14px; }
.xtroy-cart-item__remove .remove { display: inline-flex; width: auto; height: auto; padding: 4px; color: var(--xtroy-text-gray); line-height: 0; text-decoration: none; background: none; }
.xtroy-cart-item__remove .remove svg { display: block; }
.xtroy-cart-item__remove .remove:hover { color: var(--xtroy-accent); background: none; }

.xtroy-cart-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-top: 22px; }
.xtroy-cart-coupon { display: flex; gap: 10px; flex: 1; min-width: 280px; }
.xtroy-cart-coupon input { flex: 1; min-width: 0; padding: 12px 16px; border: 1px solid var(--xtroy-mid-gray); border-radius: 8px; font-family: var(--xtroy-font-body); font-size: 14px; background: #fff; }
.xtroy-cart-coupon input:focus { outline: none; border-color: var(--xtroy-accent); }

/* Order summary (sticky) */
.xtroy-cart-summary { position: sticky; top: calc(var(--xtroy-nav-height) + 24px); }
.xtroy-cart-summary .cart_totals { width: 100% !important; float: none !important; box-sizing: border-box; background: var(--xtroy-off-white); border: 1px solid var(--xtroy-light-gray); border-radius: var(--xtroy-radius); padding: 26px; }
.xtroy-cart-summary .cart_totals h2 { font-family: var(--xtroy-font-display); font-size: 20px !important; font-weight: 800; letter-spacing: -.3px; line-height: 1.2 !important; margin: 0 0 18px !important; color: var(--xtroy-text-dark); }
.xtroy-cart-item__info h2 { font-size: 18px !important; margin: 0 0 4px !important; }
.xtroy-cart-summary table.shop_table { width: 100%; border: none; border-collapse: collapse; margin: 0; }
.xtroy-cart-summary table.shop_table th, .xtroy-cart-summary table.shop_table td { padding: 12px 0; border: none; border-bottom: 1px solid var(--xtroy-light-gray); font-size: 14px; text-align: left; vertical-align: top; }
.xtroy-cart-summary table.shop_table th { color: var(--xtroy-text-body); font-weight: 600; }
.xtroy-cart-summary table.shop_table td { color: var(--xtroy-text-dark); font-weight: 600; text-align: right; }
.xtroy-cart-summary .order-total th, .xtroy-cart-summary .order-total td { border-bottom: none; padding-top: 16px; }
.xtroy-cart-summary .order-total td { font-family: var(--xtroy-font-display); font-size: 22px; font-weight: 800; }
.xtroy-cart-summary .wc-proceed-to-checkout { margin-top: 22px; padding: 0; }
.xtroy-cart-summary .wc-proceed-to-checkout .checkout-button { display: block; width: 100%; box-sizing: border-box; text-align: center; background: var(--xtroy-accent); color: #fff; border-radius: 10px; padding: 16px; font-family: var(--xtroy-font-body); font-weight: 700; font-size: 15px; text-decoration: none; transition: all .3s; }
.xtroy-cart-summary .wc-proceed-to-checkout .checkout-button:hover { background: var(--xtroy-accent-hover); transform: translateY(-2px); box-shadow: 0 8px 25px var(--xtroy-accent-glow); }
.xtroy-cart-summary .shipping-calculator-button { color: var(--xtroy-accent); }

/* ========== WOOCOMMERCE: CHECKOUT (Ödeme) ========== */
.xtroy-checkout { max-width: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 40px; align-items: start; }
.xtroy-checkout-main { min-width: 0; }
.xtroy-checkout-summary { position: sticky; top: calc(var(--xtroy-nav-height) + 24px); }
.xtroy-checkout .col2-set { display: block; }
.xtroy-checkout .col2-set .col-1, .xtroy-checkout .col2-set .col-2 { width: auto; float: none; margin: 0 0 8px; }
.xtroy-checkout-main h3, #order_review_heading { font-family: var(--xtroy-font-display); font-size: 20px; font-weight: 800; margin: 0 0 18px; color: var(--xtroy-text-dark); }
.xtroy-checkout-main .woocommerce-billing-fields h3 { margin-top: 0; }
.xtroy-checkout-main .woocommerce-additional-fields h3 { margin-top: 24px; }

/* Form fields (checkout + My Account: edit account, addresses, lost/reset password) */
.woocommerce-checkout .form-row,
.woocommerce-account .form-row { margin: 0 0 16px; padding: 0; }
.woocommerce-checkout .form-row label,
.woocommerce-account .form-row label { display: block; font-size: 13px; font-weight: 600; color: var(--xtroy-text-dark); margin-bottom: 6px; }
.woocommerce-checkout .form-row .required,
.woocommerce-account .form-row .required { color: var(--xtroy-accent); }
.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row textarea,
.woocommerce-checkout .form-row select,
.woocommerce-checkout .select2-container .select2-selection,
.woocommerce-account .form-row input.input-text,
.woocommerce-account .form-row textarea,
.woocommerce-account .form-row select,
.woocommerce-account .select2-container .select2-selection {
    width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1px solid var(--xtroy-mid-gray); border-radius: 8px;
    font-family: var(--xtroy-font-body); font-size: 14px; background: #fff; color: var(--xtroy-text-dark);
}
.woocommerce-checkout .form-row input.input-text:focus,
.woocommerce-checkout .form-row textarea:focus,
.woocommerce-checkout .form-row select:focus,
.woocommerce-account .form-row input.input-text:focus,
.woocommerce-account .form-row textarea:focus,
.woocommerce-account .form-row select:focus { outline: none; border-color: var(--xtroy-accent); }
.woocommerce-checkout .select2-container--default .select2-selection--single { height: 46px; display: flex; align-items: center; }
.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 1.4; padding: 0; color: var(--xtroy-text-dark); }
.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow { top: 50%; transform: translateY(-50%); }

/* Order review */
.xtroy-checkout-summary #order_review,
.xtroy-checkout-summary .woocommerce-checkout-review-order { width: 100% !important; float: none !important; background: var(--xtroy-off-white); border: 1px solid var(--xtroy-light-gray); border-radius: var(--xtroy-radius); padding: 24px; box-sizing: border-box; }
.xtroy-checkout-summary table.shop_table { width: 100%; border: none; border-collapse: collapse; margin: 0; }
.xtroy-checkout-summary table.shop_table th, .xtroy-checkout-summary table.shop_table td { padding: 10px 0; border: none; border-bottom: 1px solid var(--xtroy-light-gray); font-size: 14px; text-align: left; vertical-align: top; }
.xtroy-checkout-summary table.shop_table td { text-align: right; font-weight: 600; color: var(--xtroy-text-dark); }
.xtroy-checkout-summary table.shop_table .product-name { text-align: left; font-weight: 500; color: var(--xtroy-text-body); }
.xtroy-checkout-summary .order-total th, .xtroy-checkout-summary .order-total td { border-bottom: none; padding-top: 14px; }
.xtroy-checkout-summary .order-total td { font-family: var(--xtroy-font-display); font-size: 20px; font-weight: 800; }

/* Payment box */
.xtroy-checkout-summary #payment { background: transparent; border-radius: 0; margin-top: 6px; }
.xtroy-checkout-summary #payment ul.payment_methods { border: none; padding: 0; margin: 0 0 12px; list-style: none; }
.xtroy-checkout-summary #payment ul.payment_methods li { margin: 0 0 8px; font-size: 14px; }
.xtroy-checkout-summary #payment .payment_box { background: #fff; border-radius: 8px; font-size: 13px; color: var(--xtroy-text-body); margin: 8px 0 0; }
.xtroy-checkout-summary #payment .payment_box::before { display: none; }
.xtroy-checkout-summary #place_order {
    width: 100%; background: var(--xtroy-accent); color: #fff; border: none; border-radius: 10px; padding: 16px;
    font-family: var(--xtroy-font-body); font-weight: 700; font-size: 15px; cursor: pointer; transition: all .3s; margin-top: 8px; float: none;
}
.xtroy-checkout-summary #place_order:hover { background: var(--xtroy-accent-hover); transform: translateY(-2px); box-shadow: 0 8px 25px var(--xtroy-accent-glow); }
.xtroy-checkout-summary #place_order:disabled,
.xtroy-checkout-summary #place_order.xtroy-disabled {
    background: var(--xtroy-mid-gray); color: var(--xtroy-text-gray); cursor: not-allowed;
    transform: none; box-shadow: none; opacity: .7;
}
.xtroy-checkout-legal { display: flex; align-items: flex-start; gap: 9px; font-size: 12px; color: var(--xtroy-text-gray); margin-top: 16px; line-height: 1.6; cursor: pointer; }
.xtroy-checkout-legal input.xtroy-legal-consent { width: 16px; height: 16px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--xtroy-accent); cursor: pointer; }
.xtroy-checkout-legal a { color: var(--xtroy-accent); }

/* Hide the "Have a coupon?" toggle on checkout (coupons go in the cart) */
.woocommerce-checkout .woocommerce-form-coupon-toggle { display: none; }

/* Order-review item thumbnails */
.xtroy-co-item { display: flex; align-items: center; gap: 12px; }
.xtroy-co-thumb { flex: 0 0 auto; }
.xtroy-co-thumb img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; display: block; margin: 0; }
.xtroy-co-name { flex: 1; min-width: 0; }
.xtroy-checkout-summary table.shop_table { table-layout: auto; }
.xtroy-checkout-summary table.shop_table td.product-name,
.xtroy-checkout-summary table.shop_table th.product-name { white-space: normal; word-break: normal; overflow-wrap: anywhere; }
/* Total column shrinks to its content so the product name gets the width */
.xtroy-checkout-summary table.shop_table td.product-total,
.xtroy-checkout-summary table.shop_table th.product-total { width: 1%; white-space: nowrap; padding-left: 12px; }

/* Country forced to Türkiye — hide the selector everywhere */
.woocommerce-checkout #billing_country_field,
.woocommerce-checkout #shipping_country_field,
.wc-block-components-country-input { display: none !important; }

/* ========== WOOCOMMERCE: MY ACCOUNT (Hesabım) ========== */
.woocommerce-account .xtroy-page-content { max-width: var(--xtroy-max-width); padding: 32px 24px 80px; }
.woocommerce-account .xtroy-page-hero { padding: 32px 24px; }
.woocommerce-account .xtroy-page-hero h1 { font-size: 30px; margin-bottom: 0; }
.woocommerce-account .xtroy-page-hero p,
.woocommerce-account .xtroy-page-hero .xtroy-section-subtitle { display: none; }

/* Two columns only when the account navigation is present (logged in);
   the login/register page keeps its default layout. */
.woocommerce-account .woocommerce:has(.woocommerce-MyAccount-navigation) {
    display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: start;
}
/* Forceful — a plugin adds icons and collapses this menu to icon-only. */
.woocommerce-account .woocommerce-MyAccount-navigation { margin: 0; width: 100%; }
.woocommerce-account .woocommerce-MyAccount-navigation ul { display: block !important; width: 100% !important; list-style: none !important; margin: 0 !important; padding: 0 !important; background: #fff !important; border: 1px solid var(--xtroy-light-gray); border-radius: var(--xtroy-radius); overflow: hidden; }
.woocommerce-account .woocommerce-MyAccount-navigation li { display: block !important; width: 100% !important; float: none !important; margin: 0 !important; padding: 0 !important; background: none !important; border: 0 !important; border-bottom: 1px solid var(--xtroy-light-gray) !important; }
.woocommerce-account .woocommerce-MyAccount-navigation li:last-child { border-bottom: 0 !important; }
.woocommerce-account .woocommerce-MyAccount-navigation li a { display: flex !important; align-items: center; gap: 10px; width: 100%; box-sizing: border-box; padding: 13px 18px !important; font-family: var(--xtroy-font-body); font-size: 14px !important; font-weight: 600; line-height: 1.3; text-indent: 0 !important; white-space: normal; text-align: left; color: var(--xtroy-text-body) !important; background: #fff !important; text-decoration: none !important; transition: background .2s, color .2s; }
.woocommerce-account .woocommerce-MyAccount-navigation li a:hover { background: var(--xtroy-off-white) !important; color: var(--xtroy-text-dark) !important; }
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a { background: var(--xtroy-text-dark) !important; color: #fff !important; }
/* Keep the plugin's icons but size & align them next to the label */
.woocommerce-account .woocommerce-MyAccount-navigation li a img,
.woocommerce-account .woocommerce-MyAccount-navigation li a svg,
.woocommerce-account .woocommerce-MyAccount-navigation li a i { width: 18px; height: 18px; flex: 0 0 18px; font-size: 16px; line-height: 1; margin: 0; }
.woocommerce-account .woocommerce-MyAccount-navigation li a::before { margin: 0 8px 0 0 !important; font-size: 16px !important; line-height: 1 !important; flex: 0 0 auto; }
.woocommerce-MyAccount-content { min-width: 0; }
.woocommerce-MyAccount-content p { line-height: 1.7; color: var(--xtroy-text-body); }
.woocommerce-MyAccount-content a:not(.button) { color: var(--xtroy-accent); }
.woocommerce-MyAccount-content .woocommerce-Button,
.woocommerce-MyAccount-content .button { background: var(--xtroy-accent); color: #fff; border: none; border-radius: 8px; font-weight: 600; }

/* ========== CHECKOUT BIREYSEL/KURUMSAL TOGGLE ========== */
.xtroy-billing-type { margin-bottom: 16px; }
/* Field label (Fatura Türü) on its own line */
.xtroy-billing-type label:not(.radio) { display: block; font-size: 13px; font-weight: 600; color: var(--xtroy-text-dark); margin-bottom: 8px; }
/* Each option: radio dot inline with its label, options side by side */
.xtroy-billing-type label.radio { display: inline-block; vertical-align: middle; margin: 7px 22px 6px 0; font-weight: 500; cursor: pointer; }
.xtroy-billing-type input[type="radio"] { display: inline-block; width: auto; vertical-align: middle; margin: 0 6px 0 0; accent-color: var(--xtroy-accent); }
body.xtroy-billing-bireysel .xtroy-kurumsal-field { display: none !important; }
body.xtroy-billing-kurumsal .xtroy-tckn-field { display: none !important; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .xtroy-nav-menu { display: none; }
    .xtroy-hamburger { display: block; }
    .xtroy-mega-menu, .xtroy-dropdown-menu { display: none !important; }
    .xtroy-nav-inner { padding: 0 24px; }
    .xtroy-footer-grid { grid-template-columns: 1fr 1fr; }
    .xtroy-slide-inner { grid-template-columns: 1fr; text-align: center; }
    .xtroy-features-grid { grid-template-columns: repeat(2, 1fr); }
    .xtroy-contact-grid { grid-template-columns: 1fr; gap: 32px; }

    /* Shop / product responsive */
    .xtroy-theme ul.products { grid-template-columns: repeat(3, 1fr); }
    .single-product div.product { grid-template-columns: 1fr; gap: 32px; }
    .single-product .summary { position: static; top: auto; }
    /* Collapsing to one column isn't enough on its own: the children keep their
       desktop placement (gallery=col1, summary=col2, tabs=1/-1). Summary's
       explicit col 2 spawns an implicit second column, and `1 / -1` only spans
       the explicit grid — so tabs/related get crushed into a narrow column.
       Reset placement so everything stacks naturally in the single column. */
    .single-product div.product > .woocommerce-product-gallery,
    .single-product div.product > .xtroy-vgallery,
    .single-product div.product > .summary,
    .single-product div.product > .entry-summary,
    .single-product div.product > .woocommerce-tabs,
    .single-product div.product > .upsells,
    .single-product div.product > .related { grid-column: auto; grid-row: auto; }

    /* Shop sidebar moves above the grid */
    .xtroy-shop-layout { grid-template-columns: 1fr; gap: 24px; }
    .xtroy-shop-sidebar { position: static; top: auto; flex-direction: row; flex-wrap: wrap; }
    .xtroy-shop-sidebar .xtroy-filter-card { flex: 1; min-width: 240px; }

    /* Cart: stack items over summary */
    .xtroy-cart { grid-template-columns: 1fr; gap: 28px; }
    .xtroy-cart-summary { position: static; top: auto; }

    /* My Account: stack nav over content */
    .woocommerce-account .woocommerce:has(.woocommerce-MyAccount-navigation) { grid-template-columns: 1fr; gap: 24px; }

    /* Checkout: stack form over summary */
    .xtroy-checkout { grid-template-columns: 1fr; gap: 28px; }
    .xtroy-checkout-summary { position: static; top: auto; }

    /* Categories become a horizontal swipe carousel */
    .xtroy-cat-grid {
        display: flex; grid-template-columns: none; gap: 16px;
        overflow-x: auto; scroll-snap-type: x proximity; scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch; scrollbar-width: none;
        padding: 4px 24px; scroll-padding: 0 24px;
    }
    .xtroy-cat-grid::-webkit-scrollbar { display: none; }
    .xtroy-category-card { flex: 0 0 44%; scroll-snap-align: start; }
    .xtroy-cat-arrow {
        display: flex; align-items: center; justify-content: center;
        position: absolute; top: 50%; transform: translateY(-50%);
        width: 40px; height: 40px; border-radius: 50%; border: none;
        background: rgba(255,255,255,.96); color: var(--xtroy-text-dark);
        cursor: pointer; box-shadow: 0 2px 12px rgba(0,0,0,.14); z-index: 5;
        transition: opacity .25s;
    }
    .xtroy-cat-arrow--prev { left: 4px; }
    .xtroy-cat-arrow--next { right: 4px; }
    .xtroy-cat-arrow:disabled { opacity: 0; pointer-events: none; }
    .xtroy-cat-dots { display: flex; justify-content: center; gap: 8px; margin-top: 22px; }
    .xtroy-cat-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(0,0,0,.18); border: none; padding: 0; cursor: pointer; transition: all .3s; }
    .xtroy-cat-dot.active { background: var(--xtroy-accent); width: 22px; border-radius: 4px; }
}
@media (max-width: 640px) {
    .xtroy-section { padding: 20px; }
    .xtroy-slide { padding: 40px 20px; min-height: 480px; }
    .xtroy-slide-title { font-size: 36px; }
    .xtroy-section-title { font-size: 30px; }
    .xtroy-page-hero { padding: 32px 20px; }
    .xtroy-page-hero h1 { font-size: 32px; }
    /* Compact horizontal footer: brand on top, 3 menu columns side by side */
    .xtroy-footer { padding: 28px 16px 14px; }
    .xtroy-footer-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px; }
    .xtroy-footer .footer-brand { grid-column: 1 / -1; margin-bottom: 4px; }
    .xtroy-footer .footer-brand p { font-size: 12px; line-height: 1.5; max-width: none; }
    .xtroy-footer-logo { margin-bottom: 8px; }
    .xtroy-footer-logo img { max-height: 30px; }
    .xtroy-footer-social { margin-top: 10px; gap: 8px; }
    .xtroy-social-icon { width: 28px; height: 28px; font-size: 10px; border-radius: 6px; }
    .xtroy-footer-col h4 { font-size: 11px; margin-bottom: 10px; letter-spacing: .5px; }
    .xtroy-footer-col a { font-size: 11px; margin-bottom: 7px; }
    .xtroy-footer-bottom { flex-direction: column; gap: 10px; padding-top: 16px; font-size: 11px; }
    .xtroy-mobile-drawer { width: 100%; max-width: 100%; }
    .xtroy-features-grid { grid-template-columns: 1fr; }
    .xtroy-category-card { flex: 0 0 72%; }
    .xtroy-newsletter-form { flex-direction: column; }
    .xtroy-404-num { font-size: 100px; }
    .xtroy-404 h1 { font-size: 28px; }

    /* Shop / product responsive */
    .xtroy-theme ul.products { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .xtroy-theme ul.products li.product .woocommerce-loop-product__title { font-size: 14px; padding: 12px 14px 0; }
    .xtroy-theme ul.products li.product .price { padding: 6px 14px 0; font-size: 16px; }
    .xtroy-theme ul.products li.product .button,
    .xtroy-theme ul.products li.product .add_to_cart_button,
    .xtroy-theme ul.products li.product .added_to_cart { margin: auto 14px 14px; }
    .single-product .summary .product_title { font-size: 26px; }
    .single-product .summary .price { font-size: 24px; }
    /* Cart items compact on phones */
    .xtroy-cart-item { grid-template-columns: 120px minmax(0, 1fr); grid-template-areas: "img info" "img qty" "total total"; padding: 16px 40px 16px 16px; }
    .xtroy-cart-item__img img { width: 120px; height: 120px; }
    .xtroy-cart-item__total { text-align: left; margin-top: 2px; }
    .xtroy-cart-actions { flex-direction: column; align-items: stretch; }
    .xtroy-cart-coupon { min-width: 0; }
    .single-product .summary form.cart { gap: 10px; }
    .single-product .summary form.cart .single_add_to_cart_button { min-width: 150px; padding: 0 20px; }
    .single-product .woocommerce-tabs ul.tabs { gap: 0 16px; }
    .xtroy-trust-badges { gap: 22px; padding: 22px 16px; }
    .xtroy-trust-badge { font-size: 13px; }

    /* Quick-view dialog stacks on mobile */
    .xtroy-qv-overlay { padding: 0; align-items: flex-end; }
    .xtroy-qv-dialog { max-width: 100%; max-height: 92vh; border-radius: 16px 16px 0 0; }
    .xtroy-qv { grid-template-columns: 1fr; }
    .xtroy-qv-image img { min-height: 200px; max-height: 260px; }
    .xtroy-qv-summary { padding: 24px 20px 28px; }
    .xtroy-qv-title { font-size: 22px; }
    .xtroy-qv-price { font-size: 21px; }
    .xtroy-qv form.cart .quantity input.qty { height: 48px; }
    .xtroy-qv .single_add_to_cart_button { height: 48px; min-width: 150px; }
    .xtroy-qv-success-actions { flex-direction: column; }
    .xtroy-qv-success-actions .xtroy-btn-outline,
    .xtroy-qv-success-actions .xtroy-btn-primary { width: 100%; justify-content: center; }
    .xtroy-toast-stack { right: 12px; left: 12px; bottom: 12px; width: auto; }
}
