/* -----------------------------------
   GLOBAL RESET + BASE
----------------------------------- */

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    font-family: 'Inter', sans-serif;
    background: #F9F7F2;
    color: #111;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Remove default link styling */
a {
    color: inherit;
    text-decoration: none;
}
a:visited {
    color: inherit;
}

/* -----------------------------------
   NAVBAR
----------------------------------- */

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 50px;
    background: #7A8A6F;
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

.logo {
    height: 45px;
    display: flex;
    align-items: center;
}
.logo img {
    height: 180%;
    width: auto;
}

.nav a {
    margin-left: 26px;
    font-size: 15px;
}

/* -----------------------------------
   HERO SECTION
----------------------------------- */

.hero {
    height: 70vh;
    background: url("../img/hero.png") center/cover no-repeat;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    position: relative;
}

.hero-inner h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3.5rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.hero-inner p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.btn {
    background: #7A8A6F;
    padding: 12px 26px;
    color: white;
    font-weight: 600;
    border-radius: 4px;
    font-size: 15px;
}

/* -----------------------------------
   CATEGORIES
----------------------------------- */

.categories {
    padding: 60px 50px 40px;
}

.categories h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 32px;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.cat-card {
    border: 3px solid #7A8A6F20;
    border-radius: 14px;
    padding: 0;
    background: white;
    transition: 0.25s ease;
    overflow: hidden;
}

.cat-card img {
    width: 100%;
    height: 240px;   /* increased height */
    object-fit: cover;
    display: block;
}

.cat-card h3 {
    padding: 18px;
    font-size: 1.3rem;
    text-align: center;
}

.cat-card:hover {
    border-color: #7A8A6F;
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(122, 138, 111, 0.35);
}


/* -----------------------------------
   FEATURED SECTION
----------------------------------- */

.featured {
    padding: 70px 50px 60px;
}

.featured h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 32px;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.featured-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 0 10px;
    scroll-snap-type: x mandatory;
}

.featured-scroll::-webkit-scrollbar {
    height: 8px;
}
.featured-scroll::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

/* -----------------------------------
   PRODUCT CARDS (HOME + SHOP)
----------------------------------- */

.product-card {
    background: white;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    min-width: 220px;
    flex-shrink: 0;
    scroll-snap-align: start;
    transition: 0.2s ease;
}

.product-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
}

.product-grid-page .product-card img {
    height: auto;
    max-height: none;
    object-fit: contain;
    background: #f7f7f7;
}

.product-card h4 {
    margin: 10px 0 4px;
    font-size: 17px;
}

.product-card p {
    font-size: 15px;
}

.product-card:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* SHOP PAGE GRID */
.product-grid-page {
    padding: 0 50px 40px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 26px;
}

.product-card {
    background: white;
    border-radius: 12px;
    padding: 15px;
    border: 3px solid #7A8A6F20;
    transition: 0.25s ease;
}

.product-card:hover {
    border-color: #7A8A6F;
    transform: translateY(-6px);
}

.featured-scroll .product-card {
    min-width: 260px; /* bigger */
}

.featured-scroll .product-card img {
    height: 300px; /* taller images */
}

.product-card:hover,
.cat-card:hover {
    box-shadow: 0 8px 20px rgba(122, 138, 111, 0.35);
}


/* -----------------------------------
   PRODUCT PAGE
----------------------------------- */

.product-page-bp {
    display: flex;
    gap: 40px;
    padding: 40px 50px;
}

.product-gallery {
    width: 55%;
}

.product-gallery .main-image img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    border-radius: 6px;
}

.thumbs {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.thumbs img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
}

.thumbs img:hover {
    border-color: #7A8A6F;
}

.product-info-bp {
    width: 45%;
}

.product-info-bp h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.product-info-bp .price {
    font-size: 22px;
    margin-bottom: 20px;
}

.product-info-bp .desc {
    font-size: 16px;
    margin-bottom: 30px;
}

.selector-title {
    font-size: 16px;
    margin: 20px 0 8px;
    font-weight: 600;
}

.option-box {
    display: inline-block;
    padding: 10px 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-right: 8px;
    cursor: pointer;
    font-size: 14px;
}

.option-box.active {
    border-color: #7A8A6F;
    background: #7A8A6F;
    color: white;
}

.add-btn {
    margin-top: 50px;
}

/* -----------------------------------
   CART PAGE
----------------------------------- */

.cart-items {
    padding: 0 50px 40px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.cart-item img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
}

.remove-btn {
    background: #7A8A6F;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 6px;
}

/* -----------------------------------
   CONTACT PAGE
----------------------------------- */

.contact-page {
    padding: 0 50px 60px;
    max-width: 700px;
    margin: auto;
}

.contact-intro {
    font-size: 16px;
    margin-bottom: 30px;
    text-align: center;
}

.contact-form-retro {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 40px;
}

.contact-form-retro input,
.contact-form-retro textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
}

.contact-form-retro textarea {
    min-height: 140px;
    resize: none;
    overflow-y: hidden;
}

.contact-btn {
    margin-top: 10px;
    width: 160px;
}

.contact-info-retro {
    margin-top: 20px;
    text-align: center;
}

.contact-info-retro h3 {
    font-size: 22px;
    margin-bottom: 6px;
}

/* -----------------------------------
   FOOTER
----------------------------------- */

.footer {
    text-align: center;
    padding: 20px;
    background: #7A8A6F;
    color: white;
    margin-top: 20px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

.nav a {
    text-decoration: none;
    color: white;
    font-size: 15px;
}

.cart-link {
    position: relative;
    color: white;
    font-size: 15px;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.cart-badge {
    position: absolute;
    top: -11px;
    right: -20px;
    background: black;
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
}

/* product.html */

.thumbs-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-top: 12px;
}

.thumbs {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 8px;
    padding: 5px 0;
    max-width: 100%;
}

.thumbs::-webkit-scrollbar {
    display: none;
}

.thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 6px;
    border: 2px solid transparent;
}

.thumb:hover {
    border-color: #999;
}

.thumb-arrow {
    background: #eee;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 6px;
    user-select: none;
}

.thumb-arrow:hover {
    background: #ddd;
}

/*index.html */

.scroll-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.scroll-container {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 20px;
    padding: 10px 0;
    width: 100%;
}

.scroll-container::-webkit-scrollbar {
    display: none;
}

.scroll-arrow {
    background: #eee;
    border: none;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 20px;
    border-radius: 6px;
    user-select: none;
}

.scroll-arrow:hover {
    background: #ddd;
}

.cat-card, .product-card {
    min-width: 180px;
    text-align: center;
}

.cat-card img, .product-card img {
    width: 100%;
    border-radius: 8px;
}

/* gender */
.gender-filter {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 20px;
}

.gender-filter a {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-gender {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    margin-bottom: 10px;
}

.gender-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #7A8A6F;
    color: white;
    padding: 3px 8px;
    font-size: 12px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-card {
    position: relative;
}

/* size */
.size-guide-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 14px;
    text-decoration: underline;
    opacity: 0.7;
}

/* Size Guide Layout */
.size-section {
    margin: 40px auto;
    max-width: 900px;
    padding: 0 20px;
}

.size-section h2 {
    font-family: "Bebas Neue", sans-serif;
    font-size: 32px;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

/* Tables */
.size-section table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    font-size: 15px;
}

.size-section table th {
    text-align: left;
    padding: 12px 10px;
    background: #f4f4f4;
    font-weight: 600;
    border-bottom: 1px solid #ddd;
}

.size-section table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

/* Zebra rows for readability */
.size-section table tr:nth-child(even) td {
    background: #fafafa;
}

/* Page header */
.page-header h1 {
    font-family: "Bebas Neue", sans-serif;
    font-size: 48px;
    letter-spacing: 1px;
}

.page-header p {
    opacity: 0.7;
    margin-top: 5px;
}

/* Size Guide link on product page */
.size-guide-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 14px;
    text-decoration: underline;
    opacity: 0.7;
}

/* GLOBAL FONT SYSTEM */
body {
    font-family: "Inter", sans-serif;
    font-weight: 400;
    color: #111;
}

/* HEADINGS */
h1, h2, h3, h4 {
    font-family: "Bebas Neue", sans-serif;
    letter-spacing: 1px;
    margin: 0 0 10px 0;
}

/* PRODUCT TITLES */
#product-title {
    font-family: "Bebas Neue", sans-serif;
    font-size: 42px;
    letter-spacing: 1px;
}

/* NAVBAR */
.navbar a {
    font-family: "Inter", sans-serif;
    font-weight: 500;
}

/* BUTTONS */
button, .btn {
    font-family: "Inter", sans-serif;
    font-weight: 600;
}

/* PRICE TEXT */
.price {
    font-family: "Inter", sans-serif;
    font-weight: 600;
    font-size: 18px;
}

/* SIZE GUIDE HEADERS */
.size-section h2 {
    font-family: "Bebas Neue", sans-serif;
    font-size: 32px;
    letter-spacing: 1px;
}

/* TABLE TEXT */
.size-section table {
    font-family: "Inter", sans-serif;
    font-size: 15px;
}

/* PRODUCT PAGE MAIN IMAGE */
.product-gallery .main-image img {
    width: 100%;
    height: 500px; /* adjust if needed */
    object-fit: contain;
    background: #f7f7f7;
    border-radius: 8px;
}

/* PRODUCT PAGE THUMBNAILS */
#product-thumbs img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
}

/* SHOP ONLY — perfect alignment */
.product-grid-page .product-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

/* Image stays clean and contained */
.product-grid-page .product-card img {
    width: 100%;
    height: 300px; /* same as New Arrivals */
    object-fit: contain;
    background: #f7f7f7;
    border-radius: 8px;
}

/* Lock the text area height so cards align */
.product-grid-page .product-card h4 {
    min-height: 48px; /* forces titles to take same space */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.product-grid-page .product-card p {
    min-height: 22px; /* price area consistent */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* SHOP ONLY — remove grey background */
.product-grid-page .product-card img {
    background: none !important;
}

.page-header {
    padding: 40px 50px 10px;
}

/* paging */
.pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 40px 0;
}

.pagination button {
    padding: 8px 14px;
    border: 1px solid #ccc;
    background: white;
    cursor: pointer;
    border-radius: 6px;
    font-size: 14px;
    color: #111 !important; /* non-active buttons */
}

.pagination button.active {
    background: #7A8A6F;
    color: white !important;
    border-color: #7A8A6F;
}

.pagination button:hover {
    background: #eee;
}

.about-content {
    max-width: 750px;
    margin: 0 auto;
    padding: 20px 30px;
    text-align: center;
    line-height: 1.7;
    font-size: 17px;
}

.about-content p {
    margin-bottom: 26px;
}

/* materials etc*/
.product-details-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e5e5e5;
    font-family: Inter, sans-serif;
}

.product-details-section h2 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 25px;
    margin-bottom: 10px;
    letter-spacing: 0.3px;
}

.product-details-section p {
    opacity: 0.85;
    line-height: 1.6;
    font-size: 0.95rem;
}

.product-details-section ul {
    margin: 0;
    padding-left: 20px;
}

.product-details-section li {
    opacity: 0.85;
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.breadcrumb {
    margin-bottom: 20px;
    padding-left: 10px;
}

.breadcrumb a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1.4rem;
    font-weight: 600;
    opacity: 0.85;
    cursor: pointer;
    text-decoration: none;
    background: #fff;
    transition: 0.2s;
}

.breadcrumb a:hover {
    border-color: #000;
    background: #f5f5f5;
}

.accordion {
    margin-top: 40px;
    border-top: 1px solid #e5e5e5;
    font-family: Inter, sans-serif;
}

.acc-item {
    border-bottom: 1px solid #e5e5e5;
}

.acc-header {
    width: 100%;
    background: none;
    border: none;
    padding: 18px 0;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    letter-spacing: 0.3px;
}

.acc-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    padding-right: 10px;
}

.acc-body p,
.acc-body li {
    opacity: 0.85;
    font-size: 0.95rem;
    line-height: 1.6;
}

.acc-body ul {
    padding-left: 20px;
    margin: 10px 0;
}

.acc-item.active .acc-body {
    max-height: 500px;
    padding-bottom: 15px;
}

.product-info-bp h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.product-info-bp .price {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.product-info-bp .desc {
    opacity: 0.85;
    line-height: 1.6;
    margin-bottom: 25px;
}

.option-box {
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    margin-right: 10px;
    margin-bottom: 10px;
}


.thumbs-wrapper {
    display: flex;
    align-items: center;
    margin-top: 15px;
}

.thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    margin-right: 10px;
}

.thumb-arrow {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    opacity: 0.6;
}


.product-gallery {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.product-gallery {
    align-self: flex-start;
}

.thumbs-wrapper {
    background: #fff;
    padding: 12px;
    border-radius: 10px;
}

.main-image {
    background: #fff !important;
    padding: 20px;
    border-radius: 10px;
}

.main-image img {
    background: #fff !important;
    display: block;
}

/* may also like */
.related-section {
    margin-top: 50px;
}

.related-section h2 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.related-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}

.related-card {
    text-decoration: none;
    color: inherit;
}

.related-card img {
    width: 100%;
    border-radius: 10px;
    background: #fff;
}

.related-card h4 {
    font-size: 0.95rem;
    margin-top: 8px;
}

.related-card p {
    font-size: 0.9rem;
    opacity: 0.7;
}

.product-page-bp {
    background: #fff;
    padding: 40px 50px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.footer {
    padding: 40px 20px;
    text-align: center;
    font-size: 14px;
    color: #777;
    border-top: 1px solid #e5e5e5;
    margin-top: 60px;
}

.footer p {
    margin: 0 0 15px 0;
    color: #ffffff;
    font-weight: 500;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #000;
}

/* -----------------------------------
   INFO / LEGAL PAGE STYLING
----------------------------------- */

.info-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 10px 0 60px;
    text-align: left;
    line-height: 1.6;
    font-size: 16px;
    color: #222;
}

.info-page p {
    margin-bottom: 18px;
}

.info-page h2 {
    margin-top: 32px;
    margin-bottom: 12px;
    font-size: 24px;
    font-family: "Bebas Neue", sans-serif;
    letter-spacing: 0.5px;
}

.info-page h3 {
    margin-top: 22px;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 600;
}

.info-page ul {
    margin: 12px 0 22px 20px;
    padding-left: 0;
    line-height: 1.6;
}

.info-page li {
    margin-bottom: 8px;
    font-size: 16px;
}

/* CART PAGE — RetroWear style */

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 0 50px 40px;
}

.cart-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    border: 3px solid #7A8A6F20;
    border-radius: 12px;
    background: #fff;
}

.cart-item img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    border: 3px solid #7A8A6F20;
}

.cart-item h4 {
    font-size: 20px;
    margin: 0 0 8px 0;
    font-weight: 700;
}

.cart-item p {
    margin: 4px 0;
    font-size: 15px;
}

/* REMOVE BUTTON — sage green */
.remove-btn {
    margin-top: 12px;
    background: #7A8A6F;
    color: white;
    border: none;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
}

/* SUMMARY SECTION */
.cart-summary {
    margin-top: 40px;
    padding: 0 50px 40px;
    border-top: 3px solid #7A8A6F20;
}

.cart-total h3 {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 700;
}

/* CHECKOUT BUTTON — sage green */
.checkout-btn {
    width: 100%;
    background: #7A8A6F;
    color: white;
    border: none;
    padding: 16px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
}

/* SUCCESS & CANCEL PAGES */

.success-page,
.cancel-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 50px 60px;
    text-align: center;
    line-height: 1.7;
    font-size: 17px;
    color: #222;
}

.success-page p,
.cancel-page p {
    margin-bottom: 26px;
}

.success-page .btn,
.cancel-page .btn {
    background: #7A8A6F;
    color: white;
    padding: 12px 26px;
    font-weight: 600;
    border-radius: 4px;
    font-size: 15px;
    display: inline-block;
    margin-top: 20px;
}

.success-page .btn + .btn,
.cancel-page .btn + .btn {
    margin-left: 12px;
}

/* admin panel */
.admin-wrapper {
    max-width: 1400px;
    margin: 40px auto;
    padding: 20px;
    font-family: Inter, sans-serif;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.admin-header h1 {
    font-size: 42px;
    font-weight: 700;
    letter-spacing: 1px;
}

.admin-logout-btn {
    background: #7A8A6F;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 16px;
    color: white;
    cursor: pointer;
}

.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.admin-card {
    background: #ffffff;
    border: 3px solid #7A8A6F20;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 6px 18px rgba(122, 138, 111, 0.15);
}

.admin-card h2 {
    font-size: 32px;
    margin-bottom: 25px;
    font-family: "Bebas Neue", sans-serif;
    letter-spacing: 1px;
}

.admin-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.admin-controls input,
.admin-controls select {
    padding: 14px;
    border: 2px solid #7A8A6F20;
    border-radius: 10px;
    font-size: 15px;
    background: #FAFAFA;
}

.admin-controls input:focus,
.admin-controls select:focus {
    border-color: #7A8A6F;
    background: #ffffff;
    outline: none;
}

.orders-scroll {
    max-height: 400px;
    overflow-y: auto;
    border: 2px solid #7A8A6F20;
    border-radius: 12px;
}

#ordersTable {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

#ordersTable th {
    text-align: left;
    padding: 14px 10px;
    background: #f7f7f7;
    font-weight: 600;
    border-bottom: 2px solid #e5e5e5;
}

#ordersTable td {
    padding: 14px 10px;
    border-bottom: 1px solid #eee;
}

#ordersTable tr:hover {
    background: #fafafa;
}

.view-btn {
    background: #7A8A6F;
    padding: 8px 14px;
    border-radius: 8px;
    color: white;
    cursor: pointer;
}

.order-details-box {
    font-size: 17px;
    line-height: 1.7;
}

.order-info p {
    margin: 6px 0;
}

.admin-items-list {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.admin-item {
    display: flex;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.admin-item-img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
}

.admin-item-info p {
    margin: 2px 0;
}

.admin-btn {
    background: #7A8A6F;
    padding: 12px 20px;
    border-radius: 10px;
    margin-top: 10px;
    color: white;
    cursor: pointer;
}

#trackingInput,
#statusSelect {
    padding: 14px;
    border: 2px solid #7A8A6F20;
    border-radius: 10px;
    font-size: 15px;
    background: #FAFAFA;
    margin-top: 10px;
}

#trackingInput:focus,
#statusSelect:focus {
    border-color: #7A8A6F;
    background: #ffffff;
    outline: none;
}

#analyticsBox {
    font-size: 17px;
    line-height: 1.7;
}

#analyticsBox h3 {
    margin-top: 20px;
    font-size: 24px;
    font-family: "Bebas Neue", sans-serif;
}

.login-container {
    max-width: 350px;
    margin: 80px auto;
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #fff;
}

.login-container h2 {
    text-align: center;
    font-size: 22px;
    margin-bottom: 10px;
}

.login-container input {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
}

.login-container button {
    padding: 12px;
    background: black;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
}

.login-container button:hover {
    opacity: 0.85;
}

#errorMsg {
    color: red;
    text-align: center;
    font-size: 14px;
}

.account-link {
    display: flex;
    align-items: center;
}

.account-icon {
    width: 22px;
    height: 22px;
}

/* customer account*/
.account-container {
    max-width: 520px;
    margin: 100px auto;
    padding: 40px 36px;
    background: #fff;
    border: 3px solid #7A8A6F20;
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(122, 138, 111, 0.18);
}

.tabs {
    display: flex;
    justify-content: space-between;
    margin-bottom: 32px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #7A8A6F;
}

.tab {
    flex: 1;
    padding: 18px;
    background: #F9F7F2;
    color: #7A8A6F;
    font-weight: 600;
    cursor: pointer;
    font-size: 16px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.tab.active {
    background: #7A8A6F;
    color: white;
}

.form {
    display: none;
    flex-direction: column;
    gap: 22px;
}

.form.active {
    display: flex;
}

.form input {
    padding: 16px;
    border: 2px solid #7A8A6F20;
    border-radius: 10px;
    background: #fff;
    font-size: 16px;
    color: #111;
}

.form input:focus {
    border-color: #7A8A6F;
    outline: none;
}

.form button {
    padding: 16px;
    background: #7A8A6F;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.6px;
    margin-top: 10px;
}

.form button:hover {
    background: #6f7d66;
}

.error {
    color: #c62828;
    font-size: 15px;
    margin-top: -10px;
}

/* dashbaord */
.account-section {
    width: 100%;
    max-width: 1400px;
    margin: 40px auto 60px;
    padding: 0 20px;
}

.account-section h2 {
    font-size: 42px;
    margin-bottom: 25px;
    font-family: "Bebas Neue", sans-serif;
    letter-spacing: 1px;
}

.account-block {
    width: 100%;
    background: #fff;
    border: 3px solid #7A8A6F20;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 24px rgba(122, 138, 111, 0.18);
    font-size: 18px;
    line-height: 1.7;
}

.address-form {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.address-form input {
    padding: 16px;
    border: 2px solid #7A8A6F20;
    border-radius: 10px;
    font-size: 16px;
}

.orders-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.order-item {
    width: 100%;
    background: #fff;
    border: 3px solid #7A8A6F20;
    border-radius: 16px;
    padding: 36px;
    box-shadow: 0 6px 18px rgba(122, 138, 111, 0.15);
    font-size: 18px;
    line-height: 1.7;
}

.dash-btn {
    margin-top: 30px;
    padding: 18px 24px;
    background: #7A8A6F;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.5px;
}

.dash-btn:hover {
    background: #6f7d66;
}

.order-items {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.order-product {
    display: flex;
    gap: 18px;
    padding: 16px 0 16px 16px;
    border-left: 4px solid #e0e0e0;
}

.order-product-img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
}

.order-product-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.order-product-info p {
    margin: 0;
    font-size: 17px;
}

/* order.html */
.receipt-container {
    max-width: 600px;
    margin: 0 auto;
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    text-align: center;
}

.receipt-logo {
    width: 140px;
    margin-bottom: 20px;
}

.receipt-card {
    text-align: left;
    margin-top: 10px;
}

.receipt-title {
    font-size: 22px;
    margin-bottom: 10px;
}

.order-product-full {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.order-product-img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
}

.tracking-link {
    color: #7A8A6F;
    font-weight: 600;
}

.dash-btn {
    color: #ffffff !important;
}

/* account icon */
.account-link {
    display: flex;
    align-items: center;
}

.account-icon {
    width: 22px;
    height: 22px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.account-icon:hover {
    opacity: 0.7;
}

.info-page h2,
.info-page h3,
.product-details-section h2,
.accordion .acc-header {
    color: #111 !important;
}

/* checkout page */
.checkout-page {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 40px 80px;
}

.checkout-page h1 {
    font-family: "Bebas Neue", sans-serif;
    font-size: 52px;
    letter-spacing: 1px;
    margin-bottom: 40px;
}

.checkout-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.checkout-left,
.checkout-right {
    background: #ffffff;
    border: 3px solid #7A8A6F20;
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 6px 18px rgba(122, 138, 111, 0.15);
}

.checkout-left {
    flex: 1.4;
}

.checkout-right {
    flex: 1;
    position: sticky;
    top: 40px;
}

.checkout-left h2,
.checkout-right h2 {
    font-size: 30px;
    margin-bottom: 25px;
    font-weight: 600;
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.checkout-form input {
    padding: 15px 16px;
    border: 2px solid #7A8A6F20;
    border-radius: 10px;
    font-size: 16px;
    background: #FAFAFA;
}

.checkout-form input:focus {
    border-color: #7A8A6F;
    background: #ffffff;
    outline: none;
}

#defaultAddressBox {
    margin-bottom: 20px;
    padding: 14px;
    border: 2px solid #7A8A6F20;
    border-radius: 10px;
    background: #FAFAFA;
    line-height: 1.6;
}

#orderSummary {
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 25px;
}

.checkout-item {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid #7A8A6F20;
}

.checkout-item-img {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    object-fit: cover;
}

.checkout-item-info h4 {
    margin: 0 0 6px;
    font-size: 18px;
}

.checkout-pay-btn {
    width: 100%;
    background: #7A8A6F;
    color: white;
    border: none;
    padding: 18px;
    font-size: 19px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 10px;
    transition: 0.2s;
}

.checkout-pay-btn:hover {
    background: #6f7d66;
}

.saved-address-option {
    padding: 14px;
    border: 2px solid #7A8A6F20;
    border-radius: 10px;
    background: #FAFAFA;
    cursor: pointer;
    transition: 0.2s;
    margin-bottom: 14px;
}

.saved-address-option.active {
    border-color: #7A8A6F;
    background: #F3F1EB;
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(3px);
    z-index: 999;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #ffffff;
    padding: 30px;
    border-radius: 16px;
    width: 420px;
    max-height: 80vh;
    overflow-y: auto;
    border: 3px solid #7A8A6F20;
    box-shadow: 0 6px 18px rgba(122, 138, 111, 0.15);
}

.modal-content h3 {
    font-size: 26px;
    margin-bottom: 20px;
}

#addressListModal {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
}

@media (max-width: 900px) {
    .checkout-wrapper {
        flex-direction: column;
    }
}

.account-section {
    margin-bottom: 50px;
}

.account-block {
    background: #ffffff;
    border: 3px solid #7A8A6F20;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 6px 18px rgba(122, 138, 111, 0.15);
    margin-top: 20px;
}

#addressList {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 25px;
}

.saved-address-option {
    padding: 16px;
    border: 2px solid #7A8A6F20;
    border-radius: 12px;
    background: #FAFAFA;
    transition: 0.2s;
    line-height: 1.6;
}

.saved-address-option.active {
    border-color: #7A8A6F;
    background: #F3F1EB;
}

.address-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.address-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 20px;
}

.address-form input {
    padding: 14px;
    border: 2px solid #7A8A6F20;
    border-radius: 10px;
    background: #FAFAFA;
    font-size: 16px;
}

.address-form input:focus {
    border-color: #7A8A6F;
    background: #ffffff;
    outline: none;
}

.dash-btn {
    background: #7A8A6F;
    color: white;
    border: none;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.dash-btn:hover {
    background: #6f7d66;
}

.order-item {
    background: #ffffff;
    border: 3px solid #7A8A6F20;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
}

.order-product {
    display: flex;
    gap: 16px;
    margin-bottom: 18px;
}

.order-product-img {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    object-fit: cover;
}

.order-product-info p {
    margin: 2px 0;
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(3px);
    z-index: 999;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #ffffff;
    padding: 30px;
    border-radius: 16px;
    width: 420px;
    max-height: 80vh;
    overflow-y: auto;
    border: 3px solid #7A8A6F20;
    box-shadow: 0 6px 18px rgba(122, 138, 111, 0.15);
}

.modal-content h3 {
    font-size: 26px;
    margin-bottom: 20px;
}

.modal-content input {
    width: 100%;
    padding: 14px;
    border: 2px solid #7A8A6F20;
    border-radius: 10px;
    background: #FAFAFA;
    font-size: 16px;
    margin-bottom: 14px;
}

.modal-content input:focus {
    border-color: #7A8A6F;
    background: #ffffff;
    outline: none;
}

.modal-content button {
    width: 100%;
    margin-top: 10px;
}

.address-notice {
    background: #F3F1EB;
    border: 2px solid #7A8A6F40;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-weight: 600;
    color: #7A8A6F;
}

/* popup */
.retro-popup {
    position: fixed;
    top: 35vh; /* middle of screen */
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    padding: 16px 22px;
    border-radius: 8px;
    font-family: Inter, sans-serif;
    font-size: 15px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 9999;
    color: #fff;
}

.retro-popup.success {
    background: #7A8A6F; /* sage green */
}

.retro-popup.error {
    background: #C46A6A; /* muted red */
}

.retro-popup.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.retro-popup-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.retro-popup.hidden {
    display: none;
}

/* inline validation */
.input-error {
    color: #C46A6A;
    font-size: 13px;
    margin-top: 6px;
    display: none;
}

.input-error.show {
    display: block;
}

.input-invalid {
    border-color: #C46A6A !important;
}

/* 404 PAGE */
.page-404 {
    text-align: center;
    padding: 80px 20px;
}

.page-404 h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 70px;
    margin-bottom: 10px;
}

.page-404 p {
    font-size: 18px;
    opacity: 0.8;
    margin-bottom: 30px;
}

.page-404 .btn {
    display: inline-block;
    padding: 12px 25px;
    background: #7A8A6F;
    color: white;
    border-radius: 4px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: 0.2s ease;
}

.page-404 .btn:hover {
    background: #6f7d66;
}

.page-404 .dash-btn {
    margin-top: 20px;
    display: inline-block;
    padding: 12px 25px;
    border: 2px solid #7A8A6F;
    color: #7A8A6F;
    border-radius: 4px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: 0.2s ease;
}

.page-404 .dash-btn:hover {
    background: #7A8A6F;
    color: white;
}
