.detail-hero {
    background-color: #f5f5f5;
    padding: 100px 0 30px;
}

.back-link {
    display: inline-block;
    color: #2d5a27;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.back-link:hover {
    color: #1e3d1a;
}

.product-detail {
    padding: 60px 0;
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.detail-image-section {
    position: sticky;
    top: 100px;
}

.main-image {
    margin-bottom: 1rem;
}

.main-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
}

.grid-item {
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s;
}

.grid-item:hover {
    transform: translateY(-3px);
}

.grid-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s;
}

.grid-item:hover .grid-img {
    transform: scale(1.05);
}

.detail-info {
    padding: 20px 0;
}

.detail-title {
    font-size: 3rem;
    color: #2d5a27;
    margin-bottom: 1rem;
}

.detail-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.detail-category,
.detail-origin {
    display: inline-block;
    padding: 6px 16px;
    background-color: #e8f5e9;
    color: #2d5a27;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.detail-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 2rem;
}

.detail-features {
    margin-bottom: 2rem;
}

.detail-features h3 {
    color: #2d5a27;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.detail-features ul {
    list-style: none;
    padding: 0;
}

.detail-features li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    color: #555;
    line-height: 1.6;
}

.detail-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #2d5a27;
    font-weight: bold;
    font-size: 1.2rem;
}

.detail-brewing {
    margin-bottom: 2rem;
}

.detail-brewing h3 {
    color: #2d5a27;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.brewing-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.brewing-step {
    text-align: center;
}

.step-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    background-color: #2d5a27;
    color: white;
    border-radius: 50%;
    line-height: 50px;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.step-content h4 {
    color: #2d5a27;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.step-content p {
    color: #666;
    font-size: 1rem;
}

.detail-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.action-button {
    flex: 1;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.action-button.primary {
    background-color: #2d5a27;
    color: white;
}

.action-button.primary:hover {
    background-color: #1e3d1a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(45, 90, 39, 0.3);
}

.action-button.secondary {
    background-color: white;
    color: #2d5a27;
    border: 2px solid #2d5a27;
}

.action-button.secondary:hover {
    background-color: #e8f5e9;
}

.related-products {
    padding: 80px 0;
    background-color: #f5f5f5;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.related-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.related-image {
    height: 180px;
    overflow: hidden;
}

.related-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.related-card:hover .related-img {
    transform: scale(1.05);
}

.related-info {
    padding: 1.5rem;
}

.related-info h3 {
    color: #2d5a27;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.related-info p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.related-link {
    display: inline-block;
    color: #2d5a27;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.related-link:hover {
    color: #1e3d1a;
}

@media (max-width: 968px) {
    .detail-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .detail-image {
        position: static;
    }

    .detail-placeholder-image {
        height: 400px;
    }

    .brewing-steps {
        grid-template-columns: 1fr;
    }

    .brewing-step {
        display: flex;
        align-items: center;
        text-align: left;
        gap: 1rem;
    }

    .step-number {
        margin-bottom: 0;
        flex-shrink: 0;
    }
}

@media (max-width: 768px) {
    .detail-title {
        font-size: 2rem;
    }

    .detail-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .detail-actions {
        flex-direction: column;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }
}