/* =========================================
   Global Variables & Reset
   ========================================= */
:root {
    --pragma-orange: #d97d26;
    --pragma-orange-light: #e69138;
    --pragma-orange-dark: #bf681c;
    --pragma-gray: #4a4a4a;
    --pragma-dark-gray: #333333;
    --pragma-light-gray: #f2f2f2;
    --pragma-border: #dddddd;
    --white: #ffffff;
    --black: #000000;
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: var(--pragma-gray);
    line-height: 1.6;
    background-color: var(--pragma-light-gray);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* =========================================
   Layout
   ========================================= */
.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding-right: 15px;
    padding-left: 15px;
}

.row {
    margin-right: -15px;
    margin-left: -15px;
}
.row:before, .row:after {
    display: table;
    content: " ";
}
.row:after {
    clear: both;
}

/* Base columns */
[class*="col-"] {
    position: relative;
    min-height: 1px;
    padding-right: 15px;
    padding-left: 15px;
}

@media (min-width: 768px) {
    .container { max-width: 750px; }
}

@media (min-width: 992px) {
    .container { max-width: 970px; }
    .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12 {
        float: left;
    }
    .col-md-1 { width: 8.333333%; }
    .col-md-2 { width: 16.666667%; }
    .col-md-3 { width: 25%; }
    .col-md-4 { width: 33.333333%; }
    .col-md-5 { width: 41.666667%; }
    .col-md-6 { width: 50%; }
    .col-md-7 { width: 58.333333%; }
    .col-md-8 { width: 66.666667%; }
    .col-md-9 { width: 75%; }
    .col-md-10 { width: 83.333333%; }
    .col-md-11 { width: 91.666667%; }
    .col-md-12 { width: 100%; }
}

@media (min-width: 1200px) {
    .container { max-width: 1140px; }
}

/* =========================================
   Typography
   ========================================= */
h1 {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--white);
    margin-bottom: 1.5rem;
}

/* =========================================
   Forms & Buttons
   ========================================= */
.form-group {
    margin-bottom: 15px;
}

label {
    display: inline-block;
    max-width: 100%;
    margin-bottom: 5px;
    font-weight: 700;
}

.form-control {
    display: block;
    width: 100%;
    height: 38px;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.42857143;
    color: #555;
    background-color: #fff;
    background-image: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    margin-bottom: 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.42857143;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    background-image: none;
    border: 1px solid transparent;
    border-radius: 4px;
}

.btn-primary {
    color: #fff;
    background-color: var(--pragma-orange-light, #ed6d00);
    border-color: var(--pragma-orange-dark, #d66200);
}

.btn-primary:hover {
    background-color: var(--pragma-orange-dark, #d66200);
    color: #fff;
}

.btn-ar {
    border-radius: 0;
}

.center-block {
    display: block;
    margin-right: auto;
    margin-left: auto;
}

/* =========================================
   Page Header Banners
   ========================================= */
.page-main-header,
.product-main-header,
.main-header,
.main-header.main-header-inverse {
    background-color: var(--pragma-orange, #ea4b24) !important;
    border-bottom: none !important;
    padding: 15px 0 !important;
    margin-top: 0 !important;
}

.page-main-header .page-title,
.product-main-header .product-page-title,
.main-header .page-title,
.page-main-header h1,
.product-main-header h1,
.main-header h1 {
    color: #fff !important;
    margin: 0 !important;
}

.page-main-header span,
.product-main-header span,
.main-header span,
.main-header .breadcrumb,
.main-header .breadcrumb li,
.main-header .breadcrumb li a,
.main-header .breadcrumb li i,
.main-header .breadcrumb .active {
    color: rgba(255, 255, 255, 0.9) !important;
}
.main-header .breadcrumb .active {
    font-weight: bold;
    color: #fff !important;
}

/* =========================================
   Navbar
   ========================================= */
.navbar {
    background-color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    height: 80px;
    display: flex;
    align-items: center;
}

.nav-container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links li a {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--black);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: var(--pragma-orange);
}

/* Dropdown styling */
.dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%; /* Position right below the link */
    left: 0;
    background-color: var(--white);
    min-width: 260px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    z-index: 1000;
    border-top: 3px solid var(--pragma-orange);
    padding: 0.5rem 0;
}

.dropdown-content a {
    color: var(--pragma-dark-gray);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
    transition: background-color 0.2s;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
    color: var(--pragma-orange);
}

.dropdown:hover .dropdown-content {
    display: block; /* Show menu on hover */
}

.dropdown-arrow {
    font-size: 0.6rem;
    color: #666;
    margin-left: 2px;
}

.nav-actions {
    display: flex;
    align-items: center;
    height: 80px;
}

.cart-btn, .hamburger {
    background-color: var(--pragma-gray);
    color: var(--white);
    border: none;
    width: 60px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cart-btn:hover, .hamburger:hover {
    background-color: var(--pragma-dark-gray);
}

.hamburger {
    background-color: #555;
    flex-direction: column;
    gap: 6px;
}

.hamburger:hover {
    background-color: #444;
}

.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background-color: var(--white);
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    background-color: #e97900;
    background-color: rgba(182, 95, 0, 0.75);
    position: relative;
    padding: 2rem;
    min-height: 400px;
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/img/hero_pattern.png');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: 1;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
    gap: 2rem;
}

.hero-content {
    flex: 1;
}

.hero-features li {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.check-icon {
    font-size: 1.2rem;
    -webkit-text-stroke: 1px white;
}

.hero-image {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 100%;
    max-width: 500px;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 400px; /* Fixed height for the slider */
    overflow: hidden;
    background-color: transparent;
}

.slide {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 100%; /* Start off-screen to the right */
    width: 100%;
    max-height: 100%;
    object-fit: contain;
    background-color: transparent;
    transition: left 0.5s ease-in-out;
}

.slide.active {
    left: 0; /* Bring into view */
}

.slide.prev {
    left: -100%; /* Move off-screen to the left */
}

.carousel-dots {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    cursor: pointer;
    border: 1px solid transparent;
}

.dot.active {
    background-color: transparent;
    border-color: var(--white);
}

/* =========================================
   Footer
   ========================================= */
footer {
    background-color: var(--pragma-gray);
    color: var(--white);
    padding: 2rem 0 0 0;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    border-bottom: 1px solid #555;
}

.footer-bottom-flex {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
}

.footer-links {
    display: flex;
    gap: 2.5rem;
}

.footer-links a {
    font-size: 0.95rem;
    color: #f2f2f2;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--pragma-orange);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 25px;
    height: 25px;
    background-color: #f2f2f2;
    color: var(--pragma-dark-gray);
    border-radius: 4px;
    transition: all 0.3s;
}

.social-icons a:hover {
    background-color: var(--pragma-orange);
    color: #fff;
}

.footer-bottom {
    background-color: var(--pragma-dark-gray);
    text-align: center;
    padding: 1.5rem;
    font-size: 0.85rem;
    color: #ccc;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

#scrollToTop {
    position: absolute;
    right: 40px;
    bottom: 0;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: #333;
    color: var(--white);
    border: none;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
}

#scrollToTop:hover {
    background-color: var(--pragma-orange);
}

/* =========================================
   Animations
   ========================================= */
.animate-fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
    .hero-container {
        flex-direction: column;
    }
    .nav-links {
        display: none; /* Add mobile menu later */
    }
}

/* Legacy Pricing Box Styles for Buy Pages */
.pricing-box {
  border: solid 1px #ddd;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  margin-bottom: 30px;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.pricing-box h4.pricing-box-header {
  color: #fff;
  background-color: var(--pragma-orange, #ea4b24);
  padding: 15px 20px;
  margin: 0;
  font-size: 1.25em;
  font-weight: 600;
}
.pricing-box-content {
  padding: 20px;
}
.pricing-box label {
  font-weight: 600;
  margin-bottom: 5px;
  display: block;
}
.pricing-box input[type="text"], .pricing-box select, .pricing-box input {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.pricing-box .row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -10px;
  margin-left: -10px;
  align-items: center;
  margin-bottom: 15px;
}
.pricing-box .row > div {
  padding-right: 10px;
  padding-left: 10px;
  box-sizing: border-box;
}
.col-md-2 { flex: 0 0 16.666%; max-width: 16.666%; }
.col-md-3 { flex: 0 0 25%; max-width: 25%; width: 25%; }
.col-md-4 { flex: 0 0 33.333%; max-width: 33.333%; width: 33.333%; }
.col-md-5 { flex: 0 0 41.666%; max-width: 41.666%; width: 41.666%; }
.col-md-6 { flex: 0 0 50%; max-width: 50%; width: 50%; }
.col-md-7 { flex: 0 0 58.333%; max-width: 58.333%; width: 58.333%; }
.col-md-8 { flex: 0 0 66.666%; max-width: 66.666%; width: 66.666%; }
.col-md-9 { flex: 0 0 75%; max-width: 75%; width: 75%; }
.col-md-10 { flex: 0 0 83.333%; max-width: 83.333%; width: 83.333%; }
.col-md-12 { flex: 0 0 100%; max-width: 100%; width: 100%; }

@media (max-width: 768px) {
  .pricing-box .col-md-2, .pricing-box .col-md-3, .pricing-box .col-md-4, 
  .pricing-box .col-md-5, .pricing-box .col-md-6, .pricing-box .col-md-7,
  .pricing-box .col-md-8, .pricing-box .col-md-9, .pricing-box .col-md-10, 
  .pricing-box .col-md-12 {
     flex: 0 0 100%; max-width: 100%; width: 100%;
     margin-bottom: 15px;
  }
}

.form-group { margin-bottom: 15px; }
.form-inline { display: flex; align-items: center; gap: 5px; }
.btn-shopping-cart {
  background-color: var(--pragma-orange, #ea4b24);
  color: white;
  border-radius: 4px;
  padding: 10px 15px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
}
.btn-shopping-cart:hover {
  background-color: #d13d19;
}
.note { font-size: 0.85em; color: #666; margin-top: 5px; }
.vertical-padding-20 { padding-top: 20px; padding-bottom: 20px; }
.bottom-right { text-align: right; }
.no-left-margin { margin-left: 0; }
.no-padding { padding: 0; }

/* Breadcrumbs & Header Fix */
.breadcrumb {
  list-style: none;
  background-color: transparent;
  padding: 8px 15px;
  margin-bottom: 0px !important;
  border-radius: 4px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.breadcrumb > li { display: inline-block; }
.breadcrumb > li + li:before {
  content: "/\00a0";
  padding: 0 5px;
  color: #ccc;
}
.breadcrumb .active { font-weight: bold; }
ul.breadcrumb, ol.breadcrumb { margin: 0; padding: 0; }
.pull-right { float: right; }
.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.main-header .container::before, 
.main-header .container::after {
  display: none !important;
}
@media (max-width: 768px) {
  .main-header .container {
    flex-direction: column;
    align-items: flex-start;
  }
}
.main-header a { text-decoration: underline; color: #fff; }

.btn-shopping-cart, .btn-primary, .btn-info {
  white-space: nowrap;
}

.btn-info {
  background-color: #5bc0de !important;
  color: #fff !important;
  border-color: #46b8da !important;
  border-radius: 4px !important;
  padding: 8px 16px !important;
  border: 1px solid #46b8da !important;
  text-decoration: none !important;
}
.btn-info:hover {
  background-color: #31b0d5 !important;
  border-color: #269abc !important;
  color: #fff !important;
  text-decoration: none !important;
}

/* Fix popovers / hidden elements */
.hidden { display: none !important; }
dl.dl-horizontal dt { font-weight: bold; margin-top: 10px; }
dl.dl-horizontal dd { margin-bottom: 5px; }

/* Jump To Links */
.col-md-3 a[href^="#"] {
  color: var(--pragma-orange, #ea4b24) !important;
  font-weight: 600;
  text-decoration: underline !important;
}
.col-md-3 a[href^="#"]:hover {
  text-decoration: none !important;
  filter: brightness(0.8);
}

/* Button sizing fixes */
.btn-shopping-cart, .btn-primary {
  width: auto !important;
  min-width: 100% !important;
}
.col-md-2 {
  min-width: 155px !important;
}

/* Explicit style for summary popover btn */
details > summary.btn-info {
  background-color: #e3f2fd !important;
  color: #0277bd !important;
  border-color: #bbdefb !important;
  font-weight: 600 !important;
}
details > summary.btn-info:hover {
  background-color: #bbdefb !important;
  color: #01579b !important;
}

/* Email Links styling for buy pages */
.col-md-6 a[href^="mailto:"] {
  color: var(--pragma-orange, #ea4b24) !important;
  text-decoration: none !important;
  font-weight: 600;
  transition: color 0.2s ease;
}
.col-md-6 a[href^="mailto:"]:hover {
  color: #d13d19 !important;
  text-decoration: underline !important;
}
