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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(220, 20, 60, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(220, 20, 60, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    padding: 1.5rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 100;
    border-bottom: 3px solid #DC143C;
    transform: translateY(0);
    transition: transform 0.3s ease-in-out;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.logo-section {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.company-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.tagline {
    color: #888;
    font-size: 0.9rem;
    font-weight: 400;
    margin-top: 0.3rem;
}

.product-list-container {
    padding: 2rem 1rem;
    min-height: calc(100vh - 200px);
    position: relative;
    z-index: 1;
    margin-top: 140px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.filter-section {
    margin-bottom: 2rem;
    text-align: center;
}

.filter-section h2 {
    color: #ffffff;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
    font-weight: 600;
}

.category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.category-btn {
    padding: 0.6rem 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.category-btn:hover {
    background: rgba(220, 20, 60, 0.2);
    border-color: rgba(220, 20, 60, 0.5);
    transform: translateY(-2px);
    color: white;
}

.category-btn.active {
    background: #DC143C;
    color: white;
    border-color: #DC143C;
    box-shadow: 0 4px 20px rgba(220, 20, 60, 0.4);
}

.sub-category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sub-category-btn {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.sub-category-btn:hover {
    background: rgba(220, 20, 60, 0.3);
    border-color: rgba(220, 20, 60, 0.6);
}

.sub-category-btn.active {
    background: rgba(220, 20, 60, 0.5);
    border-color: #DC143C;
    color: white;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(220, 20, 60, 0.1);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(220, 20, 60, 0.3);
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
}

.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image-container img {
    transform: scale(1.08);
}

.no-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.85rem;
    font-weight: 500;
}

.product-category-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: #DC143C;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(220, 20, 60, 0.4);
}

.product-info {
    padding: 1.25rem;
}

.product-info h3 {
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    line-height: 1.3;
}

.product-description {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.product-dimensions-preview {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding-top: 0.75rem;
    border-top: 1px solid #eee;
}

.dimension-item {
    font-size: 0.8rem;
    color: #DC143C;
    font-weight: 500;
}

.dimension-item strong {
    color: #555;
    margin-right: 0.25rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 1% auto;
    padding: 0;
    border-radius: 20px;
    width: 95%;
    max-width: 1200px;
    max-height: 95vh;
    overflow-y: auto;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
    position: relative;
}

.close {
    position: absolute;
    right: 15px;
    top: 15px;
    color: #aaa;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    background: white;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.close:hover {
    color: #DC143C;
    transform: rotate(90deg);
    background: #f8f8f8;
}

.product-detail-content {
    padding: 2rem;
}

.product-main-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.product-image-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-slider-container {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.main-image {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    position: relative;
}

.main-image img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 500px;
    object-fit: contain;
}

.slider-thumbnails {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.slider-thumb {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid transparent;
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-thumb.active {
    border-color: #DC143C;
    box-shadow: 0 4px 12px rgba(220, 20, 60, 0.3);
}

.slider-thumb:hover {
    border-color: rgba(220, 20, 60, 0.6);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    color: #DC143C;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 10;
}

.slider-btn:hover {
    background: #DC143C;
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.image-counter {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.product-details-section {
    padding: 0;
}

.product-header {
    margin-bottom: 1.5rem;
}

.product-category-badge-detail {
    display: inline-block;
    background: linear-gradient(135deg, #DC143C 0%, #FF1744 100%);
    color: white;
    padding: 0.4rem 0.9rem;
    border-radius: 18px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    box-shadow: 0 2px 8px rgba(220, 20, 60, 0.3);
}

.product-header h1 {
    color: #333;
    font-size: 2rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    line-height: 1.2;
}

.product-description-detail {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.copy-btn {
    background: linear-gradient(135deg, #DC143C 0%, #FF1744 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.3);
    margin-top: 0.5rem;
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 20, 60, 0.4);
}

.copy-btn:active {
    transform: translateY(0);
}

.dimensions-table-container {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.dimensions-table-container h3 {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.dimensions-table {
    background: transparent;
    padding: 0;
}

.dimensions-table table {
    width: 100%;
    border-collapse: collapse;
}

.dimensions-table tr {
    border-bottom: 1px solid #dee2e6;
}

.dimensions-table tr:last-child {
    border-bottom: none;
}

.dimensions-table td {
    padding: 0.75rem 0;
    color: #555;
    font-size: 0.95rem;
}

.dimensions-table td:first-child {
    width: 45%;
    color: #333;
    font-weight: 500;
}

.dimensions-table td:last-child {
    color: #DC143C;
    font-weight: 600;
    font-size: 1rem;
}

.product-gallery-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e9ecef;
}

.product-gallery-section h3 {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.thumbnail-gallery {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.thumbnail-item {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.thumbnail-item:hover {
    opacity: 1;
    transform: scale(1.05);
}

.thumbnail-item.active {
    border-color: #DC143C;
    opacity: 1;
    box-shadow: 0 4px 12px rgba(220, 20, 60, 0.3);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 12, 34, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
    padding: 2rem;
    box-sizing: border-box;
    z-index: 2000;
    overflow-y: auto;
}

.gallery-modal-content {
    position: relative;
    width: min(960px, 95vw);
    background: linear-gradient(160deg, rgba(20, 24, 44, 0.95), rgba(40, 54, 84, 0.92));
    border-radius: 24px;
    padding: 2.5rem 2.5rem 2rem;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.45);
    color: white;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.gallery-modal-header {
    text-align: center;
}

.gallery-modal-header h2 {
    margin: 0;
    font-size: 1.9rem;
    letter-spacing: 0.02em;
}

.gallery-modal-header p {
    margin: 0.4rem 0 0;
    font-size: 0.95rem;
    opacity: 0.75;
}

.gallery-modal-slider {
    position: relative;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 18px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 340px;
}

.gallery-modal-image {
    width: 100%;
    max-height: 60vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
    transition: opacity 0.3s ease;
}

.gallery-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: #DC143C;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.gallery-modal-nav.prev {
    left: 20px;
}

.gallery-modal-nav.next {
    right: 20px;
}

.gallery-modal-nav:hover {
    background: #DC143C;
    color: white;
    transform: translateY(-50%) scale(1.08);
}

.gallery-modal-counter {
    position: absolute;
    bottom: 18px;
    right: 24px;
    background: rgba(0, 0, 0, 0.65);
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.gallery-modal-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.gallery-modal-thumb {
    width: 96px;
    height: 66px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid transparent;
    background: rgba(255, 255, 255, 0.08);
    padding: 0;
    cursor: pointer;
    transition: all 0.25s ease;
}

.gallery-modal-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-modal-thumb.active {
    border-color: #DC143C;
    box-shadow: 0 8px 20px rgba(220, 20, 60, 0.35);
}

.gallery-modal-thumb:hover {
    transform: translateY(-2px);
    border-color: rgba(220, 20, 60, 0.6);
}

.gallery-modal-close {
    position: absolute;
    top: -18px;
    right: -18px;
    background: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    transition: all 0.3s ease;
}

.gallery-modal-close:hover {
    background: #DC143C;
    color: white;
}

.gallery-modal img {
    opacity: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.no-products {
    text-align: center;
    padding: 4rem 2rem;
    color: white;
    font-size: 1.1rem;
}

/* Mobil Uyumluluk */
@media (max-width: 968px) {
    .product-main-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .product-image-section {
        padding: 1rem;
    }

    .product-header h1 {
        font-size: 1.75rem;
    }

    .dimensions-table-container {
        padding: 1.25rem;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 1rem 0;
    }

    .company-logo {
        height: 40px;
    }

    .tagline {
        font-size: 0.8rem;
    }

    .product-list-container {
        padding: 1.5rem 1rem;
        margin-top: 120px;
    }

    .filter-section h2 {
        font-size: 1.4rem;
        margin-bottom: 0.75rem;
    }

    .category-buttons {
        gap: 0.5rem;
    }

    .category-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .sub-category-buttons {
        gap: 0.4rem;
    }

    .sub-category-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        margin-top: 1rem;
    }

    .product-image-container {
        height: 180px;
    }

    .modal-content {
        width: 98%;
        margin: 1% auto;
        max-height: 98vh;
        border-radius: 15px;
    }

    .close {
        right: 10px;
        top: 10px;
        width: 32px;
        height: 32px;
        font-size: 24px;
    }

    .product-detail-content {
        padding: 1.5rem;
    }

    .product-main-section {
        gap: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .product-image-section {
        padding: 0.75rem;
    }

    .slider-btn {
        width: 38px;
        height: 38px;
        font-size: 20px;
    }

    .product-header h1 {
        font-size: 1.5rem;
    }

    .product-description-detail {
        font-size: 0.9rem;
    }

    .copy-btn {
        padding: 0.6rem 1.25rem;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }

    .dimensions-table-container {
        padding: 1rem;
    }

    .dimensions-table-container h3 {
        font-size: 1.1rem;
    }

    .dimensions-table td {
        font-size: 0.85rem;
        padding: 0.6rem 0;
    }

    .dimensions-table td:last-child {
        font-size: 0.9rem;
    }

    .product-gallery-section {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }

    .product-gallery-section h3 {
        font-size: 1.1rem;
    }

    .thumbnail-gallery {
        gap: 0.5rem;
    }

    .thumbnail-item {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 1rem;
    }

    .logo-section {
        gap: 0.75rem;
    }

    .company-logo {
        height: 35px;
    }

    .tagline {
        font-size: 0.75rem;
    }

    .product-list-container {
        margin-top: 110px;
        padding: 1rem 0.75rem;
    }

    .filter-section h2 {
        font-size: 1.2rem;
    }

    .category-btn {
        padding: 0.45rem 0.85rem;
        font-size: 0.8rem;
    }

    .product-image-container {
        height: 160px;
    }

    .product-detail-content {
        padding: 1rem;
    }

    .product-header h1 {
        font-size: 1.3rem;
    }

    .thumbnail-item {
        width: 70px;
        height: 70px;
    }
}

/* Toast Notification (iPhone tarzı) */
.toast-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    max-width: 90%;
    text-align: center;
    white-space: nowrap;
}

.toast-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast-notification.toast-success {
    background: rgba(34, 197, 94, 0.9);
}

.toast-notification.toast-error {
    background: rgba(239, 68, 68, 0.9);
}

@media (max-width: 768px) {
    .toast-notification {
        font-size: 13px;
        padding: 10px 20px;
        max-width: 85%;
    }
}
