@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600&display=swap");

/* =====================================================
   GENEL AYARLAR
===================================================== */

:root {
    --jewelry-bg: #fbfaf8;
    --jewelry-white: #ffffff;

    --jewelry-soft: #f5f2ee;
    --jewelry-soft-2: #eee9e3;

    --jewelry-text: #756f69;
    --jewelry-text-dark: #2f2b28;
    --jewelry-muted: #a39b94;

    --jewelry-border: #e8e2dc;

    --jewelry-accent: #9a8474;
    --jewelry-accent-dark: #746052;
    --jewelry-accent-light: #d7cbc1;

    --jewelry-danger: #b85f63;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--jewelry-bg);
    color: var(--jewelry-text-dark);

    font-family: "Montserrat", sans-serif;

    overflow-x: hidden;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

button,
input,
select {
    font-family: inherit;
}

/* =====================================================
   SAYFA CONTAINER
===================================================== */

.content-container {
    width: 100%;
    max-width: 1440px;

    margin: 82px auto 0;
    padding: 42px 40px 90px;
}

/* =====================================================
   KATEGORİ HEADER
===================================================== */

.category-header {
    margin-bottom: 28px;
}

.title-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;
}

.title-actions {
    display: flex;
    align-items: center;

    gap: 7px;
}

.category-title {
    margin-bottom: 9px;

    color: var(--jewelry-text-dark);

    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.product-count {
    color: var(--jewelry-muted);

    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.4px;
}

/* =====================================================
   FİLTRE VE SIRALAMA
===================================================== */

.panel-wrapper {
    position: relative;

    display: inline-block;

    margin: 2px;
}

.filter-btn,
.sort-btn {
    min-width: 108px;

    padding: 10px 15px;

    color: var(--jewelry-text-dark);
    background: var(--jewelry-white);

    border: 1px solid var(--jewelry-border);
    border-radius: 3px;

    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.7px;

    cursor: pointer;

    box-shadow: 0 4px 16px rgba(47, 43, 40, 0.035);

    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.2s ease;
}

.filter-btn {
    margin-left: 8px;
}

.filter-btn:hover,
.sort-btn:hover {
    color: var(--jewelry-white);
    background: var(--jewelry-accent-dark);
    border-color: var(--jewelry-accent-dark);

    box-shadow: 0 8px 22px rgba(47, 43, 40, 0.1);
}

.filter-btn:active,
.sort-btn:active {
    transform: scale(0.97);
}

.filter-btn::before {
    content: "⛭";

    margin-right: 6px;

    font-size: 12px;

    opacity: 0.7;
}

.sort-btn::before {
    content: "⇅";

    margin-right: 6px;

    font-size: 12px;

    opacity: 0.7;
}

/* =====================================================
   DROPDOWN PANEL
===================================================== */

.dropdown-panel {
    position: absolute;
    top: 50px;
    right: 0;
    z-index: 1000;

    width: 240px;

    padding: 18px;

    background: rgba(255, 255, 255, 0.98);

    border: 1px solid var(--jewelry-border);
    border-radius: 5px;

    box-shadow: 0 18px 45px rgba(47, 43, 40, 0.1);

    opacity: 0;
    visibility: hidden;

    transform: translateY(-8px);

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease,
        transform 0.2s ease;
}

.dropdown-panel.active {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}

.dropdown-panel label {
    display: block;

    margin-top: 10px;

    color: var(--jewelry-text-dark);

    font-size: 11px;
    font-weight: 500;
}

.dropdown-panel input {
    width: 100%;

    margin-top: 6px;
    padding: 11px 12px;

    color: var(--jewelry-text-dark);
    background: var(--jewelry-soft);

    border: 1px solid var(--jewelry-border);
    border-radius: 3px;

    outline: none;

    font-size: 12px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.dropdown-panel input:focus {
    background: var(--jewelry-white);
    border-color: var(--jewelry-accent);

    box-shadow: 0 0 0 3px rgba(154, 132, 116, 0.12);
}

.dropdown-panel input::placeholder {
    color: var(--jewelry-muted);
}

.dropdown-panel button {
    width: 100%;

    margin-top: 15px;
    padding: 12px;

    color: var(--jewelry-white);
    background: var(--jewelry-accent-dark);

    border: none;
    border-radius: 3px;

    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.7px;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.dropdown-panel button:hover {
    background: var(--jewelry-text-dark);
}

.dropdown-panel button:active {
    transform: scale(0.98);
}

.dropdown-panel a {
    display: block;

    padding: 10px 12px;

    color: var(--jewelry-text);
    text-decoration: none !important;

    border-radius: 3px;

    font-size: 12px;
    font-weight: 400;

    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        padding-left 0.2s ease;
}

.dropdown-panel a:hover,
.dropdown-panel a:focus,
.dropdown-panel a:active,
.dropdown-panel a:visited {
    color: var(--jewelry-text-dark);
    background: var(--jewelry-soft);

    text-decoration: none !important;
}

.dropdown-panel a:hover {
    padding-left: 16px;
}

/* =====================================================
   BOŞ ÜRÜN ALANI
===================================================== */

.empty-products {
    grid-column: 1 / -1;

    padding: 90px 20px;

    text-align: center;

    background: var(--jewelry-white);

    border: 1px solid var(--jewelry-border);
    border-radius: 5px;

    box-shadow: 0 12px 35px rgba(47, 43, 40, 0.035);
}

.empty-products h2 {
    margin-bottom: 12px;

    color: var(--jewelry-text-dark);

    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
    font-weight: 400;
}

.empty-products p {
    color: var(--jewelry-muted);

    font-size: 13px;
    line-height: 1.7;
}

/* =====================================================
   ÜRÜN GRID
===================================================== */

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

    gap: 48px 24px;
}

/* =====================================================
   ÜRÜN KARTI
===================================================== */

.product-card {
    position: relative;

    min-width: 0;

    display: flex;
    flex-direction: column;

    background: transparent;
}

/* =====================================================
   TÜM ÜRÜN LİNKLERİ
===================================================== */

.product-image-link,
.product-info-link {
    display: block;

    color: inherit !important;
    text-decoration: none !important;
}

.product-image-link:hover,
.product-image-link:focus,
.product-image-link:active,
.product-image-link:visited,
.product-info-link:hover,
.product-info-link:focus,
.product-info-link:active,
.product-info-link:visited {
    color: inherit !important;
    text-decoration: none !important;
}

.product-info-link *,
.product-info-link:hover *,
.product-info-link:focus *,
.product-info-link:active *,
.product-info-link:visited * {
    text-decoration: none !important;
}

a.product-info-link {
    color: inherit !important;
    text-decoration: none !important;
}

a.product-info-link:hover,
a.product-info-link:focus,
a.product-info-link:active,
a.product-info-link:visited {
    color: inherit !important;
    text-decoration: none !important;
}

a.product-info-link * {
    text-decoration: none !important;
}

/* =====================================================
   ÜRÜN GÖRSELİ
===================================================== */

.image-wrapper {
    position: relative;

    width: 100%;

    aspect-ratio: 3 / 4;

    overflow: hidden;

    background: var(--jewelry-soft);

    border: 1px solid var(--jewelry-border);
    border-radius: 2px;

    box-shadow: 0 8px 28px rgba(47, 43, 40, 0.04);
}

.product-image-link {
    width: 100%;
    height: 100%;
}

.image-wrapper img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform 0.55s ease,
        filter 0.35s ease;
}

.product-card:hover .image-wrapper img {
    transform: scale(1.035);
}

/* =====================================================
   FAVORİ BUTONU
===================================================== */

.wishlist-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 15;

    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--jewelry-text-dark);
    background: rgba(255, 255, 255, 0.93);

    border: 1px solid rgba(232, 226, 220, 0.95);
    border-radius: 50%;

    cursor: pointer;

    opacity: 0;

    transform: translateY(-5px);

    box-shadow: 0 6px 18px rgba(47, 43, 40, 0.07);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        color 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease;
}

.product-card:hover .wishlist-btn {
    opacity: 1;

    transform: translateY(0);
}

.wishlist-btn:hover {
    color: var(--jewelry-white);
    background: var(--jewelry-accent-dark);
    border-color: var(--jewelry-accent-dark);
}

/* =====================================================
   HIZLI SEPET FORMU VE BUTONU
===================================================== */

.quick-cart-form {
    position: static;
}

.quick-add-btn {
    position: absolute;
    bottom: 16px;
    left: 50%;
    z-index: 18;

    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--jewelry-text-dark);
    background: rgba(255, 255, 255, 0.96);

    border: 1px solid var(--jewelry-border);
    border-radius: 50%;

    box-shadow: 0 10px 24px rgba(47, 43, 40, 0.1);

    cursor: pointer;

    opacity: 0;
    pointer-events: none;

    transform: translateX(-50%) translateY(45px);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        color 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease;
}

.product-card:hover .quick-add-btn {
    opacity: 1;
    pointer-events: auto;

    transform: translateX(-50%) translateY(0);
}

.quick-add-btn:hover {
    color: var(--jewelry-white);
    background: var(--jewelry-accent-dark);
    border-color: var(--jewelry-accent-dark);
}

.quick-add-btn i {
    font-size: 17px;

    pointer-events: none;
}

/* =====================================================
   SLIDER NOKTALARI
===================================================== */

.image-wrapper .slider-dots {
    position: absolute;
    bottom: 17px;
    left: 50%;
    z-index: 10;

    display: flex;

    gap: 6px;

    transform: translateX(-50%);

    transition: opacity 0.2s ease;
}

.image-wrapper .dot {
    width: 6px;
    height: 6px;

    display: block;

    background: rgba(255, 255, 255, 0.65);

    border: 1px solid var(--jewelry-accent-dark);
    border-radius: 50%;
}

.image-wrapper .dot.active {
    background: var(--jewelry-accent-dark);
}

.product-card:hover .slider-dots {
    opacity: 0;
}

/* =====================================================
   SİLME BUTONU
===================================================== */

.delete-form {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 30;
}

.delete-x {
    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--jewelry-danger);
    background: rgba(255, 255, 255, 0.94);

    border: 1px solid rgba(184, 95, 99, 0.2);
    border-radius: 50%;

    font-size: 20px;
    font-weight: 400;
    line-height: 1;

    cursor: pointer;

    opacity: 0;

    box-shadow: 0 6px 18px rgba(47, 43, 40, 0.06);

    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.image-wrapper:hover .delete-x {
    opacity: 1;
}

.delete-x:hover {
    color: var(--jewelry-white);
    background: var(--jewelry-danger);
    border-color: var(--jewelry-danger);

    transform: scale(1.08);
}

/* =====================================================
   ÜRÜN BİLGİLERİ
===================================================== */

.product-info {
    padding-top: 16px;

    text-align: center;

    text-decoration: none !important;
}

.product-name {
    margin: 0;

    color: var(--jewelry-text-dark);

    font-family: Georgia, "Times New Roman", serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;

    text-decoration: none !important;

    transition: color 0.2s ease;
}

.product-card:hover .product-name {
    color: var(--jewelry-accent-dark);
}

.price-wrapper {
    margin-top: 7px;

    color: var(--jewelry-text);

    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.4px;

    text-decoration: none !important;
}

.price-wrapper span {
    color: inherit;

    text-decoration: none !important;
}

/* =====================================================
   STOK UYARISI
===================================================== */

.stock-warning {
    position: absolute;
    left: 50%;
    bottom: 18px;
    z-index: 20;

    padding: 7px 14px;

    color: var(--jewelry-white);
    background: rgba(116, 96, 82, 0.9);

    border-radius: 2px;

    font-size: 9px;
    font-weight: 500;
    letter-spacing: 1px;

    white-space: nowrap;

    transform: translateX(-50%);
}

/* =====================================================
   STOKTA YOK
===================================================== */

.product-card.out-of-stock {
    position: relative;

    opacity: 0.55;

    filter: grayscale(75%);

    transition:
        opacity 0.2s ease,
        filter 0.2s ease;
}

.product-card.out-of-stock:hover {
    opacity: 0.67;

    filter: grayscale(60%);
}

.product-card.out-of-stock:hover .image-wrapper img {
    transform: none;
}

.product-card.out-of-stock::after {
    content: "STOKTA YOK";

    position: absolute;
    top: 40%;
    left: 50%;
    z-index: 25;

    padding: 9px 14px;

    color: var(--jewelry-white);
    background: rgba(47, 43, 40, 0.84);

    border-radius: 2px;

    font-size: 9px;
    font-weight: 500;
    letter-spacing: 1.3px;

    white-space: nowrap;

    transform: translate(-50%, -50%);
}

.product-card.out-of-stock .quick-add-btn,
.product-card.out-of-stock .stock-warning {
    display: none;
}

/* =====================================================
   SAYFALAMA
===================================================== */

.modern-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

    gap: 7px;

    margin: 42px 0 60px;
    padding: 0;
}

.modern-pagination .page-item {
    list-style: none;
}

.modern-pagination .page-link {
    min-width: 38px;
    height: 38px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 12px;

    color: var(--jewelry-text-dark);
    background: var(--jewelry-white);

    border: 1px solid var(--jewelry-border);
    border-radius: 2px;

    text-decoration: none !important;

    font-size: 11px;
    font-weight: 500;

    box-shadow: 0 4px 14px rgba(47, 43, 40, 0.025);

    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.modern-pagination .page-link:hover {
    color: var(--jewelry-white);
    background: var(--jewelry-accent-dark);
    border-color: var(--jewelry-accent-dark);

    text-decoration: none !important;

    box-shadow: 0 7px 18px rgba(47, 43, 40, 0.1);

    transform: translateY(-1px);
}

.modern-pagination .active .page-link {
    color: var(--jewelry-white);
    background: var(--jewelry-text-dark);
    border-color: var(--jewelry-text-dark);

    box-shadow: 0 6px 16px rgba(47, 43, 40, 0.13);
}

/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .content-container {
        padding-right: 25px;
        padding-left: 25px;
    }
}

/* =====================================================
   MOBİL
===================================================== */

@media (max-width: 768px) {
    .content-container {
        margin-top: 70px;
        padding: 28px 15px 60px;
    }

    .title-row {
        align-items: center;
    }

    .category-title {
        margin-bottom: 0;

        font-size: 20px;
    }

    .filter-btn,
    .sort-btn {
        min-width: auto;

        padding: 8px 10px;

        font-size: 10px;
    }

    .filter-btn {
        margin-left: 0;
    }

    .dropdown-panel {
        position: fixed;
        top: 115px;
        right: 15px;
        left: 15px;

        width: auto;
    }

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

        gap: 32px 10px;
    }

    .product-info {
        padding-top: 11px;
    }

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

    .price-wrapper {
        font-size: 11px;
    }

    .wishlist-btn {
        top: 8px;
        right: 8px;

        width: 32px;
        height: 32px;

        opacity: 1;

        transform: none;
    }

    .quick-add-btn {
        bottom: 10px;

        width: 38px;
        height: 38px;

        opacity: 1;
        pointer-events: auto;

        transform: translateX(-50%) translateY(0);
    }

    .delete-x {
        opacity: 1;
    }

    .image-wrapper .slider-dots {
        display: none;
    }

    .modern-pagination {
        margin-top: 32px;
    }
}

/* =====================================================
   KÜÇÜK TELEFONLAR
===================================================== */

@media (max-width: 390px) {
    .content-container {
        padding-right: 10px;
        padding-left: 10px;
    }

    .title-row {
        gap: 8px;
    }

    .title-actions {
        gap: 2px;
    }

    .category-title {
        font-size: 18px;
    }

    .filter-btn,
    .sort-btn {
        padding: 7px 8px;
    }

    .filter-btn::before,
    .sort-btn::before {
        margin-right: 3px;
    }

    .product-grid {
        gap: 27px 8px;
    }

    .product-name {
        font-size: 13px;
    }

    .price-wrapper {
        font-size: 10px;
    }
}