/* ============================================
   RK SWEET DELIGHTS - IMPROVED STYLES
   ============================================ */
/* Clean, elegant bakery design with better fonts */

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #8B5A2B;
    --primary-light: #A67B5B;
    --primary-dark: #6B3F1F;
    --secondary: #D4A373;
    --accent: #E8C4A0;
    --cream: #FDF5E6;
    --white: #FFFFFF;
    --black: #1A1A1A;
    --gray: #6B6B6B;
    --light-gray: #F5F0EB;
    --success: #28A745;
    --danger: #DC3545;
    --warning: #FFC107;
    --info: #17A2B8;
    --gold: #D4AF37;
    --rose: #E8A0BF;
    
    --font-primary: 'Playfair Display', Georgia, serif;
    --font-secondary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-secondary);
    color: var(--black);
    background: var(--cream);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== TYPOGRAPHY IMPROVEMENTS ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    color: var(--primary-dark);
    line-height: 1.3;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.1rem; }

p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    border-radius: 50px;
    font-family: var(--font-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    justify-content: center;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--primary-light);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: #25D366;
    color: var(--white);
}

.btn-whatsapp:hover {
    background: #1DA851;
    color: var(--white);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 14px 36px;
    font-size: 1.05rem;
}

/* ===== HEADER ===== */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: var(--primary);
    color: var(--white);
    padding: 6px 0;
    font-size: 0.85rem;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.header-contact {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.header-contact span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 300;
}

.header-social {
    display: flex;
    gap: 15px;
}

.header-social a {
    color: var(--white);
    transition: var(--transition);
}

.header-social a:hover {
    color: var(--secondary);
    transform: translateY(-2px);
}

/* ===== NAVBAR ===== */
.navbar {
    padding: 10px 0;
}

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

.nav-brand a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--primary);
    font-family: var(--font-primary);
    font-size: 1.2rem;
    font-weight: 700;
}

.nav-brand .logo {
    height: 40px;
    width: auto;
}

.brand-text {
    font-size: 1.1rem;
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
    padding: 5px 10px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
    align-items: center;
}

.nav-menu li a {
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 500;
    color: var(--black);
    transition: var(--transition);
    font-size: 0.9rem;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: var(--primary);
    background: var(--cream);
}

.nav-menu li a i {
    margin-right: 6px;
}

.cart-link {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--danger);
    color: var(--white);
    border-radius: 50%;
    padding: 2px 8px;
    font-size: 0.7rem;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
    padding: 16px 0 8px;
    font-size: 0.9rem;
    color: var(--gray);
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 8px;
    align-items: center;
}

.breadcrumbs ol li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumbs ol li:not(:last-child)::after {
    content: '›';
    color: var(--gray);
    font-size: 1.2rem;
}

.breadcrumbs ol li a {
    color: var(--primary);
    transition: var(--transition);
}

.breadcrumbs ol li a:hover {
    color: var(--primary-dark);
}

.breadcrumbs ol li.active {
    color: var(--gray);
    font-weight: 500;
}

/* ===== PRODUCT DETAIL PAGE ===== */
.product-detail-section {
    padding: 20px 0 60px;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow);
}

/* Product Image */
.product-detail-image {
    position: relative;
}

.image-container {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--light-gray);
}

.image-container img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    transition: var(--transition);
}

.image-container:hover img {
    transform: scale(1.02);
}

.badge {
    position: absolute;
    top: 16px;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--white);
    z-index: 1;
}

.badge.best-seller {
    right: 16px;
    background: var(--warning);
    color: var(--black);
}

.badge.featured {
    left: 16px;
    background: var(--primary);
}

.badge.sale {
    right: 16px;
    background: var(--danger);
}

.product-meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.meta-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    background: var(--light-gray);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--gray);
}

.meta-tag i {
    color: var(--primary);
}

/* Product Info */
.product-detail-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-title {
    font-family: var(--font-primary);
    font-size: 2rem;
    color: var(--primary-dark);
    margin: 0;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stars {
    color: #FFB800;
    font-size: 0.95rem;
}

.rating-text {
    font-size: 0.9rem;
    color: var(--gray);
}

.product-description-full {
    font-size: 1rem;
    color: var(--gray);
    line-height: 1.8;
    padding: 12px 0;
}

/* Price Section */
.product-price-section {
    padding: 16px 0;
}

.price-group {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.regular-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.original-price {
    font-size: 1.2rem;
    color: var(--gray);
    text-decoration: line-through;
}

.sale-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--danger);
}

.discount-badge {
    padding: 4px 12px;
    background: var(--danger);
    color: var(--white);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Stock Info */
.product-stock-info {
    padding: 8px 0;
}

.stock-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
}

.stock-status.in-stock {
    background: #D4EDDA;
    color: #155724;
}

.stock-status.in-stock i {
    color: var(--success);
}

.stock-status.out-of-stock {
    background: #F8D7DA;
    color: #721C24;
}

.stock-status.out-of-stock i {
    color: var(--danger);
}

.stock-count {
    font-weight: 400;
    opacity: 0.8;
}

/* Actions Section */
.product-actions-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px 0;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 16px;
}

.quantity-selector label {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--black);
}

.qty-control {
    display: flex;
    align-items: center;
    border: 2px solid var(--light-gray);
    border-radius: 50px;
    overflow: hidden;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--light-gray);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: var(--primary);
    color: var(--white);
}

.qty-control input {
    width: 60px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-secondary);
}

.qty-control input:focus {
    outline: none;
}

.action-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.action-buttons .btn {
    flex: 1;
    min-width: 200px;
}

/* Accordion */
.product-details-accordion {
    margin: 12px 0;
    border-top: 1px solid var(--light-gray);
    border-bottom: 1px solid var(--light-gray);
}

.accordion-item {
    padding: 4px 0;
}

.accordion-header {
    width: 100%;
    padding: 12px 0;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-dark);
    cursor: pointer;
    transition: var(--transition);
}

.accordion-header:hover {
    color: var(--primary);
}

.accordion-header i:first-child {
    color: var(--primary);
}

.accordion-header .fa-chevron-down {
    margin-left: auto;
    transition: transform 0.3s ease;
}

.accordion-body {
    padding: 8px 0 16px 36px;
    display: none;
}

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

.accordion-body ul li {
    padding: 4px 0;
    color: var(--gray);
    font-size: 0.95rem;
}

.accordion-body ul li strong {
    color: var(--black);
    min-width: 120px;
    display: inline-block;
}

/* Share Buttons */
.product-share {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 0;
}

.share-label {
    font-weight: 500;
    color: var(--gray);
    font-size: 0.9rem;
}

.share-buttons {
    display: flex;
    gap: 8px;
}

.share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
    cursor: pointer;
    font-size: 0.85rem;
}

.share-btn.facebook {
    background: #3b5998;
}

.share-btn.twitter {
    background: #1DA1F2;
}

.share-btn.whatsapp {
    background: #25D366;
}

.share-btn.copy-link {
    background: var(--gray);
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Related Products */
.related-products-section {
    margin-top: 40px;
}

.related-title {
    font-family: var(--font-primary);
    font-size: 1.6rem;
    color: var(--primary-dark);
    margin-bottom: 24px;
    text-align: center;
}

/* ===== PRODUCTS GRID ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 220px;
    background: var(--light-gray);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.03);
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--secondary);
    color: var(--white);
    z-index: 1;
}

.product-badge.featured {
    background: var(--primary);
}

.product-badge.best-seller {
    background: var(--warning);
    color: var(--black);
}

.product-info {
    padding: 16px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    font-family: var(--font-primary);
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.product-info h3 a {
    color: var(--primary-dark);
}

.product-info h3 a:hover {
    color: var(--primary);
}

.product-description {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 10px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.product-price .price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
}

.product-price .sale-price {
    color: var(--gray);
    text-decoration: line-through;
    font-size: 0.9rem;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.product-actions .btn {
    flex: 1;
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* ===== CART DRAWER ===== */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 420px;
    max-width: 100%;
    height: 100%;
    background: var(--white);
    box-shadow: -4px 0 30px rgba(0,0,0,0.15);
    z-index: 9998;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-drawer.open {
    right: 0;
}

.cart-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9997;
}

.cart-overlay.active {
    display: block;
}

.cart-drawer-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-drawer-header h3 {
    font-family: var(--font-primary);
    color: var(--primary);
    font-size: 1.2rem;
}

.cart-drawer-close {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--gray);
    cursor: pointer;
}

.cart-drawer-body {
    flex: 1;
    padding: 16px 24px;
    overflow-y: auto;
}

.empty-cart {
    text-align: center;
    padding: 40px 0;
}

.empty-cart i {
    color: var(--light-gray);
    margin-bottom: 12px;
}

.empty-cart p {
    color: var(--gray);
    margin-bottom: 12px;
}

.cart-item {
    display: flex;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--light-gray);
    align-items: center;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--light-gray);
}

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

.cart-item-info h4 {
    font-size: 0.95rem;
    margin-bottom: 2px;
    font-family: var(--font-secondary);
}

.cart-item-info .cart-item-price {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.95rem;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cart-item-actions button {
    background: var(--light-gray);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    font-size: 0.9rem;
}

.cart-item-actions button:hover {
    background: var(--primary);
    color: var(--white);
}

.cart-item-actions span {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
}

.cart-item-remove {
    color: var(--danger);
    background: none !important;
    font-size: 0.9rem;
}

.cart-drawer-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--light-gray);
}

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

/* ===== PAGE HEADER ===== */
.page-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 40px 0 30px;
    text-align: center;
}

.page-header h1 {
    font-family: var(--font-primary);
    font-size: 2.2rem;
    margin-bottom: 4px;
    color: var(--white);
}

.page-header p {
    font-size: 1rem;
    opacity: 0.9;
    color: rgba(255,255,255,0.9);
}

/* ===== FILTER BAR ===== */
.filter-bar {
    margin-bottom: 30px;
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.filter-tab {
    padding: 6px 18px;
    border-radius: 50px;
    background: var(--white);
    color: var(--black);
    font-weight: 500;
    font-size: 0.85rem;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.filter-tab:hover,
.filter-tab.active {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* ===== SECTION ===== */
.section {
    padding: 40px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-family: var(--font-primary);
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 4px;
}

.section-header p {
    color: var(--gray);
    font-size: 1rem;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--black);
    color: var(--white);
    padding: 40px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.footer h3, .footer h4 {
    font-family: var(--font-primary);
    margin-bottom: 12px;
    color: var(--secondary);
    font-size: 1.1rem;
}

.footer p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-links ul {
    list-style: none;
}

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

.footer-links ul li a {
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-links ul li a:hover {
    color: var(--secondary);
}

.footer-contact p i {
    width: 18px;
    color: var(--secondary);
}

.footer-policy p i {
    width: 18px;
    color: var(--secondary);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
}

.footer-bottom i {
    color: var(--danger);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .product-detail-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        padding: 30px;
    }
    
    .image-container img {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .header-top .container {
        flex-direction: column;
        text-align: center;
    }
    
    .header-contact {
        justify-content: center;
        gap: 12px;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 12px 0;
        gap: 2px;
    }
    
    .nav-menu.open {
        display: flex;
    }
    
    .nav-menu li a {
        display: block;
        padding: 8px 16px;
        border-radius: 0;
    }
    
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 20px;
    }
    
    .image-container img {
        height: 280px;
    }
    
    .product-title {
        font-size: 1.6rem;
    }
    
    .regular-price {
        font-size: 1.6rem;
    }
    
    .sale-price {
        font-size: 1.6rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons .btn {
        width: 100%;
        min-width: unset;
    }
    
    .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    
    .product-image {
        height: 160px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .cart-drawer {
        width: 100%;
        right: -100%;
    }
    
    .page-header {
        padding: 30px 0 20px;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .product-details-accordion .accordion-body {
        padding-left: 20px;
    }
    
    .product-share {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-image {
        height: 200px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .product-detail-grid {
        padding: 16px;
    }
    
    .image-container img {
        height: 220px;
    }
    
    .product-title {
        font-size: 1.3rem;
    }
    
    .regular-price {
        font-size: 1.3rem;
    }
    
    .sale-price {
        font-size: 1.3rem;
    }
    
    .qty-control {
        width: 100%;
    }
    
    .qty-control input {
        flex: 1;
    }
    
    .quantity-selector {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ===== UTILITY ===== */
.text-center {
    text-align: center;
}

.text-muted {
    color: var(--gray);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ===== NOTIFICATION ===== */
.cart-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary);
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideUp 0.3s ease;
    max-width: 400px;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(20px);
        opacity: 0;
    }
}

/* ============================================
   MODERN AUTH PAGES (Login / Register)
   ============================================ */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
    position: relative;
    background: linear-gradient(135deg, #fdf5e6 0%, #f8e8d0 50%, #e8c4a0 100%);
    overflow: hidden;
}

.auth-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(139, 90, 43, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(212, 163, 115, 0.12) 0%, transparent 45%);
    z-index: 0;
}

.auth-page .container {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    width: 100%;
}

.auth-box {
    width: 100%;
    max-width: 440px;
    background: #ffffff;
    border-radius: 24px;
    padding: 40px 36px 32px;
    box-shadow:
        0 20px 60px rgba(139, 90, 43, 0.15),
        0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(212, 163, 115, 0.25);
    animation: authFadeIn 0.5s ease;
    position: relative;
    overflow: hidden;
}

.auth-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #8B5A2B, #D4A373, #E8C4A0, #D4A373, #8B5A2B);
    background-size: 200% 100%;
    animation: gradientShift 4s ease infinite;
}

.admin-auth-box::before {
    background: linear-gradient(90deg, #1a1a2e, #c0392b, #e74c3c, #c0392b, #1a1a2e);
    background-size: 200% 100%;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes authFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 28px;
}

.auth-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.customer-icon {
    background: linear-gradient(135deg, #8B5A2B, #D4A373);
}

.admin-icon {
    background: linear-gradient(135deg, #1a1a2e, #c0392b);
}

.auth-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #6B3F1F;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.auth-header p {
    color: #8B7B6B;
    font-size: 0.9rem;
    margin: 0;
}

.auth-form .form-group {
    margin-bottom: 18px;
}

.auth-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #4A3B2B;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper > i:first-child {
    position: absolute;
    left: 16px;
    color: #A67B5B;
    font-size: 0.95rem;
    pointer-events: none;
    transition: color 0.3s ease;
}

.input-wrapper input {
    width: 100%;
    padding: 14px 46px 14px 44px;
    border: 2px solid #eee5d8;
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
    background: #fdfaf5;
    color: #1A1A1A;
    transition: all 0.3s ease;
}

.input-wrapper input:focus {
    outline: none;
    border-color: #8B5A2B;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(139, 90, 43, 0.1);
}

.input-wrapper input:focus + i,
.input-wrapper:focus-within > i:first-child {
    color: #8B5A2B;
}

.toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #A67B5B;
    cursor: pointer;
    padding: 8px;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    border-radius: 50%;
}

.toggle-password:hover {
    color: #8B5A2B;
    background: rgba(139, 90, 43, 0.08);
}

.auth-form .btn-block {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-top: 8px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.auth-form .btn-primary {
    background: linear-gradient(135deg, #8B5A2B, #6B3F1F);
    box-shadow: 0 6px 18px rgba(139, 90, 43, 0.35);
}

.auth-form .btn-primary:hover {
    background: linear-gradient(135deg, #6B3F1F, #4A2A10);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139, 90, 43, 0.45);
}

.admin-auth-box .auth-form .btn-primary {
    background: linear-gradient(135deg, #c0392b, #8B1E12);
    box-shadow: 0 6px 18px rgba(192, 57, 43, 0.35);
}

.admin-auth-box .auth-form .btn-primary:hover {
    background: linear-gradient(135deg, #8B1E12, #5A0F08);
    box-shadow: 0 8px 24px rgba(192, 57, 43, 0.45);
}

.auth-link {
    text-align: center;
    margin-top: 16px;
    font-size: 0.88rem;
    color: #8B7B6B;
}

.auth-link a {
    color: #8B5A2B;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.auth-link a:hover {
    color: #6B3F1F;
    text-decoration: underline;
}

.auth-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0e8dc;
    flex-wrap: wrap;
}

.auth-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: #8B7B6B;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.auth-links a:hover {
    background: #fdf5e6;
    color: #8B5A2B;
    transform: translateY(-1px);
}

.auth-links a i {
    font-size: 0.85rem;
}

.auth-footer-note {
    text-align: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f0e8dc;
    font-size: 0.78rem;
    color: #A67B5B;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.auth-form .alert {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.88rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-form .alert-danger {
    background: #fdecea;
    color: #c0392b;
    border: 1px solid #f5c6cb;
}

/* Responsive Auth */
@media (max-width: 480px) {
    .auth-box {
        padding: 32px 22px 24px;
        border-radius: 18px;
        margin: 0 12px;
    }

    .auth-icon {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
    }

    .auth-header h1 {
        font-size: 1.5rem;
    }

    .auth-links {
        gap: 10px;
    }

    .auth-links a {
        font-size: 0.78rem;
        padding: 5px 10px;
    }
}

/* ============================================
   MODERN AUTH PAGES (Login / Register)
   ============================================ */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
    position: relative;
    background: linear-gradient(135deg, #fdf5e6 0%, #f8e8d0 50%, #e8c4a0 100%);
    overflow: hidden;
}

.auth-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(139, 90, 43, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(212, 163, 115, 0.12) 0%, transparent 45%);
    z-index: 0;
}

.auth-page .container {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    width: 100%;
}

.auth-box {
    width: 100%;
    max-width: 440px;
    background: #ffffff;
    border-radius: 24px;
    padding: 40px 36px 32px;
    box-shadow:
        0 20px 60px rgba(139, 90, 43, 0.15),
        0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(212, 163, 115, 0.25);
    animation: authFadeIn 0.5s ease;
    position: relative;
    overflow: hidden;
}

.auth-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #8B5A2B, #D4A373, #E8C4A0, #D4A373, #8B5A2B);
    background-size: 200% 100%;
    animation: gradientShift 4s ease infinite;
}

.admin-auth-box::before {
    background: linear-gradient(90deg, #1a1a2e, #c0392b, #e74c3c, #c0392b, #1a1a2e);
    background-size: 200% 100%;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes authFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 28px;
}

.auth-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.customer-icon {
    background: linear-gradient(135deg, #8B5A2B, #D4A373);
}

.admin-icon {
    background: linear-gradient(135deg, #1a1a2e, #c0392b);
}

.auth-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #6B3F1F;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.auth-header p {
    color: #8B7B6B;
    font-size: 0.9rem;
    margin: 0;
}

.auth-form .form-group {
    margin-bottom: 18px;
}

.auth-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #4A3B2B;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper > i:first-child {
    position: absolute;
    left: 16px;
    color: #A67B5B;
    font-size: 0.95rem;
    pointer-events: none;
    transition: color 0.3s ease;
}

.input-wrapper input {
    width: 100%;
    padding: 14px 46px 14px 44px;
    border: 2px solid #eee5d8;
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
    background: #fdfaf5;
    color: #1A1A1A;
    transition: all 0.3s ease;
}

.input-wrapper input:focus {
    outline: none;
    border-color: #8B5A2B;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(139, 90, 43, 0.1);
}

.input-wrapper input:focus + i,
.input-wrapper:focus-within > i:first-child {
    color: #8B5A2B;
}

.toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #A67B5B;
    cursor: pointer;
    padding: 8px;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    border-radius: 50%;
}

.toggle-password:hover {
    color: #8B5A2B;
    background: rgba(139, 90, 43, 0.08);
}

.auth-form .btn-block {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-top: 8px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.auth-form .btn-primary {
    background: linear-gradient(135deg, #8B5A2B, #6B3F1F);
    box-shadow: 0 6px 18px rgba(139, 90, 43, 0.35);
}

.auth-form .btn-primary:hover {
    background: linear-gradient(135deg, #6B3F1F, #4A2A10);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139, 90, 43, 0.45);
}

.admin-auth-box .auth-form .btn-primary {
    background: linear-gradient(135deg, #c0392b, #8B1E12);
    box-shadow: 0 6px 18px rgba(192, 57, 43, 0.35);
}

.admin-auth-box .auth-form .btn-primary:hover {
    background: linear-gradient(135deg, #8B1E12, #5A0F08);
    box-shadow: 0 8px 24px rgba(192, 57, 43, 0.45);
}

.auth-link {
    text-align: center;
    margin-top: 16px;
    font-size: 0.88rem;
    color: #8B7B6B;
}

.auth-link a {
    color: #8B5A2B;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.auth-link a:hover {
    color: #6B3F1F;
    text-decoration: underline;
}

.auth-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0e8dc;
    flex-wrap: wrap;
}

.auth-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: #8B7B6B;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.auth-links a:hover {
    background: #fdf5e6;
    color: #8B5A2B;
    transform: translateY(-1px);
}

.auth-links a i {
    font-size: 0.85rem;
}

.auth-footer-note {
    text-align: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f0e8dc;
    font-size: 0.78rem;
    color: #A67B5B;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.auth-form .alert {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.88rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-form .alert-danger {
    background: #fdecea;
    color: #c0392b;
    border: 1px solid #f5c6cb;
}

/* Responsive Auth */
@media (max-width: 480px) {
    .auth-box {
        padding: 32px 22px 24px;
        border-radius: 18px;
        margin: 0 12px;
    }

    .auth-icon {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
    }

    .auth-header h1 {
        font-size: 1.5rem;
    }

    .auth-links {
        gap: 10px;
    }

    .auth-links a {
        font-size: 0.78rem;
        padding: 5px 10px;
    }
}
