/* Yasin Clothes — just2010.uz uslubida */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #232526;
    --primary-hover: #3b3f41;
    --accent: #232526;
    --bg: #ffffff;
    --bg-light: #f7f7f7;
    --border: #e5e5e5;
    --text: #232526;
    --text-muted: #888;
    --radius: 2px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    margin: 0;
}

a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s;
}
a:hover { color: var(--primary-hover); }

/* ===== HEADER ===== */
.yc-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
}

/* -- Top Bar -- */
.yc-topbar {
    border-bottom: 1px solid var(--border);
    background: #fff;
}
.yc-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 36px;
}
.yc-topbar-left {
    display: flex;
    gap: 24px;
}
.yc-topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}
.yc-topbar-link {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.3px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.yc-topbar-link:hover,
.yc-topbar-link.active { color: var(--text); }
.yc-topbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    font-family: 'Montserrat', sans-serif;
    padding: 0;
    text-decoration: none;
    transition: color 0.2s;
}
.yc-topbar-btn:hover { color: var(--text); }
.yc-topbar-btn i { font-size: 13px; }

/* -- Main Navbar -- */
.yc-navbar {
    background: #fff;
    border-bottom: 1px solid var(--border);
}
.yc-navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

/* Logo Box — just2010 style square */
.yc-logo {
    text-decoration: none;
    flex-shrink: 0;
}
.yc-logo-box {
    border: 1.5px solid var(--text);
    padding: 6px 10px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    gap: 1px;
}
.yc-logo-top {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text);
}
.yc-logo-bot {
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 3px;
    color: var(--text);
}

/* Nav Links */
.yc-nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.yc-nav-links a {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    padding-bottom: 3px;
    border-bottom: 1.5px solid transparent;
    transition: border-color 0.2s, color 0.2s;
}
.yc-nav-links a:hover { border-bottom-color: var(--text); }
@media (max-width: 991px) { .yc-nav-links { display: none; } }

/* Nav Icons */
.yc-nav-icons {
    display: flex;
    align-items: center;
    gap: 6px;
}
.yc-nav-icon-btn {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    text-decoration: none;
    border-radius: 50%;
    font-size: 17px;
    transition: background 0.15s, color 0.15s;
}
.yc-nav-icon-btn:hover { background: var(--bg-light); color: var(--text); }

/* Burger */
.yc-burger {
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 6px;
}
.yc-burger span {
    display: block;
    width: 100%;
    height: 1.5px;
    background: var(--text);
    transition: transform 0.25s, opacity 0.2s;
}
.yc-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.yc-burger.open span:nth-child(2) { opacity: 0; }
.yc-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile Menu */
.yc-mobile-menu {
    display: none;
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 16px 20px 24px;
}
.yc-mobile-menu.open { display: block; }
.yc-mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.yc-mobile-menu ul li { border-bottom: 1px solid var(--border); }
.yc-mobile-menu ul li a {
    display: block;
    padding: 13px 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
}

/* Search Overlay */
.yc-search-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 2000;
    align-items: flex-start;
    justify-content: center;
    padding-top: 120px;
}
.yc-search-overlay.open { display: flex; }
.yc-search-box {
    background: #fff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    width: min(600px, 90vw);
    box-shadow: 0 8px 40px rgba(0,0,0,0.15);
}
.yc-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    color: var(--text);
    background: transparent;
}
.yc-search-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: var(--text);
    padding: 0;
}
.yc-search-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: var(--text-muted);
    padding: 0;
    transition: color 0.2s;
}
.yc-search-close:hover { color: var(--text); }

/* Legacy (keep for backward compat) */
.yc-navbar-brand { display: none; }
.yc-nav-actions  { display: none; }



/* ===== HERO ===== */
.yc-hero {
    background: #f2f2f2;
    padding: 80px 0;
    text-align: center;
}
.yc-hero h1 {
    font-size: 42px;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 16px;
    line-height: 1.2;
}
.yc-hero p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

/* ===== BUTTONS ===== */
.yc-btn {
    display: inline-block;
    background: var(--primary);
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 12px 32px;
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    text-decoration: none;
}
.yc-btn:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    color: #fff !important;
}
.yc-btn-outline {
    background: transparent;
    color: var(--primary) !important;
}
.yc-btn-outline:hover {
    background: var(--primary);
    color: #fff !important;
}

/* ===== SECTION ===== */
.yc-section {
    padding: 56px 0;
}
.yc-section-title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 32px;
    text-align: center;
}
.yc-section-title span {
    display: block;
    font-size: 13px;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

/* ===== PRODUCT CARD ===== */
.yc-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
@media (max-width: 991px) { .yc-product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .yc-product-grid { grid-template-columns: 1fr; } }

.yc-product-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
}
.yc-product-card-img {
    position: relative;
    overflow: hidden;
    background: var(--bg-light);
    aspect-ratio: 3/4;
}
.yc-product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, opacity 0.3s ease;
    display: block;
}
.yc-product-card:hover .yc-product-card-img img {
    transform: scale(1.04);
    opacity: 0.85;
}
.yc-product-card-img .yc-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 13px;
}
.yc-product-card-body {
    padding: 14px 4px;
}
.yc-product-card-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.yc-product-card-price {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}
.yc-product-card-category {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

/* ===== CATALOG SIDEBAR ===== */
.yc-sidebar-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.yc-sidebar-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.yc-sidebar-links li { margin-bottom: 10px; }
.yc-sidebar-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    transition: color 0.2s;
}
.yc-sidebar-links a:hover { color: var(--text-muted); }

/* ===== PRODUCT DETAIL ===== */
.yc-product-detail { padding: 40px 0; }
.yc-product-main-img {
    background: var(--bg-light);
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 3/4;
    display: flex;
    align-items: center;
    justify-content: center;
}
.yc-product-main-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.yc-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.yc-thumbs img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.2s;
}
.yc-thumbs img:hover, .yc-thumbs img.active {
    border-color: var(--primary);
}
.yc-product-name {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}
.yc-product-price {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 24px;
}
.yc-qty-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.yc-qty-wrap input[type=number] {
    width: 70px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
}

/* ===== FORM CONTROLS ===== */
.yc-form-group { margin-bottom: 16px; }
.yc-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.yc-input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    background: #fff;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s;
}
.yc-input:focus { border-color: var(--primary); }

/* ===== FOOTER ===== */
.yc-footer {
    background: var(--primary);
    color: #fff;
    padding: 48px 0 24px;
    margin-top: 64px;
}
.yc-footer-brand {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}
.yc-footer-desc { font-size: 13px; color: rgba(255,255,255,0.6); }
.yc-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.yc-footer-links li { margin-bottom: 8px; }
.yc-footer-links a { font-size: 13px; color: rgba(255,255,255,0.7); }
.yc-footer-links a:hover { color: #fff; }
.yc-footer-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-bottom: 16px;
}
.yc-footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.15);
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    text-align: center;
}

/* ===== BREADCRUMB ===== */
.yc-breadcrumb {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 24px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}
.yc-breadcrumb a { color: var(--text-muted); }
.yc-breadcrumb a:hover { color: var(--text); }

/* ===== UTILITY ===== */
.yc-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}
.yc-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 32px 0;
}
.text-accent { color: var(--primary); }

/* Overrides for Bootstrap components used in forms */
.form-control, .form-select {
    font-family: 'Montserrat', sans-serif;
    border-radius: var(--radius);
    border-color: var(--border);
    font-size: 14px;
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: none;
}
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    border-radius: var(--radius);
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}
