/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Playfair Display', serif;
    line-height: 1.6;
    color: #4E3E30;
    background-color: #FFF9E3;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../Assets/WM.JPG');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    opacity: 0.25;
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Header Styles */
.page-header {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 1rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo a:hover {
    opacity: 0.8;
}

.logo-image {
    height: 80px;
    width: auto;
    object-fit: contain;
    max-width: 300px;
}

.logo-text {
    font-size: 1.5rem;
    color: #4E3E30;
    font-weight: 700;
    margin: 0;
}

@media screen and (max-width: 1024px) {
    .logo-image {
        height: 70px;
        max-width: 250px;
    }
}

@media screen and (max-width: 768px) {
    .logo-image {
        height: 60px;
        max-width: 200px;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
}

@media screen and (max-width: 480px) {
    .logo {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
        justify-content: center;
    }
    
    .logo-image {
        height: 55px;
        max-width: 180px;
    }
    
    .logo-text {
        font-size: 1rem;
    }
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-navigation a {
    text-decoration: none;
    color: #4E3E30;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.main-navigation a:hover {
    color: #E95424;
}

/* Hero Section */
.main-hero {
    position: relative;
    width: 100%;
    aspect-ratio: 1440 / 400;
    overflow: hidden;
    background: linear-gradient(135deg, #F4C3CC 0%, #E95424 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
}

.main-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../Assets/WM.JPG');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.25;
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    max-width: 90%;
    color: #FFF;
}

.hero-headline {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hero-copy {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(32px, 7vw, 64px);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.1;
}

.hero-subcopy {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: clamp(24px, 4vw, 36px);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.hero-extra {
    font-family: 'Playfair Display', serif;
    text-transform: uppercase;
    font-size: clamp(14px, 2vw, 18px);
    letter-spacing: 0.04em;
    margin-top: 0.5rem;
    opacity: 0.95;
}

.hero-cta {
    margin-top: 2rem;
}

.hero-btn {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 15px;
    background-color: #E95424;
    color: #FFF;
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(14px, 2vw, 18px);
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.hero-btn:hover {
    background-color: #B55A21;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: clamp(32px, 5vw, 48px);
    color: #4E3E30;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-header p {
    font-size: clamp(16px, 2vw, 20px);
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Products Section */
.products-section {
    padding: 4rem 0;
    background-color: transparent;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-item {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background-color: #F5F5F5;
}

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

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

.product-info {
    padding: 1.5rem;
    text-align: center;
}

.product-info h3 {
    font-size: 1.5rem;
    color: #4E3E30;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.product-info p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}

/* Gallery Section */
.gallery-section {
    padding: 4rem 0;
    background-color: transparent;
    position: relative;
}

.gallery-slideshow-container {
    position: relative;
    max-width: 1200px;
    margin: 2rem auto 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    background-color: transparent;
}

.gallery-slideshow {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.gallery-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    transform: translateX(100%);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform;
    opacity: 1;
}

.gallery-slide.active {
    transform: translateX(0);
    z-index: 2;
}

.gallery-slide.slide-out-left {
    transform: translateX(-100%);
    z-index: 1;
}

.gallery-slide.slide-out-right {
    transform: translateX(100%);
    z-index: 1;
}

.gallery-slide.slide-in-from-right {
    transform: translateX(100%);
    z-index: 0;
}

.gallery-slide.slide-in-from-left {
    transform: translateX(-100%);
    z-index: 0;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4E3E30;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.gallery-nav-btn:hover {
    background-color: #E95424;
    color: #FFF;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(233, 84, 36, 0.4);
}

.gallery-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.gallery-prev {
    left: 20px;
}

.gallery-next {
    right: 20px;
}

.gallery-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 10px 15px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.gallery-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-indicator:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.gallery-indicator.active {
    background-color: #E95424;
    border-color: #E95424;
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(233, 84, 36, 0.6);
}

/* Slide animations for slideshow */
@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideOutToLeft {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

/* Responsive Gallery */
@media screen and (max-width: 768px) {
    .gallery-slideshow {
        height: 400px;
    }
    
    .gallery-nav-btn {
        width: 40px;
        height: 40px;
    }
    
    .gallery-prev {
        left: 10px;
    }
    
    .gallery-next {
        right: 10px;
    }
    
    .gallery-indicators {
        bottom: 10px;
        padding: 8px 12px;
    }
    
    .gallery-indicator {
        width: 10px;
        height: 10px;
    }
    
}

@media screen and (max-width: 480px) {
    .gallery-slideshow {
        height: 300px;
    }
}

/* About Section */
.about-section {
    padding: 4rem 0;
    background-color: rgba(255, 255, 255, 0.7);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h2 {
    font-size: clamp(28px, 4vw, 40px);
    color: #4E3E30;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.about-text p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.feature {
    text-align: center;
    padding: 1.5rem;
    background-color: #FFF9E3;
    border-radius: 10px;
}

.feature h3 {
    font-size: 1.2rem;
    color: #4E3E30;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.feature p {
    font-size: 0.95rem;
    color: #666;
}

.about-image {
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Contact Section */
.contact-section {
    padding: 4rem 0;
    background-color: #F4C3CC;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-item {
    text-align: center;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-item h3 {
    font-size: 1.3rem;
    color: #4E3E30;
    margin-bottom: 1rem;
    font-weight: 600;
}

.contact-item p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}

/* Footer */
.page-footer {
    background-color: #4E3E30;
    color: #FFF;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section h4 {
    color: #FFF;
}

.footer-section p {
    color: #CCC;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #CCC;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #FFF;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #CCC;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
    color: #FFF;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.social-link.instagram:hover {
    background-color: rgba(225, 48, 108, 0.3);
    border-color: #E1306C;
}

.social-link.facebook:hover {
    background-color: rgba(24, 119, 242, 0.3);
    border-color: #1877F2;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #CCC;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }

    .about-features {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    .main-hero {
        aspect-ratio: 390 / 480;
    }

    .header-container {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .logo {
        flex: 1 1 100%;
        justify-content: center;
        margin-bottom: 0.5rem;
    }

    .main-navigation {
        flex: 1 1 100%;
        order: 3;
    }
    
    .main-navigation ul {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    

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

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media screen and (max-width: 480px) {
    .header-container {
        padding: 0.75rem 15px;
    }
    
    .logo {
        flex: 1 1 100%;
        justify-content: center;
    }
    
    .main-navigation {
        flex: 1 1 100%;
    }
    
    .main-navigation ul {
        gap: 0.75rem;
        font-size: 0.9rem;
    }
    
    .login-form-container {
        min-width: 250px;
        left: 0;
        right: auto;
    }
    
    .login-form {
        gap: 0.5rem;
    }
    
    .login-form input {
        width: 100%;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .hero-inner {
        padding: 1rem;
    }

    .section-header h2 {
        font-size: 28px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-image {
        order: -1;
    }
    
    .hero-btn {
        padding: 12px 30px;
        font-size: 0.9rem;
        min-height: 44px;
    }
    
    .product-item {
        margin-bottom: 1rem;
    }
    
    .gallery-item {
        height: 250px;
    }
    
    /* Touch-friendly buttons */
    button, .btn-primary, .btn-secondary, .logout-btn, .login-btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .main-navigation a {
        padding: 0.5rem;
        display: block;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus Styles for Accessibility */
a:focus,
button:focus {
    outline: 2px solid #E95424;
    outline-offset: 2px;
}

/* Login Section Styles */
.login-section {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    position: relative;
    flex-direction: column;
    margin-top: 1rem;
}

.login-toggle-btn {
    padding: 0.5rem 1rem;
    background-color: rgba(233, 84, 36, 0.8);
    color: #FFF;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
    min-height: auto;
}

.login-toggle-btn:hover {
    background-color: rgba(233, 84, 36, 1);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(233, 84, 36, 0.3);
}

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

.login-form-container {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    position: absolute;
    bottom: 100%;
    left: 0;
    margin-bottom: 0.5rem;
    background-color: rgba(78, 62, 48, 0.98);
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    min-width: 280px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.login-form-container.show {
    display: flex !important;
    animation: slideDown 0.3s ease-out;
}

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

.login-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
}

.login-form input {
    padding: 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    font-size: 0.9rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: #FFF;
}

.login-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.login-form input:focus {
    outline: 2px solid #E95424;
    outline-offset: 2px;
    background-color: rgba(255, 255, 255, 0.15);
}

.login-btn {
    padding: 0.6rem 1rem;
    background-color: #E95424;
    color: #FFF;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.login-btn:hover {
    background-color: #B55A21;
}

.login-error {
    color: #ff6b6b;
    font-size: 0.85rem;
    display: none;
    margin-top: 0.5rem;
    text-align: center;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
}

.user-info span {
    color: #FFF;
    font-weight: 500;
}

.admin-link {
    padding: 0.5rem 1rem;
    background-color: rgba(233, 84, 36, 0.8);
    color: #FFF;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
    width: 100%;
    text-align: center;
}

.admin-link:hover {
    background-color: rgba(233, 84, 36, 1);
}

.user-info .btn-secondary {
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.2);
    color: #FFF;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
    width: 100%;
}

.user-info .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.user-info .btn-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.logout-btn {
    padding: 0.5rem 1rem;
    background-color: rgba(211, 47, 47, 0.8);
    color: #FFF;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
    width: 100%;
}

.logout-btn:hover {
    background-color: rgba(183, 28, 28, 1);
}

@media screen and (max-width: 768px) {
    .login-form-container {
        position: fixed;
        bottom: auto;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        margin-bottom: 0;
        max-width: 90%;
    }
}

