/* static/style.css (Corrected and Final Version) */

/* Basic Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
}

/* --- Announcement Promo Bar --- */
.promo-bar {
    background-color: #212529;
    color: #ffffff;
    padding: 0.5rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1001;
    overflow: hidden;
    white-space: nowrap;
}

.promo-text {
    display: inline-block;
    animation: scroll-text 20s linear infinite;
}

@keyframes scroll-text {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}

/* ========================================= */
/*        Header and Navbar Styling          */
/* ========================================= */
header {
    background-color: transparent; /* START TRANSPARENT */
    padding: 1rem 5%;
    position: fixed;
    top: 35px;
    width: 100%;
    z-index: 1000;
    /* Add a smooth transition for the background color change */
    transition: background-color 0.4s ease-out, box-shadow 0.4s ease-out;
}

/* This is the style for WHEN WE SCROLL */
header.scrolled {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Make the logo white by default */
.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: #ffffff; /* START WHITE */
    transition: color 0.4s ease-out;
}

/* When scrolled, make the logo dark */
header.scrolled .nav-logo {
    color: #333;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

/* Make nav links white by default */
nav ul li a {
    text-decoration: none;
    color: #ffffff; /* START WHITE */
    font-weight: 600;
    transition: color 0.4s ease-out;
}

/* When scrolled, make nav links dark */
header.scrolled nav ul li a {
    color: #555;
}

/* Keep the blue hover effect, but make it work for both states */
nav ul li a:hover {
    color: #007bff;
}

/* THIS IS THE BEST .hero STYLE - use this one */
.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 100vh;
    padding-top: 120px; /* Adjust if needed */
    position: relative;
    color: #ffffff; /* Make text white */

    /* The background image with a dark overlay */
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('/static/images/hero-background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 5px solid #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* This is the NEW subtitle style */
.hero .subtitle {
    font-size: 1.25rem;
    color: #e0e0e0; /* A slightly off-white looks nice */
}
/* ========================================= */
/*           Hero Call-to-Action Button      */
/* ========================================= */
/* ========================================= */
/*      Hero Call-to-Action Button (v2)      */
/* ========================================= */
.hero .hero-button { /* <-- The change is here */
    display: inline-block;
    margin-top: 2rem;
    padding: 0.8rem 2.5rem;

    background-color: #ffffff;
    color: #333;
    border-radius: 50px;
    border: none;

    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.hero .hero-button:hover { /* <-- And also here */
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

/* Let's also ensure the h1 is explicitly white */
.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

/* Generic Section Styling */
.content-section {
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

/* ========================================= */
/*   Modern Card Styling - "The Reveal" v3   */
/* ========================================= */
.magazin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* ======================= */
/*  Modern Product Cards   */
/* ======================= */
.magazin-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
    overflow: hidden; /* Ensures the image corners are also rounded */
    display: flex;
    flex-direction: column; /* Stacks image on top of content */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.magazin-card:hover {
    transform: translateY(-8px); /* Lifts the card on hover */
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.card-image-container {
    /* This forces all images into a uniform shape */
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.magazin-card img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Prevents images from stretching */
    display: block;
}

.card-content {
    padding: 25px; /* A little more padding */
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* --- THE MODERN TITLE --- */
.card-content h3 {
    font-size: 1.3rem;        /* Bigger and more impactful */
    font-weight: 700;         /* Bolder */
    color: #2c2c2c;            /* A darker, more solid black/gray */
    line-height: 1.3;
    letter-spacing: 0.5px;    /* A subtle "designer" touch */
    margin: 0;                /* Remove default margins */
    padding-bottom: 12px;     /* Create space below for the divider */
    position: relative;       /* Needed for the pseudo-element */
}

/* --- THE ELEGANT GOLD DIVIDER LINE --- */
.card-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 20%;               /* A short, stylish accent, not a full line */
    height: 2px;
    background-color: #c7a17a; /* Use your beautiful brand gold */
}


/* --- THE PROMINENT PRICE --- */
.card-price {
    font-size: 1.15rem;       /* Slightly larger */
    font-weight: 600;         /* Semi-bold */
    color: #c7a17a;            /* Keep the brand gold */
    margin: 15px 0 12px 0;    /* Create clear spacing above and below */
}


/* --- THE CLEAN & READABLE DESCRIPTION --- */
.card-description {
    font-size: 0.95rem;       /* Slightly bigger for better readability */
    color: #555;              /* Softer than the title, but still clear */
    line-height: 1.7;         /* Generous line spacing is key to a modern look */
    font-weight: 400;         /* Ensure it's regular weight, not bold */
    flex-grow: 1;             /* This still pushes the button down */
}

.card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    width: 100%;
    padding: 0.85rem 1.5rem;
    margin-top: 1rem;

    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;

    color: #fff;
    background: linear-gradient(135deg, #c7a17a, #b88c5a); /* Elegant gold gradient */
    border: none;
    border-radius: 12px;

    box-shadow: 0 8px 20px rgba(199, 161, 122, 0.35);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-decoration: none;
}

.card-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-20deg);
    z-index: 0;
}

.card-button:hover::before {
    left: 200%;
    transition: left 0.75s ease;
}

.card-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(199, 161, 122, 0.5);
}

/* ========================================= */
/*       About Us & Stats Section            */
/* ========================================= */
.text-center-section {
    text-align: center;
}
.section-subtitle {
    max-width: 600px;
    margin: 0 auto 3rem auto;
    color: #666;
    font-size: 1.1rem;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}
.stat-item i {
    font-size: 2.5rem;
    color: #007bff;
    margin-bottom: 1rem;
}
.stat-item h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}
.stat-item p {
    color: #555;
    font-weight: 600;
}

/* ========================================= */
/*          Testimonials Section             */
/* ========================================= */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.testimonial-card {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    border-left: 5px solid #007bff;
}
.testimonial-card .stars {
    color: #ffc107;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.testimonial-card .quote {
    font-style: italic;
    color: #555;
    margin-bottom: 1rem;
}
.testimonial-card footer {
    font-weight: 600;
    color: #333;
}

/* ========================================= */
/*           Newsletter Section              */
/* ========================================= */
.newsletter-section {
    background-color: #212529;
    color: #ffffff;
    padding: 4rem 5%;
    text-align: center;
}
.newsletter-form {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap; /* Allows form to stack on mobile */
}
.newsletter-form input {
    padding: 0.75rem;
    border-radius: 5px;
    border: none;
    font-size: 1rem;
    width: 300px;
    max-width: 100%;
}
.newsletter-form .btn {
    flex-shrink: 0; /* Prevents button from shrinking */
}

/* ========================================= */
/*             Footer Section                */
/* ========================================= */
footer {
    background-color: #f8f9fa;
    padding: 4rem 5%;
    border-top: 1px solid #e0e0e0;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.footer-column h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}
.footer-column p {
    margin-bottom: 0.5rem;
    color: #555;
}
.footer-column i {
    margin-right: 0.5rem;
    color: #007bff;
}

/* ========================================= */
/*             Features Section              */
/* ========================================= */
.features-section {
    background-color: #f8f9fa; /* A very light grey to separate it */
    padding: 3rem 5%; /* A bit less padding than other sections */
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.feature-item i {
    font-size: 2.5rem;
    color: #007bff; /* Our brand's blue accent color */
    margin-bottom: 1rem;
}

.feature-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.feature-item p {
    color: #666;
    font-size: 1rem;
}

/* ======================= */
/*     Gallery Swiper        */
/* ======================= */
.gallery-section {
  padding: 60px 20px;
  background-color: #f9f9f9; /* A light background to make it stand out */
}

.gallery-swiper {
  width: 90%;      /* Make the carousel take up 90% of the section width */
  max-width: 1200px; /* But don't let it get too wide on large screens */
  margin: 0 auto;  /* Center it horizontally */
  position: relative; /* Needed for the navigation buttons */
  border-radius: 10px;
  overflow: hidden; /* Ensures nothing spills out of the rounded corners */
}

.swiper-slide {
  text-align: center;
  font-size: 18px;
  background: #fff;

  /* Center slide content vertically */
  display: flex;
  justify-content: center;
  align-items: center;

  /* --- NEW: FOR UNIFORM SIZE --- */
  /* This forces every slide container to have a 16:9 widescreen ratio */
  aspect-ratio: 16 / 9;
  /* ------------------------------- */
}

.swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;

  /* --- THIS IS THE MOST IMPORTANT PART --- */
  /* It tells the image to cover the entire frame without stretching or squishing.
     It will intelligently crop the image (from the center) to fit. */
  object-fit: cover;
  /* --------------------------------------- */
}

/* Optional: Style the navigation arrows to match your site */
.swiper-button-next,
.swiper-button-prev {
  color: #c7a17a; /* Use your site's gold color */
}

/* Optional: Style the pagination dots */
.swiper-pagination-bullet-active {
  background: #c7a17a; /* Use your site's gold color */
}

/* ======================= */
/*   Magazin Page Layout   */
/* ======================= */
.magazin-container {
    display: flex;
    gap: 30px;
    max-width: 1400px;
    margin: 120px auto; /* Changed from 40px to 80px */
    padding: 0 20px;
}

.sidebar {
    flex-basis: 280px; /* Sets a fixed width for the sidebar */
    flex-shrink: 0; /* Prevents the sidebar from shrinking */
    background-color: #fdfdfd;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    height: fit-content; /* Makes the sidebar only as tall as its content */
}

.product-grid-container {
    flex-grow: 1; /* Allows the product grid to take up the remaining space */
}

/* On mobile, stack the sidebar on top of the products */
@media (max-width: 900px) {
    .magazin-container {
        flex-direction: column;
    }
    .sidebar {
        flex-basis: auto; /* Resets the fixed width */
        width: 100%;
        margin-bottom: 30px;
    }
}

/* ======================= */
/*    Sidebar Components   */
/* ======================= */
.filter-group {
    margin-bottom: 35px; /* Space between filter sections */
}
.filter-group:last-child {
    margin-bottom: 0;
}

.filter-group h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.filter-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-group ul li {
    margin-bottom: 12px;
}

.filter-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.95rem;
    color: #555;
    transition: color 0.2s ease;
}

.filter-group label:hover {
    color: #c7a17a; /* Your site's gold color on hover */
}

.filter-group input[type="checkbox"] {
    margin-right: 10px;
    /* Optional: Custom styled checkbox */
    accent-color: #c7a17a; /* Colors the checkmark */
    width: 18px;
    height: 18px;
}

#price-label {
    font-weight: 600;
    margin-bottom: 15px;
    display: block;
}

/* --- Slick Price Slider --- */
.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: #e9e9e9;
    outline: none;
    border-radius: 3px;
    opacity: 0.9;
    transition: opacity .2s;
}

.slider:hover {
    opacity: 1;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #c7a17a; /* Gold handle */
    cursor: pointer;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #c7a17a;
    cursor: pointer;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

/* ======================= */
/*      Modern Price List    */
/* ======================= */
.price-list-container {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px 30px; /* More padding on the sides */
    margin-bottom: 40px; /* Space between the list and the product grid */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

.price-list-item {
    display: flex; /* This is the key for modern alignment */
    justify-content: space-between; /* Pushes name and price to opposite ends */
    align-items: center; /* Vertically centers the text */
    padding: 16px 0; /* Space above and below each item */
    border-bottom: 1px solid #f2f2f2; /* A very subtle line separator */
}

/* This removes the line from the very last item for a cleaner look */
.price-list-item:last-child {
    border-bottom: none;
    padding-bottom: 12px; /* Adjust padding slightly for last item */
}
.price-list-item:first-child{
    padding-top: 12px;
}

.item-name {
    font-size: 1rem;
    color: #444;
    font-weight: 500; /* A nice semi-bold weight */
}

.item-price {
    font-size: 1rem;
    font-weight: 600; /* Make the price slightly bolder */
    color: #c7a17a; /* Use your site's gold theme color */
}

/* ======================= */
/*     Custom Form Style   */
/* ======================= */

form input[type="text"],
form input[type="email"],
form input[type="password"],
form textarea,
form select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    color: #333;
    background-color: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

form input:focus,
form textarea:focus,
form select:focus {
    border-color: #c7a17a; /* Your elegant gold */
    outline: none;
    box-shadow: 0 0 0 3px rgba(199, 161, 122, 0.2);
}

/* Submit Button Styling */
form button[type="submit"],
form input[type="submit"] {
    background: linear-gradient(135deg, #d4a373, #c17e56);
    color: #fff;
    border: none;
    padding: 0.9rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(193, 126, 86, 0.3);
}

form button[type="submit"]:hover,
form input[type="submit"]:hover {
    background: linear-gradient(135deg, #e1b382, #c17e56);
    box-shadow: 0 12px 24px rgba(193, 126, 86, 0.45);
    transform: translateY(-2px);
}