/* =========================================================== YouTube Shop — Tema stilleri =========================================================== */ :root { --yt-bg: #f9f9f9; --yt-surface: #ffffff; --yt-surface-2: #f2f2f2; --yt-border: #e5e5e5; --yt-text: #0f0f0f; --yt-text-2: #606060; --yt-text-3: #909090; --yt-accent: #FF0033; --yt-accent-hover: #cc0029; --yt-link: #065fd4; --yt-shadow: 0 1px 2px rgba(0,0,0,.06); --yt-radius: 12px; --yt-radius-sm: 8px; --yt-radius-pill: 999px; --yt-topbar-h: 56px; --yt-sidebar-w: 240px; --yt-sidebar-mini-w: 72px; --yt-font: 'Roboto', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif; } html.yt-dark { --yt-bg: #0f0f0f; --yt-surface: #0f0f0f; --yt-surface-2: #272727; --yt-border: #303030; --yt-text: #f1f1f1; --yt-text-2: #aaaaaa; --yt-text-3: #717171; --yt-link: #3ea6ff; --yt-shadow: 0 1px 2px rgba(0,0,0,.5); } * { box-sizing: border-box; } html { scroll-behavior: smooth; overflow-x: hidden; /* Kök seviyede taşmayı engelle */ } body.yt-theme { margin: 0; font-family: var(--yt-font); background: var(--yt-bg); color: var(--yt-text); font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden !important; /* Yatay kaymayı kesin olarak engelle */ width: 100% !important; position: relative; } img, svg { max-width: 100%; height: auto; display: block; } a { color: inherit; text-decoration: none; } a:hover { color: var(--yt-link); } button { font-family: inherit; } .screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; } .skip-link:focus { position: fixed; top: 8px; left: 8px; width: auto; height: auto; background: var(--yt-text); color: var(--yt-bg); padding: 8px 12px; clip: auto; clip-path: none; z-index: 9999; border-radius: var(--yt-radius-sm); } /* ----------- ÜST BAR ----------- */ .yt-topbar { position: sticky; top: 0; z-index: 50; height: var(--yt-topbar-h); background: var(--yt-surface); display: flex !important; /* Grid yerine Flex ile daha güvenli hizalama */ align-items: center; justify-content: space-between; padding: 0 16px; border-bottom: 1px solid var(--yt-border); width: 100% !important; box-sizing: border-box !important; } .yt-topbar__start { flex: 0 0 200px; display: flex; align-items: center; gap: 8px; } .yt-topbar__center { flex: 1; display: flex; justify-content: center; min-width: 0; /* Taşmayı engellemek için */ } .yt-topbar__end { flex: 0 0 200px; display: flex; align-items: center; justify-content: flex-end; gap: 8px; } @media (max-width: 1024px) { .yt-topbar { grid-template-columns: auto 1fr auto; } } html.yt-dark .yt-topbar { background: var(--yt-bg); } .yt-iconbtn { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 0; border-radius: 50%; color: var(--yt-text); cursor: pointer; transition: background .15s; } .yt-iconbtn:hover { background: var(--yt-surface-2); } .yt-iconbtn:focus-visible { outline: 2px solid var(--yt-link); outline-offset: 2px; } .yt-logo { display: inline-flex; align-items: center; padding: 0 8px; color: var(--yt-text); } .yt-logo .custom-logo, .yt-logo__img { max-height: 28px; width: auto; display: block; } .yt-logo__mark svg { color: var(--yt-text); } /* Search — YouTube-style pill */ .yt-search { width: 100%; max-width: 640px; display: flex !important; /* Masaüstünde görünür kıl */ align-items: center; gap: 8px; position: relative; margin: 0 auto; } @media (max-width: 768px) { .yt-topbar { height: var(--yt-topbar-h) !important; padding: 0 8px !important; display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; justify-content: space-between !important; align-items: center !important; } .yt-topbar__start { flex: 0 0 auto !important; display: flex !important; align-items: center !important; gap: 10px !important; } .yt-search-icon-mobile { display: flex !important; align-items: center !important; justify-content: center !important; width: 36px !important; height: 36px !important; font-size: 18px !important; cursor: pointer !important; z-index: 10 !important; } .yt-topbar__center { display: none !important; /* Mobilde arama kutusunu tamamen kaldır */ } .yt-topbar__end { flex: 0 0 auto !important; display: flex !important; align-items: center !important; gap: 6px !important; } .yt-avatar, .yt-topbar__end .avatar { width: 28px !important; height: 28px !important; } .yt-logo .custom-logo, .yt-logo__img { max-height: 18px !important; width: auto !important; } /* İkon butonlarını mobilde biraz küçült sığması için */ .yt-iconbtn { width: 32px !important; height: 32px !important; font-size: 16px !important; } } .yt-search__field { display: flex; flex: 1; align-items: stretch; height: 40px; background: var(--yt-surface); border: 1px solid var(--yt-border); border-radius: 40px 0 0 40px; overflow: hidden; transition: border-color .15s; width: 100% !important; box-sizing: border-box !important; background-repeat: no-repeat; /* Genel koruma */ } html.yt-dark .yt-search__field { background: #121212; border-color: #303030; } /* Arama Alanı Aktifken İkon Yerleşimi */ .yt-search__field:focus-within { border-color: #1c62b9; padding-left: 40px; box-shadow: inset 1px 0 0 #1c62b9, inset -1px 0 0 #1c62b9, inset 0 1px 0 #1c62b9, inset 0 -1px 0 #1c62b9; background-image: url("data:image/svg+xml;utf8,"); background-repeat: no-repeat !important; background-position: 12px center; } /* Gece Modunda Aktif Arama Alanı İkon Tekrarı ÇÖZÜMÜ */ html.yt-dark .yt-search__field:focus-within { background-image: url("data:image/svg+xml;utf8,"); background-repeat: no-repeat !important; /* Tekrarlamayı kesin olarak durdurur */ } .yt-search__input { flex: 1 !important; border: none !important; background: transparent !important; padding: 0 16px !important; font-size: 16px !important; color: var(--yt-text) !important; outline: none !important; min-width: 0; } .yt-search__btn { width: 64px !important; height: 40px !important; background: var(--yt-surface-2) !important; border: 1px solid var(--yt-border) !important; border-left: none !important; border-radius: 0 40px 40px 0 !important; display: flex !important; align-items: center !important; justify-content: center !important; cursor: pointer !important; margin-left: -1px !important; color: var(--yt-text-2); transition: background .15s; } .yt-search__btn:hover { background: var(--yt-border); color: var(--yt-text); } html.yt-dark .yt-search__btn { background: #222 !important; border-left-color: #303030 !important; border-color: #303030 !important; } html.yt-dark .yt-search__btn:hover { background: #303030 !important; color: #fff !important; } .yt-mic { width: 40px; height: 40px; border-radius: 50%; background: var(--yt-surface-2); color: var(--yt-text-2); flex: 0 0 auto; border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; } .yt-mic:hover { background: var(--yt-border); color: var(--yt-text); } html.yt-dark .yt-mic { background: #222; } html.yt-dark .yt-mic:hover { background: #303030; color: #fff; } .yt-search__suggest { position: absolute; top: 100%; left: 0; right: 56px; margin-top: 8px; background: var(--yt-surface); border: 1px solid var(--yt-border); border-radius: var(--yt-radius); box-shadow: var(--yt-shadow); max-height: 480px; overflow-y: auto; padding: 8px 0; } html.yt-dark .yt-search__suggest { background: #212121; } .yt-suggest__item { display: flex; align-items: center; gap: 12px; padding: 8px 16px; color: var(--yt-text); } .yt-suggest__item:hover { background: var(--yt-surface-2); color: var(--yt-text); } .yt-suggest__item img, .yt-suggest__ph { width: 56px; height: 32px; object-fit: cover; border-radius: 4px; background: var(--yt-surface-2); flex: 0 0 auto; } .yt-suggest__title { font-size: 14px; } /* Sepet rozet */ .yt-cartbtn { position: relative; } .yt-cart-count { position: absolute; top: 0; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--yt-accent); color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; line-height: 1; } .yt-cart-count.is-empty { display: none; } .yt-cartbtn.is-bump { animation: yt-bump .35s ease; } @keyframes yt-bump { 0% { transform: scale(1); } 40% { transform: scale(1.18); } 100% { transform: scale(1); } } /* Sign in */ .yt-signin { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--yt-border); border-radius: var(--yt-radius-pill); color: var(--yt-link); font-weight: 500; } .yt-signin:hover { background: rgba(62,166,255,.1); color: var(--yt-link); } /* Avatar */ .yt-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--yt-accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; overflow: hidden; position: relative; flex-shrink: 0; /* Kaymayı engellemek için */ } .yt-avatar__img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; } /* Tema toggle ikonları */ .yt-themetoggle .yt-icon-moon { display: none; } .yt-themetoggle .yt-icon-sun { display: block; } html.yt-dark .yt-themetoggle .yt-icon-moon { display: block; } html.yt-dark .yt-themetoggle .yt-icon-sun { display: none; } /* ----------- ÇİP BAR ----------- */ .yt-chips { background: var(--yt-bg); border-bottom: 1px solid var(--yt-border); position: sticky; top: var(--yt-topbar-h); z-index: 30; } .yt-chips__inner { display: flex; gap: 12px; padding: 12px 24px; overflow-x: auto; scrollbar-width: none; cursor: grab; } .yt-chips__inner::-webkit-scrollbar { display: none; } .yt-chip { flex: 0 0 auto; padding: 8px 12px; background: var(--yt-surface-2); border-radius: var(--yt-radius-sm); color: var(--yt-text); font-size: 14px; font-weight: 500; white-space: nowrap; transition: background .15s; } .yt-chip:hover { background: var(--yt-border); color: var(--yt-text); } .yt-chip.is-active { background: var(--yt-text); color: var(--yt-bg); } html.yt-dark .yt-chip.is-active { background: #f1f1f1; color: #0f0f0f; } .yt-chip--back { width: 32px; padding: 8px 0; text-align: center; background: transparent; border: 1px solid var(--yt-border); font-size: 16px; } .yt-chip--back:hover { background: var(--yt-surface-2); } /* ----------- SHELL (sidebar + main) ----------- */ .yt-shell { display: grid; grid-template-columns: var(--yt-sidebar-w) 1fr; min-height: calc(100vh - var(--yt-topbar-h)); } .yt-shell--mini { grid-template-columns: var(--yt-sidebar-mini-w) 1fr; } /* ----------- SIDEBAR ----------- */ .yt-sidebar { background: var(--yt-bg); height: calc(100vh - var(--yt-topbar-h)); position: sticky; top: var(--yt-topbar-h); overflow-y: auto; padding: 12px 0; } .yt-sidebar::-webkit-scrollbar { width: 8px; } .yt-sidebar::-webkit-scrollbar-thumb { background: var(--yt-border); border-radius: 4px; } .yt-sidebar__inner { padding: 0 12px; } .yt-side-list { list-style: none; padding: 0; margin: 0; } .yt-side-item { display: flex; align-items: center; gap: 24px; padding: 8px 12px; color: var(--yt-text); border-radius: var(--yt-radius-sm); font-size: 14px; font-weight: 400; line-height: 1.2; } .yt-side-item:hover { background: var(--yt-surface-2); color: var(--yt-text); } .yt-side-item.is-active { background: var(--yt-surface-2); font-weight: 500; } .yt-side-svg { width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; color: var(--yt-text); } .yt-side-icon { width: 24px; height: 24px; border-radius: 50%; background: var(--yt-accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; flex: 0 0 auto; text-transform: uppercase; } .yt-side-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .yt-side-sep { border: 0; border-top: 1px solid var(--yt-border); margin: 12px 0; } .yt-side-heading { font-size: 16px; font-weight: 500; margin: 0 12px 8px; color: var(--yt-text); } .yt-side-meta { color: var(--yt-text-3); font-size: 12px; padding: 0 12px; } /* Sidebar mini */ .yt-shell--mini .yt-sidebar { padding: 12px 4px; } .yt-shell--mini .yt-side-item { flex-direction: column; gap: 6px; padding: 16px 0; text-align: center; font-size: 10px; } .yt-shell--mini .yt-side-list--main .yt-side-label { display: block; } .yt-shell--mini .yt-side-list--subs, .yt-shell--mini .yt-side-list--subs ~ *, .yt-shell--mini .yt-side-heading, .yt-shell--mini .yt-side-sep, .yt-shell--mini .yt-side-widgets, .yt-shell--mini .yt-side-meta { display: none; } .yt-shell--mini .yt-side-list:not(.yt-side-list--main) { display: none; } /* Mobil sidebar */ @media (max-width: 1024px) { .yt-shell { grid-template-columns: 1fr; } .yt-sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; height: 100vh; background: var(--yt-surface); z-index: 100; transform: translateX(-100%); transition: transform .25s ease; box-shadow: 2px 0 8px rgba(0,0,0,.15); padding-top: 16px; } .yt-shell--open .yt-sidebar { transform: translateX(0); } .yt-shell--open::before { content: ''; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 99; } } /* ----------- MAIN ----------- */ .yt-main { padding: 24px; min-width: 0; } .yt-main--page, .yt-main--watch { max-width: 1600px; margin: 0 auto; width: 100%; } /* ----------- GRID ----------- */ .yt-grid { display: grid; gap: 40px 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); } /* ----------- KART ----------- */ .yt-card { display: flex; flex-direction: column; gap: 12px; } .yt-card__thumb { position: relative; display: block; aspect-ratio: 16/9; border-radius: var(--yt-radius); overflow: hidden; background: var(--yt-surface-2); } .yt-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; } .yt-card:hover .yt-card__thumb img { transform: scale(1.02); } .yt-card__noimg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 56px; font-weight: 700; } .yt-card__duration { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.85); color: #fff; padding: 3px 6px; border-radius: 4px; font-size: 12px; font-weight: 700; line-height: 1.2; letter-spacing: .2px; max-width: calc(100% - 16px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .yt-card__duration del { color: rgba(255,255,255,.55); font-weight: 400; margin-right: 4px; } .yt-card__duration ins { background: transparent; color: #fff; text-decoration: none; } .yt-card__duration .woocommerce-Price-currencySymbol { font-weight: 700; } .yt-card__live { position: absolute; left: 8px; top: 8px; background: var(--yt-accent); color: #fff; padding: 3px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; letter-spacing: .5px; } .yt-card__live--feat { background: #1976d2; } .yt-card__meta { display: flex; gap: 12px; align-items: flex-start; padding: 0 4px; position: relative; } .yt-card__avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--yt-accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex: 0 0 auto; text-transform: uppercase; } .yt-card__info { flex: 1; min-width: 0; } .yt-card__title { font-size: 14px; font-weight: 500; line-height: 1.3; margin: 0 0 4px; color: var(--yt-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .yt-card__title a { color: inherit; } .yt-card__channel { font-size: 13px; color: var(--yt-text-2); margin: 0; display: flex; align-items: center; gap: 4px; } .yt-card__verified { color: var(--yt-text-3); display: inline-flex; } .yt-card__stats { font-size: 13px; color: var(--yt-text-2); margin: 0; } .yt-card__price { display: none; } .yt-home-more { grid-column: 1 / -1; display: flex; justify-content: center; margin-top: 24px; } .yt-card__actions { position: absolute; top: 0; right: 0; opacity: 0; transition: opacity .15s; } .yt-card:hover .yt-card__actions { opacity: 1; } .yt-card__add { width: 36px; height: 36px; border-radius: 50%; background: var(--yt-accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; border: 0; cursor: pointer; } .yt-card__add:hover { background: var(--yt-accent-hover); color: #fff; } .yt-card__add.added { background: #00897b; } .yt-card__add.loading { opacity: .6; } .yt-card__add.added::after { content: "✓"; position: absolute; transform: translate(28px, -10px); background: #00897b; color: #fff; font-size: 11px; padding: 1px 4px; border-radius: 8px; } /* ----------- BUTON ----------- */ .yt-btn, .button, button.button, input.button, a.button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 16px; border: 1px solid var(--yt-border); background: var(--yt-surface-2); color: var(--yt-text); border-radius: var(--yt-radius-pill); font-weight: 500; font-size: 14px; cursor: pointer; transition: background .15s, color .15s; text-decoration: none; line-height: 1.2; } .yt-btn:hover, .button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover { background: var(--yt-border); color: var(--yt-text); } .yt-btn--primary, .woocommerce button.button.alt, .woocommerce a.button.alt, .woocommerce #respond input#submit.alt, .woocommerce-page button.button.alt { background: var(--yt-accent); color: #fff !important; border-color: var(--yt-accent); } .yt-btn--primary:hover, .woocommerce button.button.alt:hover, .woocommerce a.button.alt:hover { background: var(--yt-accent-hover); border-color: var(--yt-accent-hover); } /* ----------- ARŞİV BAŞLIK ----------- */ .yt-archive__header { padding: 0 4px 16px; } .yt-archive__title { font-size: 24px; font-weight: 700; margin: 0; color: var(--yt-text); } .yt-archive__title span { color: var(--yt-accent); } .yt-archive__desc { color: var(--yt-text-2); margin: 8px 0 0; } /* ----------- WATCH (single post / product) ----------- */ .yt-main--watch { padding-top: 24px; max-width: 1600px; margin: 0 auto; width: 100%; } .yt-watch, .woocommerce div.product.yt-watch { display: flex !important; flex-wrap: nowrap !important; /* Masaüstünde yan yana kalması için */ gap: 24px; align-items: start; width: 100% !important; max-width: 1280px !important; margin: 0 auto !important; } .yt-watch__primary { flex: 1 !important; min-width: 0 !important; } .yt-watch__secondary { flex: 0 0 350px !important; /* Sağ panel genişliği */ min-width: 350px !important; } @media (max-width: 1200px) { .yt-watch, .woocommerce div.product.yt-watch { flex-direction: column !important; flex-wrap: wrap !important; } .yt-watch__primary, .yt-watch__secondary { flex: 1 1 100% !important; width: 100% !important; min-width: 100% !important; } } .yt-watch__player { aspect-ratio: 16/9; background: #000; border-radius: var(--yt-radius); overflow: hidden; max-width: 100% !important; height: auto !important; } .yt-watch__player img { width: 100% !important; height: auto !important; object-fit: contain !important; } .yt-watch__title { font-size: 20px; font-weight: 700; margin: 16px 0 12px; line-height: 1.3; } .yt-watch__meta { display: flex; align-items: center; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px solid var(--yt-border); } .yt-watch__channel { display: flex; gap: 12px; align-items: center; } .yt-watch__channel-meta strong { display: block; font-size: 16px; } .yt-watch__channel-meta small { color: var(--yt-text-2); font-size: 12px; } .yt-watch__channel .yt-side-icon { width: 40px; height: 40px; font-size: 16px; } /* Watch action bar — seller (left) + price + add to cart (right) */ .yt-watch__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0 16px; border-bottom: 1px solid var(--yt-border); margin-bottom: 16px; } .yt-watch__seller { display: flex; align-items: center; gap: 12px; min-width: 0; } .yt-watch__avatar { width: 40px; height: 40px; border-radius: 50%; color: #fff; font-weight: 700; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; text-transform: uppercase; flex: 0 0 auto; } .yt-watch__seller-info { display: flex; flex-direction: column; min-width: 0; } .yt-watch__seller-name { font-size: 16px; font-weight: 600; color: var(--yt-text); display: inline-flex; align-items: center; gap: 4px; line-height: 1.2; } .yt-watch__verified { color: var(--yt-text-3); display: inline-flex; } .yt-watch__seller-info .woocommerce-product-rating { margin: 2px 0 0; font-size: 12px; } .yt-watch__cart { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; } .yt-watch__price { font-size: 22px; font-weight: 700; color: var(--yt-text); } .yt-watch__price .price, .yt-watch__price p.price { margin: 0; font-size: 22px; font-weight: 700; color: var(--yt-text); } .yt-watch__price .price del { color: var(--yt-text-3); font-weight: 400; margin-right: 6px; font-size: 16px; } .yt-watch__price .price ins { background: transparent; color: var(--yt-text); text-decoration: none; } .yt-watch__cart form.cart { display: flex; align-items: center; gap: 8px; margin: 0; flex-wrap: wrap; } .yt-watch__cart .quantity input.qty { width: 64px; height: 40px; padding: 0 8px; background: var(--yt-surface-2); color: var(--yt-text); border: 1px solid var(--yt-border); border-radius: 999px; text-align: center; font-size: 14px; } .yt-watch__cart button.single_add_to_cart_button, .yt-watch__cart .single_add_to_cart_button { background: var(--yt-text) !important; color: var(--yt-bg) !important; border: none !important; border-radius: 999px !important; padding: 0 20px !important; height: 40px; font-weight: 600 !important; font-size: 14px !important; cursor: pointer; transition: opacity .15s; display: inline-flex; align-items: center; gap: 8px; } .yt-watch__cart button.single_add_to_cart_button:hover { opacity: .9; } .yt-watch__excerpt { color: var(--yt-text-2); font-size: 14px; line-height: 1.6; margin-bottom: 16px; } .yt-watch__excerpt p { margin: 0 0 8px; } .yt-watch__meta-foot { color: var(--yt-text-3); font-size: 12px; margin-bottom: 16px; } .yt-watch__meta-foot .sku_wrapper, .yt-watch__meta-foot .posted_in, .yt-watch__meta-foot .tagged_as { display: block; margin-bottom: 4px; } .yt-watch__description { background: var(--yt-surface-2); padding: 16px; border-radius: var(--yt-radius); margin-top: 16px; color: var(--yt-text); line-height: 1.6; font-size: 14px; word-wrap: break-word; max-width: 100% !important; box-sizing: border-box !important; } .yt-watch__description p { margin: 0 0 12px; } .yt-watch__description p:last-child { margin: 0; } .yt-watch__related-title { font-size: 14px; font-weight: 600; margin: 0 0 12px; } .yt-related { display: grid; grid-template-columns: 140px 1fr; gap: 8px; margin-bottom: 10px; color: var(--yt-text); } .yt-related__thumb { position: relative; aspect-ratio: 16/9; background: var(--yt-surface-2); border-radius: var(--yt-radius-sm); overflow: hidden; } .yt-related__thumb img { width: 100%; height: 100%; object-fit: cover; } .yt-related__price { position: absolute; right: 4px; bottom: 4px; background: rgba(0,0,0,.85); color: #fff; padding: 2px 5px; border-radius: 3px; font-size: 11px; font-weight: 700; line-height: 1.2; max-width: calc(100% - 8px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .yt-related__price del { color: rgba(255,255,255,.5); font-weight: 400; margin-right: 3px; } .yt-related__price ins { background: transparent; color: #fff; text-decoration: none; } .yt-related__meta { min-width: 0; } .yt-related__title { font-size: 13px; font-weight: 500; margin: 0 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3; } .yt-related__channel, .yt-related__stats { font-size: 12px; color: var(--yt-text-2); margin: 0; } /* ----------- SAYFA ----------- */ .yt-page { max-width: 900px; margin: 0 auto; } .yt-page__title { font-size: 28px; font-weight: 700; margin: 0 0 16px; } .yt-page__thumb { aspect-ratio: 16/9; border-radius: var(--yt-radius); overflow: hidden; margin-bottom: 24px; } .yt-page__thumb img { width: 100%; height: 100%; object-fit: cover; } .yt-page__content { font-size: 16px; line-height: 1.7; } .yt-page__content p { margin: 0 0 16px; } .yt-page__content a { color: var(--yt-link); text-decoration: underline; } /* ----------- BOŞ DURUM ----------- */ .yt-empty { text-align: center; padding: 80px 16px; grid-column: 1 / -1; } .yt-empty__art { display: flex; justify-content: center; margin-bottom: 24px; } .yt-empty__title { font-size: 24px; font-weight: 700; margin: 0 0 8px; } .yt-empty__text { color: var(--yt-text-2); margin: 0 0 24px; } .yt-empty__actions { display: flex; gap: 12px; justify-content: center; } /* ----------- PAGINATION ----------- */ .navigation.pagination { grid-column: 1 / -1; margin-top: 24px; display: flex; justify-content: center; } .navigation.pagination .nav-links { display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; /* Mobilde sığmadığında alt satıra taşır */ } .navigation.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 12px; /* Mobilde parmakla basmayı kolaylaştırır */ border: 1px solid var(--yt-border); border-radius: var(--yt-radius-pill); color: var(--yt-text); font-weight: 500; text-decoration: none; } .navigation.pagination .page-numbers.current { background: var(--yt-text); color: var(--yt-bg); } .navigation.pagination .page-numbers:hover { background: var(--yt-surface-2); } /* ----------- WOOCOMMERCE PAGINATION ----------- */ .woocommerce nav.woocommerce-pagination { margin-top: 32px; grid-column: 1 / -1; } .woocommerce nav.woocommerce-pagination ul { border: 0; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; /* Mobilde sığmadığında alt satıra taşır */ padding: 0; margin: 0; } .woocommerce nav.woocommerce-pagination ul li { border: none; list-style: none; margin: 0; padding: 0; } .woocommerce nav.woocommerce-pagination ul li .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 12px; border: 1px solid var(--yt-border); border-radius: var(--yt-radius-pill); color: var(--yt-text); font-weight: 500; text-decoration: none; background: transparent; } .woocommerce nav.woocommerce-pagination ul li span.current { background: var(--yt-text); color: var(--yt-bg); } .woocommerce nav.woocommerce-pagination ul li a.page-numbers:hover { background: var(--yt-surface-2); } /* ----------- YORUMLAR ----------- */ .yt-comments { margin-top: 32px; } .yt-comments__title { font-size: 18px; font-weight: 500; margin: 0 0 16px; } .yt-comments__list { list-style: none; padding: 0; margin: 0 0 24px; } .yt-comments__list .comment { margin-bottom: 24px; } .yt-comments__list .comment-body { display: flex; gap: 12px; } .yt-comments__list .comment-author img.avatar { width: 40px; height: 40px; border-radius: 50%; } .yt-comments__list .comment-meta { font-size: 12px; color: var(--yt-text-2); margin-bottom: 4px; } .yt-comments__list .comment-meta a { color: var(--yt-text-2); } .yt-comments__list .comment-content { font-size: 14px; } .yt-comments__form { display: grid; gap: 12px; } .yt-comments__form input[type=text], .yt-comments__form input[type=email], .yt-comments__form input[type=url], .yt-comments__form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--yt-border); border-radius: var(--yt-radius-sm); background: var(--yt-surface); color: var(--yt-text); font-family: inherit; font-size: 14px; } .yt-comments__form textarea { min-height: 100px; resize: vertical; } .yt-comments__form .form-submit { margin: 0; } /* ----------- FOOTER ----------- */ .yt-footer { margin-top: 48px; padding: 24px; background: var(--yt-bg); border-top: 1px solid var(--yt-border); color: var(--yt-text-2); } .yt-footer__inner { max-width: 1600px; margin: 0 auto; } .yt-footer__cols { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: 24px; } .yt-footer__col .widget-title { font-size: 14px; color: var(--yt-text); margin: 0 0 12px; font-weight: 500; } .yt-footer__col ul { list-style: none; padding: 0; margin: 0; } .yt-footer__col li { margin-bottom: 6px; font-size: 13px; } .yt-footer__menu { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; } .yt-footer__menu a:hover { color: var(--yt-text); } .yt-footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 12px; padding-top: 16px; border-top: 1px solid var(--yt-border); } /* ----------- WOOCOMMERCE özelleştirmeleri ----------- */ .woocommerce ul.products, .woocommerce-page ul.products { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 15px 16px; list-style: none; margin: 0; padding: 0; } .woocommerce ul.products li.product { margin: 0 !important; padding: 0 !important; width: auto !important; float: none !important; } .woocommerce ul.products li.product .yt-card { margin: 0; } .woocommerce nav.woocommerce-pagination { margin-top: 24px; } .woocommerce nav.woocommerce-pagination ul { border: 0; display: flex; gap: 8px; justify-content: center; }
Skip to content