/* ============================================================================
   PROFESSIONAL PRODUCTS SECTION - DESKTOP & MOBILE OPTIMIZED
   Masaüstü: Grid layout (4-3-2 responsive)
   Mobil: Vertical stack (1 column)
   ============================================================================ */

/* ============================================================================
   DESKTOP LARGE (1400px+) - 4 Cards in 1 Row
   ============================================================================ */
@media (min-width: 1400px) {
    .products-section {
        padding: 100px 40px;
    }
    
    .products-carousel-wrapper {
        display: none;
    }
    
    .products-grid {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr);
        gap: 32px;
        max-width: 1600px;
        margin: 0 auto;
    }
    
    .product-card {
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }
    
    .product-card:hover {
        transform: translateY(-16px) scale(1.02);
        box-shadow: 0 40px 80px rgba(200, 169, 106, 0.25),
                    0 20px 50px rgba(0, 0, 0, 0.7),
                    0 0 0 2px rgba(200, 169, 106, 0.3) !important;
    }
}

/* ============================================================================
   DESKTOP MEDIUM (1200px - 1399px) - 3 Cards in 1 Row
   ============================================================================ */
@media (min-width: 1200px) and (max-width: 1399px) {
    .products-section {
        padding: 90px 36px;
    }
    
    .products-carousel-wrapper {
        display: none;
    }
    
    .products-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr);
        gap: 28px;
        max-width: 1400px;
        margin: 0 auto;
    }
    
    .product-card {
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }
    
    .product-card:hover {
        transform: translateY(-14px) scale(1.02);
        box-shadow: 0 36px 72px rgba(200, 169, 106, 0.22),
                    0 18px 45px rgba(0, 0, 0, 0.65),
                    0 0 0 2px rgba(200, 169, 106, 0.28) !important;
    }
}

/* ============================================================================
   TABLET LANDSCAPE (992px - 1199px) - 2 Cards in 1 Row
   ============================================================================ */
@media (min-width: 992px) and (max-width: 1199px) {
    .products-section {
        padding: 80px 32px;
    }
    
    .products-carousel-wrapper {
        display: none;
    }
    
    .products-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        max-width: 1000px;
        margin: 0 auto;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .product-card {
        transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }
    
    .product-card:hover {
        transform: translateY(-12px) scale(1.01);
        box-shadow: 0 28px 56px rgba(200, 169, 106, 0.2),
                    0 14px 35px rgba(0, 0, 0, 0.6),
                    0 0 0 2px rgba(200, 169, 106, 0.25) !important;
    }
    
    .card-image {
        height: 220px;
    }
    
    .card-title {
        font-size: 1.05rem;
    }
    
    .card-price-value {
        font-size: 0.95rem;
    }
}

/* ============================================================================
   TABLET PORTRAIT (768px - 991px) - 2 Cards, Optimized for Touch
   ============================================================================ */
@media (min-width: 768px) and (max-width: 991px) {
    .products-section {
        padding: 70px 24px;
    }
    
    .products-carousel-wrapper {
        display: none;
    }
    
    .products-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        max-width: 900px;
        margin: 0 auto;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-description {
        font-size: 0.9rem;
    }
    
    .product-card {
        transition: all 0.3s ease;
        border-radius: 16px;
    }
    
    .product-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 24px 48px rgba(200, 169, 106, 0.18),
                    0 12px 30px rgba(0, 0, 0, 0.55),
                    0 0 0 2px rgba(200, 169, 106, 0.2) !important;
    }
    
    .card-image {
        height: 200px;
    }
    
    .card-content {
        padding: 18px;
    }
    
    .card-title {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .card-description {
        font-size: 0.8rem;
        line-height: 1.5;
    }
    
    .card-price {
        padding: 10px 14px;
        margin-bottom: 12px;
    }
    
    .card-features {
        gap: 6px;
        font-size: 0.65rem;
    }
    
    .card-features li {
        padding: 4px 8px;
    }
    
    .card-badge {
        padding: 6px 12px;
        font-size: 0.58rem;
    }
}

/* ============================================================================
   MOBILE LANDSCAPE (480px - 767px) - Single Card with Carousel Fallback
   ============================================================================ */
@media (min-width: 480px) and (max-width: 767px) {
    .products-section {
        padding: 60px 16px;
    }
    
    .products-carousel-wrapper {
        display: block;
        padding: 0 8px;
    }
    
    .products-grid {
        display: none;
    }
    
    .section-header {
        margin-bottom: 35px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-description {
        font-size: 0.85rem;
    }
    
    .section-badge {
        font-size: 0.65rem;
        padding: 6px 16px;
    }
    
    .products-carousel {
        gap: 14px;
        padding: 12px 4px 30px;
        scroll-snap-type: x mandatory;
    }
    
    .products-carousel .product-card {
        flex: 0 0 280px;
        min-width: 280px;
        max-width: 280px;
        scroll-snap-align: center;
    }
    
    .card-image {
        height: 180px;
    }
    
    .card-content {
        padding: 16px;
    }
    
    .card-title {
        font-size: 0.95rem;
        margin-bottom: 6px;
    }
    
    .card-description {
        font-size: 0.75rem;
        line-height: 1.4;
    }
    
    .card-features {
        font-size: 0.62rem;
        gap: 5px;
    }
    
    .card-features li {
        padding: 3px 6px;
    }
}

/* ============================================================================
   MOBILE SMALL (< 480px) - Optimized Single Column
   ============================================================================ */
@media (max-width: 479px) {
    .products-section {
        padding: 50px 12px;
    }
    
    .products-carousel-wrapper {
        display: block;
        padding: 0;
        margin-top: 25px;
    }
    
    .products-carousel-wrapper::before,
    .products-carousel-wrapper::after {
        width: 15px;
        opacity: 0.4;
    }
    
    .products-grid {
        display: none;
    }
    
    .section-header {
        margin-bottom: 30px;
    }
    
    .section-title {
        font-size: 1.3rem;
        line-height: 1.3;
    }
    
    .section-description {
        font-size: 0.8rem;
        max-width: 100%;
    }
    
    .section-badge {
        font-size: 0.62rem;
        padding: 5px 14px;
    }
    
    .products-carousel {
        gap: 12px;
        padding: 8px 0 25px;
        scroll-snap-type: x mandatory;
    }
    
    .products-carousel .product-card {
        flex: 0 0 calc(100vw - 40px);
        min-width: calc(100vw - 40px);
        max-width: calc(100vw - 40px);
        scroll-snap-align: center;
    }
    
    .card-image {
        height: 160px;
        padding: 25px 20px;
    }
    
    .card-image img {
        max-width: 85%;
        max-height: 85%;
    }
    
    .card-content {
        padding: 14px;
    }
    
    .card-title {
        font-size: 0.9rem;
        margin-bottom: 5px;
        font-weight: 700;
    }
    
    .card-description {
        font-size: 0.72rem;
        line-height: 1.4;
        margin-bottom: 10px;
    }
    
    .card-price {
        padding: 10px 12px;
        margin-bottom: 10px;
    }
    
    .card-price-label {
        font-size: 0.6rem;
    }
    
    .card-price-value {
        font-size: 0.95rem;
    }
    
    .card-features {
        font-size: 0.6rem;
        gap: 4px;
    }
    
    .card-features li {
        padding: 3px 6px;
        border-radius: 5px;
    }
    
    .card-badge {
        top: 12px;
        right: 12px;
        padding: 5px 10px;
        font-size: 0.55rem;
    }
    
    .card-overlay {
        padding: 20px;
        gap: 8px;
    }
    
    .card-link {
        padding: 10px 18px;
        font-size: 0.68rem;
    }
    
    .card-order-btn {
        padding: 10px 18px;
        font-size: 0.68rem;
    }
    
    .card-order-btn svg {
        width: 12px;
        height: 12px;
    }
}

/* ============================================================================
   UNIVERSAL PRODUCT GRID STYLES
   ============================================================================ */

.products-grid {
    width: 100%;
}

/* Card Base Styles - Consistent across all breakpoints */
.product-card {
    background: linear-gradient(145deg,
        rgba(26, 26, 26, 0.95) 0%,
        rgba(35, 35, 35, 0.98) 50%,
        rgba(26, 26, 26, 0.95) 100%);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(200, 169, 106, 0.15);
    position: relative;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(200, 169, 106, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 0 80px rgba(200, 169, 106, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    animation: cardFadeIn 0.6s ease;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.product-card.featured {
    border-color: rgba(200, 169, 106, 0.3);
    box-shadow:
        0 15px 50px rgba(200, 169, 106, 0.15),
        0 0 0 1px rgba(200, 169, 106, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 60px rgba(200, 169, 106, 0.1) !important;
}

/* Card Top Border - Animated gradient */
.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        #C8A96A 20%,
        #D9C494 50%,
        #C8A96A 80%,
        transparent 100%);
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
    opacity: 0.8;
}

@keyframes shimmer {
    0% { background-position: 200% 0%; }
    100% { background-position: -200% 0%; }
}

/* Card Bottom Border */
.product-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(200, 169, 106, 0.3) 50%,
        transparent 100%);
}

/* Card Image Section */
.card-image {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg,
        rgba(30, 30, 30, 0.98) 0%,
        rgba(20, 20, 20, 0.95) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center,
        rgba(200, 169, 106, 0.03) 0%,
        transparent 70%);
    pointer-events: none;
}

.card-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
    position: relative;
    z-index: 1;
}

.product-card:hover .card-image img {
    transform: scale(1.08) translateY(-5px);
    filter: drop-shadow(0 8px 30px rgba(200, 169, 106, 0.2));
}

/* Card Badge */
.card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #1A1A1A;
    background: linear-gradient(135deg, #C8A96A 0%, #D9C494 50%, #C8A96A 100%);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    border-radius: 20px;
    z-index: 10;
    box-shadow:
        0 4px 12px rgba(200, 169, 106, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.15);
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Card Overlay - Shows on hover */
.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
        rgba(0, 0, 0, 0.95) 0%,
        rgba(0, 0, 0, 0.6) 40%,
        rgba(0, 0, 0, 0.3) 70%,
        transparent 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 28px;
    gap: 12px;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 3;
}

.product-card:hover .card-overlay {
    opacity: 1;
}

/* Card Content Section */
.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    background: linear-gradient(180deg,
        rgba(26, 26, 26, 0.98) 0%,
        rgba(20, 20, 20, 0.95) 100%);
}

.card-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(200, 169, 106, 0.3) 50%,
        transparent 100%);
}

/* Card Title */
.card-title {
    color: #FFFFFF;
    line-height: 1.3;
    letter-spacing: -0.01em;
    transition: all 0.3s ease;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 8px;
}

.product-card:hover .card-title {
    color: #C8A96A;
    transform: translateX(4px);
    text-shadow: 0 4px 20px rgba(200, 169, 106, 0.5);
}

/* Card Description */
.card-description {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin-bottom: 12px;
    flex: 1;
    font-weight: 400;
}

/* Card Price Box */
.card-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg,
        rgba(200, 169, 106, 0.12) 0%,
        rgba(200, 169, 106, 0.06) 100%);
    border: 1px solid rgba(200, 169, 106, 0.25);
    border-radius: 10px;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
}

.card-price::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #C8A96A, #D9C494);
}

.card-price-label {
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.card-price-value {
    font-weight: 800;
    background: linear-gradient(135deg, #C8A96A 0%, #D9C494 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientText 4s ease infinite;
}

@keyframes gradientText {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.card-price-value span {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
    margin-left: 4px;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.5);
}

/* Card Features List */
.card-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.7);
}

.card-features li {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(200, 169, 106, 0.1);
    border: 1px solid rgba(200, 169, 106, 0.2);
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.card-features li:hover {
    background: rgba(200, 169, 106, 0.2);
    border-color: rgba(200, 169, 106, 0.5);
    color: #C8A96A;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(200, 169, 106, 0.2);
}

.card-features svg {
    color: #C8A96A;
    flex-shrink: 0;
    width: 12px;
    height: 12px;
}

/* Action Buttons */
.card-link,
.card-order-btn {
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-link {
    padding: 14px 28px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #1A1A1A;
    background: linear-gradient(135deg, #C8A96A 0%, #D9C494 100%);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    box-shadow:
        0 8px 25px rgba(200, 169, 106, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.2),
        0 0 30px rgba(200, 169, 106, 0.2);
}

.card-link:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow:
        0 12px 35px rgba(200, 169, 106, 0.6),
        0 0 0 2px rgba(255, 255, 255, 0.3),
        0 0 50px rgba(200, 169, 106, 0.3);
}

.card-order-btn {
    padding: 14px 28px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #FFFFFF;
    background: rgba(200, 169, 106, 0.15);
    border: 2px solid rgba(200, 169, 106, 0.4);
    gap: 10px;
    backdrop-filter: blur(15px);
}

.card-order-btn:hover {
    background: rgba(200, 169, 106, 0.25);
    border-color: rgba(200, 169, 106, 0.6);
    transform: translateY(-4px);
    box-shadow:
        0 8px 25px rgba(200, 169, 106, 0.3),
        0 0 30px rgba(200, 169, 106, 0.15);
}

.card-order-btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.card-order-btn:hover svg {
    transform: translateX(4px);
}

/* ============================================================================
   PRODUCTS CAROUSEL (Mobile Fallback)
   ============================================================================ */

.products-carousel {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}

.products-carousel::-webkit-scrollbar {
    display: none;
}

.products-carousel .product-card {
    flex: 0 0 320px;
    min-width: 320px;
    max-width: 320px;
    scroll-snap-align: center;
}

/* Gradient Overlays for Scroll Indication */
.products-carousel-wrapper::before,
.products-carousel-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 5;
    pointer-events: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.products-carousel-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #FFFFFF 0%, transparent 100%);
}

.products-carousel-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #FFFFFF 0%, transparent 100%);
}

/* ============================================================================
   SECTION HEADER
   ============================================================================ */

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-badge {
    display: inline-block;
    padding: 8px 20px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #C8A96A;
    background: rgba(200, 169, 106, 0.1);
    border: 1px solid rgba(200, 169, 106, 0.3);
    border-radius: 20px;
    margin-bottom: 16px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #1A1A1A;
    margin-bottom: 12px;
    letter-spacing: -0.015em;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, #C8A96A 0%, #D9C494 50%, #C8A96A 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientText 4s ease infinite;
}

.section-description {
    font-size: 0.95rem;
    color: #777777;
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.6;
}
