:root {
    --primary-font: 'Fredoka One', cursive;
    --secondary-font: 'Poppins', sans-serif;
    --primary-color: #ff7e5f;
    --secondary-color: #feb47b;
    --background-color: #fdfcfb;
    --text-color: #333;
    --card-bg: #ffffff;
    --shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    --border-radius: 15px;
}

body {
    font-family: var(--secondary-font);
    margin: 0;
    background-color: var(--background-color);
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.main-header {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    padding: 1rem 0;
    color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--primary-font);
    font-size: 2rem;
    margin: 0;
}

.search-and-cart {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.search-bar {
    display: flex;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 5px;
}

.search-bar input {
    border: none;
    background: transparent;
    color: white;
    padding: 0.5rem 1rem;
    font-family: var(--secondary-font);
    width: 200px;
}

.search-bar input::placeholder {
    color: rgba(255, 255, 255, 0.8);
}

.search-bar button {
    background: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
    color: var(--primary-color);
}

.cart-icon {
    position: relative;
    cursor: pointer;
    font-size: 1.5rem;
}

.cart-counter {
    position: absolute;
    top: -5px;
    right: -10px;
    background: #ff3d71;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
}

main.container {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.filters h2 {
    font-family: var(--primary-font);
    color: var(--primary-color);
}

.filters ul {
    list-style: none;
    padding: 0;
}

.filters ul li {
    padding: 0.8rem;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.filters ul li:hover, .filters ul li.active {
    background: var(--secondary-color);
    color: white;
}

.sticker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.sticker-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.sticker-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.1);
}

.sticker-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.sticker-card-info {
    padding: 1rem;
}

.sticker-card-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.sticker-card-info p {
    font-size: 0.9rem;
    color: #777;
    margin: 0;
}

.sticker-image-background {
    background: linear-gradient(to bottom, #878282, #423d3d);
    padding: 1rem;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.sticker-card .sticker-image-background img {
    width: 100%;
    height: 180px;
    object-fit: contain;
}

#modal-body .sticker-image-background {
    border-radius: var(--border-radius);
}

#modal-body .sticker-image-background img {
    max-width: 250px;
    object-fit: contain;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 2rem;
    border: none;
    border-radius: var(--border-radius);
    width: 80%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

#modal-body {
    display: flex;
    gap: 2rem;
}

#modal-body img {
    max-width: 250px;
    border-radius: var(--border-radius);
}

#modal-body h2 {
    font-family: var(--primary-font);
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: var(--secondary-font);
}

.btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: var(--secondary-font);
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 126, 95, 0.4);
}

/* Cart Modal */
#cart-items {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 1rem;
}
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}
.cart-item-info {
    flex-grow: 1;
}
.cart-item-info p { margin: 0; }
.cart-item-actions button {
    background: none;
    border: none;
    color: #ff3d71;
    cursor: pointer;
}
.cart-total {
    text-align: right;
    font-weight: bold;
    font-size: 1.2rem;
    margin-top: 1rem;
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}
