/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 107, 157, 0.5);
}

.btn-secondary {
    background: var(--glass-white);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column-reverse;
    gap: 1rem;
    align-items: center;
}

.fab-main {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-glow);
    transition: 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fabPulse 2s infinite;
}

@keyframes fabPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 157, 0.7);
    }

    50% {
        box-shadow: 0 0 0 20px rgba(255, 107, 157, 0);
    }
}

.fab-main:hover {
    transform: scale(1.1) rotate(90deg);
}

.fab-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: 0.3s ease;
}

.fab:hover .fab-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fab-option {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass-white);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.fab-option:hover {
    transform: scale(1.1);
}

.fab-option.whatsapp {
    background: #25D366;
    color: white;
}

.fab-option.phone {
    background: var(--accent-teal);
    color: white;
}

/* Sections */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-badge {
    display: inline-block;
    background: var(--glass-white);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.5rem;
    border-radius: 32px;
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
    border: 1px solid var(--glass-border);
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-title span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Categories */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: var(--glass-white);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: 0.3s ease;
}

.category-card:hover::before {
    opacity: 0.1;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    position: relative;
    z-index: 1;
    transition: 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
}

.category-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.category-count {
    color: var(--text-muted);
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

/* Products */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--glass-white);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.product-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--gradient-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    transform: translateX(20px);
    transition: 0.3s ease;
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.product-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass-white);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    cursor: pointer;
    transition: 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-action-btn:hover {
    background: var(--primary);
    color: white;
}

.product-content {
    padding: 1.5rem;
}

.product-category {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.product-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.price-current {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.price-original {
    font-size: 1rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.price-discount {
    background: rgba(255, 107, 157, 0.2);
    color: var(--primary);
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-footer {
    display: flex;
    gap: 1rem;
}

.product-footer .btn {
    flex: 1;
    justify-content: center;
    padding: 1rem;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--glass-white);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Shopping Cart Styles */
.nav-cart-btn {
    position: relative;
    cursor: pointer;
}
.nav-cart-btn i {
    font-size: 1.15rem;
}
.cart-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: var(--primary);
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 1.5px solid #1a1a2e;
    box-shadow: 0 0 10px rgba(255, 107, 157, 0.5);
    animation: badgePop 0.3s ease-out;
}
.cart-badge-cta {
    background: white;
    color: var(--primary-dark);
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    margin-left: 6px;
    vertical-align: middle;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    animation: badgePop 0.3s ease-out;
}
@keyframes badgePop {
    0% { transform: scale(0); }
    80% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}
.cart-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 420px;
    max-width: 100vw;
    height: 100vh;
    background: rgba(22, 22, 38, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-left: 1px solid var(--glass-border);
    z-index: 2501;
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.4);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    color: white;
}
.cart-drawer.active {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
}
.cart-title {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.cart-title i {
    color: var(--primary);
}
.cart-close-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.cart-close-btn:hover {
    background: var(--glass-white);
    color: white;
    transform: rotate(90deg);
}

.cart-items-container {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.cart-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    text-align: center;
    gap: 1rem;
}
.cart-empty-state i {
    font-size: 3rem;
}
.cart-item {
    display: flex;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
    position: relative;
    transition: background 0.2s;
}
.cart-item:hover {
    background: rgba(255, 255, 255, 0.08);
}
.cart-item-img {
    width: 65px;
    height: 65px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
}
.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.cart-item-name {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: white;
    padding-right: 1.5rem;
}
.cart-item-price {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 700;
}
.cart-item-qty-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}
.qty-controls {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    overflow: hidden;
}
.qty-btn {
    background: transparent;
    border: none;
    color: white;
    width: 26px;
    height: 26px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background 0.2s;
}
.qty-btn:hover {
    background: var(--glass-white);
}
.qty-val {
    width: 30px;
    text-align: center;
    border: none;
    background: transparent;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
}
.cart-item-remove-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.cart-item-remove-btn:hover {
    color: #ff6b6b;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--glass-border);
    background: rgba(16, 16, 28, 0.8);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.05rem;
    font-weight: 600;
}
.cart-total-price {
    font-size: 1.3rem;
    color: var(--primary);
    font-weight: 800;
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.checkout-form-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 2px;
}
.checkout-input-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.checkout-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 0.65rem 0.85rem;
    color: white;
    font-family: inherit;
    font-size: 0.85rem;
    outline: none;
    transition: all 0.3s;
}
.checkout-input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
}
.checkout-btn {
    width: 100%;
    justify-content: center;
    margin-top: 5px;
}
.checkout-member-info {
    background: rgba(255, 107, 157, 0.08);
    border: 1px dashed rgba(255, 107, 157, 0.3);
    border-radius: 8px;
    padding: 10px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Full Cart Page Styles */
.cart-page-layout {
    display: grid;
    grid-template-columns: 1.8fr 1.2fr;
    gap: 2rem;
    align-items: start;
    margin-bottom: 5rem;
}
@media (max-width: 992px) {
    .cart-page-layout {
        grid-template-columns: 1fr;
    }
}

.cart-card-main {
    background: var(--glass-white);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.cart-page-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.cart-page-title span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cart-table-header {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr;
    padding-bottom: 1rem;
    border-bottom: 1.5px solid var(--glass-border);
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.cart-page-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.cart-page-items .cart-item {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.25rem;
    position: relative;
    transition: background 0.3s;
}
.cart-page-items .cart-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.cart-page-items .cart-item-prod {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.cart-page-items .cart-item-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.cart-page-items .cart-item-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-page-items .cart-item-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
}

.cart-page-items .cart-item-cat {
    font-size: 0.8rem;
    color: var(--primary);
}

.cart-page-items .cart-item-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
}

.cart-page-items .cart-item-remove-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.2s;
}
.cart-page-items .cart-item-remove-btn:hover {
    color: #ff6b6b;
}

/* Form Styles inside Cart Page */
.cart-checkout-card {
    background: var(--glass-white);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
}

.checkout-section-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.checkout-section-title i {
    color: var(--primary);
}

.cart-price-summary {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 1.5rem;
    border-bottom: 1.5px solid var(--glass-border);
    padding-bottom: 15px;
}

.cart-summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.cart-summary-line.total {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    margin-top: 4px;
}

.cart-page-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cart-page-input-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.cart-page-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    color: white;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s;
    width: 100%;
}
.cart-page-input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(255, 107, 157, 0.2);
}

.cart-page-checkout-btn {
    width: 100%;
    justify-content: center;
    padding: 1.15rem;
    font-size: 1.1rem;
    margin-top: 10px;
}