/* =========================================================
   HP WATCH - STYLE.CSS
========================================================= */

:root {

    --primary: #dda224;
    --primary-dark: #b7791f;

    --dark: #111111;
    --text: #303030;
    --gray: #777777;

    --border: #e4e4e4;
    --background: #f6f6f6;

    --white: #ffffff;

    --danger: #dc2626;

    --new: #15803d;
    --new-bg: #e8f7ed;

    --used: #b45309;
    --used-bg: #fff3e0;

    --available: #15803d;
    --available-bg: #dcfce7;

    --sold: #dc2626;
    --sold-bg: #fee2e2;

}



/* =========================================================
   GLOBAL
========================================================= */

* {

    margin: 0;
    padding: 0;

    box-sizing: border-box;

}


html {

    scroll-behavior: smooth;

}


body {

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    color: var(--text);

    background: white;

    line-height: 1.6;

}


button,
input,
select,
textarea {

    font: inherit;

}


button {

    cursor: pointer;

}


a {

    color: inherit;

    text-decoration: none;

}


img {

    display: block;

    max-width: 100%;

}


.container {

    width: min(
        1180px,
        90%
    );

    margin: auto;

}



/* =========================================================
   HEADER
========================================================= */

.header {

    position: sticky;

    top: 0;

    z-index: 500;

    background: white;

    border-bottom:
        1px solid var(--border);

}


.header-container {

    min-height: 74px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;

}


.logo {

    font-size: 27px;

    font-weight: 800;

}


.logo span {

    color: var(--primary);

}


.nav {

    display: flex;

    gap: 30px;

}


.nav a {

    font-weight: 600;

}


.nav a:hover {

    color: var(--primary);

}


.header-actions {

    display: flex;

    align-items: center;

    gap: 10px;

}


.cart-button {

    min-height: 44px;

    display: flex;

    align-items: center;

    gap: 8px;

    padding: 9px 15px;

    border: none;

    border-radius: 6px;

    background: var(--dark);

    color: white;

}


.cart-count {

    min-width: 22px;

    height: 22px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: var(--primary);

    font-size: 12px;

}


.menu-button {

    display: none;

    width: 44px;

    height: 44px;

    border: none;

    border-radius: 6px;

}



/* =========================================================
   HERO
========================================================= */

.hero {

    position: relative;

    min-height: 620px;

    display: flex;

    align-items: center;

    background-size: cover;

    background-position: center;

}


.hero-overlay {

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0,0,0,.86),
            rgba(0,0,0,.28)
        );

}


.hero-content {

    position: relative;

    z-index: 2;

    color: white;

}


.hero-small {

    margin-bottom: 14px;

    color: #f1b633;

    font-size: 14px;

    font-weight: bold;

    letter-spacing: 3px;

}


.hero h1 {

    max-width: 680px;

    margin-bottom: 25px;

    font-size:
        clamp(
            48px,
            6vw,
            76px
        );

    line-height: 1.02;

}


.hero-main-title {

    display: block;

    color: white;

}


.hero-highlight {

    display: block;

    color: var(--primary);

}


.hero-description {

    max-width: 650px;

    margin-bottom: 31px;

    color: #eeeeee;

    font-size: 18px;

}


.hero-buttons {

    display: flex;

    flex-wrap: wrap;

    gap: 16px;

}


.primary-button,
.secondary-button {

    min-height: 49px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 0 25px;

    border-radius: 6px;

    font-weight: bold;

}


.primary-button {

    background: var(--primary);

    color: white;

}


.primary-button:hover {

    background: var(--primary-dark);

}


.secondary-button {

    border: 1px solid white;

    color: white;

}


.secondary-button:hover {

    background: rgba(255,255,255,.12);

}



/* =========================================================
   BENEFITS
========================================================= */

.benefits {

    border-bottom:
        1px solid var(--border);

}


.benefits-grid {

    min-height: 120px;

    display: grid;

    grid-template-columns:
        repeat(4,1fr);

    align-items: center;

}


.benefit {

    display: flex;

    align-items: center;

    gap: 13px;

    padding: 20px;

}


.benefit-icon {

    width: 45px;

    height: 45px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: #fff4d7;

}


.benefit h3 {

    font-size: 15px;

}


.benefit p {

    color: var(--gray);

    font-size: 13px;

}



/* =========================================================
   SECTION TITLE
========================================================= */

.section-title {

    margin-bottom: 40px;

    text-align: center;

}


.section-title > p,
.mini-title {

    color: var(--primary);

    font-size: 13px;

    font-weight: bold;

    letter-spacing: 2px;

}


.section-title h2 {

    margin: 6px 0;

    font-size: 38px;

}


.section-title span {

    color: var(--gray);

}



/* =========================================================
   PRODUCTS
========================================================= */

.products-section {

    padding: 85px 0;

    background: #f7f7f7;

}


.shop-toolbar {

    display: grid;

    grid-template-columns:
        minmax(240px,1fr)
        180px
        180px
        180px
        190px;

    gap: 10px;

    margin-bottom: 30px;

}


.search-box {

    min-height: 48px;

    display: flex;

    align-items: center;

    gap: 8px;

    padding: 0 13px;

    border: 1px solid var(--border);

    border-radius: 6px;

    background: white;

}


.search-box input {

    width: 100%;

    min-width: 0;

    border: none;

    outline: none;

}


.shop-toolbar select {

    min-height: 48px;

    min-width: 0;

    padding: 0 10px;

    border: 1px solid var(--border);

    border-radius: 6px;

    background: white;

}



/* =========================================================
   PRODUCT CARD
========================================================= */

.product-grid {

    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0,1fr)
        );

    gap: 24px;

}


.product-card {

    overflow: hidden;

    border: 1px solid #eeeeee;

    border-radius: 10px;

    background: white;

    cursor: pointer;

    transition:
        transform .25s,
        box-shadow .25s;

}


.product-card:hover {

    transform:
        translateY(-5px);

    box-shadow:
        0 15px 32px
        rgba(0,0,0,.10);

}


.product-sold {

    background: #fafafa;

}


.product-image-wrapper {

    position: relative;

    height: 290px;

    overflow: hidden;

    background: #eeeeee;

}


.product-image {

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition:
        transform .3s;

}


.product-card:hover
.product-image {

    transform:
        scale(1.04);

}


.product-sold
.product-image {

    opacity: .78;

}



/* =========================================================
   BADGES
========================================================= */

.condition-badge {

    position: absolute;

    top: 13px;

    left: 13px;

    z-index: 3;

    padding: 5px 9px;

    border-radius: 5px;

    font-size: 10px;

    font-weight: bold;

    text-transform: uppercase;

}


.condition-badge.condition-new {

    background: var(--new-bg);

    color: var(--new);

}


.condition-badge.condition-used {

    background: var(--used-bg);

    color: var(--used);

}


.availability-badge {

    position: absolute;

    top: 13px;

    right: 13px;

    z-index: 3;

    padding: 5px 9px;

    border-radius: 5px;

    font-size: 10px;

    font-weight: bold;

    text-transform: uppercase;

}


.availability-badge.availability-available {

    background: var(--available-bg);

    color: var(--available);

}


.availability-badge.availability-sold {

    background: var(--sold-bg);

    color: var(--sold);

}


.product-badge {

    position: absolute;

    bottom: 13px;

    left: 13px;

    z-index: 3;

    padding: 5px 9px;

    border-radius: 4px;

    background: var(--primary);

    color: white;

    font-size: 10px;

    font-weight: bold;

}


.photo-count {

    position: absolute;

    right: 13px;

    bottom: 13px;

    z-index: 3;

    padding: 5px 9px;

    border-radius: 5px;

    background: rgba(0,0,0,.70);

    color: white;

    font-size: 11px;

}



/* =========================================================
   PRODUCT INFORMATION
========================================================= */

.product-info {

    padding: 19px;

}


.product-brand {

    color: var(--gray);

    font-size: 12px;

    text-transform: uppercase;

}


.product-name {

    min-height: 54px;

    margin: 6px 0;

    font-size: 18px;

}


.product-card:hover
.product-name {

    color: var(--primary-dark);

}


.product-meta {

    display: flex;

    flex-wrap: wrap;

    gap: 12px;

    margin-top: 4px;

    font-size: 12px;

    font-weight: bold;

}


.condition-new {

    color: var(--new);

}


.condition-used {

    color: var(--used);

}


.availability-available {

    color: var(--available);

}


.availability-sold {

    color: var(--sold);

}


.product-price-row {

    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 10px;

    margin: 13px 0 17px;

}


.product-price {

    color: var(--primary-dark);

    font-size: 20px;

    font-weight: bold;

}


.old-price {

    color: #aaaaaa;

    font-size: 13px;

    text-decoration: line-through;

}


.add-cart,
.sold-product-button {

    width: 100%;

    min-height: 44px;

    display: flex;

    align-items: center;

    justify-content: center;

    border: none;

    border-radius: 5px;

    font-weight: bold;

}


.add-cart {

    background: var(--dark);

    color: white;

}


.add-cart:hover {

    background: var(--primary);

}


.sold-product-button {

    background: #eeeeee;

    color: var(--sold);

}


.empty-products {

    display: none;

    padding: 50px;

    color: var(--gray);

    text-align: center;

}



/* =========================================================
   ABOUT
========================================================= */

.about {

    padding: 95px 0;

}


.about-grid {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 60px;

    align-items: center;

}


.about-image img {

    width: 100%;

    height: 500px;

    object-fit: cover;

    border-radius: 8px;

}


.about-content h2 {

    margin:
        7px 0 18px;

    font-size: 42px;

}


.about-content > p {

    margin-bottom: 14px;

    color: var(--gray);

}


.about-numbers {

    display: grid;

    grid-template-columns:
        repeat(3,1fr);

    gap: 15px;

    margin-top: 30px;

}


.about-numbers div {

    padding: 18px;

    border-radius: 6px;

    background: #f7f7f7;

    text-align: center;

}


.about-numbers strong {

    display: block;

    color: var(--primary);

    font-size: 24px;

}



/* =========================================================
   CONTACT
========================================================= */

.contact {

    padding: 80px 0;

    background: #f5f5f5;

}


.contact-card {

    max-width: 700px;

    margin: auto;

    padding: 30px;

    border-radius: 10px;

    background: white;

    box-shadow:
        0 8px 30px
        rgba(0,0,0,.06);

}


.contact-card h3 {

    margin-bottom: 22px;

    font-size: 27px;

}


.contact-row {

    display: flex;

    justify-content: space-between;

    gap: 20px;

    padding: 13px 0;

    border-bottom:
        1px solid #eeeeee;

}


.contact-row span {

    color: var(--gray);

}


.contact-row a {

    color: var(--primary-dark);

    font-weight: bold;

}



/* =========================================================
   FOOTER
========================================================= */

.footer {

    padding-top: 60px;

    background: #111111;

    color: #bbbbbb;

}


.footer-grid {

    display: grid;

    grid-template-columns:
        2fr 1fr 1fr 1.4fr;

    gap: 35px;

    padding-bottom: 50px;

}


.footer-logo {

    color: white;

    font-size: 27px;

    font-weight: bold;

}


.footer-logo span {

    color: var(--primary);

}


.footer h3 {

    margin-bottom: 12px;

    color: white;

}


.footer a,
.footer p {

    display: block;

    margin-top: 7px;

    font-size: 14px;

}


.copyright {

    padding: 20px;

    border-top:
        1px solid #333333;

    text-align: center;

}



/* =========================================================
   CART
========================================================= */

.overlay {

    position: fixed;

    inset: 0;

    z-index: 900;

    visibility: hidden;

    opacity: 0;

    background: rgba(0,0,0,.55);

    transition: .25s;

}


.overlay.active {

    visibility: visible;

    opacity: 1;

}


.cart-drawer {

    position: fixed;

    top: 0;

    right: -470px;

    z-index: 1000;

    width: 440px;

    max-width: 100%;

    height: 100vh;

    display: flex;

    flex-direction: column;

    background: white;

    transition: .3s;

}


.cart-drawer.active {

    right: 0;

}


.cart-header {

    padding: 22px;

    display: flex;

    justify-content: space-between;

    border-bottom:
        1px solid var(--border);

}


.close-button {

    border: none;

    background: transparent;

    font-size: 30px;

}


.cart-items {

    flex: 1;

    overflow-y: auto;

    padding: 0 20px;

}


.cart-item {

    display: grid;

    grid-template-columns:
        80px 1fr;

    gap: 13px;

    padding: 18px 0;

    border-bottom:
        1px solid var(--border);

}


.cart-item img {

    width: 80px;

    height: 80px;

    object-fit: cover;

    border-radius: 5px;

}


.cart-item-name {

    font-weight: bold;

}


.cart-item-condition {

    color: var(--gray);

    font-size: 12px;

}


.cart-item-price {

    color: var(--primary-dark);

    font-weight: bold;

}


.cart-item-actions {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-top: 8px;

}


.quantity-control {

    display: flex;

    border:
        1px solid var(--border);

}


.quantity-control button {

    width: 30px;

    border: none;

}


.quantity-control span {

    width: 30px;

    text-align: center;

}


.remove-item {

    border: none;

    background: none;

    color: var(--danger);

}


.empty-cart {

    flex: 1;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

}


.empty-cart-icon {

    font-size: 42px;

}


.cart-footer {

    padding: 22px;

    border-top:
        1px solid var(--border);

}


.total-row {

    display: flex;

    justify-content: space-between;

    margin-bottom: 15px;

}


.checkout-button {

    width: 100%;

    min-height: 48px;

    border: none;

    border-radius: 5px;

    background: var(--primary);

    color: white;

    font-weight: bold;

}



/* =========================================================
   MODAL
========================================================= */

.modal-overlay {

    position: fixed;

    inset: 0;

    z-index: 2000;

    visibility: hidden;

    opacity: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 20px;

    background: rgba(0,0,0,.68);

    transition: .2s;

}


.modal-overlay.active {

    visibility: visible;

    opacity: 1;

}


.product-modal {

    position: relative;

    width:
        min(
            1000px,
            96%
        );

    max-height: 92vh;

    overflow-y: auto;

    padding: 30px;

    border-radius: 10px;

    background: white;

}


.modal-close {

    position: absolute;

    top: 13px;

    right: 16px;

    z-index: 30;

    border: none;

    background: transparent;

    font-size: 30px;

}


.modal-product-grid {

    display: grid;

    grid-template-columns:
        1.1fr .9fr;

    gap: 35px;

}


.modal-main-image {

    position: relative;

    overflow: hidden;

    border-radius: 7px;

    background: #f5f5f5;

}


.modal-main-image > img {

    width: 100%;

    height: 500px;

    object-fit: contain;

    background: white;

}


.gallery-arrow {

    position: absolute;

    top: 50%;

    z-index: 15;

    width: 48px;

    height: 48px;

    display: flex;

    align-items: center;

    justify-content: center;

    border: none;

    border-radius: 50%;

    background: rgba(0,0,0,.62);

    color: white;

    font-size: 38px;

    line-height: 1;

    transform:
        translateY(-50%);

}


.gallery-arrow:hover {

    background: var(--primary);

}


.gallery-arrow-left {

    left: 12px;

}


.gallery-arrow-right {

    right: 12px;

}


.gallery-position {

    position: absolute;

    left: 50%;

    bottom: 12px;

    z-index: 15;

    padding: 5px 10px;

    border-radius: 20px;

    background: rgba(0,0,0,.70);

    color: white;

    font-size: 12px;

    transform:
        translateX(-50%);

}


.gallery-thumbnails {

    display: flex;

    gap: 9px;

    margin-top: 12px;

    padding-bottom: 5px;

    overflow-x: auto;

}


.gallery-thumb {

    flex:
        0 0 80px;

    width: 80px;

    height: 80px;

    padding: 3px;

    border:
        2px solid transparent;

    border-radius: 6px;

    background: white;

}


.gallery-thumb:hover {

    border-color: #bbbbbb;

}


.gallery-thumb.active {

    border-color: var(--primary);

}


.gallery-thumb img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    border-radius: 3px;

}


.modal-product-info {

    padding-top: 15px;

}


.modal-brand {

    color: var(--primary);

    font-weight: bold;

}


.modal-product-info h2 {

    margin: 6px 0 10px;

    font-size: 31px;

}


.modal-status-row {

    display: flex;

    flex-wrap: wrap;

    gap: 15px;

    margin-bottom: 10px;

    font-size: 13px;

    font-weight: bold;

}


.modal-description {

    margin: 18px 0;

    color: var(--gray);

}


.modal-features {

    padding: 18px;

    margin-bottom: 18px;

    background: #f5f5f5;

}


.modal-features p {

    margin-bottom: 6px;

}


.modal-add,
.modal-sold-button {

    width: 100%;

    min-height: 49px;

    border: none;

    border-radius: 5px;

    font-weight: bold;

}


.modal-add {

    background: var(--dark);

    color: white;

}


.modal-add:hover {

    background: var(--primary);

}


.modal-sold-button {

    background: var(--sold-bg);

    color: var(--sold);

}



/* =========================================================
   TOAST
========================================================= */

.toast {

    position: fixed;

    left: 50%;

    bottom: 25px;

    z-index: 5000;

    visibility: hidden;

    opacity: 0;

    padding: 12px 20px;

    border-radius: 5px;

    background: #222222;

    color: white;

    transform:
        translate(-50%,20px);

    transition: .2s;

}


.toast.show {

    visibility: visible;

    opacity: 1;

    transform:
        translate(-50%,0);

}



/* =========================================================
   ADMIN
========================================================= */

.admin-page {

    min-height: 100vh;

    background: #f4f6f8;

}


.admin-sidebar {

    position: fixed;

    top: 0;

    left: 0;

    bottom: 0;

    width: 240px;

    padding: 28px 17px;

    background: #151515;

    color: white;

}


.admin-logo {

    margin-bottom: 38px;

    padding: 0 10px;

    font-size: 25px;

    font-weight: bold;

}


.admin-logo span {

    color: var(--primary);

}


.admin-logo small {

    display: block;

    color: #777777;

    font-size: 10px;

    letter-spacing: 3px;

}


.admin-sidebar nav {

    display: flex;

    flex-direction: column;

    gap: 8px;

}


.admin-menu {

    width: 100%;

    min-height: 45px;

    padding: 11px 14px;

    border: none;

    border-radius: 6px;

    background: transparent;

    color: #bbbbbb;

    text-align: left;

}


.admin-menu.active,
.admin-menu:hover {

    background: #292929;

    color: white;

}


.admin-main {

    margin-left: 240px;

    padding: 35px;

}


.admin-content-section {

    display: none;

}


.admin-content-section.active {

    display: block;

}


.admin-header {

    margin-bottom: 27px;

}


.admin-header p {

    color: var(--gray);

}



/* =========================================================
   ADMIN STATS
========================================================= */

.admin-stats {

    display: grid;

    gap: 15px;

    margin-bottom: 26px;

}


.admin-stats-six {

    grid-template-columns:
        repeat(6,1fr);

}


.stat-card {

    padding: 20px;

    border-radius: 8px;

    background: white;

}


.stat-card span {

    color: var(--gray);

    font-size: 13px;

}


.stat-card strong {

    display: block;

    margin-top: 6px;

    font-size: 24px;

}



/* =========================================================
   ADMIN TOOLBAR
========================================================= */

.admin-toolbar {

    display: grid;

    gap: 12px;

    margin-bottom: 18px;

}


.admin-product-toolbar {

    grid-template-columns:
        minmax(250px,1fr)
        180px
        180px
        auto;

}


.admin-toolbar input,
.admin-toolbar select {

    width: 100%;

    min-height: 45px;

    padding: 9px 12px;

    border: 1px solid #dddddd;

    border-radius: 6px;

    background: white;

}


.admin-add-button {

    padding: 10px 18px;

    border: none;

    border-radius: 6px;

    background: var(--primary);

    color: white;

    font-weight: bold;

}



/* =========================================================
   ADMIN TABLE
========================================================= */

.admin-table-box {

    overflow-x: auto;

    border-radius: 8px;

    background: white;

}


.admin-table {

    width: 100%;

    min-width: 1080px;

    border-collapse: collapse;

}


.admin-table th,
.admin-table td {

    padding: 13px;

    text-align: left;

}


.admin-table th {

    background: #fafafa;

    color: #777777;

}


.admin-table td {

    border-top:
        1px solid #eeeeee;

}


.admin-product-cell {

    display: flex;

    align-items: center;

    gap: 11px;

}


.admin-product-cell img {

    width: 58px;

    height: 58px;

    object-fit: cover;

    border-radius: 5px;

}


.admin-product-cell strong {

    display: block;

}


.admin-badge {

    display: inline-block;

    margin-top: 4px;

    color: var(--primary-dark);

}


.admin-photo-count {

    font-size: 12px;

    font-weight: bold;

}


.admin-condition-badge,
.admin-availability-badge {

    display: inline-flex;

    padding: 4px 8px;

    border-radius: 5px;

    font-size: 11px;

    font-weight: bold;

}


.admin-condition-badge.condition-new {

    background: var(--new-bg);

    color: var(--new);

}


.admin-condition-badge.condition-used {

    background: var(--used-bg);

    color: var(--used);

}


.admin-availability-badge.availability-available {

    background: var(--available-bg);

    color: var(--available);

}


.admin-availability-badge.availability-sold {

    background: var(--sold-bg);

    color: var(--sold);

}


.admin-price {

    color: var(--primary-dark);

    font-weight: bold;

}


.admin-actions {

    display: flex;

    gap: 6px;

}


.edit-button,
.delete-button {

    padding: 7px 10px;

    border: none;

    border-radius: 5px;

}


.edit-button {

    background: #e6efff;

    color: #2563eb;

}


.delete-button {

    background: #ffe5e5;

    color: var(--danger);

}


.admin-empty {

    padding: 45px !important;

    text-align: center !important;

}



/* =========================================================
   ADMIN PRODUCT FORM
========================================================= */

.admin-product-modal {

    position: relative;

    width:
        min(
            760px,
            96%
        );

    max-height: 92vh;

    overflow-y: auto;

    padding: 30px;

    border-radius: 10px;

    background: white;

}


.admin-product-modal h2 {

    margin-bottom: 22px;

}


.form-row {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 15px;

}


.form-group {

    margin-bottom: 16px;

}


.form-group label {

    display: block;

    margin-bottom: 5px;

    font-size: 14px;

    font-weight: bold;

}


.form-group input,
.form-group select,
.form-group textarea {

    width: 100%;

    min-height: 44px;

    padding: 10px 12px;

    border:
        1px solid #dddddd;

    border-radius: 5px;

    background: white;

}


.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {

    border-color: var(--primary);

    outline: none;

}


.form-group textarea {

    min-height: 100px;

    resize: vertical;

}


.image-help {

    margin-top: 5px;

    color: var(--gray);

    font-size: 12px;

}


.image-file-input::file-selector-button {

    margin-right: 10px;

    padding: 8px 12px;

    border: none;

    border-radius: 5px;

    background: #222222;

    color: white;

    cursor: pointer;

}



/* =========================================================
   MULTIPLE PRODUCT IMAGES
========================================================= */

.multi-image-preview {

    margin-bottom: 20px;

    padding: 14px;

    border:
        2px dashed #dddddd;

    border-radius: 8px;

    background: #fafafa;

}


.preview-header {

    display: flex;

    justify-content: space-between;

    gap: 15px;

    margin-bottom: 12px;

}


.admin-image-gallery {

    display: grid;

    grid-template-columns:
        repeat(4,1fr);

    gap: 10px;

}


.image-preview-empty {

    grid-column:
        1 / -1;

    padding: 40px;

    color: #999999;

    text-align: center;

}


.admin-preview-image {

    position: relative;

    aspect-ratio: 1 / 1;

    overflow: hidden;

    border-radius: 6px;

}


.admin-preview-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

}


.remove-preview-image {

    position: absolute;

    top: 5px;

    right: 5px;

    width: 28px;

    height: 28px;

    border: none;

    border-radius: 50%;

    background: rgba(0,0,0,.75);

    color: white;

}


.main-image-label,
.image-number {

    position: absolute;

    left: 5px;

    bottom: 5px;

    padding: 3px 6px;

    border-radius: 4px;

    background: rgba(0,0,0,.70);

    color: white;

    font-size: 10px;

}


.main-image-label {

    background: var(--primary);

}


.processing-message {

    min-height: 22px;

    color: var(--gray);

    font-size: 12px;

}



/* =========================================================
   WEBSITE SETTINGS
========================================================= */

.settings-card {

    margin-bottom: 25px;

    padding: 28px;

    border-radius: 10px;

    background: white;

}


.settings-card-title {

    padding-bottom: 17px;

    margin-bottom: 20px;

    border-bottom:
        1px solid #eeeeee;

}


.settings-card-title h2 {

    font-size: 21px;

}


.settings-card-title p {

    margin-top: 3px;

    color: var(--gray);

    font-size: 13px;

}


.settings-image-preview {

    overflow: hidden;

    width: 100%;

    max-height: 400px;

    border-radius: 8px;

    background: #eeeeee;

}


.settings-image-preview img {

    width: 100%;

    max-height: 400px;

    object-fit: cover;

}


.settings-about-preview {

    max-width: 500px;

}


.settings-about-preview img {

    height: 320px;

}


.settings-save-area {

    padding-bottom: 40px;

}


.admin-save-button {

    width: 100%;

    min-height: 48px;

    border: none;

    border-radius: 6px;

    background: var(--primary);

    color: white;

    font-weight: bold;

}


.admin-save-button:hover {

    background: var(--primary-dark);

}


.admin-save-button:disabled {

    opacity: .5;

    cursor: wait;

}


.admin-reset-button {

    margin-top: 15px;

    padding: 10px 15px;

    border:
        1px solid #cccccc;

    border-radius: 6px;

    background: white;

    color: var(--gray);

}



/* =========================================================
   ADMIN HERO COLOR SETTINGS
========================================================= */

.admin-color-row {

    display: grid;

    grid-template-columns:
        minmax(0,1fr)
        130px;

    gap: 15px;

    align-items: end;

}


.admin-color-picker
input[type="color"] {

    width: 100%;

    height: 46px;

    padding: 4px;

    border:
        1px solid #dddddd;

    border-radius: 6px;

    background: white;

    cursor: pointer;

}


.admin-description-color {

    max-width: 230px;

}


.admin-description-color
input[type="color"] {

    width: 100%;

    height: 46px;

    padding: 4px;

    border:
        1px solid #dddddd;

    border-radius: 6px;

    background: white;

    cursor: pointer;

}



/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1200px) {

    .admin-stats-six {

        grid-template-columns:
            repeat(3,1fr);

    }


    .shop-toolbar {

        grid-template-columns:
            repeat(2,1fr);

    }


    .search-box {

        grid-column:
            1 / -1;

    }

}



@media (max-width: 1000px) {

    .product-grid {

        grid-template-columns:
            repeat(2,1fr);

    }


    .benefits-grid {

        grid-template-columns:
            repeat(2,1fr);

    }


    .footer-grid {

        grid-template-columns:
            repeat(2,1fr);

    }


    .admin-product-toolbar {

        grid-template-columns:
            1fr 1fr;

    }

}



@media (max-width: 800px) {

    .admin-sidebar {

        position: static;

        width: 100%;

    }


    .admin-main {

        margin-left: 0;

        padding: 20px;

    }


    .admin-sidebar nav {

        flex-direction: row;

        flex-wrap: wrap;

    }


    .admin-menu {

        flex:
            1 1 180px;

    }


    .admin-image-gallery {

        grid-template-columns:
            repeat(3,1fr);

    }

}



@media (max-width: 720px) {

    .nav {

        position: absolute;

        top: 74px;

        left: 0;

        right: 0;

        display: none;

        flex-direction: column;

        gap: 18px;

        padding: 20px 5%;

        background: white;

        box-shadow:
            0 10px 20px
            rgba(0,0,0,.08);

    }


    .nav.active {

        display: flex;

    }


    .menu-button {

        display: block;

    }


    .cart-text {

        display: none;

    }


    .hero {

        min-height: 540px;

    }


    .hero h1 {

        font-size: 43px;

    }


    .benefits-grid {

        grid-template-columns:
            1fr;

    }


    .shop-toolbar {

        grid-template-columns:
            1fr;

    }


    .search-box {

        grid-column: auto;

    }


    .product-grid {

        grid-template-columns:
            1fr;

    }


    .product-image-wrapper {

        height: 350px;

    }


    .about-grid {

        grid-template-columns:
            1fr;

    }


    .about-image img {

        height: 380px;

    }


    .about-numbers {

        grid-template-columns:
            1fr;

    }


    .footer-grid {

        grid-template-columns:
            1fr;

    }


    .modal-product-grid {

        grid-template-columns:
            1fr;

    }


    .modal-main-image > img {

        height: 360px;

    }


    .gallery-arrow {

        width: 42px;

        height: 42px;

        font-size: 33px;

    }


    .gallery-thumb {

        flex-basis: 68px;

        width: 68px;

        height: 68px;

    }


    .form-row {

        grid-template-columns:
            1fr;

    }


    .admin-stats-six {

        grid-template-columns:
            1fr 1fr;

    }


    .admin-product-toolbar {

        grid-template-columns:
            1fr;

    }


    .admin-image-gallery {

        grid-template-columns:
            repeat(2,1fr);

    }


    .contact-row {

        flex-direction: column;

        gap: 3px;

    }


    .admin-color-row {

        grid-template-columns:
            1fr;

    }


    .admin-color-picker {

        max-width: 150px;

    }

}



@media (max-width: 480px) {

    .hero h1 {

        font-size: 38px;

    }


    .hero-description {

        font-size: 16px;

    }


    .product-image-wrapper {

        height: 310px;

    }


    .modal-main-image > img {

        height: 300px;

    }


    .product-modal {

        padding:
            25px 15px;

    }


    .settings-card {

        padding:
            20px 16px;

    }

}