/* ========================================
   BEGINING OF ALLOWED CSS STYLES
   ======================================== */
   /* rules
   for any element padding top bottom 10px, right left var(--margin-base)
   */

/* Font size tokens (ordered most used → least used) */
:root{

  --color-primary: #FD6620;    /* `dg` brand orange */
  --color-accent-dark: #e55a1c; /* brand orange dark for hover */
  --color-accent-light: #ffbb8d; /* brand orange light for hover */
  
  --color-white: #ffffff;
  --color-background: #FAFAFA;
  --color-disabled: #f5f5f5;

  --color-ok-green: #4CAF50;
  --color-danger: #ff4444;
  --color-warning: #ffc107;
  --color-info: #17a2b8;
  
  --border-base: #DBDBDB;
  
  --text-primary: #000;
  --text-grey: #707070;

  --border-radius: 0.625rem;

  /* Core / most used */
  --fs-base: 1rem;      
  --fs-s: 0.875rem;     
  --fs-xs: 0.75rem;     

  /* Headings (less frequent than body but semantic) */
  --fs-h1: 1.2rem;             
  --fs-h2: 1rem;           
  --fs-h3: 0.8rem;          
  --fs-h4: 0.8rem;

  /* UI / controls */
  --padding-btn: 0.7rem;
  --padding-btn-short: 0.4rem 0.7rem;       
  --padding-input: 0.7rem;

  --margin-base: 1rem;        /* 16px - primary spacing unit */
  --margin-half: 0.5rem;      /* 8px - secondary spacing unit */

  /* Line-height tokens paired with sizes (optional helpers) */
  --lh-base: 1.2;
  --lh-tight: 1.0;
  --lh-heading: 1.0;
}

* {
  box-sizing: border-box;
}

a {
    text-decoration: none;
}

h1, h2, h3, h4{
    display: inline-block;
    margin:5px 0px 5px 0px;
    font-weight:bold;
}

a:hover {
    text-decoration:none; 
    cursor:pointer;  
}

html{
    height:100%;
    font-size: var(--fs-s);
}

hr{
    border: none;
    border-top: 1px solid var(--border-base);
    margin: 0;
}

p{
    display: block;
    margin-block-start: 0px;
    margin-block-end: 0px;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
}

.font-small{
    font-size: var(--fs-s);
}

.text-grey{
    color: var(--text-grey);
}

.text-white{
    color: var(--color-white)!important;
}

.text-ok-green{
    color: var(--color-ok-green);
}

/* Style the body */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  height:100%;
}

/* ========================================
   GRID LAYOUT - Mobile SEO Refactor
   ======================================== */

/* APP CONTAINER: Grid Controller (Mobile-First) */
.app-container {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "header"
    "main";
  gap: 0;
}

/* Legacy support for old #content ID */
#content{
  display: flex;
  flex-direction: column;
  height:100%;
}

/* Header/logo Title */
.header {
    grid-area: header;
    border-bottom: #DBDBDB 1px solid;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -1px;
  background: #FD6620;
  color: white;
  border-radius: 10px;
  min-width: var(--margin-base);
  height: var(--margin-base);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 2px 6px;
}
    
.scrollcontainer{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow:auto;
}
.sidebar a, .main .itemcontainer a, .header a{
    color:#707070;
    cursor: pointer;
}

.scrollcontainer > a{
    padding:5px;
    width:100%;
    display:inline-block;
    position:relative;
}

.sidebar .scrollcontainer,
.navigation-menu .scrollcontainer{
    padding: var(--margin-base);
}

.sidebar .scrollcontainer .itmgrpcontainer{
    margin-bottom:var(--margin-base);
}

.sidebar .scrollcontainer a:hover{
    text-decoration: underline;
    cursor: pointer;
}

.scrollcontainer a:nth-child(4n){
    margin-bottom:var(--margin-base);
}

.fbrow,
.cart-btn-grp{
    display: flex;
    flex-direction: row;
    gap: var(--margin-base);
}

.fbcol{
    display: flex;
    flex-direction: column;
    gap: var(--margin-base);
}

.no-gap{
    gap:0!important;
}

.gap-half{
    gap: var(--margin-half);
}

.fbwrap{
    flex-flow: wrap;
}

.pd10-20{
    padding: 10px var(--margin-base);
}

.pd0-20{
    padding: 0 var(--margin-base);
}

.pd10{
    padding:10px;
}

.p-20{
    padding:var(--margin-base);
}

.mb20{
    margin-bottom:var(--margin-base);
}

.mt20{
    margin-top:var(--margin-base);
}

/* Contact Sidebar Info */
.contact-info p {
    margin: 0 0 var(--margin-base) 0;  /* Bottom margin between sections */
    line-height: var(--lh-base);       /* 1.5 line height for readability */
}

.contact-info p:first-child {
    margin-top: 0;  /* Remove top margin from first item */
}

.contact-info p strong {
    display: block;                    /* Make strong a block element (like h tag) */
    font-weight: bold;
    margin-bottom: var(--margin-half); /* Space below heading */
    color: var(--text-primary);
}

.contact-info p span {
    display: block;
    line-height: var(--lh-base);       /* Ensure multi-line text is readable */
}

.fwidth100{
    width:100%;
}

.relative {
  position: relative;
}

.align-center{
    /* display: flex;
    justify-content: center; */
    text-align: center;
}

.align-right{
    text-align: right;
}

.align-end {
    align-items: flex-end;
}

.bold{
    font-weight:bold;
}

.altc{
    text-align:center;
}

.hlogo{
    flex-shrink: 1;
}

.hlogo img {
  padding: var(--margin-half);
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
  height: 80px;
}

.hlogo > a{
    display: inline-block;
}

.menu{
    /* float:right; */
    display: flex;
    align-items: center;
    height: 80px;
    flex-shrink: 0;
    gap: var(--margin-half);
}

.menu a{
    padding: 0px var(--margin-base);
    white-space: nowrap;
}

/* Mobile Header Toggle Buttons (hidden on desktop) */
.mobile-header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: transparent;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--text-grey);
  transition: color 0.2s, transform 0.1s;
  min-width: 40px;
  min-height: 40px;
}

.mobile-header-btn:hover {
  color: var(--text-primary);
}

.mobile-header-btn:active {
  transform: scale(0.95);
}

/* SearchBar - Mobile: Full-Screen Overlay | Desktop: Grid-Positioned */
.search{
  /* Mobile: Fixed overlay (off-screen by default) */
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  
  background-color: #FAFAFA;
  overflow-y: auto;
  overscroll-behavior: contain;
  
  /* GPU-accelerated slide animation */
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out, visibility 0.3s;
  visibility: hidden;
  
  padding: 10px min(300px, 20%);
  border-bottom: #FD6620 1px solid;
}

/* Search overlay open state */
.search.is-open {
  transform: translateX(0);
  visibility: visible;
  flex-direction: column;
  display: flex;
  gap: 0;
  align-items: stretch;
  justify-content: flex-start;
}

.search a{
    color:#707070;
}

.searchbar{
    /* width:100%; */
    border-radius: var(--margin-base);
    border: #DBDBDB 1px solid;
    overflow: hidden;
}

.searchbread{
    width:100%;
    background-color: var(--color-background);
    padding: 10px var(--margin-base);
}

.searchbread a{
    display: inline-block;
}

.searchbread span:before {
  padding: 5px;
  color: #707070;
  content: "/\00a0";
}

.searchbread a:hover{
    text-decoration: underline;
    cursor: pointer;
}

.searchtext{
    min-height: 62px;
    background-color: white;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: center;
}

.searchform {
    float:left;
    border: 0!important;
    margin: 0!important;
    outline: none;
    -webkit-box-shadow: none;
    box-shadow: none;
    resize: none;
    height:inherit;
    flex: 1;
    font-family: Arial, sans-serif;
    color: #707070;
    font-size: 16px;
    padding: var(--margin-half);
    min-height: 40px; /* Minimum height for usability */
}

.searchform-suggestion{
    margin-top: calc(-1 * var(--margin-base));
    margin-left: -1px;
    position: absolute;
    z-index: 999999;
    overflow:auto;
    display: block;
    border: #DBDBDB 1px solid;
    background: #FAFAFA;
    border-radius: 0 0 var(--margin-base) var(--margin-base);
    -webkit-transition: max-height 0.8s;
    -moz-transition: max-height 0.8s;
    transition: max-height 0.8s;
    width : calc(100% - 2* min(300px, 20%));
    }
    
.searchform-suggestion ul{
    list-style-type: none;
    padding:0;
    margin:0;

}

.searchform-suggestion ul li{
    cursor: pointer;
    padding: 5px var(--margin-base);

}

.searchform-suggestion ul li:first-child{
    padding-top:10px;

}

.searchform-suggestion ul li:last-child{
    padding-bottom:10px;

}

.sf-active{
    background-color:#FD6620;
    color:white;
}

textarea::-webkit-input-placeholder{
  color: var(--text-grey);
}

textarea:-moz-placeholder { /* Firefox 18- */
  color: var(--text-grey);  
}

textarea::-moz-placeholder {  /* Firefox 19+ */
  color: var(--text-grey);  
}

textarea:-ms-input-placeholder {
  color: var(--text-grey);  
}

textarea::placeholder {
  color: var(--text-grey);  
}

.searchicon{
    background-image: url('/img/search.svg');
    background-repeat: no-repeat;
    margin: 10px;
    padding: 10px;
    float: right;
}

.searchicon:hover{
    cursor:pointer;
}

.closeicon{
    background-image: url(/img/x-circle-fill.svg);
    background-repeat: no-repeat;
    padding: 8px;
    margin: 10px 5px 10px 0;
    background-size: 16px 16px;
    opacity:0.7;
}

.closeicon:hover{
    cursor:pointer;
    opacity:0.3;
}

.multi{
    border: 1px solid #FD6620;
    border-radius:10px;
    display:flex;
    flex-direction:row;
    overflow:hidden;
    flex-wrap: wrap;
    align-self: center;
    margin:5px;
}

.multi-name{
    background-color:#FD6620;
    color:white;
    padding:10px;
}

/* MAIN ------------ */
.content {
    flex-wrap: nowrap;
    align-content: flex-start;
    align-items: stretch;
    height:100%;
}

/* Main Content Area */
.main {
  grid-area: main;
  background-color: white;
  position: relative;
  width: 100%;
}

/* Sidebar - Mobile: Full-Screen Overlay | Desktop: Grid-Positioned */
.sidebar {
  /* Mobile: Fixed overlay (off-screen by default) */
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  
  background-color: #FAFAFA;
  overflow-y: auto;
  overscroll-behavior: contain;
  
  /* GPU-accelerated slide animation */
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out, visibility 0.3s;
  visibility: hidden;
  
  border-right: 1px solid #DBDBDB;
}

/* Sidebar overlay open state */
.sidebar.is-open {
  transform: translateX(0);
  visibility: visible;
  flex-direction: column;
  display: flex;
  gap: 0;
  align-items: stretch;
  justify-content: flex-start;
}

.sb-grpheader{
    flex:1;
    background-color:var(--color-background);
    padding: var(--margin-half) var(--margin-base);
}

.sb-grpsearch{
    border-bottom:1px solid var(--color-background);
}

.sb-grpsearch__txta{
    padding: 10px var(--margin-base);
}

.sb-grpcontent{
    padding: var(--margin-half) var(--margin-base);
    flex-wrap: wrap;
}

.sbs::before{ /* Side Bar Caract Value Select*/
    position:absolute;
    content:"\2713";
    left:-10px;
}



.sb-grpcontent a{
    position: relative;
}

.selected{
    padding-left:var(--margin-base);
}

.selected::before { 
    position:absolute;
    content:"\2714\0020"; 
    left:0;
    bottom:calc(50% - 9px);
}

.t1 a{
    width:100%; 
}

.t2 a{
    width:50%; 
}
.i2 a{
    width:50%;
    text-align:center;
}
.i2{
    flex-wrap: wrap;
    column-gap: 0;
    row-gap: var(--margin-base);
}
.i1{
    align-items: flex-start;
}
.i1 a{
    text-align:center;
    cursor: pointer;
}

.i1 img{
    display:block;
}

.i2 img{
    display:block;
    margin: 0 auto;
}

/* Item container */

.itemcontainer{
    padding:var(--margin-base);
    flex-basis:calc(100% - 190px);
}

.itemcontainerpi{
    max-width:740px;
}


.itmgrpcontainer{
    width:100%;
    border-radius: var(--margin-base);
    border: var(--border-base) 1px solid;
    overflow: hidden;
    /* margin-bottom:var(--margin-base); */
    background: white;
}

.itmgrpcontainer:last-child{
    margin-bottom:0px;
}

.itmgrptitle{
    width:100%;
    background-color: var(--color-background);
    display: flex;
    align-items: center;
    padding: 10px var(--margin-base);
}

.itmgrptitle h1, .itmgrptitle h2 {
  margin: 5px 0;
  font-size: var(--fs-h1);
  flex: 1;
}

.itmsubgrp{
    padding: var(--margin-base);
    flex-wrap:wrap;
}

.itemsubgrptitle{
  padding-left: var(--margin-base);
}

/* .itmsubgrp a{
    width: 80px;
    }
     */
/* .itmsubgrp a:nth-child(4n){
    margin-right:60px;
} */

.itmsubgrp a img{
    border-radius:10px;
    background-color:var(--color-background);
    height:80px;
    width:80px;
    object-fit: contain;
}
/* checkout containers */
.mw-1000 {
  max-width: 1000px;
}

.checkout-header h1 {
  font-size: var(--fs-h1);
  color: var(--text-primary);
  margin-bottom: var(--margin-base);
  margin-left: 0;
}

.checkout-steps .step {
  font-size: var(--fs-s);
  color: var(--text-grey);
  padding: var(--margin-half) var(--margin-base);
  border-radius: var(--border-radius);
  transition: all 0.2s;
}

.checkout-steps .step.active {
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 600;
}

.checkout-steps .step.completed {
  background: var(--color-ok-green);
  color: var(--color-white);
  font-weight: 600;
}

/* Banner */

.banner {
  border-radius: var(--border-radius);
  padding: var(--margin-base);
  position: relative;
  overflow: hidden;
}

.banner::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: #333; /* Default color */
}

/* Override border color for each kind */

.banner--success {
  background: #d4edda;;
  color: #155724;
}

.banner--success::before {
  background: var(--color-ok-green);
}

.banner--warning {
  background: #fff3cd;
  color: #856404;
}

.banner--warning::before {
  background: #ffc107;
}

.banner--error {
  background: #fee;
  color: var(--color-danger);
}

.banner--error::before {
  background: var(--color-danger);
}

.banner--grey {
  background: #f9f9f9;
  color: var(--text-primary);
}

.banner--grey::before {
  background: var(--color-primary);
}

.banner--grey input,
.banner--grey select,
.banner--grey textarea {
  background: white;
}

/* Checkout Sections (Accordion) */
.checkout-section {
  border: 2px solid var(--border-base);
  overflow: hidden;
  transition: all 0.2s;
}

.checkout-section.active {
  border-color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(var(--color-primary), 0.1);
}

.checkout-section.completed {
  border-color: var(--color-ok-green);
  cursor: pointer;
}

.checkout-section.disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* Locked sections (after order confirmation) */
.checkout-section.locked {
  opacity: 0.6;
  pointer-events: none;
}

/* .checkout-section.locked .section-header {
  cursor: not-allowed;
  background: var(--color-disabled);
} */

.checkout-section.locked .section-title {
  color: var(--text-grey);
}

.checkout-section.locked .section-number {
  background: var(--color-disabled);
  color: var(--text-grey);
}

/* .section-header.clickable {
  cursor: pointer;
} */

/* .section-header.clickable:hover {
  background: var(--color-disabled);
} */

.edit-icon {
  margin-left: auto;
  font-size: var(--fs-base);
  opacity: 0.6;
  transition: opacity 0.2s;
}

/* .section-header.clickable:hover .edit-icon {
  opacity: 1;
} */

/* .checkout-section.active .section-header {
  background: var(--color-white);
} */

.section-number {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background: var(--border-base);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-right: var(--margin-base);
  font-size: var(--fs-h3);
  transition: all 0.2s;
}

.checkout-section.active .section-number {
  background: var(--color-primary);
  color: var(--color-white);
}

.checkout-section.completed .section-number {
  background: var(--color-ok-green);
  color: var(--color-white);
}

.section-title {
  font-size: var(--fs-h2);
  color: var(--text-primary);
  margin: 0;
}

.section-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.section-content.expanded {
  max-height: 5000px; /* Large enough for content */
}

/* form style */
.form-row {
    display: flex;
    gap: 1rem;
    /* margin-bottom: 1rem; */
}

.form-row .form-group {
    flex: 1;
    /* margin-bottom: 0; */
}

.form-group label {
    display: block;
    margin-bottom: var(--margin-half);
    color: var(--text-grey);
    font-weight: 500;
    font-size: var(--fs-s);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--fs-xs);
    border: 1px solid var(--border-base);
    border-radius: var(--border-radius);
    font-size: var(--fs-base);
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(var(--color-primary) 0.1);
}

.form-group input:disabled {
    background-color: var(--color-disabled);
    cursor: not-allowed;
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: var(--color-danger);
}

/* probably to be removed later as a simple blocked field would work imo */
.country-display {
  padding: 0.75rem;
  background: #f5f5f5;
  border-radius: 4px;
  color: #666;
  font-weight: 500;
}

.form-hint {
    display: block;
    color: var(--text-grey);
    font-size: 0.85rem;
    margin-top: 0.25rem;
    font-style: italic;
}

.form-error {
  display: block;
  color: #f44;
  font-size: 0.85rem;
  margin-top: 0.25rem;
  font-weight: 500;
}

/* Checkbox row style */
.checkbox-row {
  display: flex;
  align-items: center;
  gap: var(--margin-base);
}

.checkbox-row input[type="checkbox"] {
  width: auto;
  margin: 0;
  cursor: pointer;
}

.checkbox-row label {
  margin: 0;
  font-weight: normal;
  cursor: pointer;
}

/* Icon style */

.icon{
    width: 60px;
    height: 60px;
    overflow: hidden;
    zoom: 1;
    background-color: #fff;
    border: 1px solid #eee;
    display:inline-block;
    border-radius:10px;
    }
    
.icon:hover{
    background-color:#ffbb8d;
}

/* button style */
.btn{
    font-size: var(--fs-base);
    font-weight: 500;
    cursor: pointer;
    border-radius: var(--border-radius);
    transition: all 0.2s;
    white-space: nowrap;
    display: inline-block;
    /* width: auto; */
    text-overflow: ellipsis;
    padding: var(--fs-xs);
}

.btn-primary {
    border: 1px solid var(--color-primary);;
    background: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover:not(:disabled) {
    background: var(--color-accent-dark);
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-secondary {
    background: white;
    color: #707070;
    border: 1px solid var(--border-base);
}

.btn-secondary:hover {
  background: var(--color-background);
  color: var(--text-primary);
  border-color: var(--border-base);
}

.btn-link{
    background: none;
    border: none;
    color: var(--color-primary);
    padding: 0;
    font-size: var(--fs-base);
    cursor: pointer;
    text-decoration: underline;
}

/* ---- ---- ---- */

/* Product Item Page */

.pi-table, .pi-sb-table{
  width:100%;
  }

.pi-table {
  border-collapse: separate;
  }

.pi-table td{
  border-bottom: 1px solid #eee;
  padding: var(--margin-half) 0;
}

.pi-table td:first-child{
    width:40%;
}

.pi-table tr:first-child td{
    padding-top: 0;
}

.pi-table tr:last-child td{
    border-bottom: none;
}

.pi-sb-info{
    border-bottom: 1px solid var(--color-background);
    padding: var(--margin-half) var(--margin-base);
}

.pi-sb-info span{
    display: contents;
}

.pi-sb-menu{
    border-radius:var(--margin-base); 
    overflow:auto;
    border:1px solid #FD6620;
    display:flex;
    background:var(--color-background);
    box-shadow: 0 0 6px 0px rgb(0 0 0 / 20%);
    align-items: center;
}

.pi-sb-menu-form{
    padding: 12px var(--margin-base);
    border:1px solid #eee;
}

.pi-sb-menu-btn{
    background-color:#FD6620;
    padding: 13px var(--margin-base);
    color:white;
    flex: 0;
    white-space: nowrap;
}

.pi-sb-table td{
    border-bottom: 1px solid #eee;
    padding: 10px var(--margin-base);
}

.pi-sb-table td:nth-child(2){
    text-align:right;
}

.pi-pdf{
    width: 100%;
    border: 1px solid var(--border-base);
    border-radius: var(--margin-base);
}
/* ---- ---- ---- */

/* Last product node page */
.lpn-table{
    border-collapse:collapse;
    display: inline-flex;
    margin-right:40px;
}

.lpn-table tr:nth-child(2){
    border-bottom: 1px solid #eee;
}

.lnp-table-title{
    background:#fd6620;
    color:white;
    text-align:center;
}

.lpn-table td{
    padding:5px;
    min-width:60px;
    }
    
.lnp-table-icon{
height:100%;
width:30px;
}
    
.lnp-img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    flex-shrink: 0;
}

.lnp-txt{
    flex: 1 0 0;padding-left:var(--margin-base);
}

.lnp-scrollcontainer{
    overflow: auto;
    padding:0 var(--margin-base) var(--margin-base) var(--margin-base);
}
/* ---- ---- ---- */

/* Product category page */

.pc-a{
    flex-wrap: wrap;
    min-width:300px;
    max-width:25%;
}

.pc-a div:first-child{
    flex: 1 100%;
}

.pc-a div:last-child{
    flex: 1 0 0;
    padding-left:var(--margin-base);
}



/* ---- ---- ---- */
/* Footer */
.footer {
    width: 100%;
    padding: var(--margin-base);
    text-align: center;
    background: rgb(255,102,0);
    background: -moz-linear-gradient(90deg, rgba(255,102,0,1) 45%, rgba(251,187,82,1) 100%);
    background: -webkit-linear-gradient(90deg, rgba(255,102,0,1) 45%, rgba(251,187,82,1) 100%);
    background: linear-gradient(90deg, rgba(255,102,0,1) 45%, rgba(251,187,82,1) 100%);
    position: relative;
    display:flex;
    text-align:left;
    color:white;
}

.footer a:hover{
    text-decoration: underline;
}

.footer:before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        border-top: 40px solid #ffffff;
        border-left: 40px solid rgb(255 255 255 / 0%);
        width: 0;
      }
      
.footer-1{
    flex: 2;
    height:150px;
    justify-content: space-between;
}

.footer-2{
    flex: 1;
    justify-content: space-between;
}

.footer-3{
    flex: 1;
}

.footer-4{
    flex: 1;
    background-image: url('/img/dg_logo_white.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
}

.pymt_img{
    width:260px;
    height:40px;
    margin:0 auto 0 0;
}

.invoice{
    padding: var(--margin-half) var(--margin-base);
    color:#707070;
    background:var(--color-background);
    border:1px solid #DBDBDB;
    border-radius:var(--margin-base);
    margin:10px auto 0 0;
}
/* Loader */
.loader img, .loader-small img{
    position:absolute;
    height:100%;
    width:100%;
    z-index:1;
}

.loader-small{
    width:80px;
    height:80px;
    margin:0 auto;
    position:relative;
    overflow:hidden;
}

.loader{
    width:80px;
    height:80px;
    margin:0 auto;
    position:relative;
    overflow:hidden;
}

.loader-small{
    width:25px;
    height:25px;
    margin:0 auto;
    position:relative;
    overflow:hidden;
}

.loader-white{
    z-index:0;
    position:absolute;
    top: -35%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(#fff 120deg, #FD6620 360deg);
    position: relative;
    -webkit-animation: load 1.4s infinite linear;
    animation: load 1.4s infinite linear;
    -webkit-transform: translateZ(0);
    -ms-transform: translateZ(0);
    transform: translateZ(0);
}

@-webkit-keyframes load {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@keyframes load {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}



/* Loading overlay for cart item */

.cart-item {
  position:relative;
  align-items: center;
  padding: var(--margin-base);
  border: 1px solid var(--border-base);
  border-radius: var(--border-radius);
  background: var(--color-white);
  transition: box-shadow 0.2s;
  display: flex;
  flex-direction: row;
  gap: var(--margin-base);
}

.cart-item.loading {
  opacity: 0.6;
}

.cart-item-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-image {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--border-radius);
}

.cart-item-details {
  flex: 1;
}

.cart-item-name {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.cart-item-name .variant {
  color: var(--text-grey);
  font-weight: normal;
}

.cart-item-sku {
  color: var(--text-grey);
  font-size: var(--fs-s);
  margin: 0;
}

.cart-item-quantity {
  font-size: var(--fs-base);
  color: var(--text-grey);
  align-items: center;
  gap: var(--margin-half);
  min-width: 200px;
}

.cart-item-quantity label {
  font-size: var(--fs-s);
  color: var(--text-grey);
}

.cart-item-quantity .quantity-input {
  width: 60px;
  padding: 0.5rem;
  border: 1px solid var(--border-base);
  border-radius: var(--border-radius);
  text-align: center;
  font-size: var(--fs-base);
  transition: border-color 0.2s;
}

.cart-item-quantity .quantity-input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.cart-item-quantity .quantity-input:disabled {
  background: var(--color-disabled);
  cursor: not-allowed;
}

.cart-item-price {
    min-width: 90px;
    text-align: right;
  }

.cart-item-actions {
  margin-left: 1rem;
  display: flex;
  align-items: center;
}

.btn-delete-line {
  background: transparent;
  border: 1px solid var(--border-base);
  color: var(--text-grey);
  width: 32px;
  height: 32px;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.btn-delete-line:hover:not(:disabled) {
  background: var(--color-danger);
  border-color: var(--color-danger);
  color: var(--color-white);
}

.btn-delete-line:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.empty-cart-icon {
  font-size: 5rem;
  margin-bottom: 1rem;
  opacity: 0.3;
}

/* Order Item Thumbnail */
.order-item-thumb {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: var(--border-radius);
  background-color: var(--color-background);
  margin-bottom: var(--margin-half);
}

.order-item-placeholder {
  width: 80px;
  height: 80px;
  background-color: var(--color-background);
  border-radius: var(--border-radius);
  margin-bottom: var(--margin-half);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-grey);
  font-weight: 600;
  font-size: var(--fs-base);
}

.order-item-sku {
  font-size: var(--fs-xs);
  text-align: center;
  word-break: break-word;
  line-height: 1.2;
}

.order-item-card {
  width: 80px;
}

/* Status Badges */
.status-badge {
  font-weight: 600;
  white-space: nowrap;
  text-transform: uppercase;
}

/* Order footer spacing */
.order-footer {
  align-items: center;
  justify-content: space-between;
  margin-top: var(--margin-base);
}

.order-total-label {
  font-size: var(--fs-s);
}

.order-total-amount {
  font-size: var(--fs-h3);
}

.order-header-info {
  align-items: center;
  flex: 1;
  gap: var(--margin-base);
}

.order-items-row {
  gap: var(--margin-base);
  margin-bottom: var(--margin-base);
}

.empty-orders {
  padding: 2rem;
  color: var(--text-grey);
}

.empty-orders-icon {
  font-size: 3rem;
  opacity: 0.3;
  margin-bottom: 1rem;
}

/* Order Detail Page */
.order-address-col {
  flex: 1 1 300px;
  min-width: 280px;
}

.order-address-text {
  white-space: pre-line;
  font-family: Arial, sans-serif;
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  margin: 0;
}

/* ========================================
   DESKTOP LAYOUT (≥ 1024px)
   ======================================== */

@media (min-width: 1024px) {
  /* Desktop Grid: 2-column layout (Sidebar | Main) */
  .app-container {
    grid-template-columns: 300px 1fr;
    grid-template-rows: auto auto 1fr;
    grid-template-areas:
      "header header"
      "search search"
      "sidebar main";
    gap: 0;
  }
  
  /* Hide mobile header toggle buttons */
  .mobile-header-btn {
    display: none;
  }
  
  /* SearchBar: Reset to grid-positioned element */
  .search {
    position: static;
    width: auto;
    height: auto;
    transform: none;
    visibility: visible;
    z-index: auto;
    overflow: visible;
    padding: var(--margin-half) var(--margin-base);
    grid-area: search;
    padding: 10px min(300px, 20%);
    background-color: #FAFAFA;
    border-bottom: #FD6620 1px solid;
  }
  
  /* Sidebar: Reset to grid-positioned element */
  .sidebar {
    position: relative;  /* Containing block for .scrollcontainer */
    width: auto;
    height: auto;
    transform: none;
    visibility: visible;
    z-index: auto;
    overflow: visible;
    
    grid-area: sidebar;
    flex: 0 0 300px; /* Fallback for older browsers */
    border-right: 1px solid #DBDBDB;
    background-color: #FAFAFA;
  }
  
  /* Hide overlay close button on desktop */
  .hide-desktop {
    display: none;
  }

  .navigation-menu,
  .navigation-menu .sidebar-scroll-wrapper,
  .navigation-menu .scrollcontainer {
    display: contents; /* Remove wrapper structure, links become direct children */
  }
}
/* ========================================
   SIDEBAR & OVERLAY WRAPPER LAYOUT
   ======================================== */

/* Sidebar flex layout for close button + scrollable content */
.sidebar {
  display: flex;
  flex-direction: column;
}

/* Close button stays at top, doesn't grow/shrink */
.sidebar-close-btn {
  flex-shrink: 0;
  margin: var(--margin-base);
  }

/* Wrapper takes all remaining vertical space */
.sidebar-scroll-wrapper {
  flex: 1;
  position: relative; /* Creates positioning context for absolute child */
  overflow: hidden; /* Prevents content leak */
}

/* scrollcontainer fills wrapper with absolute positioning */
.sidebar .scrollcontainer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: auto;
}

/* ========================================
   MOBILE LAYOUT (< 1024px)
   ======================================== */

@media (max-width: 1023px) {
  /* Keep mobile icon buttons visible */
  .mobile-header-btn {
    display: inline-flex;
  }

  .header {
    height: 60px;
  }

  .menu {
    height: 60px;
  }

  .menu a {
    padding: var(--margin-half) 0;
  }

  .menu img {
    height: 20px;
  }

  .hlogo {
    height: 100%;
  }

  .hlogo img {
    height: 60px;
  }
  .search{
    padding : 0;
  }

  .searchbar{
    margin: var(--margin-base);
  }

  .searchform {
    height: auto;
    overflow-y: auto;
    max-height: 50vh; /* Prevent taking entire screen */
  }

  .navigation-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    
    background-color: #FAFAFA;
    overflow-y: auto;
    overscroll-behavior: contain;
    
    /* GPU-accelerated slide animation */
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out, visibility 0.3s;
    visibility: hidden;
    
    border-right: 1px solid #DBDBDB;
    
    /* Flex layout for close button + scrollable content */
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    justify-content: flex-start;
  }

  /* Open state */
  .navigation-menu.is-open {
    transform: translateX(0);
    visibility: visible;
  }

  .lnp-img {
    max-width: calc(min(120px, 33vw));
    height: 120px;
  }

  .searchform-suggestion {
    width: calc(100% - 2 * var(--margin-base));
  }


  /* ========================================
     PI PAGE MOBILE LAYOUT
     ======================================== */
  
  /* PI pages: Use flex for ordering but allow document-level scroll */
  .app-container[data-page-kind="pi"] {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }
  
  /* Header fixed at top */
  .app-container[data-page-kind="pi"] .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    order: 0;
    flex-shrink: 0;
    background: var(--color-white);
  }
  
  /* Sidebar appears before main - add top padding for fixed header */
  .app-container[data-page-kind="pi"] .sidebar {
    order: 1;
    position: static;
    transform: none;
    visibility: visible;
    width: 100%;
    height: auto;
    flex-shrink: 0;
    border-right: none;
    transition: none;
    overflow: visible;
    display: block;
    background: none;
    padding-top: 60px; /* Height of mobile header */
  }

  .app-container[data-page-kind="pi"] .sidebar .itmgrpcontainer{
    margin-bottom: 0;
    max-width: 740px;
  }

  .app-container[data-page-kind="pi"] .sidebar .scrollcontainer {
    padding-bottom: 0;
  }
  
  /* Remove wrapper structure - make scrollcontainer normal block */
  .app-container[data-page-kind="pi"] .sidebar .sidebar-scroll-wrapper {
    position: static;
    flex: none;
    height: auto;
    overflow: visible;
  }
  
  /* Make scrollcontainer normal flow */
  .app-container[data-page-kind="pi"] .sidebar .scrollcontainer {
    position: static;
    height: auto;
    overflow: visible;
  }
  
  /* Main content after sidebar - remove internal scroll */
  .app-container[data-page-kind="pi"] .main {
    order: 2;
    position: static;
    height: auto;
    flex-shrink: 0;
    overflow: visible;
  }
  
  /* Main's scrollcontainer becomes normal block too */
  .app-container[data-page-kind="pi"] .main .scrollcontainer {
    position: static;
    height: auto;
    overflow: visible;
    padding-bottom: 63px; /* Space for fixed menu */
  }
  
  /* Fixed add-to-cart menu at bottom of viewport */
  .app-container[data-page-kind="pi"] .pi-sb-menu-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--color-white);
    border-top: 1px solid var(--color-primary);
  }
}


@media (max-width: 768px) {

  .cart-badge {
    top: var(--margin-half);
  }

  .cart-item {
    display: grid;
    grid-template-columns: auto auto 40px;
    grid-template-rows: auto auto auto;
    gap: 0;
    align-items: center;
  }
  
  .cart-item-details {
    grid-row: 1;
    grid-column: 1;
    text-align: center;
  }
  
  .cart-item-image {
    grid-row: 2 / 4;
    grid-column: 1;
    justify-self: center;
  }
  
  .cart-item > p:nth-child(3) {
    text-align: center;
  }
  
  .cart-item-quantity {
    justify-self: center;
    text-align: center;
    grid-row: 2;
    grid-column: 2;
    min-width: 0!important;
  }
  
  .cart-item-price {
    text-align: center;
    justify-self: center;
    grid-row: 3;
    grid-column: 2;
    min-width: 0!important;
  }
  
  .cart-item-ht-price {
    justify-self: center;
    text-align: center;
    grid-row: 1;
    grid-column: 2;
  }

  .cart-item-actions {
    justify-self: center;
    grid-row: 1 / 4;
    grid-column: 3;
    align-self: center;
  }
  
  .cart-actions,
  .cart-btn-grp {
    flex-direction: column;
  }
}