html,
body {
    height: 100%;
    margin: 0;
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    background-color: #FFFAFF;
    color: #111;
}

a {
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: 0.3s;
}

a:hover {
    transform: scale(1.03);
}

img {
    width: 70px;
}

.logo {
    filter: invert(1);
}

header {
    display: flex;
    align-items: center;
    height: 100px;
    width: calc(100% - 40px);
    padding: 0 20px;

    background-color: #303036;
    background-image: url('images/logotileable.png');
    background-size: 400px;
    background-position-y: -220px;

    color: white;
    overflow: hidden;
}

header h1 {
    font-size: 38px;
    margin-left: 0;
}

header .rightheader {
    display: flex;
    justify-content: space-between;
    margin-left: auto;
    margin-right: 30px;
    transform: translateY(4px);
}

header .searchbar input {
    background-color: #bfc0c9;
    border: none;
    border-radius: 9999px;
    color: #434d53;
    font-size: 14px;
    height: 40px;
    margin-right: 5px;
    outline: none;
    padding: 0 20px;
    transform: translateY(-4px);
    width: 300px;
}

header .searchbar button {
    background-color: #30BCED;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    height: 40px;
    margin-right: 10px;
    width: 40px;
}

.shopcart {
    align-items: center;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    font-size: 28px;
    justify-content: center;
    margin-right: 20px;
    transform: scale(1.5);
}

.shopcart:hover {
    color: #c2c2c2;
}

h2 {
    font-size: 20px;
    margin: auto 20px;
}

header h2:hover {
    color: #c2c2c2;
    cursor: pointer;
}

.cart-page {
    max-width: 920px;
    margin: 28px auto;
    padding: 0 18px;
}

.cart-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 18px;
}

.cart-header h1 {
    font-size: 40px;
    margin: 0;
    text-align: left;
}

.cart-meta {
    align-items: center;
    display: flex;
    gap: 14px;
}

.sort-label {
    margin-left: 10px;
}

#sort-select {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 8px 12px;
}

.cart-count-row {
    margin-bottom: 6px;
}

#items-count {
    color: #6b7280;
    font-size: 14px;
    margin: 8px 0 50px;
}

.cart-columns {
    align-items: center;
    color: #374151;
    display: grid;
    font-weight: 600;
    gap: 12px;
    grid-template-columns: 100px 1fr 120px 56px;
    margin-bottom: 6px;
    padding: 6px 12px;
}

.cart-columns .product {
    grid-column: 1 / span 2;
    text-align: left;
}

.cart-columns .price,
.cart-columns .remove {
    text-align: center;
}

.cart-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cart-item {
    align-items: center;
    background: #fff;
    border: 2px solid #eae6e6;
    border-radius: 10px;
    display: grid;
    gap: 12px;
    grid-template-columns: 100px 1fr 120px 56px;
    padding: 12px;
}

.cart-thumb img {
    border-radius: 6px;
    height: 64px;
    object-fit: cover;
    width: 100%;
}

.cart-name {
    font-weight: 600;
}

.cart-desc {
    color: #6b7280;
    font-size: 13px;
}

.cart-price {
    font-size: 20px;
    font-weight: 700;
    text-align: center;
}

.cart-remove {
    text-align: center;
}

.remove-btn {
    align-items: center;
    background: #fff;
    border: 2px solid #111;
    border-radius: 12px;
    cursor: pointer;
    display: inline-flex;
    height: 44px;
    justify-content: center;
    width: 44px;
}

.remove-btn i {
    color: #111;
}

.cart-footer-row {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.continue {
    color: #111;
    font-size: 16px;
    text-decoration: none;
}

.checkout-box {
    text-align: right;
}

.subtotal-label {
    color: #6b7280;
    font-size: 14px;
}

.subtotal-amount {
    font-size: 20px;
    font-weight: 700;
    margin: 6px 0;
}

.checkout {
    background: #26a9e0;
    border: none;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    padding: 10px 18px;
}

.footer {
    background: #1B1A1C;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    color: #fff;
    padding: 34px 20px;
}

.footer-inner {
    align-items: center;
    display: flex;
    gap: 28px;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1200px;
    position: relative;
}

.footer-left,
.footer-center,
.footer-right {
    flex: 1;
    min-width: 0;
}

.footer-left {
    text-align: left;
}

.footer-center {
    text-align: center;
}

.footer-right {
    text-align: right;
}

.footer-left .copyright {
    font-size: 20px;
    margin: 0 0 12px;
}

.footer-left .address {
    color: #e6e6e6;
    font-size: 18px;
    margin: 0;
}

.footer-center h3,
.footer-right h3 {
    font-size: 20px;
    margin: 0 0 12px;
    text-decoration: underline;
}

.footer-center p,
.footer-right p {
    color: #e6e6e6;
    font-size: 18px;
    margin: 6px 0;
}

.footer-inner::before,
.footer-inner::after {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    content: "";
    height: 56px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
}

.footer-inner::before {
    left: calc(33.333% - 2px);
}

.footer-inner::after {
    left: calc(66.666% - 2px);
}

.social-icons {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: flex-end;
}

.social-btn {
    align-items: center;
    border-radius: 14px;
    color: #fff;
    display: inline-flex;
    height: 72px;
    justify-content: center;
    text-decoration: none;
    width: 72px;
}

.social-btn i {
    font-size: 30px;
}

.social-btn.facebook {
    background: linear-gradient(180deg, #4b2fe6, #2b1bb8);
}

.social-btn.instagram {
    background: radial-gradient(circle at 30% 30%, #feda75 0%, #fa7e1e 30%, #d62976 60%, #962fbf 80%);
}

.social-btn.youtube {
    background: linear-gradient(180deg, #ff3b30, #cc0000);
}

.social-btn.twitter {
    background: linear-gradient(180deg, #1da1f2, #0d8de6);
}

.social-btn:hover {
    transform: translateY(-3px);
}

@media (max-width: 900px) {
    .footer-inner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .footer-inner::before,
    .footer-inner::after {
        display: none;
    }

    .social-icons {
        justify-content: center;
    }

    .social-btn {
        height: 64px;
        width: 64px;
    }

    .social-btn i {
        font-size: 24px;
    }

    .contact {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 800px) {
    header h1 {
        font-size: 30px;
    }

    header .searchbar input {
        width: 150px;
    }

    .cart-item {
        grid-template-columns: 80px 1fr 80px 44px;
    }

    .cart-page {
        padding: 0 12px;
    }
}

@media (max-width: 600px) {
    header h1 {
        font-size: 20px;
    }

    header .searchbar input {
        font-size: 12px;
        padding-left: 10px;
        width: 120px;
    }
}
