/* Variables */
:root {
    --color-chocolate: #5b3939;
    --color-chocolate-light: #5D4037;
    --color-gold: #D4AF37;
    --color-gold-light: #F4E098;
    --color-cream: #FFF8E1;
    --color-text: #333333;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Lato', sans-serif;
}

/* General Styles */
body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background-color: var(--color-cream);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-serif {
    font-family: var(--font-serif);
}

.text-chocolate {
    color: var(--color-chocolate) !important;
}

.text-gold {
    color: var(--color-gold) !important;
}

.bg-chocolate {
    background-color: var(--color-chocolate) !important;
}

.btn-gold {
    background-color: var(--color-gold);
    color: white;
    border: none;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    background-color: var(--color-chocolate);
    color: var(--color-gold);
    transform: translateY(-2px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out both;
}

/* Product Card */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    background: white;
    border-radius: 15px;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(62, 39, 35, 0.15) !important;
}

.product-image {
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(62, 39, 35, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .overlay {
    opacity: 1;
}

/* Modal */
.modal-content {
    border-radius: 20px;
}

#modalImage {
    min-height: 400px;
}

/* Navbar */
.navbar {
    background-color: var(--color-chocolate) !important;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.navbar-brand img {
    height: 80px;
    width: auto;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    transition: color 0.3s ease;
    font-size: 1.1rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-gold) !important;
}

/* Footer */
footer {
    background-color: var(--color-chocolate) !important;
}

.border-secondary {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Floating Cart */
#cart-icon {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--color-gold);
    color: var(--color-chocolate);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#cart-icon:hover {
    transform: scale(1.1);
}

#cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #d32f2f;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Cart Sidebar */
.offcanvas-end {
    border-left: none;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
}

.cart-item {
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-title {
    font-family: var(--font-serif);
    color: var(--color-chocolate);
    margin-bottom: 0.2rem;
    font-weight: bold;
}

.cart-item-price {
    color: #bfa117;
    font-weight: bold;
}

.btn-remove {
    color: #ff5252;
    background: none;
    border: none;
    padding: 0;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s;
    flex-shrink: 0;
}

.btn-remove:hover {
    color: #d32f2f;
}

/* Offer Badge (Ribbon Style) */
.offer-badge {
    position: absolute;
    top: 15px;
    right: -5px;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    padding: 8px 15px;
    font-weight: bold;
    font-size: 0.75rem;
    text-transform: uppercase;
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.4);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 85%, 0 100%);
    animation: pulse-offer 2s ease-in-out infinite;
}

.offer-badge span {
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.offer-badge small {
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: 2px;
}

@keyframes pulse-offer {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Empty State Card */
.empty-state-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-state-card .bi-inbox {
    opacity: 0.3;
}

/* Modal */
.modal-content {
    border-radius: 20px;
}

#modalImage {
    min-height: 400px;
}

/* Navbar */
.navbar {
    background-color: var(--color-chocolate) !important;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.navbar-brand img {
    height: 80px;
    width: auto;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    transition: color 0.3s ease;
    font-size: 1.1rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-gold) !important;
}

/* Footer */
footer {
    background-color: var(--color-chocolate) !important;
}

.border-secondary {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Floating Cart */
#cart-icon {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--color-gold);
    color: var(--color-chocolate);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#cart-icon:hover {
    transform: scale(1.1);
}

#cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #d32f2f;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Cart Sidebar */
.offcanvas-end {
    border-left: none;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
}

.cart-item {
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-title {
    font-family: var(--font-serif);
    color: var(--color-chocolate);
    margin-bottom: 0.2rem;
    font-weight: bold;
}

.cart-item-price {
    color: #bfa117;
    font-weight: bold;
}

.btn-remove {
    color: #ff5252;
    background: none;
    border: none;
    padding: 0;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s;
    flex-shrink: 0;
}

.btn-remove:hover {
    color: #d32f2f;
}

/* Offer Badge (Ribbon Style) */
.offer-badge {
    position: absolute;
    top: 15px;
    right: -5px;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    padding: 8px 15px;
    font-weight: bold;
    font-size: 0.75rem;
    text-transform: uppercase;
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.4);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 85%, 0 100%);
    animation: pulse-offer 2s ease-in-out infinite;
}

.offer-badge span {
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.offer-badge small {
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: 2px;
}

@keyframes pulse-offer {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Empty State Card */
.empty-state-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-state-card .bi-inbox {
    opacity: 0.3;
}

.empty-state-card h3 {
    font-size: 2rem;
}

.empty-state-card p {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Instagram Button Hover Effect */
.instagram-hover:hover {
    background-color: #E1306C !important;
    color: white !important;
    border-color: #E1306C !important;
}


/* Logo Text Responsive */
.logo-text {
    height: auto;
    max-height: 50px;
    width: auto;
    max-width: 300px;
}

@media (max-width: 576px) {
    .logo-text {
        max-height: 30px;
        max-width: 150px;
    }
}

/* Navbar Compact */
.navbar {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.navbar-brand {
    padding-top: 0;
    padding-bottom: 0;
}