.top-bar {
    height: 10vh;
    display: flex;
    align-items: center;
    padding: 0 4vw;
    justify-content: space-between;
}

.top-bar a {
    color: #666666;
    text-decoration: none;
}

.top-bar a:hover {
    color: var(--red);
    text-decoration: underline;
}

.product-info {
    display: flex;
    padding: 0 10%;
    gap: 7vw;
    padding-bottom: 5vh;
}

.product-text {
    width: 50%;
    color: var(--grey);
}

.product-text h1 {
    font-size: clamp(2.5rem, 2.5vw + 0.8rem, 3rem);
}

.product-text p {
    font-size: var(--font-size-p);
}

.muted {
    color: #666666;
}

.price {
    font-size: var(--font-size-h2);
    font-weight: 700;
}

.foto {
    width: 50%;
    margin-bottom: 0 !important;
}

.foto img {
    max-height: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    background-color: #f1f1f1;
}

.img-logo {
    position: absolute;
    top: 0;
    right: 0;
    background-color: transparent !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover;
    padding: 3%;
    width: 20%;
}

.tier-table {
  width: 70%;
  border-collapse: collapse;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--grey-dark, #333);
  margin-top: 1rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  background: #fff;
}

.tier-table thead {
  background: #f7f7f7;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.tier-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: #555;
  border-bottom: 1px solid #e5e5e5;
}

.tier-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}

.tier-table td strong {
  color: var(--primary, #d40000);
  font-weight: 600;
}

.tier-table tbody tr:last-child td {
  border-bottom: none;
}

.tier-table tbody tr:hover {
  background-color: #fafafa;
  transition: background 0.2s ease;
}

.tier-table .muted {
  color: #999;
  font-size: 0.9em;
}

.product-colors {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0;
    align-items: center;
}

.product-colors .color {
    width: 28px;
    height: 28px;
    border-radius: 5px;
    border: 2px solid #ddd;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
    position: relative;
}

.product-colors .color:hover {
    transform: scale(1.05);
    border-color: #bbb;
}

.product-colors .color.active {
    border-color: #d40000;
    box-shadow: 0 0 0 2px rgba(212, 0, 0, 0.2);
}

.product-colors .color[style*="#fff"],
.product-colors .color[style*="rgb(255, 255, 255)"] {
    box-shadow: 0 0 0 1px #ccc inset;
}

.product-colors .color:active {
    transform: scale(0.96);
}

.selected-color {
    transform: scale(1.05);
    border-color: #333 !important;
}

.product-sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 15px;
}

.size-option {
    position: relative;
    cursor: pointer;
}

.size-option span {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    user-select: none;
    transition: all 0.2s ease;
    color: #666666;
}

.size-option:hover span {
    border-color: #d40000;
    color: #d40000;
}

.selected-size span {
    background-color: #d40000;
    color: white;
    border-color: #d40000;
}

.btn-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    background-color: #d40000;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 22px;

    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;

    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    margin-top: 15px;
}

.btn-cart:hover {
    background-color: #b30000;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.btn-cart:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2) inset;
}

.btn-cart:disabled {
    background-color: #ccc;
    color: #777;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.quantity-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 15px 0;
}

.quantity-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    width: fit-content;
}

.qty-btn {
    background: #f5f5f5;
    border: none;
    width: 36px;
    height: 36px;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.2s;
}

.qty-btn:hover {
    background: #e0e0e0;
}

#quantity {
    width: 60px;
    text-align: center;
    border: none;
    font-size: 16px;
    padding: 6px;
    outline: none;
    appearance: textfield;
}

#quantity::-webkit-inner-spin-button,
#quantity::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-control:focus-within {
    border-color: #d40000;
}

.flash-message {
    display: flex;
    align-items: center;
    width: 100%;
    background-color: #d4edda;
    color: #155724;
    padding: 15px 20px;
}