/*****************************
 * Global Styles
 *****************************/

 html {
    scroll-behavior: smooth;
 }

:root {
    --primary: #4CAF50;
    --primary-hover: #45a049 !important;
    --primary-focus: #45a049 !important;
    --pico-h1-color: #2c3e50 !important;
    --pico-h2-color: #2c3e50 !important;
    --pico-h3-color: #2c3e50 !important;
    --pico-h4-color: #2c3e50 !important;
    --pico-h5-color: #2c3e50 !important;
    --pico-h6-color: #2c3e50 !important;
    --pico-color: #303e2c !important;
    --pico-text-color: #333333 !important;
    --pico-li-color: #1b4332 !important;
    --pico-label-color: #333333 !important;
    --pico-accordion-active-summary-color: #333333 !important;
    --pico-accordion-close-summary-color: #2c3e50 !important;
}
    
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f1f5f6f7;
    padding-top: 0;
}

p {
    margin-bottom: 0;
}

header {
    background-color: rgba(0, 60, 25, 0.9);
    color: white;
    padding: 0.5rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.container {
	padding: 0.5rem;
}

.nav {
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-right {
    display: flex;
    gap: 0.1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-right a {
    color: white;
    text-decoration: none;
    padding: 0.1rem 0.6rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    position: relative;
}

.nav-right a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/****Hero*/

.hero {
    background-size: cover;
    background-position: center;
    background-color: #babfc3;
    text-align: center;
    padding: 2rem 1rem;
    margin-bottom: 2rem;
}

.hero.alkuruutu {
    background: linear-gradient(rgba(0,0,0,0.0), rgba(0,0,0,0.5));
    padding-block: 2em;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero p {
    font-size: 1.2rem;
    max-width: 90%;
    margin: 0 auto 2rem;
    text-align: justify;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.content-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.content-section h2 {
    color: #1a3e2c;
    margin-bottom: 1.5rem;
    text-align: center;
}

.content-section h3 {
    color: #1a3e2c;
    margin-bottom: 1rem;
    text-align: center;
}

.content-section h4 {
    color: #1a3e2c;
    margin-bottom: 0.5rem;
    text-align: center;
}

.content-section p {
    color: #1a3e2c;
    line-height: 1.6;
    margin-bottom: 1rem;
    padding-inline: 2em;
    text-align: justify;
}

.content-section ul,
.content-section ol {
    color: #1a3e2c;
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.content-section li {
    color: #1a3e2c;
    margin-bottom: 0.5rem;
}

.tip-box {
    background-color: #e8f5e9;
    border-left: 4px solid var(--primary);
    padding: 1rem;
    margin: 2rem 0;
    border-radius: 4px;
}

.tip-box p {
    margin: 0;
    color: #1a3e2c;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
}

/*****************************
 * Product Detail Styles
 *****************************/

.product-detail {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 2rem;
    margin: 2rem 0;
}

.product-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.product-image-main {
    width: 100%;
    max-width: 500px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin: 0 auto;
    border-radius: 8px;
    padding-bottom: 100%;
}

.product-image {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  min-height: 200px;
}

.product-thumbnail {
    height: 100px;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

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

.product-info h1, .product-detail h1,
.product-info h2, .product-detail h2,
.product-info h3, .product-detail h3,
.product-info h4, .product-detail h4,
.product-info h5, .product-detail h5,
.product-info h6, .product-detail h6,
.product-info p, .product-detail p,
.product-info span, .product-detail span,
.product-info li, .product-detail li {
    color: #2c3e50 !important;
}

/*    margin-bottom: 1rem;*/

/* Carousel styles */
.carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 4px;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
}

.carousel-item {
    min-width: 100%;
    flex: 0 0 100%;
}

.carousel-item img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 4px;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 24px;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.carousel-control:hover {
    background-color: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.2);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.carousel-control.prev {
    left: 10px;
}

.carousel-control.next {
    right: 10px;
}

 @media (max-width: 1000px) {
    .product-detail-content {
        grid-template-columns: 1fr !important;
    }
    .carousel-control {
        font-size: 1.5rem !important;
        width: 30px !important;
        height: 30px !important;
    }
    .product-detail-lisapaketit {
        grid-template-columns: 1fr !important; 
    }
}

/*******************************/

.price {
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.description {
    /*line-height: 1.6;*/
    margin-bottom: 2rem;
}

.specs-table {
    width: 100%;
    margin: 2rem 0;
    border-collapse: collapse;
}

.specs-table th,
.specs-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.specs-table th {
    background-color: #f9f9f9;
    font-weight: bold;
}

.specs-table tr:hover {
    background-color: #f5f5f5;
}

.back-button {
    display: inline-block;
    margin-bottom: 2rem;
    color: var(--primary);
    text-decoration: none;
}

.back-button:hover {
    text-decoration: underline;
}

/*****************************
 * Info Details Styles
 *****************************/

.info-details {
    margin-bottom: 1rem;
}

.info-summary {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary);
    cursor: pointer;
    padding: 0.5rem 1rem;
    list-style: none;
    position: relative;
    transition: background-color 0.2s ease;
}

.info-summary:hover {
    background-color: #f0f0f0;
    text-decoration: none;
    border-radius: 4px;
}

.info-summary:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.info-content {
    padding: 1rem 0;
    padding-left: 1rem;
    border-left: 2px solid var(--primary);
    margin-left: 0.5rem;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/*****************************
 * Optional Packages Section
 *****************************/

.optional-packages-section {
    margin: 3rem 0;
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.section-title {
    color: var(--primary);
    margin-bottom: 2rem;
    font-size: 1.8rem;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.5rem;
}

/*****************************
 * Order Summary Styles
 *****************************/

.order-summary {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    text-align: left;
}

.order-summary p {
    margin: 0;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-price {
    font-weight: bold;
    color: var(--primary);
    font-size: 1.2rem;
}

.order-total {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #ddd;
    font-weight: bold;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
}

.order-total-price {
    color: var(--primary);
    font-size: 1.2rem;
}

/*****************************
 * Add to Cart Section
 *****************************/

.add-to-cart-section {
    margin-top: 2rem;
    text-align: center;
    padding: 1.5rem;
    background-color: #f5f7f2;
    border-radius: 8px;
}

.add-to-cart-section button {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
}

/*****************************
 * Footer Styles
 *****************************/

footer {
    background-color: #81857f;
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

.copyright {
    text-align: center;
    color: #ccc;
}