/* Shop Page Styles */
.shop-page {
    /* Increased padding to prevent header from going behind navbar */
    padding: 220px 20px 80px;
    min-height: calc(100vh - 200px);
    background: var(--color-light-yellow);
}

/* Shop Header */
.shop-header {
    text-align: center;
}

.shop-title {
    color: var(--color-brown);
    font-family: var(--font-tight);
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 700;
    margin: 0 0 20px 0;
}

.shop-description {
    color: var(--color-brown);
    font-family: var(--font-sauce);
    font-size: clamp(18px, 2.5vw, 32px);
    font-weight: 500;
    margin: 0;
    max-width: 900px;
    margin: 0 auto;
}

/* Circular Services Container */
.services-circle-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 0; /* Removed horizontal padding */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: auto; /* Allow height to adjust */
    width: 100%;
    overflow: visible;
}

.services-circle {
    position: relative;
    width: 80%; /* Reduced width to leave space for the orbiting icons */
    max-width: 900px;
    aspect-ratio: 1; /* Keep it a perfect square circle */
    margin: 0 220px 0 0; /* Default margin (70px + 15px) */
}

@media (max-width: 1200px) {
    .services-circle {
        margin-right: 180px;
    }
}

@media (max-width: 1000px) {
    .services-circle {
        margin-right: 150px;
    }
}

@media (max-width: 700px) {
    .services-circle {
        margin-right: 120px;
    }
}
@media (max-width: 600px) {
    .services-circle {
        margin-right: 100px;
    }
}
@media (max-width: 500px) {
    .services-circle {
        margin-right: 70px;
    }
}
@media (max-width: 400px) {
    .services-circle {
        margin-right: 60px;
    }
}

/* Service Items Positioned in Circle */
.service-item {
    position: absolute;
    cursor: pointer;
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
    /* Ensure items don't overflow the container on edges */
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-item:hover {
    transform: translate(-50%, -50%) scale(1.05);
    z-index: 10;
}

.service-item:hover .service-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Service Circle (Icon Container) */
.service-circle {
    /* Fluid sizing: minimum 45px, preferred 18% of viewport, max 191px */
    width: clamp(45px, 18vw, 191px);
    height: clamp(45px, 18vw, 191px);
    border-radius: 50%;
    border: clamp(2px, 1vw, 8px) solid var(--color-orange); /* Scale border */
    background: var(--color-white);
    box-shadow: 1px 1px 30px 0 rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.service-circle img {
    /* Scale image relative to the circle */
    width: 70%;
    height: 70%;
    object-fit: contain;
}

.service-item:hover .service-circle {
    box-shadow: 2px 2px 40px 0 rgba(0, 0, 0, 0.25);
    /* Scale border on hover */
    border-width: clamp(3px, 1.2vw, 10px);
}

/* Service Tooltip */
.service-tooltip {
    position: absolute;
    top: 100%; /* Position below the item */
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(255, 255, 255, 0.98);
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    width: clamp(200px, 50vw, 340px); /* Responsive width */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    border: 2px solid var(--color-orange);
    pointer-events: none; /* Prevent tooltip from interfering with clicks */
}

/* Adjust tooltip position for items at the bottom to prevent overflow */
.service-5 .service-tooltip,
.service-6 .service-tooltip,
.service-4 .service-tooltip {
    top: auto;
    bottom: 100%;
    transform: translateX(-50%) translateY(-10px);
}

/* Position each service around the circle */
/* 9 items spaced 40 degrees apart. Radius approx 40% */
.service-1 {
    top: 10%;
    left: 50%;
}

.service-2 {
    top: 19.4%;
    left: 75.7%;
}

.service-3 {
    top: 43.1%;
    left: 89.4%;
}

.service-4 {
    top: 70%;
    left: 84.6%;
}

.service-5 {
    top: 87.6%;
    left: 63.7%;
}

.service-6 {
    top: 87.6%;
    left: 36.3%;
}

.service-7 {
    top: 70%;
    left: 15.4%;
}

.service-8 {
    top: 43.1%;
    left: 10.6%;
}

.service-9 {
    top: 19.4%;
    left: 24.3%;
}

/* Shop CTA */
.shop-cta {
    text-align: center;
    margin-top: 60px;
    padding: 20px;
}

.btn-consultation {
    display: inline-flex;
    justify-content: center; /* Center text horizontally */
    align-items: center; /* Center text vertically */
    padding: 10px 16px;
    min-height: 50px;
    border-radius: 24px;
    background: var(--color-orange);
    border: none;
    color: var(--color-white);
    font-family: var(--font-sauce);
    font-size: clamp(16px, 4vw, 24px); /* Responsive font size */
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 30%; /* Default width for large screens */
    min-width: 250px; /* Ensure it doesn't get too small on mid-sized screens */
}

.btn-consultation:hover {
    background: var(--color-brown);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

/* Responsive Button Widths */
@media (max-width: 1200px) {
    .btn-consultation {
        width: 50%;
    }
}

@media (max-width: 768px) {
    .btn-consultation {
        width: 70%;
    }
}

@media (max-width: 480px) {
    .btn-consultation {
        width: 90%;
        min-width: auto; /* Allow full scaling on very small screens */
    }
}

/* Responsive Design - CLEANUP */
/* We remove the complex grid switching and just adjust sizes */

@media (max-width: 1024px) {
    .shop-page {
        padding-top: 150px;
    }
    /* No need to force max-widths here, the clamp and percentages handle it */
}

@media (max-width: 768px) {
    .shop-page {
        padding: 120px 10px 40px;
    }
    
    .service-tooltip {
        display: none; /* Hide tooltips on mobile to keep layout clean, or use tap to show */
    }
    
    /* Optional: Show tooltip on active/focus if needed, but hover doesn't exist on touch */
}

/* Loading Animation */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.service-item {
    animation: fadeInScale 0.5s ease forwards;
}

.service-1 { animation-delay: 0.1s; }
.service-2 { animation-delay: 0.2s; }
.service-3 { animation-delay: 0.3s; }
.service-4 { animation-delay: 0.4s; }
.service-5 { animation-delay: 0.5s; }
.service-6 { animation-delay: 0.6s; }
.service-7 { animation-delay: 0.7s; }
.service-8 { animation-delay: 0.8s; }
.service-9 { animation-delay: 0.9s; }
