/* GLOBAL RESET */
* {
    box-sizing: border-box;
}

html, body {
    background:#fff;
    color:#333;
    font-family: Army, sans-serif;
    margin:0;
    padding:0;
}

/* WRAPPER */
.wrap, .admin-wrap {
    max-width:1000px;
    margin:20px auto;
    padding:20px;
    background:#fff;
    box-shadow:0 2px 10px rgba(0,0,0,0.05);
    border-radius:35px;
    text-align:center;
}

/* HEADINGS */
h1,h2,h3 {
    text-align:center;
    color:#636363;
}

/* BUTTON */
.btn {
    display:inline-block;
    padding:10px 20px;
    margin:5px;
    background:#000;
    color:#fff;
    text-decoration:none;
    border-radius:6px;
    font-weight:bold;
    transition:0.3s;
    cursor:pointer;
}

.btn:hover {
    background:#155ab6;
}

/* ===== PRODUCTS GRID ===== */
.products {
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:20px;
}

/* PRODUCT CARD */
.product {
    width:220px;                 /* FIXED WIDTH */
    padding:15px;
    text-align:center;
    box-shadow:0 2px 10px rgba(0,0,0,0.08);
    background-image:url("images/background.jpg");
    background-size:cover;
    border-radius:15px;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
}

/* PRODUCT IMAGE */
.product img {
    width: 100%;
    height: 160px;
    object-fit: contain;
    margin-bottom: 10px;
    border-radius: 6px;
    background: transparent;   /* allow PNG transparency */
}


/* PRODUCT TITLE (PREVENT STRETCHING) */
.product h3 {
    font-size:16px;
    margin:10px 0;
    word-wrap:break-word;
    overflow-wrap:break-word;
    word-break:break-word;

    /* Optional: limit to 2 lines */
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}

/* PRICE */
.product p {
    font-weight:bold;
    margin:5px 0 10px;
}

/* CART ITEM */
.cart-item {
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    justify-content:space-between;
    margin-bottom:15px;
    padding:10px;
    border-bottom:1px solid #eee;
}

.cart-item img {
    max-width:150px;
    height:auto;
    margin-right:10px;
    border-radius:6px;
}

/* FORM INPUTS */
input[type="number"],
input[type="text"],
input[type="email"],
textarea {
    padding:8px;
    margin:5px 0;
    width:100%;
    border-radius:4px;
    border:1px solid #ccc;
}

/* RESPONSIVE */
@media screen and (max-width:600px) {

    .products {
        gap:15px;
    }

    .product {
        width:90%;
        max-width:300px;
    }

    .product img,
    .cart-item img {
        max-width:100px;
    }

    .cart-item {
        flex-direction:column;
        align-items:flex-start;
    }
}

/* CUSTOM FONT */
@font-face {
    font-family:"Army";
    src:url("fonts/Army.ttf") format("truetype");
    font-display:swap;
}

/* CLICKABLE */
.clickable-element {
    cursor:pointer;
}

/* SCROLLBAR */
::-webkit-scrollbar {
  width:15px;
}

::-webkit-scrollbar-track {
  background:transparent;
}

::-webkit-scrollbar-thumb {
  background:#D3D3D3;
  border:1px solid #000;
  border-radius:10px;
}

::-webkit-scrollbar-thumb:hover {
  background:#f2f2f2;
}

.sizes {
    margin: 10px 0;
    text-align: center;
}

.size-options {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.size-box {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #333;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    min-width: 40px;
    text-align: center;
    transition: 0.2s;
}

.size-box:hover {
    background: #000;
    color: #fff;
}

.size-box.active {
    background: #000;
    color: #fff;
    border-color: #000;
}
/* Disabled button */
.add-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.7;
}