/* Shared styles for STS info & policy pages */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', Arial, sans-serif; }
html { overflow-x: hidden; max-width: 100%; }
body { background-color: #eaeded; overflow-x: hidden; max-width: 100%; width: 100%; color: #0f1111; line-height: 1.6; font-family: 'Inter', Arial, sans-serif; }
img { max-width: 100%; height: auto; }
a { color: #007185; }
a:hover { color: #c45500; }

/* Header */
.page-header {
    background-color: #0044cc;
    color: white;
    display: flex;
    align-items: center;
    padding: 10px 20px;
    gap: 20px;
    min-height: 75px;
    flex-wrap: wrap;
}
.page-header .logo { display: flex; align-items: center; text-decoration: none; padding-right: 10px; }
.page-header .logo img { height: 50px; width: auto; display: block; }
.page-header-nav { margin-left: auto; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.page-header-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 20px;
    background: #0033aa;
    transition: background-color 0.2s;
}
.page-header-nav a:hover { background: #002288; color: #fff; }

/* Main content */
.page-main {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 20px 40px;
}
.breadcrumb {
    font-size: 14px;
    color: #565959;
    margin-bottom: 20px;
}
.breadcrumb a { color: #007185; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; color: #c45500; }
.page-title {
    font-size: 32px;
    font-weight: normal;
    color: #0f1111;
    margin-bottom: 8px;
    line-height: 1.2;
}
.page-subtitle {
    font-size: 15px;
    color: #565959;
    margin-bottom: 30px;
}
.content-card {
    background: #fff;
    padding: 30px 35px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 24px;
}
.content-card h2 {
    font-size: 20px;
    font-weight: bold;
    color: #0f1111;
    margin: 28px 0 12px;
}
.content-card h2:first-child { margin-top: 0; }
.content-card h3 {
    font-size: 16px;
    font-weight: bold;
    color: #0f1111;
    margin: 20px 0 8px;
}
.content-card p { margin-bottom: 14px; font-size: 15px; }
.content-card ul, .content-card ol {
    margin: 0 0 16px 24px;
    font-size: 15px;
}
.content-card li { margin-bottom: 8px; }
.content-card a { color: #007185; }
.content-card a:hover { color: #c45500; }

/* FAQ accordion-style */
.faq-item { border-bottom: 1px solid #e3e6e6; padding: 18px 0; }
.faq-item:first-of-type { padding-top: 0; }
.faq-item:last-child { border-bottom: none; }
.faq-question { font-size: 16px; font-weight: bold; color: #0f1111; margin-bottom: 8px; }
.faq-answer { font-size: 15px; color: #0f1111; }

/* Contact cards */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 10px;
}
.contact-card {
    background: #f2f8fd;
    border: 1px solid #d5e8f7;
    border-radius: 8px;
    padding: 22px;
}
.contact-card h3 {
    font-size: 14px;
    color: #565959;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
    font-weight: bold;
}
.contact-card p, .contact-card a {
    font-size: 16px;
    color: #0f1111;
    text-decoration: none;
    font-weight: bold;
}
.contact-card a:hover { color: #0044cc; }

.highlight-box {
    background: #f2f8fd;
    border-left: 4px solid #0044cc;
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 0 6px 6px 0;
}

/* About page — closing visual section */
.about-visual-closing {
    width: 100%;
    max-width: 100%;
    padding: 48px 20px 56px;
    background-color: #eaeded;
}
.about-visual-closing-inner {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}
.about-visual-heading {
    font-size: 28px;
    font-weight: normal;
    color: #0f1111;
    margin-bottom: 12px;
    line-height: 1.3;
}
.about-visual-tagline {
    font-size: 16px;
    color: #565959;
    max-width: 680px;
    margin: 0 auto 32px;
    line-height: 1.55;
}
.about-visual-image-wrap {
    width: 100%;
    height: clamp(220px, 42vw, 480px);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-color: #d5d9d9;
}
.about-visual-image-wrap picture {
    display: block;
    width: 100%;
    height: 100%;
}
.about-visual-image-wrap img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    display: block;
}
.about-visual-closing + .footer {
    margin-top: 0;
}

/* Footer */
.footer {
    background-color: #232f3e;
    color: #eaeded;
    padding: 40px 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 60px;
    font-size: 14px;
    margin-top: 40px;
    border-top: 1px solid #19222d;
}
.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 200px;
}
.footer-col h3 { font-size: 16px; margin-bottom: 10px; color: #fff; }
.footer-col a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.2s ease;
}
.footer-col a:hover { color: #ff9900; text-decoration: underline; }
.footer-bottom {
    background-color: #131a22;
    color: #ccc;
    text-align: center;
    padding: 20px;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    border-top: 1px solid #19222d;
}
.footer-bottom-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}
.footer-bottom a { color: #ccc; text-decoration: none; transition: color 0.2s ease; }
.footer-bottom a:hover { color: #ff9900; text-decoration: underline; }

@media (max-width: 768px) {
    .page-header { padding: 10px 15px; gap: 12px; }
    .page-header .logo img { height: 40px; }
    .page-header-nav { margin-left: 0; width: 100%; }
    .page-header-nav a { flex: 1; text-align: center; }
    .page-main { padding: 20px 15px 30px; }
    .page-title { font-size: 26px; }
    .content-card { padding: 22px 20px; }
    .about-visual-closing { padding: 36px 15px 44px; }
    .about-visual-heading { font-size: 24px; }
    .about-visual-tagline { font-size: 15px; margin-bottom: 24px; }
    .about-visual-image-wrap { border-radius: 8px; }
    .footer { gap: 30px; padding: 30px 15px; }
    .footer-col { min-width: 0; flex: 1 1 140px; }
    .footer-bottom-links { gap: 10px; padding: 0 10px; }
}

@media (max-width: 480px) {
    .page-header .logo img { height: 34px; }
    .page-title { font-size: 22px; }
    .content-card { padding: 18px 16px; }
    .about-visual-closing { padding: 28px 12px 36px; }
    .about-visual-heading { font-size: 21px; }
    .about-visual-tagline { font-size: 14px; margin-bottom: 20px; }
}


/* ==========================================
   GLOBAL HEADER STYLING (COPIED FROM HOMEPAGE)
   ========================================== */
.header { 
    background-color: #131921; 
    color: white; 
    display: flex; 
    align-items: center; 
    padding: 10px 20px; 
    gap: 20px; 
    height: 75px; 
    flex-wrap: wrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid #131921;
}
.logo { cursor: pointer; display: flex; align-items: center; padding-right: 10px; transition: transform 0.2s; }
.logo:hover { transform: scale(1.02); }
.logo img { height: 50px; width: auto; display: block; }
.location-btn {
    background-color: transparent;
    color: white;
    display: flex;
    align-items: center;
    padding: 5px 18px;
    border-radius: 25px;
    cursor: pointer;
    gap: 10px;
    height: 48px;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.25);
}
.location-btn:hover { 
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.loc-icon { display: flex; align-items: center; }
.loc-text { display: flex; flex-direction: column; justify-content: center; }
.loc-small { font-size: 11px; font-weight: normal; color: #ccc; }
.loc-country { font-size: 14px; font-weight: bold; }
.search-bar { 
    display: flex; 
    flex: 1; 
    min-width: 0;
    background: #fff; 
    border-radius: 25px; 
    height: 48px; 
    padding: 4px;
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}
.search-bar:focus-within {
    border-color: #ff9900;
    box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.25);
}
.search-bar input { flex: 1; min-width: 0; width: 100%; padding: 0 20px; border: none; outline: none; font-size: 15px; background: transparent; color: #111; }
.search-bar button { 
    background-color: #febd69; 
    color: #111111; 
    border: none; 
    border-radius: 50%; 
    width: 40px;
    height: 40px;
    cursor: pointer; 
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
}
.search-bar button:hover { background-color: #f3a847; transform: scale(1.05); }
.search-bar button svg { fill: #111111; width: 20px; height: 20px; }
.nav-right { display: flex; gap: 15px; align-items: center; font-size: 14px; height: 100%; }
.nav-item { cursor: pointer; display: flex; flex-direction: column; justify-content: center; transition: opacity 0.2s; }
.nav-item:hover { opacity: 0.9; }
.nav-text { display: flex; flex-direction: column; color: #fff; }
.nav-text span:nth-child(1) { font-size: 12px; color: #ccc; }
.nav-text span:nth-child(2) { font-weight: bold; }
.mobile-icon, .hamburger-icon, .mobile-sign-in, .cart-icon-svg, .drawer-nav-link, .drawer-nav-link svg, .drawer-nav-divider, .loc-chevron { display: none; }
.cart { font-size: 16px; font-weight: bold; display: flex; align-items: center; gap: 5px; cursor: pointer; color: #fff; text-decoration: none; transition: transform 0.2s; }
.cart:hover { transform: scale(1.05); }
.cart-count-wrap { display: inline; }
.cart-icon-emoji { display: inline; }

.sub-header { 
    background-color: #232f3e; 
    color: #ffffff; 
    display: flex; 
    padding: 8px 20px; 
    gap: 20px; 
    font-size: 14px; 
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid #19222d;
}
.sub-header div { cursor: pointer; z-index: 100; padding: 6px 0; border-bottom: 2px solid transparent; transition: all 0.2s ease; color: #ffffff; }
.sub-header div:hover { border-bottom: 2px solid #ff9900; color: #ff9900; }
.sub-header div.active-tab { border-bottom: 2px solid #ff9900; color: #ff9900; font-weight: bold; }
.close-menu { display: none; }
.mobile-menu-overlay { display: none; }

@media (max-width: 768px) {
    .header { display: grid; grid-template-columns: 1fr auto 1fr; grid-template-areas: "menu logo nav" "search search search" "location location location"; height: auto; padding: 8px 12px 8px; row-gap: 8px; column-gap: 10px; width: 100%; max-width: 100%; align-items: center; }
    .hamburger-icon { grid-area: menu; display: flex !important; align-items: center; justify-content: flex-start; justify-self: start; width: 100%; cursor: pointer; color: white; line-height: 1; flex-shrink: 0; }
    .hamburger-icon svg { width: 26px; height: 26px; fill: #fff; }
    .logo { grid-area: logo; justify-content: center; justify-self: center; padding-right: 0; min-width: 0; }
    .logo img { height: 34px; width: auto; max-height: 34px; }
    .nav-right { grid-area: nav; gap: 14px; flex-shrink: 0; height: auto; align-items: center; justify-content: flex-end; justify-self: end; width: 100%; }
    .nav-text { display: none !important; }
    .mobile-icon { display: none !important; }
    #ordersElement { display: none !important; }
    .mobile-sign-in { display: flex !important; align-items: center; gap: 5px; color: #fff; white-space: nowrap; }
    .mobile-sign-in-text { font-size: 13px; font-weight: 600; color: #fff; letter-spacing: 0.01em; }
    .nav-icon-svg { width: 22px; height: 22px; fill: #fff; flex-shrink: 0; }
    .nav-item { flex-shrink: 0; }
    .cart-icon-emoji { display: none; }
    .cart-icon-svg { display: block; width: 24px; height: 24px; fill: #fff; flex-shrink: 0; }
    .desktop-cart-text { display: none; }
    .cart { display: flex; flex-direction: row; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; white-space: nowrap; color: #fff; }
    .cart-count-wrap { display: inline; font-size: 14px; line-height: 1; }
    .search-bar { grid-area: search; width: 100%; max-width: 100%; min-width: 0; height: 42px; margin: 0; }
    .search-bar input { padding: 0 12px; font-size: 14px; }
    .search-bar button { width: 36px; height: 36px; flex-shrink: 0; }
    .drawer-nav-link { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid #ddd; padding: 15px 20px; color: #0f1111; font-size: 16px; font-weight: 500; border-left: 4px solid transparent; cursor: pointer; }
    .drawer-nav-link svg { display: block; width: 20px; height: 20px; fill: #0044cc; flex-shrink: 0; }
    .drawer-nav-link:hover { background-color: #f2f8fd; border-left: 4px solid #0044cc; color: #0044cc; }
    .drawer-cart-count { font-weight: 600; margin-left: 2px; }
    .drawer-nav-divider { display: block; height: 8px; padding: 0 !important; background: #eaeded; border-bottom: 1px solid #ddd; border-left: none !important; cursor: default; pointer-events: none; }
    .drawer-nav-divider:hover { background: #eaeded !important; border-left: none !important; }
    
    .location-btn { grid-area: location; display: grid; grid-template-columns: auto auto 1fr auto; width: 100%; max-width: 100%; height: 36px; min-height: 36px; background: #fff; border-radius: 8px; align-items: center; padding: 0 10px 0 12px; margin: 0; gap: 6px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); transition: background-color 0.15s, box-shadow 0.15s; }
    .location-btn:hover { background: #f7fafa; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.16); }
    .loc-icon { display: flex; align-items: center; flex-shrink: 0; grid-column: 1; }
    .loc-icon svg { width: 18px; height: 18px; fill: #0044cc; }
    .loc-text { display: contents; }
    .loc-small { grid-column: 2; font-size: 13px; font-weight: 700; color: #0f1111; letter-spacing: 0; white-space: nowrap; }
    .loc-country { grid-column: 3; font-size: 13px; font-weight: 400; color: #0f1111; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: right; justify-self: end; min-width: 0; }
    .loc-chevron { grid-column: 4; display: flex; align-items: center; flex-shrink: 0; color: #565959; font-size: 13px; line-height: 1; }
    
    .sub-header { position: fixed; top: 0; left: -300px; width: 280px; max-width: 85vw; height: 100vh; height: 100dvh; background-color: #fff; flex-direction: column; padding: 60px 0 0 0; z-index: 2001; transition: left 0.3s ease; box-shadow: 2px 0 10px rgba(0,0,0,0.5); display: flex !important; overflow-y: auto; overflow-x: hidden; }
    .sub-header.open { left: 0; }
    .sub-header div { border-bottom: 1px solid #ddd; padding: 15px 20px; color: #0f1111; font-size: 16px; border-left: 4px solid transparent; }
    .sub-header div:hover, .sub-header div.active-tab { background-color: #f2f8fd; border-bottom: 1px solid #ddd; border-left: 4px solid #0044cc; color: #0044cc; }
    .close-menu { display: block !important; position: absolute; top: 15px; right: 20px; font-size: 40px; cursor: pointer; color: #333; line-height: 0.8; border: none !important; padding: 0 !important; }
    .close-menu:hover { background: none !important; border-left: none !important; }
    .mobile-menu-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 2000; display: none; }
    .mobile-menu-overlay.open { display: block; }
}

@media (max-width: 480px) {
    .header { padding: 6px 10px 6px; row-gap: 6px; column-gap: 8px; }
    .hamburger-icon svg { width: 24px; height: 24px; }
    .logo img { height: 30px; max-height: 30px; }
    .nav-right { gap: 10px; }
    .nav-icon-svg { width: 20px; height: 20px; }
    .mobile-sign-in-text { font-size: 12px; }
    .cart-icon-svg { width: 22px; height: 22px; }
    .cart { font-size: 13px; }
    .cart-count-wrap { font-size: 13px; }
    .search-bar { height: 40px; }
    .search-bar input { padding: 0 10px; font-size: 13px; }
    .location-btn { height: 34px; min-height: 34px; padding: 0 10px; gap: 6px; }
    .loc-icon svg { width: 16px; height: 16px; }
    .loc-small { font-size: 12px; }
    .loc-country { font-size: 12px; }
    .loc-chevron { font-size: 12px; }
}

/* ==========================================
   AUTHENTICATION & DASHBOARD WORKSPACE STYLES
   ========================================== */
.account-container {
    width: 100%; max-width: 380px; margin: 40px auto; display: flex; flex-direction: column; align-items: center; position: relative; font-family: 'Inter', Arial, sans-serif;
}
.account-logo { height: 40px; margin-bottom: 20px; object-fit: contain; cursor: pointer; }
.account-box {
    background: white; border: 1px solid #ddd; border-radius: 8px; padding: 25px 30px; width: 100%; box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.account-box h2 { font-weight: 500; font-size: 26px; margin-bottom: 18px; color: #111; }
.account-box label { font-size: 13px; font-weight: bold; padding-bottom: 6px; display: block; margin-top: 12px; }
.account-box label:first-of-type { margin-top: 0; }

.account-input {
    width: 100%; padding: 10px 12px; border: 1px solid #a6a6a6; border-radius: 3px; outline: none; box-shadow: inset 0 1px 2px rgba(0,0,0,.1); margin-bottom: 12px; font-size: 14px; font-family: 'Inter', sans-serif;
}
.account-input:focus { border-color: #0044cc; box-shadow: 0 0 3px 2px rgba(0,68,204,.3); }

.account-continue-btn {
    background: #0044cc; color: white; border: 1px solid #0033aa; border-radius: 4px; padding: 10px; width: 100%; cursor: pointer; font-size: 14px; font-weight: bold; transition: background-color 0.2s; margin-top: 15px; box-shadow: 0 1px 0 rgba(255,255,255,.2) inset;
}
.account-continue-btn:hover { background: #0033aa; }
.account-terms { font-size: 12px; margin-top: 15px; line-height: 1.5; color: #565959; }
.account-divider {
    display: flex; align-items: center; text-align: center; color: #767676; font-size: 12px; margin: 24px 0 16px 0; width: 100%;
}
.account-divider::before, .account-divider::after {
    content: ''; flex: 1; border-bottom: 1px solid #e7e7e7;
}
.account-divider span { padding: 0 10px; }
.account-register-btn {
    background: #e7e9ec; border: 1px solid; border-color: #adb1b8 #a2a6ac #8d9096; border-radius: 4px; padding: 10px; width: 100%; cursor: pointer; font-size: 14px; font-weight: bold; transition: background-color 0.2s; box-shadow: 0 1px 0 rgba(255,255,255,.6) inset; margin-top: 5px; color: #0f1111;
}
.account-register-btn:hover { background: #dfdfdf; }

/* Dashboard Pages Styles */
.dashboard-container {
    background: white; width: 100%; max-width: 850px; margin: 30px auto;
    padding: 35px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.06); font-family: 'Inter', Arial, sans-serif;
}
.dashboard-header { font-size: 28px; font-weight: normal; margin-bottom: 25px; color: #0f1111; }
.dashboard-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px;
}
.dashboard-card {
    border: 1px solid #d5d9d9; border-radius: 8px; padding: 22px; display: flex; align-items: center; gap: 18px; cursor: pointer; transition: background-color 0.2s, border-color 0.2s; background: #fff; text-decoration: none;
}
.dashboard-card:hover { background-color: #f7fafa; border-color: #0044cc; }
.dashboard-icon {
    width: 60px; height: 60px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 26px; flex-shrink: 0;
    background-color: #e6f1fc; border: 2px solid #fff; box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}
.dashboard-text h3 { font-size: 16px; font-weight: 600; color: #0f1111; margin-bottom: 6px; }
.dashboard-text p { font-size: 13px; color: #565959; line-height: 1.45; }

.auth-alert {
    padding: 10px 14px; border-radius: 4px; font-size: 13px; line-height: 1.4; margin-bottom: 15px; border-width: 1px; border-style: solid;
}
.auth-alert-error {
    background-color: #fdf6f6; border-color: #f5c6cb; color: #721c24;
}
.auth-alert-success {
    background-color: #f4faf4; border-color: #c3e6cb; color: #155724;
}
