@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn 0.6s ease-out forwards; }
@keyframes slowZoom {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}
.zoom-anim { animation: slowZoom 8s ease-in-out forwards; }
input:focus + label,
input:not(:placeholder-shown) + label {
    transform: translateY(-1rem) scale(0.75);
    color: #1c1917;
}
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d6d3d1; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #a8a29e; }
* { -webkit-tap-highlight-color: transparent; }
.option-soldout::after {
    content: '';
    position: absolute;
    width: 140%;
    height: 1px;
    background: #a8a29e;
    transform: rotate(-35deg);
}
.admin-card {
    background: white;
    border: 1px solid #e7e5e4;
    box-shadow: 0 10px 25px rgba(28, 25, 23, 0.04);
}
.admin-mobile-nav::-webkit-scrollbar { display: none; }
.admin-mobile-nav { scrollbar-width: none; }
.product-image-preview img { display: block; }
.admin-form input,
.admin-form select,
.admin-form textarea,
.admin-form button { max-width: 100%; }
@media (max-width: 640px) {
    .admin-card { border-radius: 0.375rem; }
    .admin-responsive-card { background: transparent; border: 0; box-shadow: none; overflow: visible; }
    .admin-responsive-card .overflow-x-auto { overflow: visible; }
    .admin-responsive-card table,
    .admin-responsive-card thead,
    .admin-responsive-card tbody,
    .admin-responsive-card th,
    .admin-responsive-card td,
    .admin-responsive-card tr { display: block; width: 100%; }
    .admin-responsive-card thead { display: none; }
    .admin-responsive-card tbody { display: grid; gap: 0.875rem; }
    .admin-responsive-card tr { background: white; border: 1px solid #e7e5e4; box-shadow: 0 10px 25px rgba(28, 25, 23, 0.04); border-radius: 0.375rem; padding: 0.75rem; }
    .admin-responsive-card td { padding: 0.65rem 0.25rem; text-align: left !important; border: 0; }
    .admin-responsive-card td::before { content: attr(data-label); display: block; font-size: 0.68rem; line-height: 1; text-transform: uppercase; letter-spacing: 0.12em; color: #a8a29e; margin-bottom: 0.35rem; font-weight: 600; }
    .admin-responsive-card td[data-label="İşlem"] { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
    .admin-responsive-card td[data-label="İşlem"]::before { width: 100%; }
    .admin-responsive-card td[data-label="İşlem"] a,
    .admin-responsive-card td[data-label="İşlem"] form,
    .admin-responsive-card td[data-label="İşlem"] button { width: 100%; margin-left: 0 !important; text-align: center; justify-content: center; }
}
@media (min-width: 641px) and (max-width: 1024px) {
    .admin-responsive-card table { min-width: 760px; }
}
.detail-thumb-active { border-color: #1c1917; box-shadow: 0 0 0 1px #1c1917 inset; }
.detail-gallery-dot-active { background: #1c1917; transform: scale(1.15); }
.product-gallery-fade { animation: galleryFade 0.35s ease-out; }
@keyframes galleryFade { from { opacity: 0.35; } to { opacity: 1; } }

.auth-page input,
.auth-page button,
.auth-page a { touch-action: manipulation; }
.auth-card { max-width: min(100%, 28rem); }
@media (max-width: 640px) {
    .auth-page main { min-height: 100svh; display: block; }
    .auth-page section { min-height: 100svh; padding: max(1rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom)); align-items: flex-start; }
    .auth-card { margin: 0 auto; padding: 1.25rem !important; box-shadow: 0 18px 45px rgba(28, 25, 23, 0.08); border-radius: 0.5rem; }
    .auth-card .font-serif.text-3xl { font-size: 1.65rem; line-height: 2rem; }
    .auth-card form { gap: 0.875rem; }
    .auth-card input { font-size: 16px !important; min-height: 3.45rem; }
    .auth-card label { max-width: calc(100% - 2rem); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .auth-help-row { align-items: flex-start; gap: 0.75rem; flex-direction: column; }
    .auth-help-row a { align-self: flex-end; }
}
@media (max-width: 380px) {
    .auth-card { padding: 1rem !important; }
    .auth-card .tracking-widest { letter-spacing: 0.12em; }
}

.product-option-btn {
    position: relative;
    border: 1px solid #d6d3d1;
    border-radius: 0.125rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3rem;
    height: 3rem;
    padding: 0 0.875rem;
    background: #fff;
    color: #57534e;
    font-size: 0.875rem;
    line-height: 1;
    white-space: nowrap;
    overflow: visible;
    transition: border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.product-option-btn:hover { border-color: #1c1917; color: #1c1917; }
.product-option-btn.is-active {
    background: #fff !important;
    color: #1c1917 !important;
    border-color: #1c1917 !important;
    box-shadow: inset 0 0 0 1px #1c1917;
    font-weight: 600;
}
.product-option-btn.is-long { min-width: 6.75rem; height: 2.75rem; padding-left: 1rem; padding-right: 1rem; font-size: 0.8125rem; }
.product-option-btn.is-disabled { border-color: #e7e5e4; color: #d6d3d1; background: #fafaf9; cursor: not-allowed; }
.cart-option-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 5rem;
    max-width: 100%;
    padding: 0.3rem 0.625rem;
    border: 1px solid #d6d3d1;
    border-radius: 0.125rem;
    background: #fff;
    color: #1c1917;
    font-size: 0.6875rem;
    line-height: 1;
    font-weight: 600;
    white-space: nowrap;
}
@media (max-width: 640px) {
    .product-option-btn { min-width: 2.75rem; height: 2.75rem; font-size: 0.8125rem; }
    .product-option-btn.is-long { min-width: 7rem; height: 2.75rem; font-size: 0.8125rem; }
    .cart-option-badge { min-width: 4.75rem; font-size: 0.6875rem; padding: 0.35rem 0.55rem; }
}

.product-option-btn.has-price {
    flex-direction: column;
    gap: 0.22rem;
    min-width: 7.75rem;
    height: 3.55rem;
    padding: 0.55rem 0.875rem;
    line-height: 1.05;
}
.product-option-btn.has-price .option-label {
    font-weight: 600;
    color: inherit;
}
.product-option-btn.has-price .option-price {
    font-size: 0.68rem;
    color: #78716c;
    font-weight: 600;
}
.product-option-btn.has-price.is-active .option-price {
    color: #1c1917;
}
@media (max-width: 640px) {
    .product-option-btn.has-price {
        min-width: 7.25rem;
        height: 3.5rem;
        padding: 0.5rem 0.75rem;
    }
}


/* Admin product option rows: prevent ML price columns from overflowing narrow dashboards */
.option-row { min-width: 0; }
.option-row > * { min-width: 0; }
.option-row input { width: 100%; min-width: 0; }
@media (min-width: 640px) {
    .option-row input { padding-left: 0.65rem; padding-right: 0.65rem; }
}
