/* ==================================================
   Calena Coffee - Custom Styles
   Applied AFTER style.css for overrides
   ================================================== */

:root {
  --calena-orange: #F47B20;
  --calena-brown: #4A2515;
  --calena-lavender: #C4B5D4;
  --calena-beige: #E8D5B5;
  --calena-white: #FFF9F3;
  --calena-text: #5C3D2E;
  --calena-gray-100: #F7F3EF;
  --calena-gray-200: #E5DDD5;
  --calena-gray-300: #B8ADA3;
}

/* Body background warm white */
body {
  background-color: var(--calena-white);
}

/* Logo container - horizontal layout */
.brand_logo .brand_link img {
  max-height: 70px;
  width: auto;
}
.brand_logo {
  display: flex;
  align-items: center;
}

/* Selection color */
::selection {
  background-color: var(--calena-orange);
  color: #fff;
}

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

/* Header - semi-transparent over slider, white on scroll */
.header_section {
  background-color: rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header_section .content_wrap {
  padding: 32px 0px;
}

.header_section.sticky {
  background-color: #ffffff;
  box-shadow: 0px 3px 15px 0px rgba(0, 0, 0, 0.1);
}

.header_section.sticky .main_menu_list > li > a {
  color: var(--calena-brown);
}

.header_section.sticky .main_menu_list > li:hover > a,
.header_section.sticky .main_menu_list > li.active > a {
  color: var(--calena-orange);
}

.header_section.sticky .header_search_btn,
.header_section.sticky .cart_btn {
  color: var(--calena-brown);
}

.header_section.sticky .btn_primary {
  background-color: var(--calena-orange);
}

/* Slider full-width override (match demo site, not template card style) */
.slider_dark .main_slider {
  padding: 0;
}

.slider_dark .slider_item {
  border-radius: 0;
}

.slider_dark {
  background-size: cover;
}

/* Feature + About sections - white background to match icon style */
.feature_primary_section,
.about_section {
  background-color: #ffffff;
}

/* Offer section - video stretches full height to match right column */
.offer_section > .container-fluid > .row.g-0 > .col-lg-4 {
  display: flex;
}
.offer_video {
  width: 100%;
  height: 100%;
}
.offer_video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Offer info boxes - equal height columns */
.offer_section .col-lg-8 .row.g-0 .offerinfo_col {
  display: flex;
}
.offer_section .col-lg-8 .row.g-0 .offer_info_item {
  width: 100%;
}

/* Blog cards - uniform image height */
.blog_grid .item_image {
  display: block;
  height: 260px;
  overflow: hidden;
}
.blog_grid .item_image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Footer - larger logo and aligned content */
.footer_section .footer_about .brand_logo .brand_link img {
  max-height: 120px !important;
}
.footer_section .footer_about .brand_logo {
  margin-bottom: 25px;
}
.footer_about {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.footer_about .social_links {
  margin-top: 35px;
}

/* Featured products - equal height cards */
#featured-products {
  display: flex;
  flex-wrap: wrap;
}
#featured-products > [class*="col-"] {
  display: flex;
}
#featured-products .shop_card {
  display: flex;
  flex-direction: column;
  width: 100%;
}
#featured-products .shop_card .item_content {
  flex: 1;
  display: flex;
  flex-direction: column;
}
#featured-products .shop_card .item_content .btns_group {
  margin-top: auto;
}

/* Featured products - price badge inline with gap */
#featured-products .shop_card .item_price {
  white-space: nowrap;
}
#featured-products .shop_card .btns_group {
  gap: 10px;
  display: flex;
  align-items: stretch;
}
#featured-products .shop_card .btns_group .item_price,
#featured-products .shop_card .btns_group .add-to-cart-btn {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Featured products - tasting notes */
.shop_card .item_tasting_notes {
  font-size: 13px;
  color: var(--calena-gray-300);
  margin-bottom: 10px;
  font-style: italic;
}

/* Shop cards - keep overflow visible but add space so image doesn't overlap text */
.shop_card .item_image {
  margin-bottom: 30px;
}

/* Shop cards - hover effect */
#featured-products .shop_card .item_image img {
  transition: transform 0.3s ease;
}
#featured-products .shop_card:hover .item_image img {
  transform: scale(1.05);
}

/* Add to Cart button feedback */
.shop_card .add-to-cart-btn {
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Footer dark background (override placeholder image) */
.footer_section {
  background-color: var(--calena-brown) !important;
  background-image: none !important;
}

.footer_section .overlay {
  background-color: rgba(0, 0, 0, 0.6);
}

/* Remove dead space below copyright */
.text-white .footer_bottom {
  padding-bottom: 30px;
}

/* ==================================================
   RESPONSIVE FIXES
   ================================================== */

/* FIX 0: Footer opening hours - keep days and hours closer on mobile */
@media screen and (max-width: 575px) {
  .footer_opening_time {
    padding: 0;
    max-width: 240px;
  }
}

/* FIX 0b: Hero slider - add top padding on mobile so header doesn't overlap title */
@media screen and (max-width: 575px) {
  .slider_dark .slider_item {
    padding-top: 140px;
  }
}

/* Menu page - center prices on mobile */
@media screen and (max-width: 767px) {
  .recipe_item .content_col:last-child {
    text-align: center !important;
    margin-top: 16px;
  }
  .recipe_item .item_price {
    display: block;
    text-align: center;
  }
  .price_variants {
    border-left: none;
    padding: 0;
    align-items: center;
  }
}

/* FIX 1: Mobile hamburger menu - ensure nav dropdown appears above all content */
@media screen and (max-width: 991px) {
  .main_menu_inner {
    z-index: 9999;
  }
  .main_menu_inner .main_menu_list li > a {
    color: var(--calena-brown);
    padding: 12px 0;
  }
  .main_menu_inner .main_menu_list li > a:hover {
    color: var(--calena-orange);
  }
}

/* FIX 2: Desktop nav - reduce spacing to prevent CONTACT from wrapping */
@media screen and (min-width: 992px) and (max-width: 1199px) {
  .main_menu_list > li:not(:last-child) {
    margin-right: 15px;
  }
  .main_menu {
    padding-left: 5px;
  }
  .main_menu_list > li > a {
    font-size: 13px;
  }
}
@media screen and (min-width: 1200px) and (max-width: 1399px) {
  .main_menu_list > li:not(:last-child) {
    margin-right: 25px;
  }
  .main_menu {
    padding-left: 10px;
  }
}

/* FIX 3: Shop details - hide thumbnail nav on mobile, show dots instead */
@media screen and (max-width: 767px) {
  .details_image_wrap .details_image_carousel_nav {
    display: none;
  }
  .details_image_wrap .details_image_carousel {
    width: 100%;
  }
}

/* FIX 4: Cart table - responsive on mobile instead of fixed 800px */
@media screen and (max-width: 767px) {
  .cart_table table {
    width: 100% !important;
    min-width: 0;
  }
  .cart_table {
    overflow-x: auto;
  }
  .cart_table tr {
    flex-wrap: wrap;
  }
  .cart_table th:nth-child(1),
  .cart_table td:nth-child(1) {
    width: 100%;
  }
  .cart_table th:nth-child(2),
  .cart_table th:nth-child(3),
  .cart_table th:nth-child(4),
  .cart_table td:nth-child(2),
  .cart_table td:nth-child(3),
  .cart_table td:nth-child(4) {
    width: 30%;
  }
  .cart_table th:nth-child(5),
  .cart_table td:nth-child(5) {
    width: 10%;
  }
  .cart_table thead {
    display: none;
  }
  .cart_table td:nth-child(1) {
    padding-bottom: 0;
  }
}

/* FIX 5: Feature section - slider on mobile */
@media screen and (max-width: 575px) {
  .feature_slider .slick-slide {
    padding: 0 10px;
  }
  .feature_slider .slick-slide > div,
  .feature_slider .slick-slide > div > [class*="col-"] {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100%;
  }
  .feature_slider .feature_primary,
  .feature_slider .feature_primary p,
  .feature_slider .feature_primary .item_title {
    text-align: center;
  }
  .feature_slider .feature_primary .item_icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .feature_slider .feature_primary .item_icon:before {
    display: none;
  }
  .feature_slider .feature_primary .item_serial {
    display: none;
  }
  .feature_slider .slick-dots {
    bottom: -30px;
    text-align: center;
  }
  .feature_slider .slick-dots li button:before {
    color: var(--calena-orange);
    font-size: 10px;
  }
  .feature_slider .slick-dots li.slick-active button:before {
    color: var(--calena-orange);
  }
  .feature_primary_section {
    padding-bottom: 40px;
  }
}

/* NAV DROPDOWN - submenu */
.main_menu_list li.dropdown {
  position: relative;
}

/* Default (at top): dark to match semi-transparent dark header */
.main_menu_list .submenu {
  display: none;
  position: absolute;
  background: rgba(0, 0, 0, 0.85);
  list-style: none;
  z-index: 9999;
  border-radius: 0 0 6px 6px;
  padding: 8px 0;
  min-width: 200px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.main_menu_list .submenu > li > a {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.75);
  padding: 12px 24px;
}

.main_menu_list .submenu > li:hover > a,
.main_menu_list .submenu > li.active > a {
  color: var(--calena-orange);
  background-color: rgba(255, 255, 255, 0.05);
}

/* Sticky: white header → white dropdown */
.header_section.sticky .main_menu_list .submenu {
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.header_section.sticky .main_menu_list .submenu > li > a {
  color: var(--calena-brown);
}

.header_section.sticky .main_menu_list .submenu > li:hover > a,
.header_section.sticky .main_menu_list .submenu > li.active > a {
  color: var(--calena-orange);
  background-color: rgba(74, 37, 21, 0.04);
}

.main_menu_list li.dropdown:hover > .submenu {
  display: block;
}

/* FIX 6: Featured products - stack price/button on small screens */
@media screen and (max-width: 575px) {
  #featured-products .shop_card .btns_group {
    flex-wrap: wrap;
  }
  #featured-products .shop_card .btns_group .item_price,
  #featured-products .shop_card .btns_group .add-to-cart-btn {
    width: 100%;
    text-align: center;
  }
}

/* Menu item images — constrain to 120x120 so larger JPEGs don't break layout */
.recipe_item .item_image img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  display: block;
}

/* Menu items are not clickable — disable hover image dim */
.recipe_item:hover .item_image img {
  opacity: 1;
  transform: none;
}
.recipe_item:hover .item_title a,
.recipe_item .item_title {
  color: var(--calena-brown);
  cursor: default;
}

/* "from" label on home featured prices */
.item_price .price_from {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--calena-gray-300);
  line-height: 1;
  margin-bottom: 2px;
}

/* Breadcrumb — dark fallback so white text is always readable */
.breadcrumb_section {
  background-color: var(--calena-brown);
}
.breadcrumb_section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(35, 15, 5, 0.55);
  z-index: 0;
}
.breadcrumb_section .container,
.breadcrumb_section .breadcrumb_icon_wrap {
  position: relative;
  z-index: 1;
}

/* Dual-size price variants — toggle style */
.price_variants {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 45px 8px 45px;
  border-left: 2px solid #eceae3;
}

/* Remove redundant border/padding from item_price when nested inside price_variants */
.price_variants .item_price {
  border-left: none;
  padding: 0;
  font-size: 56px;
}

.price_variants .item_price sub {
  font-size: 16px;
}

/* Animated price swap */
.pv_amount {
  display: inline-block;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.pv_amount.swapping {
  opacity: 0;
  transform: translateY(-4px);
}

/* Size toggle buttons */
.pv_toggle {
  display: flex;
  gap: 5px;
}

.pv_btn {
  font-family: "Oswald", sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 4px;
  border: 1.5px solid var(--calena-brown);
  background: transparent;
  color: var(--calena-brown);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  line-height: 1.6;
}

.pv_btn.active {
  background: var(--calena-brown);
  color: #fff;
}

.pv_btn:hover:not(.active) {
  background: rgba(74, 37, 21, 0.08);
}

/* Follow Us block (replaces Friday Offer placeholder) */
.calena-follow-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

.calena-follow-tagline {
  font-size: 13.5px;
  color: var(--calena-text);
  line-height: 1.65;
  max-width: 240px;
  margin: 0 0 28px;
  text-align: left;
}

.calena-social-links {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.calena-social-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--calena-brown);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.calena-social-btn:hover {
  background: var(--calena-orange);
  color: #fff;
  transform: translateY(-2px);
}

.calena-social-handle {
  font-family: "Oswald", sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--calena-brown);
  opacity: 0.7;
  margin: 0;
  text-align: left;
}

/* Footer contact - clean style */
.footer_contact_clean li {
  font-size: 14px;
  line-height: 1.6;
}
/* Tight spacing: name → address */
.footer_contact_clean li:not(:last-child) {
  margin-bottom: 2px !important;
}
/* More breathing room before email and phone */
.footer_contact_clean li:nth-child(3),
.footer_contact_clean li:nth-child(4) {
  margin-top: 10px;
  margin-bottom: 0 !important;
}
.footer_contact_clean li strong {
  font-size: 15px;
  display: block;
}
/* Address link - no bold, no underline */
.footer_contact_clean li:nth-child(2) a {
  color: inherit;
  text-decoration: none;
  font-weight: normal;
}
.footer_contact_clean li:nth-child(2) a:hover {
  color: var(--calena-orange);
}
/* Phone link - bold, no underline */
.footer_contact_clean li:nth-child(4) a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}
.footer_contact_clean li:nth-child(4) a:hover {
  color: var(--calena-orange);
}
