/* ==================================== */
/*            ROOT VARIABLES            */
/* ==================================== */

:root {
    --primary-color: #632E8F;
    --primary-color-dark: #4b1f6e;
    --menu-bg-color: #E5EAF5;
    --dropdown-hover-bg: #e0d6eb;
    --dropdown-border: #b08ac7;
    --balsamic-white: #F8BF00;
    --transition-fast: 0.3s ease-in-out;
}

/* ==================================== */
/*            GLOBAL STYLES             */
/* ==================================== */

html, body {
    height: auto;
    margin: 0;
    padding: 0;
    width: 100%;
    font-family: "Montserrat", Montserrat;
    background-color: #E5EAF5;
    overflow-x: hidden;
}


/* ==================================== */
/*               NAVBAR                 */
/* ==================================== */

.navbar-upper {
    background: var(--primary-color-dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0px 0px;
    width: 100vw;
    box-shadow: 0 15px 15px rgba(0, 0, 0, 0.2);
    height: 100px;
    position: relative;
}

.navbar .container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0;
    width: 100%;
}

.navbar-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
    padding: 12px 20px;
    border-radius: 15px;
    box-shadow: 0px 5px 9px rgba(0, 0, 0, 0.15), 
                0px 3px 6px rgba(0, 0, 0, 0.10);
    width: 170px;
    height: 70px;
    margin-left: 30px; /* Adjust as needed */
}

.navbar-logo {
    max-width: 160px;
    height: auto;
}

.navbar-links {
  display: flex;
  justify-content: flex-end; 
  align-items: center;
  width: 100%;
  gap: 20px;
  padding-right: 40px; 
}

.navbar-nav {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: flex-end; 
  padding: 0;
  margin: 0;
  gap: 20px;
  width: auto; /* prevents stretching */
}


.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    white-space: nowrap;
    padding: 0 15px;
}

.nav-link {
    color: white;
    font-weight: normal;
    text-decoration: none;
    transition: color var(--transition-fast);
    font-size: 16px;
    padding: 10px 15px;
}

.nav-link:hover {
    color: var(--balsamic-white);
}

.nav-item a {
    display: inline-block;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -5px;
    width: 0;
    height: 3px;
    background-color: var(--balsamic-white);
    transition: width var(--transition-fast), left var(--transition-fast);
}

.nav-link:hover::after {
    width: 100%;
    left: 0;
}
/* ==================================== */
/*       NOTIFICATION BAR STYLES       */
/* ==================================== */

.text-container {
    max-width: 50%;
    min-height: 330px;
    background-color: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: auto;
}

.text-container .why-frame-title {
    font-size: 32px;
    font-family: var(--primary-font);
    font-weight: bold;
    color: var(--primary-color-dark);
    margin-bottom: 20px;
}

.text-container p {
    font-size: 18px;
    color: #333;
    line-height: 1.6;
}

.notification-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    /* Fallback for browsers that don't support backdrop-filter */
    background: rgba(0, 0, 0, 0.9);
    color: white;
    font-weight: normal;
    font-size: 16px;
    padding: 10px 20px;
    position: fixed;
    top: 100px;
    left: 0;
    z-index: 1100;
    transition: opacity 0.10s ease-in-out;
    min-height: 0;
    text-align: center;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-wrap: wrap;
    top: 0;
}

/* Apply backdrop-filter only if supported */
@supports (backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px)) {
    .notification-bar {
        background: rgba(0, 0, 0, 0.8);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
    }
}

.notification-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 10px;
    flex-wrap: wrap;
}

.dismiss-btn {
    font-size: 14px;
    font-weight: normal;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s ease-in-out;
    padding: 0;
    margin-left: auto;
    display: inline;
    text-decoration: underline;
    white-space: nowrap;
}

.dismiss-btn:hover {
    opacity: 0.7;
    text-decoration: none;
}

.notification-bar a {
    color: white;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

.notification-bar a:hover {
    color: var(--balsamic-white);
}

.hidden {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
}

/* ==================================== */
/*       MOBILE VIEW FIXES              */
/* ==================================== */

@media (max-width: 768px) {
    .info-section {
        flex-direction: column;
        align-items: center;
        padding: 20px 5%;
        gap: 10px;
    }

    .image-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
        gap: 5px;
    }

    .why-frame-text-container {
        max-width: 85%;
        padding: 15px;
        text-align: center;
    }

    .content-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 15px; 
    }

    .text-container {
        max-width: 85%;
        padding: 15px;
        min-height: 0;
        text-align: center;
    }

    .text-container .why-frame-title {
        font-size: 22px; /* Reduced for mobile */
        text-align: center;
    }

    .text-container p {
        font-size: 14px;
        line-height: 1.4;
        text-align: center;
    }

    .image-container {
        max-width: 85%;
        display: flex;
        justify-content: center;
    }

    .image-container img {
        width: 100%;
        height: auto;
    }
}

/* ==================================== */
/*         MEGA DROPDOWN MENU           */
/* ==================================== */

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background-color: rgba(245, 245, 245, 0.85);
    /* Fallback for browsers that don't support backdrop-filter */
    background-color: rgba(245, 245, 245, 0.95);
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15);
    padding: 15px;
    border-radius: 12px;
    justify-content: space-between;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}

/* Apply backdrop-filter only if supported */
@supports (backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px)) {
    .dropdown-menu {
        background-color: rgba(245, 245, 245, 0.85);
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
    }
}

.nav-item:hover > .dropdown-menu {
    display: flex;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-left, .dropdown-right {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    min-width: 150px;
}

/* Dropdown menu background with blur effect */
.dropdown-menu {
    background-color: rgba(75, 31, 110, 0.8); /* Using --primary-color-dark with opacity */
    /* Fallback for browsers that don't support backdrop-filter */
    background-color: rgba(75, 31, 110, 0.9);
    border: 1px solid var(--dropdown-border); /* Using root variable for border */
    border-radius: 8px;
    padding: 5px 0;
}

/* Apply backdrop-filter only if supported */
@supports (backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px)) {
    .dropdown-menu {
        background-color: rgba(75, 31, 110, 0.8);
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
    }
}

/* Dropdown button styles */
.dropdown-item {
    display: block; /* Changed to block for better spacing and alignment */
    padding: 8px 20px; /* Updated padding for a better visual */
    color: #E5EAF5;  /* Text color set to white */
    text-decoration: none;
    font-weight: normal;
    font-size: 14px;
    transition: background-color var(--transition-fast), color var(--transition-fast);
    text-align: left;
    border-radius: 6px;
    width: 100%; /* Ensures full width for better hover effect */
    background-color: transparent; /* Default non-hover state is transparent */
}

.dropdown-item:hover {
    background-color: #E5EAF5; 
    color: var(--primary-color-dark); /* Change text color on hover to dark primary color */
}

/* Make font color change to solid yellow without any frame effect on hover */
.dropdown-item:hover {
    color: var(--primary-color-dark); /* Set text color to yellow on hover */
}


/* ==================================== */
/*          MOBILE MENU STYLES          */
/* ==================================== */

@media (max-width: 992px) {
    .navbar-links {
        display: none !important;
    }
}

@media (min-width: 993px) {
    .navbar-links {
        display: flex !important;
    }
}

/* Root Color Variables */
:root {
  --primary-color: #632E8F;
  --primary-color-dark: #4b1f6e;
  --light-bg: #E5EAF5;
  --balsamic-white: #F8BF00;
  --transition-fast: 0.3s ease-in-out;
}

/* General Reset */
body {
  margin: 0;
  padding: 0;
  background: var(--light-bg);
  font-family: 'Montserrat', sans-serif;
}

.products-section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: auto;
}
/* ==================================== */
/*       STICKY BOTTOM NAVIGATION       */
/* ==================================== */

.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--primary-color-dark);
    display: none;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    box-shadow: 0px -4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-top: 0px solid rgba(255,255,255,0.1);
    height: 60px;
}

.mobile-bottom-nav button {
    background: none;
    border: none;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 5px 5px;
    flex: 1;
    text-align: center;
    cursor: pointer;
    transition: none !important;
    border-radius: 8px;
    margin: 0 5px;
}

/* ✅ Fixes unwanted yellow border / animation */
.mobile-bottom-nav button:focus,
.mobile-bottom-nav button:active {
    outline: none;
    box-shadow: none;
}


@media (max-width: 992px) {
    body {
        padding-bottom: 70px !important;
    }
    
    .mobile-bottom-nav {
        display: flex !important;
    }
}

@media (min-width: 993px) {
    .mobile-bottom-nav {
        display: none;
    }
}



/* ==================================== */
/*         PRODUCTS PAGE STYLES         */
/* ==================================== */

body {
  font-family: 'Montserrat', Montserrat;
  background-color: #E5EAF5;
  margin: 0;
  padding: 0;
}

.products-section {
  padding: 20px 0;
  margin: 0;
  width: 100%;
}

.table-section-wrapper {
  background-color: #E5EAF5;
  margin-bottom: 40px;
  padding: 40px 20px;
}

.table-section {
  max-width: 1200px;
  margin: 0 auto;
}

.table-section h2 {
  font-size: 36px;
  color: #4b1f6e;
  font-weight: bold;
  margin-bottom: 30px;
  text-align: center;
}

.oil-comparison-container {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.table-image-container {
  flex: 1;
  text-align: center;
  max-width: 700px;
}

.table-image {
  width: 100%;
  max-width: 650px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.1);
}

.oil-explanation {
  flex: 1;
  min-width: 400px;
  padding-left: 20px;
}

.oil-explanation h3 {
  font-size: 24px;
  color: #632E8F;
  margin-bottom: 20px;
  font-weight: 600;
}

.oil-explanation p {
  font-size: 16px;
  line-height: 1.6;
  color: #555;
  margin-bottom: 15px;
}

.oil-benefits {
  background: #f8f5fc;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #632E8F;
  margin-top: 0px;
  transform: translateY(-2px);
}

.oil-benefits h4 {
  font-size: 18px;
  color: #4b1f6e;
  margin-bottom: 15px;
  font-weight: 600;
}

.oil-benefits ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.oil-benefits ul li {
  padding: 5px 0;
  padding-left: 20px;
  position: relative;
  font-size: 14px;
  color: #555;
}

.oil-benefits ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: #632E8F;
  font-weight: bold;
}

/* Mobile responsive for oil comparison */
@media (max-width: 768px) {
  .oil-comparison-container {
    flex-direction: column;
    gap: 20px;
  }
  
  .table-image-container {
    flex: none;
  }
  
  .table-image {
    max-width: 350px;
  }
  
  .oil-explanation {
    padding-left: 0;
    min-width: auto;
  }
  
  .table-section h2 {
    font-size: 28px;
  }
  
  .oil-explanation h3 {
    font-size: 20px;
  }
}

/* Enhanced Product Stripe Design */
.product-wrapper {
  width: 100%;
  padding: 25px 0;
  margin-bottom: 8px;
  position: relative;
  overflow: hidden;
}

/* Stripe Pattern 1 - Original Background */
.product-wrapper:nth-child(odd) {
  background-color: #E5EAF5;
}

/* Stripe Pattern 2 - White */
.product-wrapper:nth-child(even) {
  background-color: white;
}

/* Chef's Special Blend styling */
.product-wrapper.chef-special {
  background-color: #E5EAF5;
}

.product-wrapper.chef-special .product-image img {
  max-width: 180px;
}

/* Non-Hydrogenated Label */
.non-hydrogenated-label {
  background-color: #632E8F;
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  text-align: center;
  margin-top: 10px;
  display: inline-block;
  box-shadow: 0 2px 8px rgba(99, 46, 143, 0.3);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.product-content {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 1;
}

.product-image {
  flex: 0 0 200px;
  text-align: center;
}

.product-image img {
  width: 100%;
  max-width: 180px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-image img:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(99, 46, 143, 0.2);
}

.product-info {
  flex: 1;
  text-align: left;
  min-width: 300px;
}

.product-info h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: #4b1f6e;
  font-weight: 700;
  border-bottom: 2px solid #632E8F;
  padding-bottom: 8px;
  display: inline-block;
}

.product-info ul {
  padding-left: 0;
  line-height: 1.6;
  margin: 0;
  list-style: none;
}

.product-info ul li {
  margin-bottom: 6px;
  padding-left: 20px;
  position: relative;
  font-size: 14px;
  color: #555;
}

.product-info ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #632E8F;
  font-weight: bold;
}

.highlight {
  font-weight: bold;
  color: #4b1f6e;
}

/* Enhanced hover effect for entire product wrapper */
.product-wrapper:hover {
  transform: translateX(5px);
  transition: transform 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
  .product-content {
    flex-direction: column;
    text-align: center;
    padding: 0 20px;
    gap: 20px;
  }

  .product-image {
    flex: none;
  }

  .product-image img {
    max-width: 150px;
  }

  .product-info {
    text-align: center;
    min-width: auto;
  }

  .product-info h3 {
    font-size: 20px;
  }

  .product-info ul {
    text-align: left;
    display: inline-block;
    max-width: 300px;
  }

  .table-section h2 {
    font-size: 28px;
  }
}


/* Footer styles removed - using main style.css footer styles */