/* =============================================================================
   Frontend -- public site + simple utility/auth shells
   Loaded via FRONTEND_CSS_FILE. Theme variables from functions__get_theme_colors().
   Montserrat: fonts.css in <head> (ds-includes/assets/fonts/OFL.txt).
   ============================================================================= */

:root {
    --static-color-white: #ffffff;
    --static-color-grey: #bbbbbb;
    --static-color-dark-grey: #444444;
    --static-color-green: #04aa6d;
    --static-color-teal: #1abc9c;
    --static-color-blue: #3669f4;
    --static-color-orange: #dd8d24;
    --static-color-red: #f44336;
    --static-color-black: #000000;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* -----------------------------------------------------------------------------
   1. Base & layout
   ----------------------------------------------------------------------------- */

body#body {
    min-height: 100vh;
    margin: 0;
    background: #121123;
    color: #ffffff;
    font: 1em Arial, Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body#body * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

#body .wrap {
    width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
	position: relative;
}

/* -----------------------------------------------------------------------------
   2. Header
   ----------------------------------------------------------------------------- */

#header {
    height: 60px;
    border-bottom: 1px solid #77777780;
}

#header .wrap {
	display: flex;
}

#brand {
    display: flex;
    height: 60px;
    align-items: center;
	font: 1em Montserrat, Arial, Helvetica, sans-serif;
}

#brand-box {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: flex-start;
}

#brand a {
    display: flex;
    width: auto;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    font-weight: bold;
    text-decoration: none;
}

#brand a img {
    display: block;
    width: 30px;
    height: 30px;
}

#brand a span {
    font-size: 20px;
    line-height: 100%;
    color: #ffffff;
}

#nav {
    flex: 1;
}

#nav ul {
    display: flex;
    width: 100%;
    overflow: hidden;
    height: 40px;
	margin-top: 10px;
	flex-direction: row;
    text-align: right;
    margin-right: -20px;
	gap: 10px;
	justify-content: flex-end;
}

#nav li {
    display: inline-block;
    border: 1px solid #77777780;
    background: #22223c;
    transition: border 0.3s ease;
}

#nav li:hover {
    border: 1px solid #ffffff;
}

#nav li a {
    display: block;
    height: 38px;
    line-height: 38px;
    padding: 0 20px;
    color: #dddddd;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.2s ease, background 0.3s ease, color 0.3s ease, opacity 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9em;
    opacity: 0.7;
}

#nav li a:hover {
    color: #ffffff;
    opacity: 1;
}



/* -----------------------------------------------------------------------------
   3. Homepage
   ----------------------------------------------------------------------------- */
section {
    margin: 0 -10px;
    padding: 0 10px;
    border: 1px solid #77777780;
    border-top: 0;
	position: relative;
}
section.no-bottom {
    border-bottom: 0;
}
section::before,
section::after {
  content: "";
  position: absolute;
  top: 0;
  width: 10px;
  height: 10px;
}
section::before {
  left: 0;
  background: linear-gradient(135deg, #77777780 50%, transparent 50%);
}
section::after {
  right: 0;
  background: linear-gradient(225deg, #77777780 50%, transparent 50%);
}

/* -----------------------------------------------------------------------------
   4. Product page
   ----------------------------------------------------------------------------- */

section#reviews {
    padding-top: 20px !important;
}

section#reviews h2 {
    margin: 0 20px  !important;
}

section#product h1 {
    font: 700 2.6em Montserrat, Arial, Helvetica, sans-serif;
    margin-bottom: 20px;
}

section#reviews h2 {
    font: 700 1.4em Montserrat, Arial, Helvetica, sans-serif;
}

section#reviews h3 {
    font: 700 1.2em Montserrat, Arial, Helvetica, sans-serif;
}

section p {
    margin-bottom: 15px !important;
    line-height: 1.55;
    color: #dddddd;
}

section p a {
    color: #ffffff;
}

#product {
    padding: 20px !important;
}

#product-link a {
    display: inline-block;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    background: #f1c40f;
    border-radius: 10px;
    height: 30px;
    line-height: 30px;
    padding: 30px !important;
    color: #000000;
}

#rating {
    display: flex;
    flex-direction: row;
}

#rating-top {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
    border-right: 1px solid #77777780;
    justify-content: center; 
}

#rating-top div:first-child {
    font: 700 2.6em Montserrat, Arial, Helvetica, sans-serif;
}

#rating-top div:nth-child(2) {
    font-size: 2em;
}

#rating-bottom {
    flex: 1;
    padding: 20px !important;
}

.rating-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #77777780;
    margin: 16px 0;
    background: #22223c;
}

.rating-table td {
    padding: 10px 12px !important;
    border-bottom: 1px solid #77777780;
    vertical-align: middle;
    text-align: center;
}

.rating-table td:first-child {
    text-align: left;
}
.rating-table td:last-child {
    text-align: right;
}
.rating-table td:nth-child(2) {
    font-size: 1.4em;
}

.rating-table tr:last-child td {
    border-bottom: 0;
}

.rating-table-compact {
    width: auto;
    margin: 0 0 12px;
    font-size: 0.85em;
}

.rating-table-compact td {
    padding: 4px 10px 4px 0;
    border-bottom: 0;
}

.stars {
    display: inline-flex;
    gap: 2px;
    color: var(--static-color-orange);
    letter-spacing: 0;
    line-height: 1;
}

.star {
    position: relative;
    display: inline-block;
    font-size: 1.15em;
    line-height: 1;
}

.star-full {
    color: #f1c40f;
}

.star-empty {
    color: #555555;
}

.star-half {
    color: #555555;
}

.star-half-fill {
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    overflow: hidden;
    color: #f1c40f;
}

#review-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    padding: 20px !important;
    gap: 20px;
}

.review {
    border: 1px solid #77777780;
    background: #22223c;
    padding: 20px !important;
}

/* -----------------------------------------------------------------------------
   5. Footer
   ----------------------------------------------------------------------------- */
footer {
    border-top: 1px solid #77777780;
}