/*
   Axis Sweets - Custom CSS
   Color Scheme based on logo:
   - Primary (Golden): #b8860b
   - Secondary (Dark Brown): #5e3b28
   - Accent (Light Beige): #f5f0e6
   - Text Dark: #333333
   - Text Light: #ffffff
*/

/* General Styles */
:root {
    --primary-color: #b8860b;
    --primary-light: #d9b44a;
    --primary-dark: #8e6508;
    --secondary-color: #5e3b28;
    --secondary-light: #7d5a47;
    --secondary-dark: #3e2518;
    --accent-color: #f5f0e6;
    --text-dark: #333333;
    --text-light: #ffffff;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
}

.section-title {
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--secondary-dark);
    font-weight: 600;
    padding: 10px 25px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--text-light);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(184, 134, 11, 0.3);
}

/* Navbar Styles */
.navbar {
    background-color: var(--text-light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 5px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 5px 0;
}

.logo {
    height: 80px;
    transition: all 0.3s ease;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--secondary-color);
    font-weight: 500;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary-color);
}
/* Cart Button Styles */
.cart-container {
    position: relative;
    display: inline-block;
}

.cart-btn {
    position: relative;
    background: none;
    border: 1px solid #9f7211;
    font-size: 1.1rem;
    color: #9f7211;
    margin-left: 15px;
    padding: 8px 16px;
    border-radius: 25px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.cart-btn:hover {
    background-color: #9f7211;
    color: white;
    transform: translateY(-1px);
}

.cart-quantity {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #b8860b, #3d4a15);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.cart-quantity.hidden {
    display: none;
}

/* Cart Dropdown */
.cart-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    min-width: 350px;
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 10px;
}

.cart-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 16px;
    height: 16px;
    background: white;
    transform: rotate(45deg);
    box-shadow: -2px -2px 4px rgba(0,0,0,0.1);
}

.cart-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cart-header {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 600;
    color: #333;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px 12px 0 0;
}

.cart-items {
    max-height: 300px;
    overflow-y: auto;
}

.cart-item {
    padding: 15px 20px;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.cart-item-details {
    font-size: 0.9rem;
    color: #666;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.cart-item-remove:hover {
    background-color: #f8f9fa;
}

.cart-empty {
    padding: 40px 20px;
    text-align: center;
    color: #666;
}

.cart-empty i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 15px;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #f0f0f0;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
}

.cart-total {
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-checkout {
    width: 100%;
    color: #fff;
    background: linear-gradient(135deg, #b8860b, #707309);
    border: none;
    padding: 12px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-view-cart {
    width: 100%;
    margin-bottom: 10px;
    border-radius: 8px;
    border: 1px solid #b8860b;
    color: #b8860b;
}

button.btn-view-cart:hover {
    background: #b8860b;
    border-color: #b8860b;
    color: #fff;
}

/* Mobile responsiveness */
@media (max-width: 768px) {

    .cart-container {
        position: fixed;
        top: 27px;
        right: 90px;
    }

    .cart-dropdown {
        min-width: 300px;
        right: -80px;
    }

}

/* Add to cart button hover effect */
.add-to-cart {
    transition: all 0.3s ease;
}

.add-to-cart:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(37, 93, 152, 0.3);
}

/* Hero Slider Styles */
#hero-slider {
    position: relative;
    height: 80vh;
}

#hero-slider .carousel-item {
    height: 80vh;
}

#hero-slider .carousel-item img {
    height: 100%;
    object-fit: cover;
}

#hero-slider .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(94, 59, 40, 0.6);
    z-index: 1;
}

#hero-slider .carousel-caption {
    z-index: 2;
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    max-width: 700px;
    margin: 0 auto;
    background-color: rgb(0 0 0 / 50%);
    padding: 30px;
    border-radius: 5px;
    border: 1px solid var(--primary-color);
}

#hero-slider .carousel-caption h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

#hero-slider .carousel-caption p {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-bottom: 25px;
}

#hero-slider .carousel-control-prev,
#hero-slider .carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
}

#hero-slider .carousel-control-prev {
    left: 20px;
}

#hero-slider .carousel-control-next {
    right: 20px;
}

#hero-slider .carousel-control-prev-icon,
#hero-slider .carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

#hero-slider .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--accent-color);
    border: 2px solid var(--primary-color);
    margin: 0 5px;
}

#hero-slider .carousel-indicators button.active {
    background-color: var(--primary-color);
}

/* About Section Styles */
#about {
    padding: 80px 0;
    background-color: var(--text-light);
}

.about-img {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(94, 59, 40, 0.2);
}

.about-img img {
    transition: transform 0.5s ease;
    min-width: 100%;
}

.about-img:hover img {
    transform: scale(1.05);
}

.about-content {
    padding: 20px;
}

.about-content p {
    color: var(--secondary-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

/* Products Section Styles */
#products {
    background-color: var(--accent-color);
    padding: 80px 0;
}

.product-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(184, 134, 11, 0.2);
}

.product-card img {
    height: 200px;
    object-fit: cover;
}

.product-card .card-body {
    padding: 20px;
}

.product-card .card-title {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.product-card .card-text {
    color: var(--secondary-light);
    margin-bottom: 15px;
}

.product-card .price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

/* Product Actions Styles */
.product-actions {
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 15px;
}

.quantity-control {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    max-width: 120px;
}

.quantity-input {
    width: 40px;
    text-align: center;
    margin: 0 2px;
    border-color: rgba(0,0,0,0.1);
    padding: 0.25rem 0.5rem;
    height: auto;
    -moz-appearance: textfield;
}

/* Hide default arrows for Chrome, Safari, Edge, Opera */
.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-to-cart {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.3s ease;
}

.add-to-cart:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Toast Notification Styles */
.toast-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--secondary-color);
    color: var(--accent-color);
    padding: 12px 20px;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.toast-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-content {
    display: flex;
    align-items: center;
}

.toast-content i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Footer Styles */
footer {
    background-color: var(--secondary-color);
    color: var(--accent-color);
    padding: 60px 0 30px;
}

.footer-logo {
    height: 60px;
}

footer h5 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

footer p {
    color: var(--accent-color);
    margin-bottom: 15px;
}

.social-icons {
    margin-top: 20px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--secondary-dark);
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--primary-light);
    color: var(--secondary-dark);
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
    padding-left: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 15px;
}

.footer-links a::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 20px;
}

.contact-info p {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-info i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 18px;
    width: 20px;
}

hr {
    border-color: rgba(245, 240, 230, 0.2);
    margin: 30px 0;
}

.copyright {
    color: var(--accent-color);
    margin-bottom: 0;
}

/* WhatsApp Chat Link */
.whatsapp-link {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
    z-index: 999;
    transition: all 0.3s ease;
}

.whatsapp-link:hover {
    transform: scale(1.1);
    color: var(--text-light);
}

/* Responsive Styles */
@media (max-width: 991px) {
    #hero-slider {
        height: 70vh;
    }

    #hero-slider .carousel-item {
        height: 70vh;
    }

    #hero-slider .carousel-caption h2 {
        font-size: 2rem;
    }

    #hero-slider .carousel-caption p {
        font-size: 1rem;
    }

    .about-img {
        margin-bottom: 30px;
    }
}

@media (max-width: 767px) {
    #hero-slider {
        height: 60vh;
    }

    #hero-slider .carousel-item {
        height: 60vh;
    }

    #hero-slider .carousel-caption {
        padding: 20px;
        max-width: 90%;
    }

    #hero-slider .carousel-caption h2 {
        font-size: 1.5rem;
    }

    #hero-slider .carousel-caption p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    footer {
        text-align: center;
    }

    footer h5::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 575px) {
    #hero-slider {
        height: 50vh;
    }

    #hero-slider .carousel-item {
        height: 50vh;
    }

    #hero-slider .carousel-caption h2 {
        font-size: 1.2rem;
    }

    .btn-primary {
        padding: 8px 20px;
        font-size: 0.9rem;
    }

    .whatsapp-link {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}
