/* 
  DOGZILLA - Dark Mode / Neon Theme 
  Colors: 
  - Background: #121212 (Dark Grey/Black)
  - Primary Accent: #FF4500 (Orange Red / Neon)
  - Secondary Accent: #FFD700 (Gold for subtle highlights)
  - Text: #E0E0E0
*/

:root {
    --bg-color: #0d0d0d;
    --card-bg: #1a1a1a;
    --primary-color: #FF4500;
    --primary-glow: rgba(255, 69, 0, 0.6);
    --text-color: #ffffff;
    --text-muted: #a0a0a0;
    --font-heading: 'Bangers', cursive;
    --font-body: 'Outfit', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    font-weight: 300;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

/* ============================================
   Navbar
   ============================================ */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 69, 0, 0.1);
}

.logo {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary-color);
    letter-spacing: 2px;
    text-shadow: 0 0 10px var(--primary-glow);
    cursor: pointer;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 8px var(--primary-glow);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
}

/* ============================================
   Buttons
   ============================================ */
.btn-primary {
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: 0;
    text-transform: uppercase;
    font-weight: 700;
    font-family: var(--font-body);
    text-decoration: none;
    border: 2px solid var(--primary-color);
    transition: var(--transition);
    box-shadow: 0 0 15px var(--primary-glow);
    display: inline-block;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
    box-shadow: 0 0 25px var(--primary-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    padding: 0.8rem 1.8rem;
    border: 2px solid var(--text-muted);
    color: var(--text-color);
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    transition: var(--transition);
}

.btn-secondary:hover {
    border-color: var(--text-color);
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-danger {
    background-color: transparent;
    border: 1px solid #ff4545;
    color: #ff4545;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-danger:hover {
    background-color: #ff4545;
    color: white;
    box-shadow: 0 0 15px rgba(255, 69, 69, 0.4);
}

.btn-cart {
    width: 100%;
    padding: 1rem;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
}

.btn-cart:hover {
    background-color: white;
    color: black;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 69, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 69, 0, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
}

.hero-content {
    max-width: 50%;
    z-index: 1;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 6rem;
    line-height: 1;
    margin-bottom: 1rem;
    color: white;
    text-transform: uppercase;
    position: relative;
}

/* Glitch Effect */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
}

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 red;
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim 3s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 blue;
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim-2 2s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(13px, 9999px, 86px, 0); }
    20% { clip: rect(62px, 9999px, 14px, 0); }
    40% { clip: rect(29px, 9999px, 86px, 0); }
    60% { clip: rect(78px, 9999px, 3px, 0); }
    80% { clip: rect(15px, 9999px, 72px, 0); }
    100% { clip: rect(65px, 9999px, 37px, 0); }
}

@keyframes glitch-anim-2 {
    0% { clip: rect(68px, 9999px, 10px, 0); }
    20% { clip: rect(24px, 9999px, 95px, 0); }
    40% { clip: rect(86px, 9999px, 20px, 0); }
    60% { clip: rect(10px, 9999px, 55px, 0); }
    80% { clip: rect(44px, 9999px, 35px, 0); }
    100% { clip: rect(96px, 9999px, 7px, 0); }
}

.subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.hero-visual {
    width: 45%;
    height: 60%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ============================================
   Slider (Hero)
   ============================================ */
.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slider-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

/* ============================================
   Menu Section / Product Grid
   ============================================ */
.menu-section {
    padding: 5rem 10%;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 4rem;
    color: white;
}

.highlight {
    color: var(--primary-color);
    text-shadow: 0 0 15px var(--primary-glow);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.product-card {
    background-color: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.card-image {
    height: 250px;
    width: 100%;
    background-color: #000;
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-color);
    color: white;
    padding: 0.2rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    box-shadow: 0 0 10px var(--primary-glow);
}

.card-info {
    padding: 2rem;
}

.card-info h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: white;
    letter-spacing: 1px;
}

.card-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    height: 40px;
    overflow: hidden;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

/* Image Placeholder */
.image-placeholder {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, #2a2a2a 0%, #121212 100%);
    border: 2px dashed rgba(255, 69, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgba(255, 255, 255, 0.2);
    text-align: center;
    font-weight: 700;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

/* ============================================
   Ticker
   ============================================ */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    background-color: var(--primary-color);
    padding: 1rem 0;
    margin-top: 4rem;
    transform: rotate(-2deg) scale(1.05);
}

.ticker {
    display: inline-block;
    white-space: nowrap;
    animation: ticker 60s infinite linear;
}

.ticker-item {
    display: inline-block;
    padding: 0 2rem;
    font-size: 2.5rem;
    font-family: var(--font-heading);
    color: black;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================
   Footer
   ============================================ */
footer {
    padding: 4rem 10%;
    background-color: #000;
    margin-top: 5rem;
    border-top: 1px solid #1a1a1a;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-right {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 500px;
}

.footer-map {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 69, 0, 0.3);
}

.map-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.map-link:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    color: var(--text-muted);
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--text-muted);
}

.socials {
    display: flex;
    gap: 2rem;
}

.socials a {
    color: white;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
}

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

/* ============================================
   Notification Toast
   ============================================ */
.cart-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-toast.show {
    opacity: 1;
    visibility: visible;
    bottom: 50px;
}

/* ============================================
   Cart Modal
   ============================================ */
.cart-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 5000;
    display: none;
    justify-content: flex-end;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cart-modal-overlay.open {
    display: flex;
    opacity: 1;
}

.cart-modal-content {
    width: 100%;
    max-width: 500px;
    height: 100%;
    background-color: #1a1a1a;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--primary-color);
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.cart-modal-overlay.open .cart-modal-content {
    transform: translateX(0);
}

.cart-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #121212;
}

.cart-header h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary-color);
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}

.close-btn:hover {
    color: var(--primary-color);
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.empty-cart-msg {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-top: 3rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #252525;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.cart-item:hover {
    border-color: var(--primary-color);
}

.cart-item-info h4 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: white;
    margin-bottom: 0.3rem;
    letter-spacing: 0.5px;
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: 700;
}

.btn-remove-item {
    background: transparent;
    border: none;
    color: #ff4545;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.2s;
}

.btn-remove-item:hover {
    transform: scale(1.2);
    color: red;
}

.cart-footer {
    padding: 2rem;
    background-color: #121212;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.cart-total span:last-child {
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: 2rem;
}

.cart-actions {
    display: flex;
    gap: 1rem;
}

.cart-actions button {
    flex: 1;
    font-size: 1rem;
    padding: 1rem;
}

/* ============================================
   Product Customization Modal
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    z-index: 6000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.open {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: #1a1a1a;
    padding: 2.5rem;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 40px rgba(255, 69, 0, 0.2);
    animation: slideUp 0.3s ease-out;
}

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

.modal-content h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: white;
    margin-bottom: 0.5rem;
    text-align: center;
}

.modal-price {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
}

.customization-section h3,
.note-section h3 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: white;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.ingredients-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.ingredient-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: var(--text-muted);
}

.ingredient-checkbox input {
    accent-color: var(--primary-color);
    width: 20px;
    height: 20px;
}

.ingredient-checkbox span {
    font-size: 1rem;
}

.note-section textarea {
    width: 100%;
    background-color: #252525;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    resize: vertical;
    min-height: 80px;
    font-family: var(--font-body);
    margin-bottom: 2rem;
}

.note-section textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.modal-actions {
    display: flex;
    gap: 1rem;
}

.modal-actions button {
    flex: 1;
    cursor: pointer;
}

/* ============================================
   Quantity Control
   ============================================ */
.quantity-section {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.quantity-section h3 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: white;
    margin: 0;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: #252525;
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.qty-select {
    background-color: #252525;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    cursor: pointer;
}

.qty-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* ============================================
   Loading Spinner
   ============================================ */
.loading-spinner {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 3rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 69, 0, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-spinner p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.error-msg {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.error-msg p {
    margin-bottom: 1rem;
}

.empty-msg {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
    font-size: 1.2rem;
}

/* ============================================
   Categories
   ============================================ */
.category-section {
    margin-bottom: 4rem;
    width: 100%;
}

.category-header {
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.category-header h3 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary-color);
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255, 69, 0, 0.3);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .navbar {
        padding: 1.5rem;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        flex-direction: column-reverse;
        justify-content: center;
        gap: 2rem;
        padding-top: 100px;
        height: auto;
        min-height: 100vh;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        width: 100%;
        height: 300px;
    }

    .ticker-item {
        font-size: 1.5rem;
    }

    .category-section {
        margin-bottom: 2rem;
    }

    .category-header {
        margin-bottom: 1rem;
        padding-left: 10px;
    }

    .category-header h3 {
        font-size: 2rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 10px;
    }

    .product-card {
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 15px 10px;
        background-color: var(--card-bg);
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 0;
    }

    .product-card:hover {
        transform: none;
        box-shadow: none;
        border-color: rgba(255, 255, 255, 0.1);
    }

    .card-image {
        width: 75px;
        height: 75px;
        flex-shrink: 0;
        margin-right: 15px;
        border-radius: 8px;
        background-color: transparent;
    }

    .product-card:hover .card-image img {
        transform: none;
    }

    .badge {
        font-size: 0.6rem;
        padding: 0.2rem 0.4rem;
        top: 5px;
        right: 5px;
    }

    .card-info {
        display: flex;
        flex-direction: row;
        flex-grow: 1;
        padding: 0;
        align-items: center;
        justify-content: space-between;
    }

    .card-details {
        display: flex;
        flex-direction: column;
        flex-grow: 1;
        padding-right: 10px;
    }

    .card-info h3 {
        font-size: 1.1rem;
        margin-bottom: 0.2rem;
        font-family: var(--font-body);
        font-weight: 700;
        letter-spacing: 0;
    }

    .card-info p {
        font-size: 0.8rem;
        height: auto;
        margin-bottom: 0;
        color: var(--text-muted);
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .card-action {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        justify-content: center;
        min-width: 80px;
    }

    .price {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .btn-cart {
        width: 100%;
        padding: 0.5rem;
        font-size: 0.85rem;
        background-color: var(--primary-color);
        color: white;
        border: none;
        border-radius: 4px;
        font-family: var(--font-body);
        font-weight: 700;
        text-transform: none;
    }

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