/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #FF6B6B;
    --secondary-color: #4ECDC4;
    --accent-color: #FFD93D;
    --text-color: #2D3436;
    --background-color: #F8F9FA;
    --card-background: #FFFFFF;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    background-color: var(--background-color);
    color: var(--text-color);
    padding: 0;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header styles */
header {
    background-color: var(--card-background);
    padding: 1rem 2rem;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo img {
    height: 50px;
    transition: var(--transition);
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    margin-left: 2rem;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--primary-color);
}

/* Hero section */
.hero {
    background-image: linear-gradient(135deg, rgba(255, 107, 107, 0.4), rgba(78, 205, 196, 0.4)), url('assets/hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 8rem 2rem;
    text-align: center;
    position: relative;
    margin-bottom: 2rem;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.03) 100%);
    z-index: 1;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h1 {
    color: var(--card-background);
    font-size: 3.5rem;
    margin-bottom: 2rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 1s ease;
    line-height: 1.2;
    letter-spacing: -0.5px;
}





/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .hero {
        padding: 6rem 1.5rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 4rem 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }
}

/* Gallery section */
.candy-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    padding: 8rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.gallery-item {
    position: relative;
    width: 100%;
    padding-top: 75%;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    background: var(--card-background);
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.gallery-item:nth-child(1) { 
    animation-delay: 0.2s;
}
.gallery-item:nth-child(2) { 
    animation-delay: 0.4s;
}
.gallery-item:nth-child(3) { 
    animation-delay: 0.6s;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        rgba(255, 107, 107, 0.2),
        rgba(78, 205, 196, 0.2)
    );
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 20px rgba(255, 107, 107, 0.2),
        0 0 40px rgba(78, 205, 196, 0.2);
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(1);
}

.gallery-item:hover img {
    transform: scale(1.1);
    filter: brightness(1.1);
}

/* Add decorative elements */
.candy-gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent,
        var(--primary-color),
        var(--secondary-color),
        transparent
    );
    border-radius: 2px;
    opacity: 0.5;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .candy-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        padding: 4rem 1rem;
    }
}

@media (max-width: 480px) {
    .candy-gallery {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 3rem 1rem;
    }
}





/* Image loading states */
.gallery-item img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Description section */
.description {
    text-align: center;
    padding: 6rem 2rem;
    background: linear-gradient(135deg, var(--card-background), var(--background-color));
    position: relative;
    margin: 3rem 0;
    overflow: hidden;
}

.description::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, 
        transparent 0%,
        var(--primary-color) 20%,
        var(--secondary-color) 50%,
        var(--primary-color) 80%,
        transparent 100%
    );
    opacity: 0.8;
}

.description::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, 
        transparent 0%,
        var(--secondary-color) 20%,
        var(--primary-color) 50%,
        var(--secondary-color) 80%,
        transparent 100%
    );
    opacity: 0.8;
}

.description p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-color);
    white-space: normal;
    word-wrap: break-word;
    hyphens: auto;
    position: relative;
    padding: 2rem 4rem;
}

.description p::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: linear-gradient(180deg, 
        transparent 0%,
        var(--primary-color) 20%,
        var(--secondary-color) 50%,
        var(--primary-color) 80%,
        transparent 100%
    );
    opacity: 0.8;
}

.description p::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: linear-gradient(180deg, 
        transparent 0%,
        var(--secondary-color) 20%,
        var(--primary-color) 50%,
        var(--secondary-color) 80%,
        transparent 100%
    );
    opacity: 0.8;
}

/* Add corner decorations */
.description p::before,
.description p::after {
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.description::before,
.description::after {
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

/* Price list section */
.price-list {
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto 1rem;
}

.price-list h2 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2rem;
    background: linear-gradient(
        45deg,
        var(--primary-color),
        var(--secondary-color),
        var(--accent-color),
        var(--primary-color)
    );
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientText 8s ease infinite;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 2rem;
}

.price-list h2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        var(--primary-color),
        var(--secondary-color),
        var(--accent-color),
        var(--primary-color)
    );
    background-size: 300% 300%;
    animation: gradientText 8s ease infinite;
    z-index: -1;
    border-radius: 8px;
    opacity: 0.1;
    filter: blur(8px);
}

@keyframes gradientText {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.update-time {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
    font-family: 'Montserrat', sans-serif;
}

.price-list-controls {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

.search-box-wrapper {
    flex: 0 1 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-box {
    flex: 0 1 400px;
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 1rem;
    color: #999;
    pointer-events: none;
}

.search-box input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 3rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.clear-search {
    position: absolute;
    right: 0.5rem;
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.clear-search:hover {
    background: #e0e0e0;
    transform: scale(1.1);
}

.clear-search svg {
    color: #666;
}

.results-count {
    color: #666;
    font-size: 0.9rem;
    white-space: nowrap;
    font-weight: 500;
}

/* Loading state */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    gap: 1rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-state p {
    color: #666;
    font-size: 1rem;
    margin: 0;
}

.table-container {
    overflow-x: auto;
    overflow-y: scroll;
    max-height: 600px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    transition: opacity 0.3s ease;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
}

th, td {
    padding: 1rem;
    text-align: left;
    border: 1px solid #ddd;
    font-family: 'Montserrat', sans-serif;
}

th {
    background-color: #4a4a9e;
    color: white;
    font-weight: 600;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

tr:nth-child(even) {
    background-color: #f8f8f8;
    transition: background-color 0.2s ease;
}

tr:hover {
    background-color: #f0f0f0;
    transition: background-color 0.2s ease;
}

tr {
    transition: background-color 0.2s ease;
}

/* Ensure the font size stays at 16px on mobile devices */
@media (max-width: 768px) {
    .search-box-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        flex: 1 1 100%;
        width: 100%;
    }
    
    .search-box input {
        font-size: 16px !important;
        padding: 0.8rem 1rem 0.8rem 3rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .results-count {
        text-align: center;
        font-size: 0.85rem;
    }
    
    .price-list {
        padding: 1.5rem 1rem;
        margin-bottom: 0.5rem;
    }
}

/* Footer styles */
footer {
    background: linear-gradient(135deg, var(--text-color), #1a1a1a);
    color: var(--card-background);
    padding: 4rem 2rem 2rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.location {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.location:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

.location h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.location h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.location:hover h3::after {
    width: 60px;
}

.location a {
    color: var(--card-background);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    margin: 0.5rem 0;
    font-weight: 500;
}

.location a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.location p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 1rem;
}

.marshmallow-divider {
    position: relative;
    width: 200px;
    margin: 0;
    transform: translateY(-10px);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.marshmallow-divider img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
    object-fit: contain;
}

.copyright {
    text-align: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .location {
        padding: 1.5rem;
    }
    
    .marshmallow-divider {
        width: 150px;
        margin: 0 auto;
        transform: none;
        order: -1;
    }
    
    .marshmallow-divider:hover {
        transform: scale(1.05);
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
/* Extra large screens (1400px and up) */
@media (min-width: 1400px) {
    .hero-content, 
    .candy-gallery,
    .price-list,
    .footer-content {
        max-width: 1320px;
        margin: 0 auto;
    }

    .hero h1 {
        font-size: 3.5rem;
    }
}

/* Large screens (1200px to 1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
    .hero-content, 
    .candy-gallery,
    .price-list,
    .footer-content {
        max-width: 1140px;
        margin: 0 auto;
    }

    .hero h1 {
        font-size: 3rem;
    }
}

/* Medium screens (992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .hero-content, 
    .candy-gallery,
    .price-list,
    .footer-content {
        max-width: 960px;
        padding: 0 2rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }


}

/* Small screens (768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .hero-content, 
    .candy-gallery,
    .price-list,
    .footer-content {
        max-width: 720px;
        padding: 0 1.5rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .candy-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .nav-links a {
        margin-left: 1.5rem;
    }

    .description p {
        font-size: 1.1rem;
        padding: 1.5rem 2rem;
    }

    .price-list h2 {
        font-size: 1.8rem;
    }

    .table-container {
        max-height: 500px;
    }
}

/* Extra small screens (576px to 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .hero-content, 
    .candy-gallery,
    .price-list,
    .footer-content {
        max-width: 540px;
        padding: 0 1rem;
    }

    header {
        padding: 0.8rem 1rem;
    }

    .logo img {
        height: 40px;
    }

    .nav-links {
        display: none;
    }

    .hero {
        padding: 4rem 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }



    .candy-gallery {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 3rem 1rem;
    }
}

/* Mobile phones (up to 575px) */
@media (max-width: 575px) {
    .hero-content, 
    .candy-gallery,
    .price-list,
    .footer-content {
        padding: 0 0.8rem;
    }

    .hero {
        padding: 3rem 0.8rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .search-box {
        flex: 1 1 100%;
        width: 100%;
    }
    
    .search-box input {
        width: 100%;
        box-sizing: border-box;
    }

}

/* Small mobile phones (up to 375px) */
@media (max-width: 375px) {
    .hero-content, 
    .candy-gallery,
    .price-list,
    .footer-content {
        padding: 0 0.6rem;
    }

    .hero {
        padding: 2.5rem 0.6rem;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .search-box {
        flex: 1 1 100%;
        width: 100%;
    }
    
    .search-box input {
        width: 100%;
        box-sizing: border-box;
        padding: 0.8rem;
    }

    .price-list h2 {
        font-size: 1.3rem;
    }
}

/* Landscape orientation for phones */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 2rem 1rem;
    }



    .table-container {
        max-height: 300px;
    }
}

/* High-DPI screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .gallery-item img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Print styles */
@media print {
    .hero,
    .candy-gallery,
    .description {
        display: none;
    }

    .price-list {
        padding: 0;
    }

    .table-container {
        max-height: none;
        overflow: visible;
    }

    table {
        border-collapse: collapse;
    }

    th, td {
        border: 1px solid #000;
    }
}

/* Smooth scrolling behavior */
html {
    scroll-behavior: smooth;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.back-to-top:hover svg {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }

    .back-to-top svg {
        width: 20px;
        height: 20px;
    }
} 