/* Anasayfa — sayfa özel stilleri */

.hero-image-link {
    display: block;
    position: relative;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.hero-image-link:hover {
    transform: scale(1.01);
}

.hero-image-link img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(15, 28, 46, 0.85));
    color: white;
    padding: 20px 15px 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-image-link:hover .hero-image-overlay {
    opacity: 1;
}

.hero-image-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hero-image-title {
    font-size: 1.1em;
    font-weight: 600;
}

.hero-image-seo {
    font-size: 0.9em;
    opacity: 0.85;
    font-style: italic;
}

.hero-image-overlay i {
    font-size: 1.2em;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px;
    border-radius: 50%;
}

.homepage-image-link {
    display: block;
    position: relative;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.homepage-image-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.homepage-image-link img {
    width: 100%;
    height: auto;
    display: block;
}

.homepage-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(15, 28, 46, 0.9));
    color: white;
    padding: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.homepage-image-link:hover .homepage-image-overlay {
    opacity: 1;
}

.product-card {
    position: relative;
}

.product-card .product-price {
    padding: 12px 14px;
    background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
    color: var(--primary-color);
    text-align: center;
    font-size: 1.15rem;
    font-weight: 700;
    border-top: 1px solid var(--border-light);
}

.product-card .product-price::before {
    content: '';
    display: block;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-color), transparent);
    margin-bottom: 8px;
}

.product-status-message {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    background: rgba(220, 38, 38, 0.92);
    color: #fff;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.8rem;
    text-align: center;
    z-index: 10;
    box-shadow: var(--shadow-md);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

@media (max-width: 768px) {
    .hero-image-overlay,
    .homepage-image-overlay {
        padding: 10px;
    }

    .hero-slider-section {
        padding: 0 8px;
        margin: 0 auto;
        max-width: 100%;
    }

    .hero-slider,
    .slider-wrapper,
    .slide {
        margin: 0 auto;
        max-width: 100%;
        overflow: hidden;
    }

    .slide img {
        margin: 0 auto;
        display: block;
        max-width: 100%;
        height: auto;
    }

    .product-card .product-price {
        font-size: 1.05rem;
    }
}

@media (max-width: 480px) {
    .hero-slider-section {
        padding: 0;
    }

    .slide img {
        width: 100%;
    }

    .product-card .product-price {
        font-size: 1rem;
        padding: 8px 10px;
    }
}

.product-card-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
    color: inherit;
}

.product-card-toolbar {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}

.product-favorite-btn {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    color: #9ca3af;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.product-favorite-btn.is-active {
    color: #dc2626;
}

.product-card-actions {
    padding: 10px 12px 14px;
    border-top: 1px solid var(--border-light, #efeae3);
}

.product-quick-cart-btn {
    width: 100%;
    border: 0;
    border-radius: 10px;
    padding: 10px 12px;
    font-weight: 700;
    background: var(--primary-color, #1e3a5f);
    color: #fff;
    cursor: pointer;
}

.product-quick-cart-btn:disabled {
    opacity: 0.7;
}

.site-quick-add-modal {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.site-quick-add-modal.is-open {
    display: flex;
}

.site-quick-add-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
}

.site-quick-add-dialog {
    position: relative;
    z-index: 1;
    width: min(420px, 100%);
    background: #fff;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.site-quick-add-dialog h3 {
    margin: 0 0 12px;
    color: var(--primary-color, #1e3a5f);
}

.site-quick-add-preview {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 14px;
    align-items: start;
    margin-bottom: 16px;
    padding: 12px;
    border: 1px solid var(--border-light, #efeae3);
    border-radius: 12px;
    background: var(--light-gray-bg, #f8fafc);
}

.site-quick-add-preview.has-thumbs {
    grid-template-columns: 1fr;
}

.site-quick-add-image-wrap {
    width: 96px;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border-light, #e7edf4);
    flex-shrink: 0;
}

.site-quick-add-preview.has-thumbs .site-quick-add-image-wrap {
    width: 100%;
    max-width: 220px;
    margin: 0 auto;
}

.site-quick-add-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.site-quick-add-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
}

.site-quick-add-color {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    max-width: 100%;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--primary-color, #1e3a5f);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.01em;
}

.site-quick-add-color[hidden] {
    display: none;
}

.site-quick-add-product {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text-color, #1f2937);
    word-break: break-word;
}

.site-quick-add-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 10px;
}

.site-quick-add-thumb {
    width: 52px;
    height: 52px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
}

.site-quick-add-thumb.is-active {
    border-color: var(--primary-color, #1e3a5f);
}

.site-quick-add-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.site-quick-add-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: 0;
    background: transparent;
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
}

.site-quick-add-select,
.site-quick-add-qty {
    width: 100%;
    margin: 6px 0 12px;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font: inherit;
}

.site-quick-add-submit {
    width: 100%;
    border: 0;
    border-radius: 10px;
    padding: 12px;
    font-weight: 700;
    background: var(--primary-color, #1e3a5f);
    color: #fff;
    cursor: pointer;
}

.site-quick-add-message.success {
    color: #166534;
}

.site-quick-add-message.error {
    color: #991b1b;
}

html[data-color-mode="dark"] .site-quick-add-dialog {
    background: var(--white, #172033);
    color: var(--text-color, #f3f6fb);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.55);
}

html[data-color-mode="dark"] .site-quick-add-close {
    color: var(--text-color, #f3f6fb);
}

html[data-color-mode="dark"] .site-quick-add-preview {
    background: #111827;
    border-color: var(--border-color, #334155);
}

html[data-color-mode="dark"] .site-quick-add-image-wrap,
html[data-color-mode="dark"] .site-quick-add-thumb {
    background: #0f172a;
    border-color: var(--border-color, #334155);
}

html[data-color-mode="dark"] .site-quick-add-product {
    color: var(--text-color, #f3f6fb);
}

html[data-color-mode="dark"] .site-quick-add-select,
html[data-color-mode="dark"] .site-quick-add-qty {
    background: #0f172a;
    border-color: var(--border-color, #334155);
    color: var(--text-color, #f3f6fb);
}

html[data-color-mode="dark"] .site-quick-add-message.success {
    color: #86efac;
}

html[data-color-mode="dark"] .site-quick-add-message.error {
    color: #fca5a5;
}

@media (max-width: 480px) {
    .site-quick-add-preview:not(.has-thumbs) {
        grid-template-columns: 80px 1fr;
        gap: 10px;
        padding: 10px;
    }

    .site-quick-add-image-wrap {
        width: 80px;
    }
}

.account-favorites-section,
.account-recent-section {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light, #efeae3);
}

.account-favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.account-favorite-card {
    border: 1px solid #e7edf4;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    text-decoration: none;
    color: inherit;
}

.account-favorite-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

.account-favorite-card .meta {
    padding: 10px;
    font-size: 0.9rem;
}
