/* Product Detail Page Styles */

.product-page {
    padding: 8rem 0 4rem;
    background: var(--white);
    min-height: 100vh;
}

.product-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Breadcrumb */
.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.breadcrumb-nav a {
    color: var(--gray-600);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-nav a:hover {
    color: var(--caramel);
}

.breadcrumb-nav span:not(:last-child) {
    color: var(--gray-400);
}

.breadcrumb-nav span:last-child {
    color: var(--black);
    font-weight: 600;
}

/* Product Layout */
.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

/* Görsel Galeri */
.product-gallery {
    position: sticky;
    top: 7rem;
    height: fit-content;
}

.main-image-container {
    position: relative;
    background: var(--gray-50);
    border-radius: 16px;
    padding: 3rem;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-product-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 450px;
}

.product-tag {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    padding: 0.6rem 1.2rem;
    background: var(--black);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 6px;
}

/* Product Content */
.product-content {
    padding: 1rem 0;
}

.product-heading {
    font-family: var(--font-serif);
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--black);
    line-height: 1.2;
}

/* Rating */
.product-rating {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.stars {
    display: flex;
    gap: 0.25rem;
}

.star {
    color: var(--caramel);
    font-size: 1.1rem;
}

.review-count {
    font-size: 0.9rem;
    color: var(--gray-600);
}

.product-desc {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--gray-700);
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--gray-200);
}

/* Variant Section */
.variant-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.variant-title {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--black);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.variant-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.variant-btn {
    padding: 1.25rem 1rem;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.variant-btn:hover {
    border-color: var(--caramel);
    background: rgba(200, 155, 109, 0.05);
    transform: translateY(-2px);
}

.variant-btn.selected {
    border-color: var(--caramel);
    background: rgba(200, 155, 109, 0.1);
    box-shadow: 0 0 0 3px rgba(200, 155, 109, 0.15);
}

.variant-text {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--black);
    letter-spacing: 0.3px;
}

.variant-price {
    font-family: var(--font-sans);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--caramel);
}

/* Purchase Section */
.purchase-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.quantity-box {
    margin-bottom: 1.5rem;
}

.qty-label {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--black);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.qty-selector {
    display: flex;
    align-items: center;
    gap: 0;
    width: fit-content;
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    overflow: hidden;
}

.qty-decrease,
.qty-increase {
    width: 50px;
    height: 50px;
    border: none;
    background: var(--white);
    color: var(--black);
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-decrease:hover,
.qty-increase:hover {
    background: var(--caramel);
    color: var(--white);
}

.qty-value {
    width: 70px;
    height: 50px;
    border: none;
    border-left: 2px solid var(--gray-200);
    border-right: 2px solid var(--gray-200);
    background: var(--white);
    text-align: center;
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--black);
}

.qty-value:focus {
    outline: none;
}

/* Price & Cart Row */
.price-cart-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: center;
}

.price-display {
    background: var(--gray-50);
    padding: 1.25rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.price-label {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--gray-600);
}

.price-value {
    font-family: var(--font-sans);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--caramel);
}

.cart-button {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, var(--espresso) 0%, var(--caramel-dark) 100%);
    color: var(--white);
    border: 1px solid var(--espresso);
    border-radius: 12px;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(62, 39, 35, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.cart-button:hover {
    background: linear-gradient(135deg, var(--caramel) 0%, var(--caramel-light) 100%);
    color: var(--espresso-dark);
    border-color: var(--caramel);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(200, 155, 109, 0.3);
}

/* Product Features Box */
.product-features-box {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.features-heading {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--black);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--gray-700);
}

.feature-item svg {
    color: var(--caramel);
    flex-shrink: 0;
}

/* Trust Badges */
.trust-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem;
    background: var(--gray-50);
    border-radius: 12px;
    text-align: center;
}

.trust-item svg {
    color: var(--caramel);
}

.trust-item span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
}

/* Product Tabs */
.product-tabs {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--gray-200);
}

.tab-buttons {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--gray-200);
    padding-bottom: 0;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.tab-btn:hover {
    color: var(--caramel);
}

.tab-btn.active {
    color: var(--caramel);
    border-bottom-color: var(--caramel);
}

.tab-contents {
    padding: 1rem 0;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Tab Content Grid */
.tab-content-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: start;
}

.tab-text h3 {
    font-family: var(--font-sans);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--black);
}

.tab-text h4 {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--black);
}

.tab-text p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray-700);
    margin-bottom: 1rem;
}

.tab-text ul {
    list-style: none;
    padding-left: 0;
}

.tab-text ul li {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray-700);
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.tab-text ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--caramel);
    font-weight: 700;
}

/* Tab Images */
.tab-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-50);
    border-radius: 16px;
    padding: 2rem;
    min-height: 300px;
}

.tab-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
}

/* Ingredients Visual */
.ingredients-visual {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.ingredient-badge {
    padding: 1.25rem;
    background: linear-gradient(135deg, var(--espresso) 0%, var(--caramel-dark) 100%);
    color: var(--white);
    text-align: center;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.ingredients-list {
    margin-top: 1.5rem;
}

.ingredients-list li {
    font-size: 1rem;
    color: var(--gray-700);
    padding-left: 1.5rem;
}

.ingredients-list li strong {
    color: var(--caramel);
}

/* Usage Visual */
.usage-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.usage-visual svg {
    color: var(--caramel);
    opacity: 0.3;
}

/* Preparation Steps */
.preparation-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.step {
    display: flex;
    gap: 1.25rem;
    align-items: start;
}

.step-number {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--espresso) 0%, var(--caramel-dark) 100%);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 0.5rem;
}

.step-content p {
    font-size: 0.95rem;
    color: var(--gray-600);
    margin: 0;
}

/* Shipping Visual */
.shipping-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.shipping-visual svg {
    color: var(--caramel);
    opacity: 0.3;
}

.shipping-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-box {
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: 12px;
    border-left: 4px solid var(--caramel);
}

.info-box h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--black);
}

.info-box p {
    margin-bottom: 0.75rem;
}

.info-box p:last-child {
    margin-bottom: 0;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .product-gallery {
        position: relative;
        top: 0;
    }

    .main-image-container {
        min-height: 400px;
        padding: 2rem;
    }

    .product-heading {
        font-size: 1.75rem;
    }

    .variant-options {
        grid-template-columns: repeat(3, 1fr);
    }

    .price-cart-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .trust-badges {
        grid-template-columns: 1fr;
    }

    .tab-content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .tab-image {
        order: -1;
        min-height: 250px;
    }
}

@media (max-width: 640px) {
    .product-page {
        padding: 6rem 0 3rem;
    }

    .product-container {
        padding: 0 1rem;
    }

    .product-heading {
        font-size: 1.5rem;
    }

    .product-desc {
        font-size: 0.95rem;
    }

    .variant-options {
        grid-template-columns: 1fr;
    }

    .main-image-container {
        min-height: 300px;
        padding: 1.5rem;
    }

    .tab-buttons {
        gap: 0.25rem;
    }

    .tab-btn {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }

    .product-tabs {
        padding: 1.5rem;
    }

    .price-value {
        font-size: 1.5rem;
    }

    .tab-image {
        min-height: 200px;
        padding: 1.5rem;
    }

    .usage-visual svg,
    .shipping-visual svg {
        width: 100px;
        height: 100px;
    }

    .preparation-steps .step {
        gap: 1rem;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

/* Coffee Detail Page - Grind Selection */
.grind-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.grind-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--black);
}

.grind-btn svg {
    color: var(--espresso);
    transition: all 0.3s ease;
}

.grind-btn:hover {
    border-color: var(--caramel);
    background: rgba(210, 180, 140, 0.05);
    transform: translateY(-2px);
}

.grind-btn.selected {
    border-color: var(--espresso);
    background: linear-gradient(135deg, 
        rgba(74, 44, 42, 0.1) 0%, 
        rgba(210, 180, 140, 0.1) 100%);
    box-shadow: 0 4px 12px rgba(74, 44, 42, 0.15);
}

.grind-btn.selected svg {
    color: var(--espresso);
    transform: scale(1.1);
}

/* Origin Specs */
.origin-specs {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}

.origin-specs li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
}

.origin-specs li:last-child {
    border-bottom: none;
}

.origin-specs strong {
    color: var(--espresso);
    font-weight: 600;
}

/* Origin Visual */
.origin-visual {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem;
}

.origin-badge {
    background: linear-gradient(135deg, var(--espresso) 0%, var(--caramel) 100%);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(74, 44, 42, 0.2);
}

/* Brewing Methods */
.brewing-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.brewing-method {
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: 12px;
    border: 1px solid var(--gray-200);
}

.brewing-method h4 {
    color: var(--espresso);
    margin-bottom: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
}

.brewing-method p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
    color: var(--gray-600);
}

@media (max-width: 768px) {
    .grind-options {
        grid-template-columns: 1fr;
    }

    .brewing-methods {
        grid-template-columns: 1fr;
    }

    .origin-visual {
        padding: 1.5rem;
    }
}
