/* ============================================
   EVVO THEME — Kutubutik Style Main CSS
   ============================================ */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #232323;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.2s ease; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ── Container ── */
.kb-container { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 24px; }

/* ============================================
   HEADER — Floating Pill Style
   ============================================ */
.kb-header {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 1000; height: 85px;
    display: flex; align-items: center;
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}
.kb-header.scrolled {
    background: rgba(255,255,255,0.97);
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}
.kb-header__inner {
    max-width: 1400px; margin: 0 auto; width: 100%;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 24px; height: 100%;
}

/* Logo */
.kb-header__logo { flex: 0 0 auto; }
.kb-logo-link { display: flex; align-items: center; }
.kb-logo-link:hover { opacity: 1; }
.kb-logo-link img { max-height: 40px; width: auto; }
.kb-logo-text {
    font-family: 'Lato', sans-serif;
    font-size: 28px; font-weight: 900;
    letter-spacing: 6px; color: #232323;
    text-transform: uppercase;
}

/* Navigation Pill */
.kb-nav-pill {
    display: flex; align-items: center;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    height: 50px;
    padding: 0 12px 0 20px;
}
.kb-nav-pill__menu {
    display: flex; align-items: center; height: 100%;
}

/* Nav Items */
.kb-nav-item {
    position: relative; height: 100%;
    display: flex; align-items: center;
}
.kb-nav-link {
    font-family: 'Lato', sans-serif;
    font-size: 13px; font-weight: 500;
    color: #232323; padding: 0 14px;
    height: 100%; display: flex; align-items: center;
    white-space: nowrap; transition: color 0.2s;
}
.kb-nav-link:hover { color: #000; opacity: 1; }
.kb-nav-link--red { color: #e53e3e; font-weight: 600; }
.kb-nav-link--red:hover { color: #c53030; }
.kb-flash { color: #f59e0b; margin-left: 3px; }

/* Pill Action Icons */
.kb-nav-pill__actions {
    display: flex; align-items: center; gap: 6px;
    height: 100%; margin-left: 4px;
}
.kb-nav-pill__divider {
    width: 1px; height: 24px;
    background: #e5e5e5; margin: 0 8px;
}
.kb-action-icon {
    display: flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 50%;
    color: #232323; position: relative;
    transition: background 0.2s;
}
.kb-action-icon:hover { background: #f5f5f5; }
.kb-cart-badge {
    position: absolute; top: 2px; right: 0;
    background: #e53e3e; color: #fff;
    font-size: 9px; font-weight: 700;
    width: 16px; height: 16px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}

/* Hamburger (Mobile) */
.kb-hamburger {
    display: none; flex-direction: column; gap: 5px;
    padding: 8px; cursor: pointer;
}
.kb-hamburger span {
    width: 22px; height: 1.5px; background: #232323;
    display: block; transition: all 0.3s;
}

/* ============================================
   MEGA DROPDOWN
   ============================================ */
.kb-dropdown {
    position: absolute; top: 100%; left: 50%;
    transform: translateX(-50%);
    background: #fff;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
    border-top: 2px solid #232323;
    opacity: 0; visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
    z-index: 2000; min-width: 640px;
    padding: 28px 32px;
    display: flex; gap: 32px;
    border-radius: 0 0 4px 4px;
}
.kb-nav-item:hover .kb-dropdown { opacity: 1; visibility: visible; }

.kb-dropdown__links {
    min-width: 150px; display: flex; flex-direction: column;
}
.kb-dropdown__links a {
    font-size: 13px; color: #737373;
    padding: 9px 0; border-bottom: 1px solid #f4f4f4;
    transition: color 0.15s, padding-left 0.15s;
}
.kb-dropdown__links a:hover { color: #232323; padding-left: 4px; opacity: 1; }
.kb-dropdown__all {
    border-bottom: none !important; font-weight: 600;
    color: #232323 !important; margin-top: 4px;
}

.kb-dropdown__images { display: flex; gap: 14px; flex: 1; }
.kb-dropdown__card {
    position: relative; width: 200px; height: 260px;
    overflow: hidden; display: block;
}
.kb-dropdown__card img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s ease;
}
.kb-dropdown__card:hover img { transform: scale(1.06); }
.kb-dropdown__card:hover { opacity: 1; }
.kb-dropdown__card-label {
    position: absolute; bottom: 12px; left: 12px;
    color: #fff; font-size: 12px; font-weight: 600;
    letter-spacing: 1px; text-transform: uppercase;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* ============================================
   SEARCH OVERLAY
   ============================================ */
.kb-search-overlay {
    position: fixed; top: 0; left: 0; right: 0;
    background: #fff; z-index: 3000;
    transform: translateY(-100%); transition: transform 0.4s ease;
    box-shadow: 0 4px 30px rgba(0,0,0,0.1);
    padding: 0;
}
.kb-search-overlay.is-active { transform: translateY(0); }
.kb-search-overlay__inner {
    max-width: 800px; margin: 0 auto;
    padding: 24px; display: flex; align-items: center; gap: 16px;
}
.kb-search-form {
    flex: 1; display: flex; align-items: center; gap: 12px;
    border-bottom: 2px solid #232323; padding-bottom: 8px;
}
.kb-search-input {
    flex: 1; border: none; outline: none; background: transparent;
    font-size: 16px; font-weight: 400;
}
.kb-search-close { color: #232323; padding: 4px; }

/* ============================================
   CART DRAWER
   ============================================ */
.kb-cart-drawer { position: fixed; inset: 0; z-index: 3000; pointer-events: none; }
.kb-cart-drawer.is-active { pointer-events: auto; }
.kb-cart-drawer__overlay {
    position: absolute; inset: 0; background: rgba(0,0,0,0.45);
    opacity: 0; transition: opacity 0.3s;
}
.kb-cart-drawer.is-active .kb-cart-drawer__overlay { opacity: 1; }
.kb-cart-drawer__panel {
    position: absolute; top: 0; right: 0;
    width: 420px; height: 100%;
    background: #fff; transform: translateX(100%);
    transition: transform 0.4s ease;
    display: flex; flex-direction: column;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
}
.kb-cart-drawer.is-active .kb-cart-drawer__panel { transform: translateX(0); }
.kb-cart-drawer__header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 24px; border-bottom: 1px solid #eee;
}
.kb-cart-drawer__header h3 { font-size: 16px; font-weight: 600; letter-spacing: 1px; }
.kb-cart-drawer__close { color: #232323; }
.kb-cart-drawer__body { flex: 1; overflow-y: auto; padding: 20px 24px; }

/* ============================================
   MOBILE MENU
   ============================================ */
.kb-mobile-menu { position: fixed; inset: 0; z-index: 3000; pointer-events: none; }
.kb-mobile-menu.is-active { pointer-events: auto; }
.kb-mobile-menu__overlay {
    position: absolute; inset: 0; background: rgba(0,0,0,0.45);
    opacity: 0; transition: opacity 0.3s;
}
.kb-mobile-menu.is-active .kb-mobile-menu__overlay { opacity: 1; }
.kb-mobile-menu__panel {
    position: absolute; top: 0; left: 0;
    width: 320px; height: 100%;
    background: #fff; transform: translateX(-100%);
    transition: transform 0.4s ease;
    display: flex; flex-direction: column;
}
.kb-mobile-menu.is-active .kb-mobile-menu__panel { transform: translateX(0); }
.kb-mobile-menu__header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 24px; border-bottom: 1px solid #eee;
}
.kb-mobile-menu__close { color: #232323; }
.kb-mobile-menu__nav { padding: 24px; display: flex; flex-direction: column; }
.kb-mobile-link {
    font-size: 14px; font-weight: 500;
    letter-spacing: 1.5px; text-transform: uppercase;
    padding: 14px 0; border-bottom: 1px solid #f4f4f4;
}
.kb-mobile-link--red { color: #e53e3e; }
.kb-mobile-divider { height: 1px; background: #ddd; margin: 8px 0; }

/* ============================================
   HERO BANNER
   ============================================ */
.kb-hero {
    width: 100%; margin-top: 0; /* Header is fixed/floating */
}
.kb-hero-slider { width: 100%; height: auto; }
.kb-hero-slider .swiper-slide { overflow: hidden; }
.kb-hero__link { display: block; width: 100%; line-height: 0; }
.kb-hero__link:hover { opacity: 1; }
.kb-hero__img {
    width: 100%; height: auto;
    object-fit: cover; display: block;
    max-height: 75vh;
}

/* Hero Pagination */
.kb-hero-pagination {
    bottom: 20px !important;
}
.kb-hero-pagination .swiper-pagination-bullet {
    width: 10px; height: 10px;
    background: #fff; opacity: 0.5;
    transition: all 0.3s;
}
.kb-hero-pagination .swiper-pagination-bullet-active {
    opacity: 1; width: 28px; border-radius: 5px;
}

/* ============================================
   CATEGORY GRID
   ============================================ */
.kb-categories {
    padding: 60px 0;
}
.kb-categories__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.kb-category-card {
    display: block; text-align: center;
    transition: transform 0.3s;
}
.kb-category-card:hover { opacity: 1; transform: translateY(-4px); }
.kb-category-card__img-wrap {
    aspect-ratio: 3/4; overflow: hidden;
    background: #f4f4f4; margin-bottom: 16px;
}
.kb-category-card__img-wrap img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s ease;
}
.kb-category-card:hover .kb-category-card__img-wrap img {
    transform: scale(1.05);
}
.kb-category-card__title {
    font-size: 13px; font-weight: 600;
    letter-spacing: 2px; text-transform: uppercase;
    color: #232323;
}

/* ============================================
   PRODUCT GRID
   ============================================ */
.kb-products-section {
    padding: 40px 0 80px;
}
.kb-section-title {
    font-size: 22px; font-weight: 300;
    letter-spacing: 3px; text-transform: uppercase;
    text-align: center; margin-bottom: 40px;
    color: #232323;
}

.kb-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Product Card */
.kb-product-card { position: relative; }
.kb-product-card__link {
    display: block; color: inherit;
    text-decoration: none;
}
.kb-product-card__link:hover { opacity: 1; }

.kb-product-card__img-wrap {
    position: relative; aspect-ratio: 3/4;
    overflow: hidden; background: #f8f8f8;
    margin-bottom: 12px;
}
.kb-product-card__img {
    width: 100%; height: 100%; object-fit: cover;
    position: absolute; top: 0; left: 0;
    transition: opacity 0.4s ease, transform 0.6s ease;
}
.kb-product-card__img--hover {
    opacity: 0;
}
.kb-product-card__link:hover .kb-product-card__img--main {
    opacity: 0;
}
.kb-product-card__link:hover .kb-product-card__img--hover {
    opacity: 1;
}
.kb-product-card__link:hover .kb-product-card__img {
    transform: scale(1.03);
}

/* Product Badge */
.kb-product-badge {
    position: absolute; top: 10px; left: 10px;
    padding: 4px 10px; font-size: 10px; font-weight: 600;
    letter-spacing: 0.5px; text-transform: uppercase;
    z-index: 2;
}
.kb-product-badge--sale {
    background: #e53e3e; color: #fff;
}
.kb-product-badge--new {
    background: #232323; color: #fff;
}

/* Quick Actions */
.kb-product-card__actions {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: rgba(255,255,255,0.95);
    display: flex; align-items: center; justify-content: center; gap: 12px;
    padding: 10px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}
.kb-product-card__img-wrap:hover .kb-product-card__actions {
    transform: translateY(0);
}
.kb-product-action {
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 50%;
    border: 1px solid #ddd; color: #232323;
    transition: all 0.2s;
}
.kb-product-action:hover { background: #232323; color: #fff; border-color: #232323; }
.kb-product-action__label {
    font-size: 11px; font-weight: 500;
    letter-spacing: 0.5px; text-transform: uppercase;
    color: #232323;
}

/* Product Info */
.kb-product-card__info { text-align: left; padding: 0 4px; }
.kb-product-card__brand {
    display: block; font-size: 10px; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase;
    color: #999; margin-bottom: 4px;
}
.kb-product-card__title {
    font-size: 12px; font-weight: 400;
    text-transform: uppercase; letter-spacing: 0.5px;
    color: #232323; margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.kb-product-card__price {
    font-size: 14px; font-weight: 400;
    color: #232323;
}
.kb-product-card__price del {
    color: #999; margin-right: 6px; font-size: 12px;
}
.kb-product-card__price ins {
    text-decoration: none; font-weight: 600;
    color: #e53e3e;
}
.kb-product-card__tax {
    display: block; font-size: 10px;
    color: #999; margin-top: 2px;
}

/* ============================================
   FOOTER
   ============================================ */
.kb-footer {
    background: #f9f9f9;
    border-top: 1px solid #eee;
    margin-top: 40px;
}
.kb-footer__grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding: 50px 0;
}
.kb-footer__heading {
    font-size: 12px; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase;
    color: #232323; margin-bottom: 20px;
}
.kb-footer__links {
    display: flex; flex-direction: column; gap: 10px;
}
.kb-footer__links a {
    font-size: 13px; color: #737373;
    transition: color 0.2s;
}
.kb-footer__links a:hover { color: #232323; opacity: 1; }

/* Footer Newsletter */
.kb-footer__newsletter-desc {
    font-size: 12px; color: #999; margin-bottom: 14px;
    line-height: 1.5;
}
.kb-newsletter-form { display: flex; gap: 0; margin-bottom: 16px; }
.kb-newsletter-input {
    flex: 1; padding: 10px 14px;
    border: 1px solid #ddd; border-right: none;
    font-size: 13px; outline: none;
    transition: border-color 0.2s;
    background: #fff;
}
.kb-newsletter-input:focus { border-color: #232323; }
.kb-newsletter-btn {
    padding: 10px 20px;
    background: #232323; color: #fff;
    font-size: 12px; font-weight: 600;
    letter-spacing: 1px; text-transform: uppercase;
    border: 1px solid #232323;
    cursor: pointer; transition: all 0.2s;
    white-space: nowrap;
}
.kb-newsletter-btn:hover { background: #444; }

.kb-footer__social { display: flex; gap: 10px; margin-top: 4px; }
.kb-social-icon {
    display: flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 50%;
    border: 1px solid #ddd; color: #737373;
    transition: all 0.2s;
}
.kb-social-icon:hover { border-color: #232323; color: #232323; opacity: 1; }

/* Footer Bottom */
.kb-footer__bottom {
    border-top: 1px solid #eee;
    padding: 18px 0; text-align: center;
}
.kb-footer__bottom p {
    font-size: 11px; letter-spacing: 1px;
    color: #999;
}

/* ============================================
   WOOCOMMERCE OVERRIDES
   ============================================ */
.evvo-shop-main { padding: 100px 0 60px; min-height: 60vh; }
.evvo-shop-main .evvo-container,
.evvo-shop-main .kb-container {
    max-width: 1400px; margin: 0 auto; padding: 0 24px;
}

/* WooCommerce Product Grid Override */
ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
ul.products li.product {
    margin: 0 !important; padding: 0 !important;
    width: 100% !important; float: none !important;
}
ul.products li.product a img {
    aspect-ratio: 3/4; object-fit: cover;
}

/* WooCommerce Notices — clean style */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    border: none !important;
    border-top: 2px solid #232323 !important;
    border-bottom: 1px solid #eee !important;
    background: #fff !important;
    color: #232323 !important;
    font-size: 13px !important;
    padding: 14px 20px !important;
    border-radius: 0 !important;
}
.woocommerce-message::before,
.woocommerce-info::before {
    color: #232323 !important;
}

/* Buttons */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
    background: #232323 !important; color: #fff !important;
    border: none !important; border-radius: 0 !important;
    font-size: 12px !important; font-weight: 600 !important;
    letter-spacing: 1.5px !important; text-transform: uppercase !important;
    padding: 14px 28px !important;
    transition: background 0.2s !important;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    background: #444 !important;
}

/* Forms */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
    border: 1px solid #ddd !important;
    border-radius: 0 !important;
    padding: 10px 14px !important;
    font-size: 13px !important;
}

/* ============================================
   PAGE STYLES
   ============================================ */
.kb-site-content { min-height: 50vh; }

.evvo-page-main { padding: 120px 0 60px; min-height: 60vh; }
.evvo-page-title {
    font-size: 24px; font-weight: 300;
    text-align: center; margin-bottom: 40px;
    letter-spacing: 3px; text-transform: uppercase;
}
.evvo-page-content { line-height: 1.7; }
.evvo-page-content p { margin-bottom: 16px; color: #555; }

/* 404 */
.evvo-404__title { font-size: 80px; color: #eee; margin-bottom: 12px; font-weight: 300; }
.evvo-404__text { font-size: 18px; color: #999; margin-bottom: 24px; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .kb-nav-pill__menu { display: none; }
    .kb-hamburger { display: flex; }
    .kb-nav-pill {
        padding: 0 8px;
        box-shadow: none; background: transparent;
    }
    .kb-nav-pill__divider { display: none; }

    .kb-categories__grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .kb-products-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
    ul.products { grid-template-columns: repeat(3, 1fr) !important; }
    .kb-footer__grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

@media (max-width: 768px) {
    .kb-header { height: 65px; }
    .kb-logo-text { font-size: 22px; letter-spacing: 4px; }

    .kb-categories { padding: 30px 0; }
    .kb-categories__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .kb-category-card__title { font-size: 11px; letter-spacing: 1.5px; }

    .kb-products-section { padding: 20px 0 50px; }
    .kb-section-title { font-size: 16px; letter-spacing: 2px; margin-bottom: 24px; }
    .kb-products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    ul.products { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }

    .kb-product-card__brand { font-size: 9px; }
    .kb-product-card__title { font-size: 11px; }
    .kb-product-card__price { font-size: 12px; }
    .kb-product-card__actions { display: none; }

    .kb-footer__grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .kb-footer__col--newsletter { grid-column: 1 / -1; }

    .kb-cart-drawer__panel { width: 100%; }
    .kb-mobile-menu__panel { width: 85%; }

    .evvo-page-main { padding: 80px 0 40px; }
    .evvo-shop-main { padding: 80px 0 40px; }

    .kb-hero__img { max-height: 55vh; }
}

@media (max-width: 480px) {
    .kb-container { padding: 0 16px; }
    .kb-products-grid { gap: 8px; }
    .kb-product-card__info { padding: 0 2px; }
    .kb-product-card__title { font-size: 10px; }
    .kb-product-card__price { font-size: 11px; }
    .kb-category-card__img-wrap { margin-bottom: 10px; }
}
