/* style.css - The Printing Stores UK - Black & Yellow */
:root {
    --primary-yellow: #FFD700;
    --primary-yellow-hover: #E5C100;
    --bg-black: #000000;
    --bg-dark-gray: #111111;
    --bg-card: #1A1A1A;
    --text-white: #FFFFFF;
    --text-gray: #AAAAAA;
    --danger: #FF4444;
    --success: #00C851;
    --border-color: #333333;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', 'Montserrat', sans-serif;
    background-color: var(--bg-black);
    color: var(--text-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-white);
}

a {
    color: var(--primary-yellow);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-yellow-hover);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-yellow);
    color: var(--bg-black);
}

.btn-primary:hover {
    background-color: var(--primary-yellow-hover);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
}
.btn-whatsapp:hover {
    background-color: #128C7E;
    color: white;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-yellow);
    color: var(--primary-yellow);
}
.btn-outline:hover {
    background-color: var(--primary-yellow);
    color: var(--bg-black);
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
header {
    background-color: var(--bg-dark-gray);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-yellow);
}
.logo span {
    color: var(--text-white);
}

/* Floating WA Button */
.floating-wa {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    z-index: 1000;
    transition: transform 0.3s;
}

.floating-wa:hover {
    transform: scale(1.1);
    color: white;
}

/* Hero Section */
.hero {
    height: 50vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* We'll use a neat gradient since we don't have bg imgs yet */
    background: linear-gradient(135deg, #111 0%, #000 100%);
    border-bottom: 2px solid var(--primary-yellow);
}

.hero h1 {
    font-size: 2.5rem;
    color: var(--primary-yellow);
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 25px;
}

/* Section styling */
section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--primary-yellow);
    margin: 10px auto 0;
}

/* Grid layout */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

/* Cards */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
    text-decoration: none;
    color: var(--text-white);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-yellow);
    color: var(--text-white);
}

.card-img-wrapper {
    width: 100%;
    height: 250px;
    background-color: #222;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.card-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-yellow);
    margin-bottom: 15px;
}

/* Forms */
input, textarea, select {
    width: 100%;
    padding: 12px;
    background: var(--bg-black);
    border: 1px solid var(--border-color);
    color: white;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary-yellow);
}
label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-gray);
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}
th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}
th {
    color: var(--primary-yellow);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}
.badge-hot {
    background: var(--danger);
    color: white;
}
.badge-status {
    background: var(--border-color);
}

/* Footer */
footer {
    background-color: var(--bg-dark-gray);
    padding: 40px 0 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* Cart / Utilities */
.hidden { display: none !important; }
.menu-toggle { display: none; }

/* Image Zoom Effects */
.product-gallery { overflow: hidden; border-radius: 12px; }
#main-image { transition: transform 0.4s ease; transform-origin: center; cursor: zoom-in; }
.product-gallery:hover #main-image { transform: scale(1.3); }

.product-card-img { overflow: hidden; }
.product-card-img img { transition: transform 0.3s ease; }
.card:hover .product-card-img img { transform: scale(1.1); }

@media (max-width: 768px) {
    /* Mobile Typography Sizing */
    body { font-size: 15px !important; }
    h1 { font-size: 1.6rem !important; }
    h2 { font-size: 1.4rem !important; }
    h3 { font-size: 1.1rem !important; }
    .hero h1 { font-size: 1.8rem !important; }
    .hero p { font-size: 0.9rem !important; }

    /* Touch Targets & Padding */
    .btn, input, select, textarea { min-height: 44px; font-size: 1rem !important; }
    .card-body { padding: 10px !important; }
    .card-title { font-size: 1rem !important; margin: 0 0 5px 0 !important; }
    .card-price { font-size: 0.9rem !important; margin: 0 0 10px 0 !important; }
    .py-2, .py-3 { padding: 30px 0 !important; }
    
    .header-inner {
        flex-wrap: wrap;
        padding-top: 10px;
    }
    
    /* Navbar Hamburger Support */
    .nav-links {
        display: none; /* hidden by default on mobile */
    }
    .nav-links.mobile-active {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        background: var(--bg-dark-gray) !important;
        padding: 15px 0 !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        z-index: 1001 !important;
        border-bottom: 2px solid var(--primary-yellow) !important;
    }
    .nav-links.mobile-active a {
        padding: 10px 20px !important;
        width: 100% !important;
        text-align: left !important;
    }
    .menu-toggle {
        display: block;
        font-size: 1.5rem;
        color: var(--primary-yellow);
        cursor: pointer;
        padding: 5px 10px;
    }

    .grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }
    
    .card-img-wrapper { height: 180px; }
    
    .btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    /* Admin Dashboards Collapse */
    .admin-layout {
        flex-direction: column !important;
    }
    .sidebar {
        width: 100% !important;
        height: auto !important;
        border-right: none !important;
        border-bottom: 2px solid var(--primary-yellow) !important;
        padding: 10px 0 !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
    }
    .sidebar a {
        display: inline-block !important;
        padding: 10px 15px !important;
        border-bottom: none !important;
        border-right: 1px solid var(--border-color) !important;
    }
    .main-content {
        padding: 15px !important;
        width: 100% !important;
        overflow-x: hidden !important;
    }

    /* Table Responsiveness */
    table, .table-container, .table-responsive {
        display: block !important;
        width: 100% !important;
        overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    }
}

/* =========================================
   MOBILE WEB APP BOTTOM NAVIGATION
========================================= */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #111;
    border-top: 2px solid var(--primary-yellow);
    z-index: 9999;
    padding: 10px 0;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -4px 15px rgba(0,0,0,0.6);
}

.mobile-bottom-nav a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    flex: 1;
    transition: 0.3s;
}

.mobile-bottom-nav a:hover,
.mobile-bottom-nav a.active {
    color: var(--primary-yellow);
}

.mobile-bottom-nav i {
    font-size: 1.4rem;
}

@media (max-width: 768px) {
    /* Engage Bottom Mobile Navigation Clearance */
    body {
        padding-bottom: 75px; 
    }

    /* Activate Bottom Nav */
    .mobile-bottom-nav {
        display: flex !important;
        justify-content: space-around;
        align-items: center;
    }

    /* Declutter the Top Header completely for App Feel */
    .header-actions {
        display: none !important;
    }
    
    .logo {
        width: 100%;
        justify-content: center;
        text-align: center;
        font-size: 1.2rem;
    }
    
    .nav-links, .menu-toggle {
        display: none !important;
    }
}
/* Add to Cart Toast Notification */
#cart-toast {
    position: fixed;
    z-index: 9999;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--success);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    top: 80px;
    right: 20px;
    width: 340px;
}

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

.toast-message {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: white;
    display: flex;
    align-items: center;
}

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

.toast-btn {
    flex: 1;
    padding: 10px 0;
    font-size: 0.85rem;
    white-space: nowrap;
}

@media (max-width: 768px) {
    #cart-toast {
        top: auto;
        bottom: 80px;
        left: 50%;
        right: auto;
        transform: translate(-50%, 20px);
        width: 90%;
        max-width: 400px;
    }
    
    #cart-toast.show {
        transform: translate(-50%, 0);
    }
}
