/* CSS Document */

/* =============================================
   ProteinLab Complete Mobile CSS Enhancements (Updated)
   Full consolidated custom CSS for /templates/proteinlab/style/custom.css
   NEW: Reduced empty space in mobile header (topnav, logo padding, tighter layout)
   Includes all previous improvements
   ============================================= */

/* General mobile improvements (=767px) */
@media (max-width: 767px) {
    .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Section spacing */
    #showcaseslide,
    #content,
    #abovecrumbs,
    #abovefooter {
        padding: 20px 0;
    }

    /* Featured products spacing */
    .product-layout {
        margin-bottom: 30px;
    }

    /* Center logo on mobile */
    .logosection {
        text-align: center;
        margin-bottom: 15px;
    }

    /* Larger touch targets */
    .btn,
    .button-group button {
        padding: 12px 16px;
        font-size: 16px;
        min-height: 48px;
    }

    /* Ensure images scale properly */
    .product-thumb .image img {
        width: 100%;
        height: auto;
    }

    /* Product caption padding */
    .product-thumb .caption {
        padding: 15px;
    }

    /* Button group layout on mobile */
    .button-group {
        display: flex;
        justify-content: space-around;
    }

    .button-group button {
        flex: 1;
        margin: 0 5px;
    }
}

/* Extra small screens (=480px) – improved readability */
@media (max-width: 480px) {
    body {
        font-size: 16px;
    }

    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 24px;
    }

    h3,
    .product-thumb h4 {
        font-size: 18px;
    }

    .caption p {
        font-size: 14px;
    }

    .price {
        font-size: 20px;
    }

    /* Slider text adjustments */
    .slide-title h2 {
        font-size: 24px;
    }

    .slide-description p {
        font-size: 14px;
    }

    .slide-btn {
        padding: 10px 20px;
        font-size: 16px;
    }
}

/* Mega Menu general improvements on mobile (<992px) */
@media (max-width: 991px) {
    .mod_jux_megamenu .megamenu-wrapper ul.level0 li.megacss > a {
        font-size: 18px;
        padding: 15px 20px;
        text-align: left;
    }

    .mod_jux_megamenu .childcontent-inner {
        padding: 10px;
    }

    .mod_jux_megamenu ul.level1 li a {
        font-size: 16px;
        padding: 12px 20px;
    }

    .mod_jux_megamenu ul.level0 > li > a {
        padding-top: 15px !important;
        padding-bottom: 15px !important;
    }
}

/* Mobile Menu: Move dropdown arrow inward */
@media (max-width: 991px) {
    .mod_jux_megamenu .jux-fa-angle-down,
    .mod_jux_megamenu .jux-fa-angle-up {
        position: absolute;
        right: 20px;
        left: auto;
        top: 50%;
        transform: translateY(-50%);
        font-size: 20px;
        pointer-events: none;
    }

    .mod_jux_megamenu ul.level0 > li.haschild > a {
        position: relative;
        padding-right: 60px !important;
    }
}

@media (max-width: 480px) {
    .mod_jux_megamenu .jux-fa-angle-down,
    .mod_jux_megamenu .jux-fa-angle-up {
        right: 15px;
        font-size: 18px;
    }

    .mod_jux_megamenu ul.level0 > li.haschild > a {
        padding-right: 50px !important;
    }
}

/* Slider height refinement */
@media (max-width: 768px) {
    #jux_image_slider113 {
        height: 300px !important;
    }
}

@media (max-width: 480px) {
    #jux_image_slider113 {
        height: 250px !important;
    }

    .slide-inner .content-inner {
        padding: 20px;
    }
}

/* Mobile Header: Tighten spacing, reduce empty space around cart and logo */
@media (max-width: 991px) {
    /* Solid black background */
    #headerwrapper {
        background-color: #000000 !important;
        background-image: none !important;
    }

    #headerwrapper .container-fluid,
    #headerwrapper .row-fluid {
        background-color: #000000;
    }

    /* Reduce overall header height and remove excess vertical space */
    #headerwrapper .row-fluid {
        margin-top: 0;
        margin-bottom: 0;
        padding-top: 5px;
        padding-bottom: 5px;
    }

    /* Tighten top nav (cart area) – much less vertical space */
    #topnav {
        min-height: auto;
    }

    #topnav .container-fluid {
        padding: 6px 15px !important;   /* Reduced from 10px */
    }

    /* Reduce cart button padding and font size slightly */
    #cart .btn-inverse-oc {
        padding: 6px 10px;
        font-size: 14px;
    }

    #cart .btn-inverse-oc i {
        font-size: 16px;
    }

    /* Smaller, centered logo with much less padding */
    .logosection .logoleft {
        max-width: 260px;               /* Slightly smaller than before */
        width: 100%;
        height: auto !important;
        display: block;
        margin: 0 auto;
        padding: 12px 0 !important;     /* Reduced from 20px ? much tighter */
    }

    /* Ensure cart text/icons visible on black */
    #cart .btn-inverse-oc,
    #cart .btn-inverse-oc i,
    #cart .btn-inverse-oc span {
        /*color: #ffffff !important;*/
    }
}

/* Extra small phones – even tighter */
@media (max-width: 480px) {
    .logosection .logoleft {
        max-width: 220px;
        padding: 10px 0 !important;
    }

    #topnav .container-fluid {
        padding: 5px 15px !important;
    }

    #cart .btn-inverse-oc {
        font-size: 13px;
        padding: 5px 8px;
    }
}

/* =============================================
   Top Navigation Cart – FORCE Right Alignment (Robust Fix)
   Add this section to the bottom of your custom.css
   This overrides any conflicting Bootstrap/OpenCart styles
   ============================================= */

/* Make the topnav row a flex container and push everything to the right */
#topnav .row-fluid {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center;
    width: 100%;
}

/* The span12 is full-width – make sure it also uses flex */
#topnav .span12 {
    display: flex !important;
    justify-content: flex-end !important;
    width: 100%;
    margin-left: 0 !important;
}

/* Push the cart module itself to the far right */
#topnav .moduletable.TopNavCart,
#topnav .body-oc,
#topnav #cart {
    margin-left: auto !important;   /* This is the key – pushes to right in flex */
    text-align: right;
}

/* Remove full-width stretching from the cart button */
#topnav #cart .btn-block,
#topnav #cart .btn,
#topnav #cart .dropdown-toggle {
    display: inline-block !important;
    width: auto !important;
    float: none !important;
}

/* Add a little breathing room on the right edge */
#topnav #cart {
    padding-right: 15px;
}

/* Ensure it works the same on mobile */
@media (max-width: 991px) {
    #topnav .row-fluid,
    #topnav .span12 {
        justify-content: flex-end !important;
    }

    #topnav #cart {
        padding-right: 10px;
    }
}

/* Final fallback – extreme override if something else is forcing left */
#topnav .moduletable.TopNavCart {
    float: none !important;
    clear: none !important;
}

@media (min-width: 768px) and (max-width: 979px) {

		#headerwrapper { background-color:#000; border-bottom:1px solid #333; background-image:url('../images/header_bg.jpg'); background-repeat:repeat-x; padding-bottom:3px;}
	}

@media (min-width: 1200px) {
	
		#headerwrapper { background-color:#000; border-bottom:1px solid #333; background-image:url('../images/header_bg.jpg'); background-repeat:repeat-x; padding-bottom:3px;}
			}

/* ===============================
Mast Head
=============================== */

#topnav {background-color:#fafafa; color: #000 !important;}
#topnav p { font-family: 'Raleway', sans-serif; font-size:14px; margin:0; padding:0;}

.TopNavCart {color: #000 !important;}
.btn {color: #000 !important;}

#topnav .btn {margin: 0; padding: 3px; border: none !important; background-color: transparent !important; background-image: none !important; }
#topnav .btn a:hover { background-color: #000;}

.logosection {padding:0px; margin:0px;}
.topstuff {padding-bottom:5px;}
.search {margin-top:-2px; margin-bottom:-2px;}


.navbar-inner {margin-top:52px;}

/* ===============================
Main Banners
=============================== */

#fullwidth {border-top:1px solid #ddd; border-bottom:1px solid #999; background-color:#c2cbd0; }
#showcaseslide {padding:10px 0 10px 0; border-bottom:2px solid #ddd; background-image:url('../images/background.jpg');}

.insist {margin-bottom:10px; margin-top:15px; padding:10px; font-size:medium; font-family: 'Top Secret Stamp','Raleway', sans-serif;
    font-weight: normal;
    font-style: normal;}
#breadcrumbs { margin-top:0px;}

/* ===============================
Back To top.
=============================== */

.back-to-top {font-size: 34px; color: #222; opacity: 0.6; position: fixed; right: 20px; bottom: 20px; text-decoration: none; transition: opacity 0.15s linear 0s; text-shadow: 0px 0px 4px #FFF; background: url('../images/top.png') no-repeat scroll 0% 0% transparent; width: 79px; height: 90px; z-index: 9675309; }
span.b2t { font-size:11px !important; text-align:center; color: #222; opacity: 0.6; position: fixed; right: 20px; bottom: 20px; text-decoration: none; transition: opacity 0.15s linear 0s; text-shadow: 0px 0px 4px #FFF;width: 79px; height: 90px; z-index: 9675309;}
.back-to-top:active { opacity: 0.9;    }

.back-to-top:hover {    
	opacity: 1;
/*    background-color: rgba(135, 135, 135, 0.50);
	background-image:url('../images/top.png'); background-repeat:no-repeat;*/}

.image {padding: 5px;}

/* ===============================
Main Section
============================== */

.page-header {
  margin: 0 !important;
  padding: 0 !important;
}

#main a {color: #000 !important;}
#main a:hover {color:saddlebrown !important;}

body #top-links ul.dropdown-menu > li > a {
  color: #fff !important;
}
#abovecrumbs {    
	background: none repeat scroll 0 0 #FFFFFF;
	border:1px solid #ccc;
	border-radius:4px;
	padding:10px 10px 0 10px ;
  margin-bottom: 15px;
    }

#abovecrumbs a {color: #000 !important;}
#abovecrumbs a:hover {color:saddlebrown !important;}

#abovecrumbs h3 {margin: 3px 0 10px 0; padding: 5px 5px; display: block; border:1px solid #ccc;}
	
#abovefooter {    
	background: none repeat scroll 0 0 #FFFFFF;
	border:1px solid #ccc;
	border-radius:4px;
	padding:10px 10px 0 10px ;
    }
#abovefooter h5 {font-weight: bold; display: block; color: black; border-bottom: 1px black dashed;}
#abovefooter li a { display: block; padding: 3px; border-bottom: 1px black dashed; color: black !important; text-align: left;}
#abovefooter a:hover { padding-left: 0; color: saddlebrown !important;}
#abovefooter li { display: block; list-style: none; padding: 0; margin: 0; text-align: left;}
#abovefooter ul {margin-left: 0px !important;}

	#footer {    
	background:#000;
	border-top:1px solid #ccc;
	border-top-left-radius: 4PX;
	border-top-right-radius: 4PX;
	padding:5px 0px;
	margin-top: 10px;
	color: #FFF !important;
	text-align: center;
	font-size: xx-small;
    }

#footer a {color: #FFF !important;}

/* Blog post layout for Joomla articles */

.com-content-category-blog__item.blog-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 3rem;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 2rem;
}

/* Left-aligned image */
.blog-item figure.left.item-image {
  flex-shrink: 0;
  margin: 0;
}

.blog-item figure.left.item-image img {
  width: 300px;
  height: auto;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #ccc;
}

/* Content block */
.blog-item .item-content {
  flex: 1;
  font-family: "Open Sans", sans-serif;
  color: #222;
  font-size: 1rem;
  line-height: 1.6;
}

.blog-item .page-header h2 {
  font-size: 1.5rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.blog-item .page-header a {
  text-decoration: none;
  color: #006699;
  transition: color 0.3s;
}

.blog-item .page-header a:hover {
  color: #444;
}

.blog-item .readmore a.btn {
  margin-top: 1rem;
  display: inline-block;
  font-size: 0.9rem;
  padding: 0.4rem 1rem;
  border-radius: 4px;
  background-color: #ccc;
  color: #222;
  border: 1px solid #999;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
}

.blog-item .readmore a.btn:hover {
  background-color: #f5f5f5;
  color: #000;
}

/* Responsive layout for mobile */
@media screen and (max-width: 768px) {
  .com-content-category-blog__item.blog-item {
    flex-direction: column;
  }

  .blog-item figure.left.item-image img {
    width: 100%;
    height: auto;
    max-height: 300px;
  }
}


/* Refined Blog Page Main Heading Styling */

.com-content-category-blog.blog h1 {
  font-size: 2.25rem !important;
  font-weight: 400 !important;
  color: #000 !important;
  text-align: left !important;
  margin: 1.5rem 0 2.5rem 0.67rem !important;
  padding: 10px 20px !important;
  letter-spacing: 0.5px !important;
  font-family: "Roboto", sans-serif !important;
  text-transform: none !important;
  background: linear-gradient(to right, #f2f2f2, #fff) !important;
  border-radius: 4px !important;
  border: 1px solid #f5f5f5 !important; 
}

/*===========================================================*/

/* Fix inconsistent Mega Menu rendering and alignment */

.mod_jux_megamenu .megamenu-wrapper ul.level0 li.megacss {
  margin: 10px 0 0 4px !important; /* Removed right margin, kept left spacing */
  padding: 0 !important;
  display: inline-block !important;
  vertical-align: middle !important;
  height: 100% !important;
  box-sizing: border-box;
}

/* Ensure anchor tags inside menu are consistently styled */
.mod_jux_megamenu .megamenu-wrapper ul.level0 li.megacss > a {
  padding: 15px 15px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  font-size: 1rem !important; /* Increased font size by approx 2px */
  line-height: 1.5em !important;
   text-align: center;
  white-space: nowrap;
  box-sizing: border-box;
}

/* Hover fills full block of main menu */
.mod_jux_megamenu .megamenu-wrapper ul.level0 li.megacss > a:hover {
  border-radius: 0;
  width: 100%;
  display: flex;
}

/* Flex alignment to center vertically with logo */
.mod_jux_megamenu .megamenu-wrapper ul.level0 {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  /*gap: 6px;*/
}

/* Submenu spacing - compact with gap */
.mod_jux_megamenu .megamenu-wrapper ul.level1 li {
  margin-bottom: 2px;
  display: block;
  width: 100%;
}

.mod_jux_megamenu .megamenu-wrapper ul.level1 li a {
  padding: 0px !important; /* Reduced vertical padding */
  display: block;
  width: 100%;
  white-space: nowrap;
  box-sizing: border-box;
}

/* Submenu hover fills full block */
.mod_jux_megamenu .megamenu-wrapper ul.level1 li a:hover {
  background-color: #f0f0f0;
  display: block;
  width: 100%;
}


/* Clean flat grey button for Add to Cart */
#button-cart.btn.btn-primary.btn-primary-oc.btn-lg.btn-block {
  background-color: #888 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

#button-cart.btn:hover {
  background-color: #aaa !important;
}

.body-oc .btn {
  --bs-btn-color: #1c1c1c;                /* Dark text */
  --bs-btn-bg: #e2e2e2;                   /* Light grey base */
  --bs-btn-border-color: #e2e2e2;

  --bs-btn-hover-color: #1c1c1c;          /* Dark text stays on hover */
  --bs-btn-hover-bg: #b0b0b0;             /* Darker grey on hover */
  --bs-btn-hover-border-color: #b0b0b0;

  --bs-btn-active-color: #1c1c1c;
  --bs-btn-active-bg: #b0b0b0;
  --bs-btn-active-border-color: #b0b0b0;

  --bs-btn-disabled-color: #666;
  --bs-btn-disabled-bg: #f0f0f0;
  --bs-btn-disabled-border-color: #f0f0f0;

  --bs-btn-border-radius: 6px;
  --bs-btn-font-weight: 500;
  --bs-btn-focus-shadow-rgb: 176, 176, 176;

  background-color: var(--bs-btn-bg) !important;
  border-color: var(--bs-btn-border-color) !important;
  color: var(--bs-btn-color) !important;
  background-image: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.body-oc .btn:hover,
.body-oc .btn:focus {
  background-color: var(--bs-btn-hover-bg) !important;
  border-color: var(--bs-btn-hover-border-color) !important;
  color: var(--bs-btn-hover-color) !important;
  background-image: none !important;
  box-shadow: none !important;
}



.btn-plain-grey {
  background-color: #888;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  padding: 0.6rem 1rem;
  text-align: center;
  box-shadow: none;
  transition: none;
  text-decoration: none;
}

.btn-plain-grey:hover,
.btn-plain-grey:focus,
.btn-plain-grey:active {
  background-color: #888; /* No hover change */
  color: #ffffff;
  text-decoration: none;
  box-shadow: none;
}

.body-oc .btn-primary,
.body-oc .btn-primary-oc {
  --bs-btn-color: #fff;
  --bs-btn-bg: #b0b0b0;              /* Base light grey */
  --bs-btn-border-color: #b0b0b0;

  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #d0d0d0;        /* Lighter on hover */
  --bs-btn-hover-border-color: #d0d0d0;

  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #d0d0d0;
  --bs-btn-active-border-color: #d0d0d0;

  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #b0b0b0;
  --bs-btn-disabled-border-color: #b0b0b0;

  --bs-btn-focus-shadow-rgb: 192, 192, 192;
  --bs-btn-border-radius: 6px;

  background-image: none !important;
  background-color: var(--bs-btn-bg) !important;
  border-color: var(--bs-btn-border-color) !important;
  color: var(--bs-btn-color) !important;
  box-shadow: none !important;
  text-shadow: none !important;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Explicit hover override (in case base classes interfere) */
.body-oc .btn-primary:hover,
.body-oc .btn-primary-oc:hover {
  background-color: var(--bs-btn-hover-bg) !important;
  border-color: var(--bs-btn-hover-border-color) !important;
  color: var(--bs-btn-hover-color) !important;
}


/*.body-oc {padding-bottom: 10px;}*/

/* Specific refinements per heading level */
#main h1 {
  font-size: 1.75rem;
  font-weight: 700;
  text-transform: uppercase;
  border-bottom: 2px solid #c2a57b; /* muted gold underline */
  padding-bottom: 0.3em;
}

#content-oc h3 
{  font-size: 1.75rem;
  font-weight: 700;
  text-transform: uppercase;
  border-bottom: 2px solid #c2a57b; /* muted gold underline */
  padding-bottom: 0.3em;}
  
.body-oc .btn {
  background-image: none !important;
  background: var(--bs-btn-bg, transparent) !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

#main h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2a2a2a;
}

#main h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #3c3c3c;
}

#main h4 {
  font-size: 1.125rem;
  font-weight: 600;
  font-family: 'Abel', sans-serif;
  color: #555;
}

#main h5 {
  font-size: 1.025rem;
  font-weight: 400;
  font-family: 'Abel', sans-serif;
  color: #777;
}

#main h6 {
  font-size: 1rem;
  font-weight: 400;
  font-family: 'Abel', sans-serif;
  color: #999;
  text-transform: none;
}

/* Main content block */
#tab-description {
  background-color: #ffffff;
  padding: 2rem;
  border: 1px solid #eee;
  border-radius: 8px;
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  color: #2b2b2b;
  line-height: 1.7;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* Headings inside description */
#tab-description h2,
#tab-description h3,
#tab-description h4 {
  font-family: 'Raleway', sans-serif;
  color: #1c1c1c;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

#tab-description h2 {
  font-size: 1.75rem;
  border-bottom: 2px solid #c2a57b;
  padding-bottom: 0.3rem;
}

#tab-description h3 {
  font-size: 1.5rem;
  border-bottom: 1px solid #ddd;
}

#tab-description h4 {
  font-size: 1.25rem;
  color: #555;
}

/* Paragraphs */
#tab-description p {
  margin-bottom: 1.25rem;
}

/* Bullet lists */

/* HARD RESET bullets inside the product description only */
#tab-description ul {
  list-style: disc !important;
  padding-left: 1.5rem !important;
  margin-left: 0 !important;
}

#tab-description ul li {
  display: list-item !important;      /* critical */
  list-style: inherit !important;     /* inherit disc */
}

/* Kill any theme pseudo-bullets that may be interfering */
#tab-description ul li::before,
#tab-description ul li::after {
  content: none !important;
  display: none !important;
}



#tab-description li {
  margin-bottom: 0.5rem;
}

/* Optional: subtle accent */
#tab-description::before {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background-color: #c2a57b;
  margin-bottom: 1.5rem;
}
