/* Shop Sayfası Stilleri - Birebir Referans Site Tasarımı */

/* Montserrat Font Import */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,600;1,400;1,600&display=swap');

* {
    box-sizing: border-box;
}

.hp-shop-page-wrapper {
    width: 100%;
    max-width: 100vw;
    margin: 0 auto;
    padding: 0;
    overflow-x: hidden;
    box-sizing: border-box;
    position: relative;
}

.hp-shop-page-wrapper * {
    box-sizing: border-box;
}

.hp-shop-container {
    display: flex;
    gap: 40px;
    max-width: 1600px;
    width: calc(100% - 40px);
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Sol Sidebar: Kategoriler */
.hp-shop-sidebar {
    width: 300px;
    min-width: 300px;
    max-width: 300px;
    flex-shrink: 0;
    box-sizing: border-box;
}

.hp-shop-sidebar-inner {
    background: #ffffff;
    border: none;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}

.hp-shop-sidebar-title {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 14px;
    font-weight: 600;
    font-style: italic;
    margin: 0 0 12px 0;
    padding: 0 0 12px 0;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-bottom: 1px solid #e5e5e5;
}

.hp-shop-categories {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hp-shop-category-item {
    margin: 0;
    padding: 0;
    border-bottom: none;
    position: relative;
}

.hp-shop-category-item:last-child {
    border-bottom: none;
}

.hp-shop-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}

.hp-shop-category-link {
    display: flex;
    align-items: center;
    flex: 1;
    padding: 8px 0;
    color: #666666;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 16px;
    font-weight: 400;
    font-style: italic;
    transition: color 0.2s ease;
    line-height: 1.5;
    pointer-events: auto;
}

.hp-shop-category-link.active {
    color: #000000;
    font-weight: 400;
}

.hp-shop-category-toggle {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: auto;
    position: relative;
    flex-shrink: 0;
    cursor: pointer;
    pointer-events: auto;
}

.hp-shop-category-toggle::before {
    content: '›';
    display: block;
    font-size: 14px;
    color: #666666;
    transition: transform 0.3s ease;
    transform: rotate(0deg);
    line-height: 16px;
    text-align: center;
}

.hp-shop-category-item.hp-shop-category-open .hp-shop-category-toggle::before {
    transform: rotate(90deg);
}

.hp-shop-category-item.hp-shop-category-open .hp-shop-category-toggle {
    color: #000000;
}

.hp-shop-category-link:hover {
    color: #000000;
    font-weight: 400;
}

.hp-shop-category-count {
    color: #666666;
    font-weight: 400;
    margin-left: 4px;
}

/* Alt Kategoriler */
.hp-shop-subcategories {
    list-style: none;
    margin: 0;
    padding: 0 0 0 15px;
    background: transparent;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.hp-shop-category-item.hp-shop-category-open .hp-shop-subcategories {
    max-height: 1000px;
    padding: 5px 0 5px 15px;
}

.hp-shop-subcategory-item {
    margin: 0;
    padding: 0;
    border-bottom: none;
}

.hp-shop-subcategory-item:last-child {
    border-bottom: none;
}

.hp-shop-subcategory-item a {
    display: block;
    padding: 6px 0;
    color: #666666;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 16px;
    font-weight: 400;
    font-style: italic;
    transition: color 0.2s ease;
    line-height: 1.5;
}

.hp-shop-subcategory-item a:hover,
.hp-shop-subcategory-item.active a {
    color: #000000;
    font-weight: 400;
}

/* Sağ Taraf: Ana İçerik */
.hp-shop-main {
    flex: 1;
    min-width: 0;
    box-sizing: border-box;
    width: 100%;
    max-width: calc(100% - 340px);
    overflow: hidden;
}

/* Üst Bar: Sıralama ve Görünüm */
.hp-shop-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e5e5;
}

.hp-shop-sorting {
    flex: 1;
}

.hp-shop-sort-form {
    display: inline-block;
}

.hp-shop-orderby {
    padding: 8px 12px;
    border: 1px solid #d7d7d7;
    border-radius: 2px;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif !important;
    font-style: italic !important;
    color: #333333;
    background: #ffffff;
    cursor: pointer;
    min-width: 200px;
}

.hp-shop-orderby:focus {
    outline: none;
    border-color: #000000;
}

.hp-shop-orderby option {
    font-family: 'Montserrat', sans-serif !important;
    font-style: italic !important;
}

.hp-shop-view-options {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hp-shop-view-label {
    font-size: 14px;
    font-family: 'Montserrat', sans-serif !important;
    font-style: italic !important;
    color: #666666;
}

.hp-shop-per-page {
    padding: 8px 12px;
    border: 1px solid #d7d7d7;
    border-radius: 2px;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif !important;
    font-style: italic !important;
    color: #333333;
    background: #ffffff;
    cursor: pointer;
    min-width: 80px;
}

.hp-shop-per-page:focus {
    outline: none;
    border-color: #000000;
}

.hp-shop-per-page option {
    font-family: 'Montserrat', sans-serif !important;
    font-style: italic !important;
}

/* Ürün Grid */
.hp-shop-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
    padding: 0;
    margin: 0 0 40px 0;
}

@media (max-width: 1600px) {
    .hp-shop-container {
        max-width: 100%;
        width: calc(100% - 40px);
        padding: 0 20px;
        gap: 35px;
    }
    
    .hp-shop-main {
        max-width: calc(100% - 335px);
    }
}

@media (max-width: 1400px) {
    .hp-shop-container {
        gap: 30px;
        padding: 0 20px;
        width: calc(100% - 40px);
    }
    
    .hp-shop-sidebar {
        width: 280px;
        min-width: 280px;
        max-width: 280px;
    }
    
    .hp-shop-main {
        max-width: calc(100% - 310px);
    }
}

@media (max-width: 1200px) {
    .hp-shop-container {
        gap: 20px;
        padding: 0 15px;
        width: calc(100% - 30px);
    }
    
    .hp-shop-sidebar {
        width: 240px;
        min-width: 240px;
        max-width: 240px;
    }
    
    .hp-shop-main {
        max-width: calc(100% - 260px);
    }
    
    .hp-shop-products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
}

@media (max-width: 992px) {
    .hp-shop-container {
        gap: 15px;
        padding: 0 15px;
        width: calc(100% - 30px);
    }
    
    .hp-shop-sidebar {
        width: 220px;
        min-width: 220px;
        max-width: 220px;
    }
    
    .hp-shop-main {
        max-width: calc(100% - 235px);
    }
    
    .hp-shop-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .hp-shop-container {
        flex-direction: column;
        gap: 20px;
        padding: 0 15px;
        width: calc(100% - 30px);
    }
    
    .hp-shop-sidebar {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
    }
    
    .hp-shop-main {
        width: 100%;
        max-width: 100%;
    }
    
    .hp-shop-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .hp-shop-container {
        padding: 0 10px;
        width: calc(100% - 20px);
    }
    
    .hp-shop-products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }
}

/* Ürün Kartı */
.hp-shop-product-card {
    background: #ffffff;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.hp-shop-product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.hp-shop-product-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.hp-shop-product-image {
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    position: relative;
    overflow: hidden;
    background: #fafafa;
}

.hp-shop-product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hp-shop-product-card:hover .hp-shop-product-image img {
    transform: scale(1.05);
}

/* Numara Seçenekleri */
.hp-shop-product-sizes {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.hp-shop-product-sizes::-webkit-scrollbar {
    display: none;
}

.hp-shop-product-sizes {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.hp-shop-size-chip {
    display: inline-block;
    padding: 3px 6px;
    font-size: 10px;
    color: #666666;
    background: #ffffff;
    border: 1px solid #d7d7d7;
    border-radius: 2px;
    white-space: nowrap;
    line-height: 1.2;
    flex-shrink: 0;
    min-width: 28px;
    text-align: center;
}

.hp-shop-size-chip.hp-shop-size-more {
    color: #000000;
    font-weight: 500;
    background: #ffffff;
    border-color: #000000;
}

/* Ürün Bilgileri */
.hp-shop-product-name {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 16px;
    font-weight: 600;
    font-style: italic;
    margin: 10px 12px 4px 12px;
    color: #000000;
    line-height: 1.4;
    min-height: 36px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hp-shop-product-brand {
    font-size: 11px;
    color: #666666;
    margin: 0 12px 6px 12px;
    font-weight: 400;
}

.hp-shop-product-price {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 14px;
    font-weight: 400;
    font-style: italic;
    color: #000000;
    margin: 0 12px 12px 12px;
}

.hp-shop-product-price del {
    color: #999999;
    font-weight: 400;
    margin-right: 8px;
}

.hp-shop-product-price ins {
    text-decoration: none;
    color: #000000;
    font-weight: 600;
}

/* Ürün Bulunamadı */
.hp-shop-no-products {
    text-align: center;
    padding: 60px 20px;
    color: #666666;
    font-size: 16px;
}

/* Sayfalama */
.hp-shop-pagination {
    margin-top: 40px;
    text-align: center;
}

.hp-shop-pagination .page-numbers {
    display: inline-flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
}

.hp-shop-pagination .page-numbers li {
    margin: 0;
    padding: 0;
}

.hp-shop-pagination .page-numbers a,
.hp-shop-pagination .page-numbers span {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #000000;
    border-radius: 0;
    background: #ffffff;
    color: #000000;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.2s ease;
    min-width: 40px;
    text-align: center;
}

.hp-shop-pagination .page-numbers a:hover {
    background: #f5f5f5;
    color: #000000;
}

.hp-shop-pagination .page-numbers .current,
.hp-shop-pagination .page-numbers span.current {
    border-color: #000000;
    background: #000000;
    color: #ffffff;
    font-weight: 500;
}

.hp-shop-pagination .page-numbers .dots,
.hp-shop-pagination .page-numbers span.dots {
    border: none;
    background: transparent;
    color: #000000;
    cursor: default;
}

/* Mobil Sidebar Toggle */
.hp-shop-sidebar-toggle {
    display: none;
}

@media (max-width: 768px) {
    .hp-shop-sidebar-toggle {
        display: block;
        width: 100%;
        padding: 12px;
        background: #000000;
        color: #ffffff;
        border: none;
        cursor: pointer;
        font-size: 14px;
        font-weight: 600;
        text-transform: uppercase;
        margin-bottom: 15px;
        box-sizing: border-box;
    }
    
    .hp-shop-sidebar-inner {
        display: none;
    }
    
    .hp-shop-sidebar-inner.hp-shop-sidebar-open {
        display: block;
    }
}

@media (max-width: 768px) {
    .hp-shop-top-bar {
        flex-direction: row !important;
        align-items: center !important;
        gap: 15px !important;
        justify-content: space-between !important;
    }
    
    .hp-shop-sorting {
        flex: 1 !important;
        width: auto !important;
    }
    
    .hp-shop-view-options {
        width: auto !important;
        flex-shrink: 0 !important;
    }
    
    .hp-shop-orderby {
        width: 100% !important;
        min-width: 0 !important;
    }
    
    .hp-shop-per-page {
        width: auto !important;
        min-width: 80px !important;
    }
}

/* Arama Sonuçları Stilleri */
.hp-search-results-wrapper {
    width: 100%;
    max-width: 100vw;
    margin: 0 auto;
    padding: 0;
    overflow-x: hidden;
    box-sizing: border-box;
}

.hp-search-results-container {
    max-width: 1600px;
    width: calc(100% - 40px);
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.hp-search-results-header {
    margin-bottom: 30px;
    text-align: center;
}

.hp-search-results-title {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 24px;
    font-weight: 700;
    font-style: italic;
    color: #000;
    margin: 0 0 10px 0;
    text-transform: uppercase;
}

.hp-search-results-count {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 14px;
    font-style: italic;
    color: #666;
    margin: 0;
    font-weight: 500;
}

.hp-search-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.hp-search-no-term {
    font-family: 'Montserrat', sans-serif !important;
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
    font-style: italic;
}

/* Arama Sonuçları Responsive */
@media (max-width: 1400px) {
    .hp-search-products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

@media (max-width: 992px) {
    .hp-search-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .hp-search-results-title {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .hp-search-products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .hp-search-results-container {
        width: calc(100% - 20px);
        padding: 0 10px;
    }
    
    .hp-search-results-title {
        font-size: 18px;
    }
    
    .hp-search-results-count {
        font-size: 12px;
    }
}

