/* ===========================
   Global styles (apply everywhere)
   =========================== */

   
   /* Ensure all images scale down on small screens */
img {
    max-width: 100%;
    height: auto;
}


/* Links */
a:link {
    color: DarkKhaki;
    background-color: transparent;
    text-decoration: none;
}
a:visited { color: #e0e0eb; }
a:hover   { color: red; }
a:active  { color: teal; }

/* Body */
body {
    background-color: #1452B7;
    color: white;
    font-family: "Verdana", sans-serif;
}

/* Menu and text blocks */
.menu { background-color: #1452B7; vertical-align: top; }
.text-table-bordered {
    vertical-align: top;
    text-align: left;
    border: 3px solid white;
    padding: 8px;
}
.text-table { vertical-align: top; text-align: left; padding: 8px; }
.text-table-informational { vertical-align: top; text-align: left; padding: 15px; width:80%; }
.mp-text { text-align: left; }
.image-table { vertical-align: top; text-align: center; padding: 8px;  }
.image-cell { vertical-align: top; text-align: center; padding: 8px;  }
.standard-table {width: 1200px; max-width: 100%; border-spacing: 20px; border: 3px solid white; }






.ordering-table {
	width: 1200px;
	max-width: 100%; 
	border-spacing: 20px; 
	border: 3px solid white;
  border-collapse: collapse;
	 }
.ordering-table th,
.ordering-table td {
  border: 3px solid white;
  /* you can add per-cell padding/margin here */
}	 
.logo-table {width: 1200px; max-width: 100%;}


/* Tables (generic) */
.table-full {
    border: 4px solid white;
    width: 100%;
    background-color: #1452B7;
}
.table-auto {
    border: 4px solid white;
    background-color: #1452B7;
}
.table-800 {
    border: 3px solid white;
    width: 800px;
    background-color: #1452B7;
}

/* Misc utility */
.grommet { background-color: red; }
.small-centered { font-size: small; text-align: center; }
.small { font-size: small; }
p.bold { font-weight: bold; }

/* Index page */
.front-page-category {
    font-weight: bold;
    color: GoldenRod;
    font-size: 1.75em;
}
.front-page-notice {
    font-weight: bold;
    color: GoldenRod;
    font-size: 1em;
}

/* Menu font styling */
.onehalf { font-size: 12px; line-height: .5em; }
.legend {
    font-size: 14px;
    line-height: 1.4em;
    margin-bottom: 10px;
    font-style: italic;
    color: #dddddd;
}
.legend-line {
    border: 0;
    border-top: 1px solid #999;
    margin: 10px 0;
}
.menu-header {
    font-size: 15px;
    font-weight: bold;
    margin: 12px 0 6px;
    color: #ffffff;
    border-bottom: 1px solid #ffffff;
    padding-bottom: 6px;
}
.menu-footer {
    font-size: 18px;
    font-weight: bold;
    margin: 14px 0 6px;
    color: #ffffff;
    padding-bottom: 2px;
}

/* Shared image/price formatting */
.product-image { text-align: center; margin-bottom: 1em; }
.product-image img { max-width: 100%; height: auto; }
.price-rows { margin-top: 0.5em; }


/* ===========================
   Desktop view
   =========================== */
.desktop-view {
    display: block;
}
.mobile-view {
    display: none;
}

/* ===========================
   Mobile view (accordion)
   =========================== */
.mobile-view .accordion {
    border: 1px solid #555;
    border-radius: 6px;
    overflow: hidden;
    max-width: 500px;
    margin: 0 auto;
}
.mobile-view .accordion-header {
    background: #444;
    padding: 10px;
    cursor: pointer;
    font-weight: bold;
}
.mobile-view .accordion-header:hover { background: #666; }
.mobile-view .accordion-content {
    display: none;
    background: #333;
    padding: 15px;
    width: 90%;
    max-width: 400px;
    margin: 0 auto;
    box-sizing: border-box;
}
.mobile-view .accordion-content img {
    max-width: 120px;
    margin-left: 15px;
    border: 1px solid #555;
}
.mobile-view .price-row { margin-bottom: 10px; }
.mobile-view input[type="text"] {
    width: 3em;
    padding: 2px;
    text-align: center;
}
.mobile-view button {
    margin-top: 10px;
    padding: 6px 12px;
    background: #06c;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.mobile-view button:hover { background: #09f; }

/* ===========================
   Responsive switching
   =========================== */
/*@media (max-width: 768px) {
  .desktop-view { display: none; }
  .mobile-view  { display: block; }
}*/

@media (max-width: 768px) {
  /* Only hide desktop-view if we are NOT explicitly forcing desktop */
  body:not(.force-desktop) .desktop-view {
    display: none;
  }

  /* Mobile content should be visible on small screens */
  .mobile-view {
    display: block;
  }
}



/* New Menu */
.menu-finishes p {
  font-size: 1.1em;   /* legend a little bigger */
  margin: 2px 0;
}

.menu-header {
  display: block;
  width: 100%;
  text-align: left;
  font-size: 1.2em;
  font-weight: bold;
  background: #8cb3f2;
  color: #1452B7;
  border: none;
  padding: 6px;
  cursor: pointer;
  margin-top: 8px;
}

.menu-sub {
  display: none;           /* hidden until clicked */
  margin-left: 10px;
  padding-left: 5px;
  border-left: 2px solid #666;
}

.menu-sub a {
  display: block;
  padding: 3px 0;
  text-decoration: none;
  color: #eee;
}

.menu-sub a:hover {
  color: red;
}

.menu-instructions {
  font-size: .9em;
  text-align: center;
}

/* Toggle View for 2-form layout (desktop-form & mobile-form) */

/* Default: show desktop form, hide mobile form */
.desktop-form {
  display: block;
}
.mobile-form {
  display: none;
}

/* Force MOBILE via button, regardless of screen size */
body.force-mobile .desktop-form {
  display: none !important;
}
body.force-mobile .mobile-form {
  display: block !important;
}

/* Force DESKTOP via button, regardless of screen size */
body.force-desktop .desktop-form {
  display: block !important;
}
body.force-desktop .mobile-form {
  display: none !important;
}

/* On small screens, default to mobile unless we explicitly force desktop */
@media (max-width: 768px) {
  body:not(.force-desktop) .desktop-form {
    display: none;
  }
  body:not(.force-desktop) .mobile-form {
    display: block;
  }
}

/* Toggle button styling (same as before, but proper CSS now) */

.view-toggle {
  background: #06c;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 6px 10px;
  margin: 10px 0;
  cursor: pointer;
  font-size: 0.9em;
}
.view-toggle:hover {
  background: #09f;
}


/* Added 11/19  */

/* When forcing mobile, show the mobile-view content too */
body.force-mobile .mobile-view {
  display: block !important;
}

/* When forcing desktop, hide mobile-view content */
body.force-desktop .mobile-view {
  display: none !important;
}

/* Added 10/30/25  */

/* Outer condensed tables: behave like the old 1200px layouts */
table.condensed-table {
  width: 1200px;           /* max desktop width, like standard-table/logo-table */
  max-width: 100%;         /* still shrink nicely on smaller screens */
  border-collapse: collapse;
  border: 3px solid #fff;
  table-layout: auto;
  margin: 0 auto;          /* center the table on the page */
}

/* Inner item list grids can still be full-width inside their cell */
table.condensed-table.item-list {
  width: 100%;
  max-width: 100%;
}

/* Cells: center content and show borders */
table.condensed-table th,
table.condensed-table td {
  border: 3px solid #fff;
  text-align: center;          /* centers text and inline elements */
  vertical-align: middle;
  padding: .5rem;
  word-break: normal;          /* adjust if you have super-long strings */
}

/* Make images and iframes fluid */
table.condensed-table img {
  max-width: 100%;
  height: auto;
  display: block;              /* avoids descender gaps; optional */
  margin: 0 auto;              /* horizontally center block images */
}

td.menu iframe#side-menu {
  width: 100%;
  height: 100%;
  min-height: 800px;           /* adjust to taste */
  border: 0;
}

/* Mobile adjustments Commented out - I do not want this
@media (max-width: 700px) {
  /* Stack the two main columns (menu and content) vertically 
  table.condensed-table > tbody > tr > td {
    display: block;
    width: 100% !important;
  }
*/
  /* Optional: slightly smaller cell padding on narrow screens */
  table.condensed-table th,
  table.condensed-table td {
    padding: .4rem;
  }
}

/* OUTER two-column row (menu + content) */
table.condensed-table > tbody > tr > td { vertical-align: top; }
td.menu iframe { display:block; }

/* ITEMS table: collapsed borders */
table.condensed-table.item-list {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  /* keep or remove outer frame: */
  border: 3px solid #fff;
}

table.condensed-table.item-list th,
table.condensed-table.item-list td {
  border: 3px solid #fff;
  text-align: center;
  vertical-align: middle; /* or top if you prefer */
  padding: .5rem;
  word-break: normal;
}

/* Force top alignment for BOTH cells in the outer two-column table */
table.condensed-table > tbody > tr > td {
  vertical-align: top;
}

/* Make the iframe a block so it doesn’t baseline-align */
td.menu iframe {
  display: block;
}

/* Optional: zero any accidental top padding/margin on the menu cell */
td.menu { padding-top: 0; }


/* New addition for index.htm */

/* -- index-only helpers -- */
.page { max-width: 1200px; margin: 0 auto; }

/* Keep index layout at desktop width like the product pages */
table.outer-two-col {
  table-layout: fixed;
  width: 1200px;       /* match standard-table and avoid ultra-wide */
  max-width: 100%;     /* shrink nicely on smaller screens */
  border-collapse: collapse;
  border-spacing: 0;
  border: 3px solid #fff;
}
table.outer-two-col > tbody > tr > td { vertical-align: top; }

/* Left menu ~34%, right content ~66% on desktop */
table.outer-two-col td.menu { width: 34%; }
table.outer-two-col td:not(.menu) { width: 66%; }

/* Make the index menu iframe responsive */
#side-menu {
  display: block;
  width: 100%;
  height: 80vh;        /* fills most of the viewport height */
  min-height: 600px;   /* keep it useful on short screens */
  border: 0;
}

/* Inner showcase grid: collapse borders + full width */
table#home-grid {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  border: 3px solid #fff;     /* outer frame for the grid */
}
table#home-grid th,
table#home-grid td {
  border: 3px solid #fff;     /* cell borders */
  padding: .5rem;
  text-align: center;
  vertical-align: middle;
}

/* Images are already max-width:100% globally; nothing else needed */

@media (max-width: 700px) {
  table.outer-two-col td.menu { width: 40%; }  /* or 45% */
  table.outer-two-col td:not(.menu) { width: 60%; }
}

@media (min-width: 768px) {
  .mobile-form { display: none; }
}
@media (max-width: 767px) {
  .desktop-form { display: none; }
}

/* For all the informative pages */

.info-header-table {
  width: 100%;
  margin: 0 auto 20px auto;
}

.info-header-table h1 {
  margin: 0;
  font-size: 30px;
  font-weight: bold;
  text-align: center;
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}

/* Info content tables */

.info-table {
  width: auto;
  max-width: 1000px;
  table-layout: auto;
  margin: 0 auto 20px auto;
}

.info-image {
  width: 200px;
  vertical-align: top;
  padding-right: 12px;
}

.info-image img {
  max-width: 192px;
  height: auto;
}

.info-text {
  vertical-align: top;
  text-align: left;
  max-width: 720px;
}

/* Category headings (Heel Bar Buckles, Center Bar Buckles, etc) */

.info-text h2 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 28px;
  font-weight: bold;
  text-align: center;
}

/* Specific buckle types (Heel Bar Roller Buckles, etc) */

.info-text h3 {
  margin-top: 0;
  margin-bottom: 6px;
  font-size: 22px;
  font-weight: bold;
  text-align: center;
}

/* Mobile adjustments */

@media screen and (max-width: 700px) {

  .info-image {
    width: 150px;
    padding-right: 10px;
  }

  .info-image img {
    max-width: 140px;
  }

  .info-text h2 {
    font-size: 22px;
    line-height: 1.15;
    text-align: left;
  }

  .info-text h3 {
    font-size: 18px;
    line-height: 1.15;
    text-align: left;
  }

  .info-header-table h1 {
    font-size: 24px;
    line-height: 1.15;
  }

}
.image-caption {
  font-size: 14px;
  margin-top: 4px;
  margin-bottom: 10px;
  line-height: 1.2;
}

.image-caption {
  max-width: 192px;
}


/* Video page */

<style>
.tool-video-block {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 30px;
}

.video-thumb {
  width: 180px;
  height: auto;
  border: 1px solid #999;
  cursor: pointer;
  display: block;
}

.video-text {
  flex: 1;
  min-width: 0;
}

.video-text h2 {
  margin: 0;
  font-size: 25px;
  font-weight: bold;
  text-align: center;
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}

.video-text h1 {
  margin: 0;
  font-size: 30px;
  font-weight: bold;
  text-align: center;
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}

.video-prompt {
  width: 200px;
  vertical-align: top;
  padding-right: 12px;
  text-align: center;
}


.video-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,.75);
}

.video-modal-content {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 16px;
  box-sizing: border-box;
  width: 680px;
  max-width: 95%;
  border: 1px solid #666;
}

.video-modal-inner {
  text-align: center;
}

.video-modal-title {
  margin-top: 10px;
  font-weight: bold;
  font-size: 16px;
}

.video-modal-close {
  position: absolute;
  top: 6px;
  right: 10px;
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #fff;              /* <-- makes the X white */
  opacity: 0.9;
}

#popupVideo {
  max-width: 100%;
  height: auto;
}
</style>