/* Kent Bahçesi - Custom Styles */

/* Line clamp utility */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* ===== SLIDER ===== */
.slider-slide {
    display: none;
    animation: fadeIn 0.6s ease;
}
.slider-slide.active {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== PRODUCT CARD HOVER ===== */
.product-gallery-main {
    overflow: hidden;
    cursor: zoom-in;
}
.product-gallery-main img {
    transition: transform 0.3s ease;
}
.product-gallery-main:hover img {
    transform: scale(1.5);
}

/* ===== QUANTITY INPUT ===== */
.qty-input,
input[type="number"] {
    -moz-appearance: textfield;
}
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ===== TOAST NOTIFICATION ===== */
.toast {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    color: white;
    font-weight: 500;
    font-size: 0.875rem;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    transform: translateX(120%);
    transition: transform 0.3s ease;
    max-width: 350px;
}
.toast.show {
    transform: translateX(0);
}
.toast-success { background: #1f7a52; }
.toast-error { background: #dc2626; }

/* ===== LOADING SPINNER ===== */
.spinner {
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 0.6s linear infinite;
    display: inline-block;
    vertical-align: middle;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== MOBILE MENU ===== */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
#mobileMenu.open {
    max-height: 600px;
}

/* ===== DROPDOWN NAV ===== */
.group:hover .group-hover\:opacity-100 {
    opacity: 1;
}
.group:hover .group-hover\:visible {
    visibility: visible;
}

/* ===== PRODUCT THUMBNAIL ACTIVE ===== */
.thumb-active {
    border: 2px solid #1f7a52 !important;
}

/* ===== ADMIN SIDEBAR ===== */
.admin-sidebar a.active {
    background-color: #174f38;
    color: white;
}

/* ===== TABLE RESPONSIVE ===== */
@media (max-width: 768px) {
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ===== STICKY CART BAR (Mobile) ===== */
@media (max-width: 768px) {
    .sticky-cart-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 30;
        background: white;
        border-top: 1px solid #e5e7eb;
        padding: 0.75rem 1rem;
        box-shadow: 0 -4px 6px -1px rgba(0,0,0,0.1);
    }
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f5f0;
}
::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* ===== SELECTION COLOR ===== */
::selection {
    background-color: #b3e1c9;
    color: #14412f;
}

/* ===== PROSE ===== */
.prose h2 { font-size: 1.25rem; font-weight: 700; margin: 1.5rem 0 0.75rem; color: #1a1a2e; }
.prose h3 { font-size: 1.1rem; font-weight: 600; margin: 1.25rem 0 0.5rem; color: #1a1a2e; }
.prose p { margin-bottom: 0.75rem; line-height: 1.7; }
.prose ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 0.75rem; }
.prose ol { list-style: decimal; padding-left: 1.5rem; margin-bottom: 0.75rem; }
.prose li { margin-bottom: 0.25rem; }
.prose strong { font-weight: 600; color: #374151; }
.prose a { color: #1f7a52; text-decoration: underline; }
.prose a:hover { color: #14412f; }
