:root {
    --primary: #091a31;
    --bg: #091a31;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --success: #16a34a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    border: none;
    text-decoration: none;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Google Sans", sans-serif;
    background-color: var(--bg);
    color: #091a31;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.4rem 15%;
    background-color: #ffffff;
    border-bottom: 1px solid var(--primary);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
}

.navbar .navbar-nav {
    gap: 20px;
    margin-left: auto;
}

.navbar .navbar-nav a {
    color: #091a31;
    display: inline-block;
    font-size: 1.4rem;
    margin: 0 0.5rem;
}

.navbar .navbar-nav a:hover {
    color: #1b4887;
}

.navbar .navbar-nav a::after {
    content: "";
    display: block;
    padding-bottom: 0.5rem;
    border-bottom: 0.1rem solid #1b4887;
    transform: scaleX(0);
    transition: 0.2s linear;
}

.navbar .navbar-nav a:hover::after {
    transform: scaleX(0.5);
}

.navbar .navbar-extra a {
    color: #091a31;
    margin: 0 0.5rem;
    margin-left: 20px;
}

.navbar .navbar-extra a:hover {
    color: #1b4887;
}

#hamburger-menu {
    display: none;
}

/* Cart Badge */
.cart-badge {
    position: absolute;
    top: -15px;
    right: -11px;
    background-color: #091a31;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    z-index: 10;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cart-section {
    padding: 8rem 7% 4rem;
    flex: 1;
}

.cart-wrapper {
    max-width: 1100px;
    background: #ffffff;
    border-radius: 12px;
    padding: 60px;
    margin: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.cart-item {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-product-info {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.cart-left h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #091a31;
}

.cart-left img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
}

.cart-price {
    font-size: 25px;
    font-weight: 700;
    margin-bottom: 10px;
}

.cart-text {
    font-size: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-detail-text {
    font-size: 14px;
    color: #091a31;
    margin: 0;
    line-height: 1.5;
}

.product-size-text {
    font-size: 14px;
    color: #091a31;
    margin: 0;
    line-height: 1.5;
}

.cart-options {
    margin: 6px 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-option-text {
    font-size: 14px;
    color: #091a31;
    margin: 0;
    font-weight: 400;
    line-height: 1.5;
}

.cart-price-breakdown {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e5e7eb;
}

.price-breakdown-text {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 100;
}

.cart-image {
    width: 90px;
    height: 90px;
    flex-shrink: 0;
}

.cart-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.no-image {
    width: 100%;
    height: 100%;
    background: #e5e7eb;
    border-radius: 8px;
}

.cart-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.qty-btn {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
}

.qty-number {
    font-size: 18px;
    font-weight: 600;
}

.hapus-btn {
    background: none;
    border: none;
    cursor: pointer;
}

.hapus-btn i {
    width: 18px;
    height: 18px;
}

.cart-summary {
    text-align: right;
    margin-top: 40px;
}

.cart-summary h2 {
    font-size: 25px;
    font-weight: 700;
    color: #15803d;
    margin-bottom: 20px;
}

.cart-empty {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px;
}

.cart-empty p {
    font-size: 18px;
    color: #6b7280;
    margin: 0;
}

.cart-empty .checkout-btn {
    margin-top: 0;
}

.checkout-btn {
    margin-top: 10px;
    padding: 10px;
    background: #15803d;
    color: #ffffff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
}

/* footer */

.footer {
    margin-top: 0;
    background: #ffffff;
    color: #091a31;
    padding: 80px 15% 30px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-right {
    display: flex;
    gap: 60px;
}

.footer-left {
    margin-right: 60px;
}

.footer-container img {
    width: 100px;
}

.footer-col p {
    margin: 15px 0;
    line-height: 1.6;
    max-width: 500px;
}

.footer .social a {
    display: inline-flex;
    margin-right: 10px;
    width: 35px;
    height: 35px;
    background: #091a31;
    color: #fff;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.footer .social a:hover {
    background: #1b4887;
}

.footer-col h3 {
    color: #091a31;
    margin-bottom: 39px;
}

.footer .navigasip a {
    color: #091a31;
}

.footer .navigasip a:hover {
    color: #1b4887;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
    font-size: 14px;
    cursor: pointer;
}

.footer-col ul li:hover {
    color: #1b4887;
}

.footer-col .navigasip {
    font-size: 10px;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: default;
}

.footer-col .contact-info li:hover {
    color: inherit;
    cursor: default;
}

.footer-bottom {
    border-top: 1px solid #333;
    margin-top: 50px;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-bottom p {
    font-size: 14px;
}

/* media queris */

/* laptop */
@media (max-width: 1366px) {
    html {
        font-size: 75%;
    }
}

/* tablet */
@media (max-width: 768px) {
    html {
        font-size: 62.5%;
    }

    #hamburger-menu {
        display: inline-block;
    }

    .navbar .navbar-nav {
        position: absolute;
        top: 100%;
        right: -100%;
        background-color: #091a31;
        width: 30rem;
        height: 100vh;
        transition: 0.3s;
    }

    .navbar .navbar-nav.active {
        right: 0;
    }

    .navbar .navbar-nav a {
        color: #ffffff;
        display: block;
        margin: 1.5rem;
        padding: 0.5rem;
        font-size: 2rem;
    }

    .navbar .navbar-nav a::after {
        transform-origin: 0 0;
    }

    .navbar .navbar-nav a:hover::after {
        transform: scaleX(0.2);
    }

    .navbar {
        padding: 1rem 7%;
    }

    .logo img {
        width: 85px;
    }

    .footer {
        padding: 50px 7% 20px;
    }

    .footer-container {
        flex-direction: column;
    }

    .footer-left {
        margin-right: 0;
        margin-bottom: 30px;
    }

    .footer-right {
        flex-direction: column;
        gap: 30px;
    }

    .footer-col h3 {
        margin-bottom: 20px;
        font-size: 16px;
    }

    .footer-col ul li {
        font-size: 12px;
    }

    .footer-col p {
        font-size: 12px;
    }

    .footer-bottom {
        margin-top: 30px;
        padding-top: 15px;
        flex-direction: column;
    }

    .footer-bottom p {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .cart-section {
        padding: 7rem 5% 1.4rem;
    }

    .cart-wrapper {
        padding: 40px;
    }

    .cart-item {
        padding: 20px;
        margin-bottom: 12px;
    }

    .cart-left h3 {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .cart-product-info {
        gap: 12px;
    }

    .cart-image {
        width: 80px;
        height: 80px;
    }

    .cart-text {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .product-detail-text,
    .product-size-text,
    .product-option-text {
        font-size: 10px;
        margin-right: 10px;
        line-height: 1.4;
    }

    .cart-options {
        margin: 4px 0 0 0;
        display: flex;
        flex-direction: column;
        gap: 3px;
    }

    .cart-price {
        font-size: 20px;
    }

    .cart-actions {
        gap: 10px;
    }

    .qty-btn {
        font-size: 18px;
    }

    .qty-number {
        font-size: 16px;
    }

    .cart-summary h2 {
        font-size: 20px;
    }

    .checkout-btn {
        font-size: 13px;
        padding: 9px;
    }
}

/* hp */
@media (max-width: 450px) {
    html {
        font-size: 55%;
    }

    .navbar {
        padding: 1rem 5%;
    }

    .logo img {
        width: 70px;
    }

    .cart-section {
        padding: 6rem 7%;
        margin-top: 40px;
    }

    .cart-wrapper {
        padding: 20px;
        border-radius: 10px;
    }

    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
        margin-bottom: 12px;
        gap: 16px;
    }

    .cart-left {
        width: 100%;
    }

    .cart-left h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .cart-product-info {
        gap: 12px;
        width: 100%;
    }

    .cart-image {
        width: 70px;
        height: 70px;
        flex-shrink: 0;
    }

    .cart-text {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .product-detail-text,
    .product-size-text,
    .product-option-text {
        font-size: 12px;
        margin: 0;
        line-height: 1.4;
        text-align: left;
    }

    .product-detail-text {
        padding: 0;
        white-space: normal;
        word-break: break-word;
    }

    .cart-options {
        margin: 4px 0 0 0;
        display: flex;
        flex-direction: column;
        gap: 3px;
    }

    .product-option-text {
        margin: 0;
        padding: 0;
    }

    .cart-right {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .cart-price {
        font-size: 18px;
        margin-bottom: 0;
    }

    .cart-actions {
        gap: 12px;
    }

    .qty-btn {
        font-size: 18px;
        padding: 4px 8px;
    }

    .qty-number {
        font-size: 14px;
        padding: 0 8px;
    }

    .hapus-btn i {
        width: 20px;
        height: 20px;
    }

    .cart-summary {
        margin-top: 25px;
    }

    .cart-summary h2 {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .checkout-btn {
        font-size: 12px;
        padding: 8px;
        width: 100%;
    }

    .footer {
        padding: 40px 4% 15px;
        margin-top: 0;
    }

    .footer-container img {
        width: 80px;
    }

    .footer-col h3 {
        font-size: 14px;
        margin-bottom: 15px;
    }

    .footer-col ul li {
        font-size: 11px;
        margin-bottom: 8px;
    }

    .footer-col p {
        font-size: 11px;
        margin: 10px 0;
    }

    .footer .social a {
        width: 30px;
        height: 30px;
    }

    .footer-bottom {
        padding-top: 10px;
        margin-top: 20px;
        flex-direction: column;
    }

    .footer-bottom p {
        font-size: 11px;
        margin-bottom: 8px;
    }
}
