@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@700&family=Special+Elite&display=swap');

:root {
    --paper-bg: #F4EFE6;
    --ink-black: #1a0303;
    --accent-brown: #6b4635;
    --photo-border: #FFFFFF;
    --line-color: #311e12;
}

body {
    background-color: var(--paper-bg);
    color: var(--ink-black);
    font-family: 'Special Elite', system-ui;
    margin: 0;
    padding: 0;
    line-height: 1.4;
}

h1,
p,
hr,
.content,
.footer {
    padding-left: 40px;
    padding-right: 40px;
}

.container-pusat {
    max-width: 1000px;
    margin: 0 auto;
}

h1 {
    font-family: 'Cormorant Garamond', serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 3.5em;
    margin-bottom: 0;
    margin-top: 10px;
    font-weight: 700;
}

h2,
h3 {
    font-family: 'Cormorant Garamond', serif;
    margin-top: 0;
    font-weight: 700;
}

a {
    color: var(--accent-brown);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

hr {
    border: 0;
    border-top: 2px solid var(--line-color);
    margin: 20px 0;
}

.menu {
    background-color: var(--accent-brown);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    background-blend-mode: soft-light;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
    margin-bottom: 30px;
    border-bottom: 3px solid var(--ink-black);
}

.menu a {
    color: var(--paper-bg);
    font-size: 1.2em;
}

.search-bar {
    display: flex;
    width: 750px;
}

.search-bar select {
    padding: 8px 12px;
    background-color: var(--paper-bg);
    color: var(--ink-black);
    border: none;
    border-right: 1px solid var(--line-color);
    border-radius: 4px 0 0 4px;
    cursor: pointer;
    font-family: 'Special Elite', cursive;
    font-size: 0.9em;
    outline: none;
}

.search-bar select:hover {
    background-color: #e8e2d6;
}

.search-bar select option {
    background-color: var(--paper-bg);
    color: var(--ink-black);
}

.search-bar input {
    flex-grow: 1;
    padding: 8px 15px;
    border: none;
    outline: none;
}

.search-bar button {
    padding: 8px 15px;
    background-color: var(--ink-black);
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    color: white;
}

.cart {
    white-space: nowrap;
    font-weight: bold;
}

.katalog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--ink-black);
    margin-bottom: 30px;
    padding-bottom: 10px;
}

.katalog-controls {
    display: flex;
    gap: 15px;
}

.kontrol-pilihan {
    font-family: 'Special Elite', cursive;
    background-color: var(--card-bg);
    border: 1px solid #ccc;
    padding: 10px 15px;
    cursor: pointer;
    outline: none;
    color: var(--ink-black);
    box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.1);
}

.kontrol-pilihan:hover {
    background-color: #fff;
    border-color: var(--ink-black);
}

#katalog-produk {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 40px;
    padding: 20px 0;
}

.kartu-katalog {
    background-color: #fff;
    padding: 15px;
    padding-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: var(--ink-black);
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
}

.kartu-katalog:hover {
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.photo-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    margin-bottom: 15px;
    background-color: #f9f9f9;
}

.photo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(0.2) contrast(1.1);
}

.photo-caption {
    font-family: 'Special Elite', cursive;
    text-align: center;
}

.varietas-tag {
    display: block;
    font-size: 0.7em;
    font-size: 1.5em;
    margin: 5px 0;
}

.product-card h3 a {
    color: var(--ink-black);
}

.product-card .price {
    font-size: 1em;
    font-weight: bold;
    display: block;
    padding-bottom: 5px;
    margin-bottom: 0;
}

.add-to-cart {
    background-color: #3b2818;
    color: #fff;
    border: none;
    width: 100%;
    padding: 10px;
    font-family: 'Special Elite', cursive;
    font-size: 0.8em;
    cursor: pointer;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 10px;
}

.add-to-cart:hover {
    background-color: var(--accent-brown);
}

/* HALAMAN DETAIL PRODUK  */

.detail-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 60px;
    align-items: center;
}

.detail-image-wrapper {
    flex: 1;
    min-width: 300px;
}

.detail-image-wrapper img {
    width: 100%;
    height: auto;
    border: 12px solid #fff;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.15);
    transform: rotate(-1deg);
    display: block;
}

.detail-info {
    flex: 1.5;
    min-width: 300px;
}

.detail-info h2 {
    font-size: 2.5em;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--ink-black);
    padding-bottom: 10px;
}

.archive-specs {
    background-color: rgba(255, 255, 255, 0.4);
    border: 1px solid #ccc;
    padding: 20px 20px 20px 35px;
    margin-bottom: 25px;
}

.archive-specs p {
    margin: 10px 0;
    font-size: 1.1em;
}

.archive-specs strong {
    display: inline-block;
    width: 150px;
}

hr.dashed-line {
    border: 0;
    border-top: 2px solid var(--line-color);
    opacity: 0.3;
    margin: 20px 0;
}

.detail-price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.4em;
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--accent-brown);
}

.detail-info .add-to-cart {
    width: auto;
    padding: 15px 40px;
    font-size: 1em;
}

.qty-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 1em;
}

.qty-btn {
    background-color: var(--ink-black);
    border: 1px solid var(--ink-black);
    color: var(--paper-bg);
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-family: 'Special Elite', cursive;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    justify-content: center;
}


.qty-input {
    width: 40px;
    height: 30px;
    text-align: center;
    background-color: transparent;
    border: 1px solid var(--line-color);
    font-family: 'Special Elite', cursive;
    font-size: 1.1em;
    color: var(--ink-black);
}

.footer {
    margin-top: 80px;
    padding-bottom: 40px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-column {
    flex: 1;
    min-width: 200px;
}

.footer-column h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2em;
    margin-bottom: 15px;
    text-transform: uppercase;
    color: var(--accent-brown);
}

.footer-column a {
    display: block;
    font-size: 0.9em;
    margin-bottom: 10px;
    color: var(--ink-black);
    text-decoration: none;
}

.footer-column a:hover {
    text-decoration: underline;
}

.copyright {
    text-align: center;
    border-top: 1px solid var(--line-color);
    padding-top: 25px;
    font-size: 0.8em;
    opacity: 0.7;
}

@-webkit-keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }

    to {
        bottom: 30px;
        opacity: 1;
    }
}

@keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }

    to {
        bottom: 30px;
        opacity: 1;
    }
}

@-webkit-keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }

    to {
        bottom: 0;
        opacity: 0;
    }
}

@keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }

    to {
        bottom: 0;
        opacity: 0;
    }
}

.cart-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--accent-brown);
}

.troli-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 25px 0;
    border-bottom: 1px solid #ddd;
}

.troli-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 1px solid #ccc;
}

.troli-item-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.troli-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.troli-head h3 a {
    color: var(--ink-black);
    text-decoration: none;
}

.troli-head h3 a:hover {
    text-decoration: underline;
}

.troli-harga {
    font-family: 'Special Elite', cursive;
    font-weight: bold;
    font-size: 1.1em;
    text-align: right;
    flex-grow: 1;

}

.troli-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
}

.delete-btn {
    background: none;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
    opacity: 1;
}

.troli-actions .qty-wrapper {
    margin-bottom: 0;
}

#cart-count {
    background-color: var(--accent-brown);
    color: white;
    font-family: 'Special Elite', cursive;
    font-size: 0.7em;
    padding: 2px 6px;
    border-radius: 50%;
    vertical-align: middle;
    margin-left: 5px;
}

.nav-icon-img {
    height: 40px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
}

.cart .nav-icon-img,
.search-bar button .nav-icon-img {
    filter: brightness(0) invert(1);
}


.search-bar button .nav-icon-img {
    height: 30px;
}

.logo-img-link,
.home,
.cart {
    display: flex;
    align-items: center;
}