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

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #111;
    background-color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font: inherit;
}

/* Layout helpers */

html,
body {
    width: 100%;
}

/* Zoom engelleme (PC'de Ctrl + mouse wheel) */
html {
    zoom: 1;
    -ms-zoom: 1;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

.top-bar,
.main-header,
.promo-bar {
    width: 100%;
}

.top-bar {
    background-color: #ffd7e2;
    color: #111;
    text-align: center;
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 8px 16px;
}

.top-bar-message {
    white-space: nowrap;
}

.main-header {
    border-bottom: 1px solid #eee;
    background-color: #fff;
    position: sticky;
    top: 0;
    z-index: 50;
    animation: header-slide-down 0.4s ease-out;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.logo img {
    height: 52px;
    object-fit: contain;
}

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    text-transform: uppercase;
}

.main-nav a {
    position: relative;
    display: inline-block;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 1px;
    background-color: #111;
    transition: width 0.2s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.header-icons {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.icon-btn {
    font-size: 18px;
    position: relative;
}

.cart-btn {
    padding-right: 8px;
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background-color: #111;
    color: #fff;
    border-radius: 999px;
    padding: 1px 5px;
    font-size: 10px;
}

/* Kullanıcı ve sepet ikonları (SVG) */
.user-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background-color: transparent;
    border: none;
}

.user-icon svg,
.cart-btn svg {
    width: 24px;
    height: 24px;
    color: #111;
}

.user-icon-wrapper .user-icon,
.cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.header-icons .user-icon-wrapper .user-icon,
.header-icons .cart-btn {
    align-self: flex-start;
}

.user-icon-wrapper {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: fit-content;
}

.user-icon-wrapper .user-icon {
    align-self: center;
    margin-left: auto;
    margin-right: auto;
}

.user-hover-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    min-width: 160px;
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    padding: 6px 0;
    opacity: 0;
    transform: translate(-50%, 4px);
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 60;
    margin-top: 4px;
}

.user-icon-wrapper::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 12px;
    z-index: 61;
    pointer-events: auto;
}

.user-hover-menu a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px 14px !important;
    font-size: 14px;
    width: 100% !important;
    box-sizing: border-box;
    text-align: center !important;
    margin: 0 !important;
}

.user-hover-menu a:hover {
    background-color: #f5f5f5;
}

.user-hover-menu .logout-link {
    color: #d32f2f;
}

.user-hover-menu .logout-link:hover {
    background-color: #ffebee;
    color: #c62828;
}

.user-icon-wrapper:hover .user-hover-menu,
.user-icon-wrapper:focus-within .user-hover-menu {
    opacity: 1;
    transform: translate(-50%, 0);
    pointer-events: auto;
}

.user-label {
    font-size: 11px;
    line-height: 1.2;
    color: #111;
    text-align: center;
    white-space: nowrap;
    display: block;
    width: 100%;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-icon-with-label {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.user-icon-with-label {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}


.main-nav a.active::after {
    width: 100%;
}

/* Hamburger */

.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
}

.hamburger span {
    display: block;
    width: 18px;
    height: 2px;
    background-color: #111;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Promo Bar (Black) */

.promo-bar {
    background-color: #000;
    color: #fff;
    overflow: hidden;
}

.promo-marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 8px 0;
}

.promo-track {
    display: inline-flex;
    white-space: nowrap;
    animation: marquee 30s linear infinite;
}

.promo-track span {
    padding: 0 32px;
    flex-shrink: 0;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Hero */

.hero {
    position: relative;
    width: 100%;
    min-height: 60vh; /* JS ile gerçek yüksekliği dinamik ayarlıyoruz */
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.hero-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

@media (max-width: 900px) {
    .hero {
        position: relative;
        overflow: hidden;
    }
    
    .hero-image {
        background-size: cover !important;
        background-attachment: scroll;
        transform: none !important;
        will-change: auto;
        /* Scroll sırasında boyut değişmesin */
        background-position: center center;
    }
    
    /* Hero container'ın boyutunu sabit tut */
    .hero {
        height: var(--hero-height, calc(100vh - 8vh)) !important;
        min-height: var(--hero-height, calc(100vh - 8vh)) !important;
        max-height: var(--hero-height, calc(100vh - 8vh)) !important;
    }
}

.hero-image-1 {
    /* Hero arka plan görseli */
    background-image: url("../../assets/images/hero-image_1.png");
    background-position: center top;
}

.hero-image-2 {
    background-image: url("../../assets/images/hero-image_2.jpg");
    background-position: center top;
}

.hero-image-3 {
    background-image: url("../../assets/images/hero-image_2.png");
    background-position: center top;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 16px;
    color: #fff;
    text-transform: uppercase;
    text-align: left;
}

.hero-content h1 {
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.1;
    margin-bottom: 12px;
}

.hero-content p {
    font-size: clamp(16px, 2vw, 20px);
    margin-bottom: 24px;
}

.primary-btn {
    background-color: #111;
    color: #fff;
    padding: 12px 26px;
    border-radius: 2px;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.primary-btn:hover {
    background-color: #000;
}

.primary-btn.full-width {
    width: 100%;
    text-align: center;
}

.checkout-btn {
    background-color: #28a745 !important;
}

.checkout-btn:hover {
    background-color: #218838 !important;
}

/* Sepete Ekleme Pop-up */
.cart-success-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.cart-success-popup-content {
    background-color: #fff;
    padding: 24px 32px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    animation: slideUp 0.3s ease;
}

.cart-success-popup-content p {
    margin: 0;
    font-size: 16px;
    color: #28a745;
    font-weight: 500;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.hero-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 3;
}

.hero-dots .dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.6);
}

.hero-dots .dot.active {
    background-color: #fff;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.hero-arrow.prev {
    left: 16px;
}

.hero-arrow.next {
    right: 16px;
}

/* Auth pages */

.page-content {
    max-width: 600px;
    margin: 40px auto;
    padding: 0 16px 40px;
}

.page-content.checkout-page {
    max-width: 100%;
}

/* Admin login sayfası için page-content genişliğini artır */
.page-content.admin-login-page {
    max-width: 800px !important;
}

.auth-logo {
    text-align: center;
    margin-bottom: 24px;
}

.auth-logo img {
    max-width: 180px;
    height: auto;
}

.auth-section h1 {
    font-size: 24px;
    margin-bottom: 24px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-form .form-row-grid {
    margin-bottom: 0;
}

.form-row-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-row-group-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

@media (max-width: 768px) {
    .form-row-group,
    .form-row-group-3 {
        grid-template-columns: 1fr;
    }
}

/* Checkout sayfası iki sütunlu yapı için responsive */
.checkout-page .auth-section {
    max-width: 1200px;
    margin: 0 auto;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    width: 100%;
}

@media (max-width: 900px) {
    .checkout-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.auth-section {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 24px 20px 28px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

/* Admin login formu daha geniş olsun */
.admin-login-page .admin-login-section {
    max-width: 800px !important;
}

.addresses-btn {
    background-color: #7b2cbf;
    color: #fff;
    padding: 12px 26px;
    border-radius: 2px;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
}

.addresses-btn:hover {
    background-color: #6a1b9a;
    color: #fff;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-row-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-row-grid .form-row {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .form-row-grid {
        grid-template-columns: 1fr;
    }
}

.form-row label {
    font-size: 14px;
}

.form-row input,
.form-row select,
.form-row textarea {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 10px;
    font-size: 14px;
}

.form-row textarea {
    resize: none;
}

.form-row select:disabled {
    background-color: #f5f5f5;
    color: #999;
}

.password-input {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input input {
    width: 100%;
    padding-right: 40px;
}

.password-toggle {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #555;
    user-select: none;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

/* Şifre görünürken göz ikonuna slash ekle */
.password-toggle.visible::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 2px;
    background-color: #555;
    transform: rotate(45deg);
    pointer-events: none;
}

.auth-switch {
    margin-top: 8px;
    font-size: 13px;
    text-align: center;
}

.auth-switch a {
    text-decoration: underline;
}

/* Genel buton stilleri */
.btn {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 13px;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: #1976d2;
    color: #fff;
}

.btn-primary:hover {
    background-color: #125aa0;
}

.btn-danger {
    background-color: #d32f2f;
    color: #fff;
}

.btn-danger:hover {
    background-color: #b71c1c;
}

.btn-success {
    background-color: #2e7d32;
    color: #fff;
}

.btn-success:hover {
    background-color: #1b5e20;
}

.btn-secondary {
    background-color: #6c757d;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-warning {
    background-color: #6c757d;
    color: #fff;
}

.btn-warning:hover {
    background-color: #5a6268;
}

.form-errors {
    background-color: #ffe5e5;
    color: #b00020;
    padding: 10px 12px;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 16px;
}

/* Admin sayfaları daha geniş olsun */
.admin-page {
    max-width: 100%;
    padding: 0;
    margin: 0;
}

.admin-page .page-content {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.admin-page .auth-section {
    max-width: 100%;
    background-color: transparent;
    box-shadow: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.form-success {
    background-color: #e5f9e7;
    color: #1b5e20;
    padding: 10px 12px;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 16px;
}

.field-error {
    color: #b00020;
    font-size: 12px;
}

.password-rules {
    font-size: 13px;
    margin-bottom: 16px;
}

.password-rules ul {
    margin-left: 18px;
    margin-top: 6px;
}

.site-footer {
    padding: 24px 16px;
    font-size: 13px;
    color: #777;
    border-top: 1px solid #eee;
    margin-top: 40px;
    background-color: #fafafa;
    text-align: center;
}

.site-footer p {
    margin: 4px 0;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto 12px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.footer-column h4 {
    font-size: 14px;
    margin-bottom: 8px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-column a {
    color: #555;
}

.footer-column a:hover {
    text-decoration: underline;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid #eee;
    margin-top: 24px;
}

.footer-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
}

.footer-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #333;
    transition: color 0.2s, transform 0.2s;
}

.footer-social-icon:hover {
    color: #111;
    transform: scale(1.1);
}

.footer-social-icon svg {
    width: 24px;
    height: 24px;
}

.footer-copyright {
    margin: 0 0 8px 0;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.footer-powered {
    margin: 0;
    font-size: 13px;
}

.footer-powered a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-powered a:hover {
    color: #111;
    text-decoration: underline;
}

/* Footer'ı sayfanın en altına itmek için */
main {
    flex: 1;
}

.scroll-top-btn {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid #111;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 90;
    color: #111;
}

.scroll-top-btn.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.user-menu {
    position: relative;
    display: inline-block;
}

.user-menu-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid transparent;
    background-color: transparent;
    cursor: pointer;
    font-size: 13px;
}

.user-name {
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: none;
}

.user-caret {
    font-size: 10px;
}

.user-menu-dropdown {
    position: absolute;
    right: 0;
    top: 120%;
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    padding: 8px 0;
    min-width: 180px;
    display: none;
    z-index: 60;
}

.user-menu-dropdown a {
    display: block;
    padding: 8px 16px;
    font-size: 14px;
}

.user-menu-dropdown a:hover {
    background-color: #f5f5f5;
}

.user-menu.open .user-menu-dropdown {
    display: block;
}

/* Admin panel */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.admin-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    background-color: #fafafa;
}

.admin-card h2 {
    font-size: 18px;
    margin-bottom: 8px;
}

.admin-card p {
    font-size: 14px;
    color: #555;
}

.admin-layout {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 24px;
    width: 100%;
    margin: 0;
    padding: 0 8px;
}

.admin-sidebar {
    border-right: 1px solid #eee;
    padding-right: 16px;
    padding-left: 0;
    position: sticky;
    top: 0;
    align-self: start;
    width: 160px;
    flex-shrink: 0;
}

.admin-sidebar h2 {
    font-size: 16px;
    margin-bottom: 16px;
    padding: 0;
    margin-left: 0;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.admin-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    padding-left: 0;
    margin-left: 0;
}

.admin-menu a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 4px;
    text-align: center;
}

.admin-menu a.active {
    background-color: #ffe0b2;
    color: #e65100;
}

.admin-content-title {
    margin-bottom: 16px;
}

.admin-table-wrapper {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.admin-table th,
.admin-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.admin-table th {
    font-weight: 600;
    background-color: #fafafa;
}

.admin-table tr:nth-child(even) td {
    background-color: #fcfcfc;
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.btn-pill {
    border-radius: 999px;
    font-size: 12px;
    padding: 4px 10px;
}

.btn-view {
    background-color: #ec407a; /* pembe tonu */
    color: #fff;
}

.btn-edit {
    background-color: #8e24aa; /* mor tonu */
    color: #fff;
}

.btn-toggle {
    background-color: #757575; /* gri */
    color: #fff;
}

.btn-view:hover {
    background-color: #d81b60;
}

.btn-edit:hover {
    background-color: #6a1b9a;
}

.btn-toggle:hover {
    background-color: #616161;
}

.admin-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.admin-filter-form {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.admin-filter-form select {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 13px;
}

.admin-images-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.admin-image-thumb-wrapper {
    position: relative;
    display: inline-block;
}

.admin-image-delete-checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.admin-image-thumb {
    width: 260px;
    height: 260px;
    display: block;
    border-radius: 4px;
    background-size: contain;
    background-position: center;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
}

.admin-image-delete-icon {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.admin-image-thumb-wrapper input:checked + .admin-image-thumb {
    border-color: #d32f2f;
    box-shadow: 0 0 0 2px rgba(211, 47, 47, 0.4);
}

.admin-image-thumb-wrapper input:checked ~ .admin-image-delete-icon {
    background-color: #d32f2f;
}

.image-slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px 16px;
}

.image-slot-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
}

.image-slot-label {
    font-weight: 500;
}

.admin-variant-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-variant-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #ddd;
    background-color: #fff;
    cursor: pointer;
    font-size: 13px;
}

.admin-variant-pill.active {
    background-color: #1976d2;
    color: #fff;
    border-color: #1976d2;
}

.admin-variant-pill input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.admin-variant-color-swatch {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid #ccc;
}

.admin-variant-label {
    font-size: 13px;
}

.admin-variant-pill input:checked ~ .admin-variant-label {
    font-weight: 600;
}

.admin-variant-pill input:checked ~ .admin-variant-color-swatch {
    border-color: #111;
    box-shadow: 0 0 0 2px rgba(17, 17, 17, 0.25);
}

/* Admin Panel Header */
.admin-header-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #111;
    white-space: nowrap;
}

.header-inner {
    position: relative;
}

@media (max-width: 768px) {
    .admin-header-title {
        font-size: 14px;
    }
}

/* Admin Panel Hamburger Menu */
.admin-page .hamburger {
    display: flex;
}

@media (min-width: 901px) {
    .admin-page .hamburger {
        display: none;
    }
}

/* Admin Mobile Menu */
.admin-mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #fff;
    z-index: 100;
    padding: 60px 20px 20px;
    overflow-y: auto;
}

.admin-mobile-menu.open {
    display: block;
}

.admin-mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 32px;
    background: none;
    border: none;
    cursor: pointer;
    color: #111;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-mobile-menu .admin-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.admin-mobile-menu .admin-menu li {
    margin-bottom: 8px;
}

.admin-mobile-menu .admin-menu a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    font-size: 16px;
    text-align: center;
}

.admin-mobile-menu .admin-menu a.active {
    background-color: #ffe0b2;
    color: #e65100;
}

.admin-mobile-menu .admin-sidebar h2 {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
    margin-bottom: 16px;
}

@media (max-width: 900px) {
    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        display: none;
    }

    .admin-mobile-menu .admin-sidebar {
        display: block;
        position: static;
        border: none;
        padding: 0;
        width: 100%;
    }
}

/* Category listing */
.category-page {
    max-width: 1200px;
    margin: 32px auto 40px;
    padding: 0 16px;
}

.category-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 24px;
}

.category-sidebar {
    border-right: 1px solid #eee;
    padding-right: 16px;
    padding-left: 0;
    font-size: 14px;
}

.category-sidebar-title {
    font-weight: 600;
    margin-bottom: 8px;
}

.category-subcategory-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.category-subcategory-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    color: #111;
    font-size: 13px;
}

.category-subcategory-list a span {
    color: #777;
    font-size: 12px;
}

.category-subcategory-list a.active {
    font-weight: 600;
}

.category-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.category-header .back-link {
    margin-bottom: 0;
    flex-shrink: 0;
}

.category-header h1 {
    font-size: 24px;
}

.category-count {
    font-size: 13px;
    color: #777;
}

.category-toolbar {
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-sort {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Mobil sıralama butonu */
.category-mobile-sort {
    display: none;
    margin-bottom: 16px;
}

.category-mobile-sort .mobile-filter-btn {
    width: 100%;
    background: #f8f8f8;
    border-radius: 8px;
}

.sort-btn {
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #ddd;
    background-color: #fff;
    font-size: 12px;
}

.sort-btn.active {
    background-color: #111;
    color: #fff;
    border-color: #111;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.product-card {
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px);
}

.product-thumb-link {
    display: block;
    position: relative;
}

.product-thumb {
    width: 100%;
    padding-top: 120%;
    border-radius: 4px;
    background-image: linear-gradient(135deg, #f2f2f2, #e0e0e0);
    position: relative;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.discount-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background-color: #e53935;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    clip-path: polygon(0 0, 100% 0, 85% 50%, 100% 100%, 0 100%);
    z-index: 2;
}

.product-detail-prices .discount-badge {
    position: static;
    margin-left: 8px;
    clip-path: polygon(0 0, 100% 0, 90% 100%, 0 100%);
}

.product-info {
    margin-top: 8px;
}

.product-card .product-thumb {
    padding-top: 90%; /* kategori listesinde görsel daha kısa olsun */
}

.product-card {
    display: flex;
    flex-direction: column;
}

.product-card.in-view {
    animation: fade-in-up 0.5s ease-out both;
}

.product-card.in-view:nth-child(2n) {
    animation-delay: 0.05s;
}

.product-card.in-view:nth-child(3n) {
    animation-delay: 0.1s;
}

.product-card.in-view:nth-child(4n) {
    animation-delay: 0.15s;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes header-slide-down {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-brand {
    font-size: 13px;
    color: #777;
}

.product-name {
    font-size: 14px;
    margin-top: 2px;
}

.product-prices {
    margin-top: 6px;
    display: flex;
    gap: 6px;
    align-items: baseline;
}

.product-old-price {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
}

.product-price {
    font-size: 15px;
    font-weight: 600;
}

.product-meta {
    font-size: 12px;
    color: #777;
    margin-top: 4px;
}

/* Product detail */
.product-page {
    max-width: 1200px;
    margin: 32px auto 40px;
    padding: 0 16px;
}

.back-link {
    display: inline-block;
    margin-bottom: 0;
    font-size: 13px;
    color: #111;
    flex-shrink: 0;
}

.product-header-with-back {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

/* Mobil menü altındaki "Giriş Yap | Üye Ol" satırı - varsayılan olarak gizli */
.mobile-auth-footer {
    display: none;
}

/* Mobil menü kapatma butonu - varsayılan olarak gizli (sadece mobilde gösterilecek) */
.mobile-menu-close {
    display: none;
}

/* Menü açıkken sayfa kaymasın */
body.nav-open {
    overflow: hidden;
}

.back-link:hover {
    text-decoration: underline;
}

.product-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 32px;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-thumbs {
    display: flex;
    gap: 8px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.product-thumb.small {
    padding-top: 0;
    width: 72px;
    height: 72px;
}

.product-image-large .product-thumb.large {
    padding-top: 100%;
}

.product-thumb-btn {
    border: none;
    cursor: pointer;
}

.product-thumb-btn.active {
    outline: 2px solid #111;
    outline-offset: 2px;
}

.product-detail-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-title {
    font-size: 22px;
}

.product-detail-prices {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.product-option {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.color-swatch {
    width: 32px;
    height: 32px;
    border-radius: 0;
    border: 2px solid #ddd;
    padding: 0;
}

.color-swatch.active {
    border-color: #111;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.option-label {
    font-size: 13px;
}

.option-values {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.option-pill {
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 13px;
    background-color: #fff;
}

.option-pill.active {
    border-color: #111;
    background-color: #111;
    color: #fff;
}

.product-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    color: #555;
}

.benefit-item {
    padding: 6px 10px;
    border-radius: 999px;
    background-color: #f5f5f5;
}

.product-description h2 {
    font-size: 15px;
    margin-bottom: 6px;
}

.product-description p {
    font-size: 13px;
    color: #555;
}

/* Home: Trend ürünler ve kategori kutuları */
.home-trending {
    max-width: 1200px;
    margin: 32px auto;
    padding: 0 16px;
    animation: fade-in-up 0.6s ease-out 0.1s both;
}

.home-section-header h2 {
    font-size: 22px;
    margin-bottom: 16px;
}

.home-trending-grid {
    margin-bottom: 32px;
}

.home-trending-empty {
    font-size: 14px;
    color: #777;
}

.home-category-strips {
    width: 100%;
    margin: 0 auto 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

/* Ana sayfa: kategori ve ürünler bloğu */
.home-category-products {
    max-width: 100%;
    margin: 0 0 40px 0;
    padding: 0 8px;
}

.home-category-sidebar {
    padding-left: 8px;
}

.home-category-products-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 24px;
    max-width: 100%;
    margin: 0;
    padding: 0 8px;
}

.home-category-sidebar {
    border-right: 1px solid #eee;
    padding-right: 16px;
    padding-left: 0;
    font-size: 14px;
}

.home-category-sidebar-title {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 15px;
}

.home-category-sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.home-category-sidebar-list > li > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-weight: 600;
    color: #111;
}

.home-category-sidebar-list > li > a .category-count {
    font-weight: 400;
    color: #777;
    font-size: 13px;
}

.home-category-sidebar-list > li > a.active {
    color: #111;
    font-weight: 700;
}

.home-category-sidebar-list > li > a:hover {
    text-decoration: underline;
}

.home-category-sidebar-list ul {
    list-style: none;
    padding: 0;
    margin: 4px 0 6px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.home-category-sidebar-list ul li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    color: #555;
    font-weight: 400;
}

.home-category-sidebar-list ul li a .category-count {
    font-weight: 400;
    color: #999;
    font-size: 12px;
}

.home-category-sidebar-list ul li a.active {
    color: #111;
    font-weight: 600;
}

.home-category-sidebar-list ul li a:hover {
    text-decoration: underline;
}

.home-category-products-grid {
    min-height: 200px;
}

/* Mobil Filtre Butonları */
.home-category-mobile-filters {
    display: none;
    margin-bottom: 16px;
    background: #f8f8f8;
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
    align-items: center;
    gap: 0;
}

.mobile-filter-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: transparent;
    border: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.mobile-filter-btn:hover:not(:disabled) {
    background: #eee;
}

.mobile-filter-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.mobile-filter-btn svg {
    flex-shrink: 0;
}

.filter-divider {
    width: 1px;
    height: 24px;
    background: #ddd;
}

.home-category-no-selection {
    display: none;
    padding: 16px;
    text-align: center;
    color: #777;
    font-size: 14px;
    margin-bottom: 16px;
}

/* Mobil Pop-up */
.mobile-filter-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
}

.mobile-filter-popup.active {
    display: block;
}

.mobile-filter-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.mobile-filter-popup-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 16px 16px 0 0;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.mobile-filter-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}

.mobile-filter-popup-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.mobile-filter-popup-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    padding: 0;
}

.mobile-filter-popup-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

.mobile-category-list,
.mobile-sort-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-category-list > li,
.mobile-sort-list > li {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-category-link,
.mobile-sort-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s;
}

.mobile-category-link:hover,
.mobile-sort-link:hover {
    background: #f8f8f8;
}

.mobile-category-link.active,
.mobile-sort-link.active {
    background: #f0f0f0;
    font-weight: 600;
}

.mobile-category-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #fafafa;
}

.mobile-category-list ul li a {
    padding-left: 40px;
    font-size: 14px;
    color: #555;
}

.sort-check {
    color: #111;
    font-weight: bold;
}

@media (max-width: 900px) {
    .home-category-sidebar {
        display: none;
    }

    .home-category-mobile-filters {
        display: flex;
    }

    .home-category-no-selection {
        display: block;
    }

    .home-category-products-layout {
        grid-template-columns: 1fr;
    }
}

.home-category-strip {
    position: relative;
    min-height: 100vh;
    border-radius: 0;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.strip-takimlar {
    background-image: url("../images/takimlar.jpg");
}

.strip-aksesuar {
    background-image: url("../images/aksesuarlar.jpg");
}

.strip-brands-extra {
    background-image: url("../images/marka-urunler.jpeg");
}

.strip-new {
    /* Görseller assets/images klasöründe */
    background-image: url("../images/yeni-sezon.jpg");
}

.strip-brands {
    background-image: url("../images/en-cok-satanlar.jpg");
}

.strip-sale {
    background-image: url("../images/indirimli-urunler.jpg");
}

.strip-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #fff;
    text-align: center;
    background: linear-gradient(to top, rgba(0,0,0,0.45), rgba(0,0,0,0.15));
}

.strip-overlay h3 {
    font-size: 20px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-category-strips .primary-btn {
    background-color: #fff;
    color: #111;
}

.home-category-strips .primary-btn:hover {
    background-color: #f0f0f0;
}

@media (max-width: 900px) {
    .home-category-strips {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    /* Kategori sayfalarında mobil sıralama */
    .category-sort {
        display: none;
    }

    .category-mobile-sort {
        display: block;
    }

    .product-layout {
        grid-template-columns: 1fr;
    }

    .product-gallery {
        grid-template-columns: minmax(0, 1fr);
    }

    .product-thumbs {
        flex-direction: row;
        justify-content: center;
    }

    .product-page,
    .category-page {
        margin-top: 16px;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive */

@media (max-width: 900px) {
    .header-inner {
        padding-inline: 12px;
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #fff;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        z-index: 999;
        display: flex;
        flex-direction: column;
        padding-top: 56px; /* header yüksekliği kadar boşluk hissi */
    }

    .main-nav.open {
        transform: translateX(0);
    }

    .main-nav ul {
        flex: 1;
        flex-direction: column;
        align-items: center;
        padding: 16px;
        gap: 16px;
        font-size: 15px;
        overflow-y: auto;
        text-align: center;
    }

    .main-nav.open .mobile-auth-footer {
        display: block;
        padding: 12px 16px 16px;
        border-top: 1px solid #eee;
        font-size: 14px;
        text-align: center;
    }

    .main-nav.open .mobile-auth-footer a {
        color: #111;
        font-weight: 500;
    }
    .main-nav.open .mobile-auth-footer .sep {
        margin: 0 6px;
        color: #ccc;
    }

    .mobile-menu-close {
        display: block;
        position: absolute;
        top: 10px;
        right: 14px;
        font-size: 32px;
        line-height: 1;
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
        color: #111;
        z-index: 1000;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hamburger {
        display: flex;
    }

    .main-header .header-inner {
        justify-content: space-between;
    }

    /* Mobilde hero tam ekran olmalı */
    /* JavaScript gerçek yükseklikleri hesaplayacak, bu sadece fallback */
    .hero {
        min-height: calc(100vh - 8vh); /* Yaklaşık değer: 100vh - (top-bar + header + promo-bar) yaklaşık %8 */
        height: calc(100vh - 8vh);
    }

    .hero-content {
        align-items: center;
        text-align: center;
    }
}