/* product.css */

/* Base Body Styles */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #5a4a42;
    background-color: #fff9f5;
    padding-top: 80px; /* Match style.css header height */
}

/* Container */
.container {
    width: 85%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Combined Header Styles */
header {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 20px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    font-family: 'Roboto', sans-serif; /* Match style.css */
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

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

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
}

.logo-container:hover {
    opacity: 0.9;
}

.logo-container img {
    width: 60px;
    height: 60px;
    margin-right: 15px;
    border-radius: 12px;
    box-shadow: 0 3px 7px rgba(0, 0, 0, 0.15);
}

.company-name-container {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.company-name.top-layer {
    font-size: 1.8em;
    font-weight: 700;
    color: white;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.company-name.bottom-layer {
    font-size: 1em;
    font-weight: 500;
    color: #eee;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.navlist ul {
    list-style: none;
    padding: 0;
    display: flex;
    margin: 0;
}

.navlist ul li {
    margin-left: 30px;
}

.navlist ul li:first-child {
    margin-left: 0;
}

.navlist ul li a {
    color: white;
    text-decoration: none;
    font-weight: 700;
    padding: 12px 20px;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-size: 1.05em;
}

.navlist ul li a:hover,
.navlist ul li a[aria-current="page"] {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Responsive Design for Header */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .navlist ul {
        margin-top: 10px;
        flex-wrap: wrap;
    }

    .navlist ul li {
        margin: 5px 15px 5px 0;
    }

    .logo-container img {
        width: 50px;
        height: 50px;
    }

    .company-name.top-layer {
        font-size: 1.4em;
    }

    .company-name.bottom-layer {
        font-size: 0.85em;
    }
}

/* Products Section */
.products {
    padding: 4rem 0;
}

.products h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #5a4a42;
    position: relative;
    font-weight: 700;
}

.products h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 5px;
    background: #e74c3c;
    margin: 1.5rem auto 0;
    border-radius: 3px;
}

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

.product-card {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid rgba(231, 76, 60, 0.2);
    padding: 10px;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.product-slider {
    position: relative;
    overflow: hidden;
    background: #fff9f5;
    border-bottom: 1px solid #f3e0da;
}

.product-slider-images {
    display: flex;
    transition: transform 0.5s ease;
}

.product-slider-images img {
    width: 300px;
    height: 300px;
    object-fit: contain;
    flex-shrink: 0;
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

.product-card:hover .product-slider-images img {
    transform: scale(1.05);
}

.slider-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 10px;
    box-sizing: border-box;
}

.slider-nav button {
    background: rgba(231, 76, 60, 0.7);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.slider-nav button:hover {
    background: rgba(192, 57, 43, 0.9);
    transform: scale(1.1);
}

.product-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    color: #5a4a42;
}

.product-card p {
    color: #7a6a62;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.price {
    font-weight: 700;
    font-size: 1.5rem;
    color: #e74c3c;
    margin: 0.75rem 0;
}

.stock {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: #d1fae5;
    color: #10b981;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: auto;
    align-self: flex-start;
}

/* Featured badge */
.featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #e74c3c;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

/* Footer Styles */
footer {
    background: #c0392b;
    color: white;
    padding: 2rem 0 1rem;
    margin-top: 3rem;
    position: relative;
    font-family: 'Roboto', sans-serif;
}

footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

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

.footer-section {
    text-align: left;
    padding: 0 10px;
}

.footer-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-section p {
    font-size: 0.9rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin: 0;
}

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

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

.footer-section ul li a {
    font-size: 0.9rem;
    font-weight: 400;
    color: #f3d2c1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-section address {
    font-style: normal;
    margin: 0;
}

.footer-section address p {
    font-size: 0.9rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-bottom: 0.6rem;
}

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

.footer-section address a:hover {
    color: white;
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #e74c3c;
    transform: scale(1.1);
}

.social-links a.facebook,
.social-links a.twitter,
.social-links a.gmail {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.social-links a.facebook:hover,
.social-links a.twitter:hover,
.social-links a.gmail:hover {
    background: #e74c3c;
    color: white;
}

.copyright {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin: 1rem 0 0;
}

/* Responsive Design for Footer */
@media (max-width: 768px) {
    footer {
        padding: 1.5rem 0 0.8rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }

    .footer-section {
        padding: 0;
    }

    .footer-section h3 {
        font-size: 1rem;
    }

    .footer-section p,
    .footer-section ul li a,
    .footer-section address p {
        font-size: 0.85rem;
    }

    .social-links {
        justify-content: center;
        margin-top: 0.8rem;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        gap: 0.8rem;
    }

    .footer-section h3 {
        font-size: 0.95rem;
    }

    .footer-section p,
    .footer-section ul li a,
    .footer-section address p {
        font-size: 0.8rem;
    }

    .social-links a {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }

    .copyright {
        font-size: 0.8rem;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.products,
footer {
    animation: fadeIn 0.8s ease-out forwards;
}

.products {
    animation-delay: 0s;
}

footer {
    animation-delay: 0.2s;
}

/* Product Choice Buttons */
.product-choice-container {
    text-align: center;
    margin: 20px 0;
}

.product-choice-button {
    padding: 10px 20px;
    margin: 5px;
    font-size: 16px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.product-choice-button:hover {
    background: linear-gradient(135deg, #c0392b, #a5281b);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Sidebar styles */
.sidebar {
    width: 100px;
    background-color: #f8f9fa;
    position: fixed;
    height: 100%;
    overflow: auto;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.sidebar h3 {
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
}

.sidebar li {
    margin-bottom: 10px;
}

.sidebar a {
    color: #555;
    text-decoration: none;
    display: block;
    padding: 8px 0;
    transition: color 0.3s;
}

.sidebar a:hover {
    color: #007bff;
}

.sidebar-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1100;
    background: #007bff;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
}

.main-content {
    margin-left: 250px;
    transition: margin-left 0.3s ease;
}

/* Responsive styles */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .sidebar-toggle {
        display: block;
    }
}