/* ============================================
   PROFESYONEL E-TİCARET TASARIMI V2
   Sıfırdan Kusursuz Tasarım
   ============================================ */

:root {
    --primary: #ff6000;
    --primary-dark: #e55500;
    --primary-light: #ff7a26;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-tertiary: #999999;
    --border: #e5e5e5;
    --border-hover: #cccccc;
    --bg: #ffffff;
    --bg-secondary: #fafafa;
    --success: #00a046;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

@media (max-width: 1440px) {
    .container {
        max-width: 1320px;
    }
}

@media (max-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 720px;
        padding: 32px 16px;
    }
}

@media (max-width: 576px) {
    .container {
        max-width: 100%;
        padding: 24px 16px;
    }
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 32px;
    letter-spacing: -0.5px;
}

/* ============================================
   PRODUCT GRID
   ============================================ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ============================================
   PRODUCT CARD - SIFIRDAN KUSURSUZ
   ============================================ */
.product-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-hover);
}

/* ============================================
   IMAGE SECTION
   ============================================ */
.product-image-wrapper {
    position: relative;
    width: 100%;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 32px;
    transform: scale(1.05);
}

/* ============================================
   BADGES & BUTTONS
   ============================================ */
.badge-discount {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--primary);
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(255, 96, 0, 0.3);
}

.favorite-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    box-shadow: var(--shadow-sm);
}

.favorite-btn:hover {
    transform: scale(1.1);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.favorite-btn svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-tertiary);
    stroke-width: 2;
    fill: none;
    transition: all 0.25s ease;
}

.favorite-btn:hover svg {
    stroke: var(--primary);
}

.favorite-btn.active svg {
    stroke: var(--primary);
    fill: var(--primary);
}

/* ============================================
   CONTENT SECTION
   ============================================ */
.product-content {
    padding: 0 20px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

/* Brand */
.product-brand {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1;
}

/* Title */
.product-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 45px;
    max-height: 45px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ============================================
   PRICE SECTION
   ============================================ */
.price-section {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 8px;
}

.price-current {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
    line-height: 1;
}

/* Shipping */
.shipping-info {
    font-size: 13px;
    font-weight: 600;
    color: var(--success);
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1;
}

.shipping-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    stroke-width: 2;
}

/* ============================================
   ADD TO CART BUTTON
   ============================================ */
.add-to-cart-btn {
    width: 100%;
    height: 48px;
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(255, 96, 0, 0.2);
}

.add-to-cart-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 96, 0, 0.35);
}

.add-to-cart-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 96, 0, 0.2);
}

.add-to-cart-btn:disabled {
    background: #cccccc;
    color: #888888;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 24px;
        margin-bottom: 24px;
    }
    
    .product-grid {
        gap: 16px;
    }
    
    .product-content {
        padding: 0 16px 16px 16px;
    }
    
    .product-image {
        padding: 24px;
    }
}

@media (max-width: 640px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .page-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .product-title {
        font-size: 14px;
    }
    
    .price-current {
        font-size: 22px;
    }
    
    .add-to-cart-btn {
        height: 44px;
        font-size: 14px;
    }
}


/* ============================================
   DETAY SAYFASI İYİLEŞTİRMELERİ
   ============================================ */

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: #999;
}

/* ============================================
   DETAY SAYFASI - ÜRÜN GALERİSİ
   ============================================ */

/* Gallery Wrapper */
.product-gallery-wrapper {
    position: relative;
}

/* Product Badges */
.product-badges {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-badges .badge {
    font-size: 11px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Main Gallery Container */
.main-gallery-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.detail-gallery {
    width: 100%;
    height: 100%;
}

.detail-gallery .swiper-wrapper {
    align-items: center;
}

.detail-gallery .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    aspect-ratio: 1/1;
}

.gallery-link {
    display: block;
    width: 100%;
    height: 100%;
    padding: 24px;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Gallery Navigation Buttons */
.gallery-button-prev,
.gallery-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 45px;
    height: 45px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
}

.gallery-button-prev:hover,
.gallery-button-next:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.gallery-button-prev {
    left: 16px;
}

.gallery-button-next {
    right: 16px;
}

/* Thumbnail Gallery */
.thumbnail-gallery-container {
    margin-top: 16px;
}

.detail-thumb {
    width: 100%;
}

.detail-thumb .swiper-wrapper {
    display: flex;
}

.detail-thumb .swiper-slide {
    width: auto;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.detail-thumb .swiper-slide:hover {
    opacity: 1;
}

.detail-thumb .swiper-slide-thumb-active {
    opacity: 1;
}

.detail-thumb .swiper-slide-thumb-active .thumb-wrapper {
    border-color: var(--primary);
    border-width: 2px;
}

.thumb-wrapper {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 8px;
    transition: all 0.3s ease;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumb-wrapper:hover {
    border-color: var(--primary);
}

.thumb-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Product Info */
.product-info h1 {
    line-height: 1.3;
}

.product-info .btn {
    transition: all 0.3s ease;
}

.product-info .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Reviews */
.comment-button-prev,
.comment-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
}

.comment-button-prev:hover,
.comment-button-next:hover {
    background: var(--primary-dark);
    transform: translateY(-50%) scale(1.1);
}

.comment-button-prev {
    left: -25px;
}

.comment-button-next {
    right: -25px;
}

.comment-list .swiper-slide > div {
    transition: all 0.3s ease;
}

.comment-list .swiper-slide > div:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

/* Similar Products */
.similar-button-prev,
.similar-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
}

.similar-button-prev:hover,
.similar-button-next:hover {
    background: var(--primary-dark);
    transform: translateY(-50%) scale(1.1);
}

.similar-button-prev {
    left: -25px;
}

.similar-button-next {
    right: -25px;
}

/* Product Card */
.product-card {
    transition: all 0.3s ease;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

.product-image-wrapper {
    position: relative;
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    width: 100%;
}

.product-image {
    aspect-ratio: 1/1;
    transition: transform 0.3s ease;
    width: 100%;
    height: auto;
    display: block;
}

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

.product-badge {
    z-index: 2;
}

.product-info {
    flex: 1;
}

.product-title {
    min-height: 40px;
    line-height: 1.4;
}

.product-actions {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateY(0);
}

/* Similar Products Swiper */
.similar-products-list {
    overflow: visible;
    padding: 10px 0;
}

.similar-products-list .swiper-slide {
    height: auto;
}

.similar-products-list .swiper-wrapper {
    align-items: stretch;
}

/* Mobile Optimizations */
@media (max-width: 992px) {
    .gallery-button-prev,
    .gallery-button-next {
        width: 40px;
        height: 40px;
    }
    
    .gallery-button-prev {
        left: 10px;
    }
    
    .gallery-button-next {
        right: 10px;
    }
    
    .comment-button-prev,
    .comment-button-next,
    .similar-button-prev,
    .similar-button-next {
        display: none;
    }
}

@media (max-width: 768px) {
    .detail-content {
        padding-bottom: 80px;
    }
    
    .product-info .btn {
        font-size: 14px;
        padding: 12px 16px !important;
    }
    
    .product-actions {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 576px) {
    .product-info h1 {
        font-size: 1.5rem;
    }
    
    .product-info .fs-2 {
        font-size: 1.75rem !important;
    }
}


/* Swiper Container Overflow Fix */
.swiper {
    overflow: hidden;
}

.swiper-wrapper {
    display: flex;
}

/* Product Card Container Fix */
.similar-products-list .swiper-slide {
    display: flex;
    flex-direction: column;
}

.similar-products-list .product-card {
    width: 100%;
    display: flex;
    flex-direction: column;
}
