/* 
   Elegant Protection - Premium Automotive Care Style
   Color Palette: Deep Slate, Fine Platinum, Elegant Bronze Gold
*/

:root {
    /* Color Tokens */
    --bg-main: #13161c;
    --bg-card: #13161c;
    --bg-card-hover: rgba(35, 42, 56, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-hover: rgba(212, 175, 55, 0.4);
    
    /* Accents */
    --accent: #d4af37; /* Gold/Bronze */
    --accent-rgb: 212, 175, 55;
    --accent-hover: #f1cf5b;
    
    /* Text */
    --text-primary: #f5f6f8;
    --text-secondary: #a0aab8;
    --text-muted: #64748b;
    
    /* System Colors */
    --success: #10b981;
    --danger: #ef4444;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout */
    --max-width: 1200px;
    --header-height: 80px;
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Glow Background Elements */
.glow-element {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
}

.glow-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.6) 0%, rgba(0,0,0,0) 70%);
    top: -100px;
    right: -100px;
}

.glow-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.4) 0%, rgba(0,0,0,0) 70%);
    bottom: 10%;
    left: -200px;
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

/* General Layout Elements */
.page-view {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    transform: translateY(20px);
    min-height: 100vh;
}

.page-view.active {
    display: flex;
    flex-direction: column;
    opacity: 1;
    transform: translateY(0);
}

/* Header Styles */
.main-header, .admin-header {
    height: var(--header-height);
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    background: rgba(19, 22, 28, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    max-width: var(--max-width);
    height: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Styles */
.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    color: var(--text-primary);
}

.logo-accent {
    color: var(--accent);
    margin-right: 1px;
    font-size: 1.8rem;
}

.logo-light {
    font-weight: 300;
    color: var(--text-secondary);
}

/* Navigation Links */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    width: 100%;
}

/* Buttons Styles */
.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #b39023 100%);
    color: #13161c;
    border: none;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
    background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent) 100%);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-admin {
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--accent);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
}

.btn-admin:hover {
    background: var(--accent);
    color: #13161c;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.btn-back {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-3px);
}

/* Hero Section Styles */
.hero-section {
    min-height: 100vh;
    padding-top: var(--header-height);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    max-width: var(--max-width);
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    z-index: 10;
}

.badge {
    background: rgba(212, 175, 55, 0.08);
    color: var(--accent);
    border: 1px solid rgba(212, 175, 55, 0.2);
    padding: 0.4rem 1.2rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    display: inline-block;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(180deg, #ffffff 30%, #a0aab8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 2.5rem auto;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

.bounce-animation {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-6px);
    }
    60% {
        transform: translateY(-3px);
    }
}

/* Products Section Styles */
.products-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 8rem 2rem;
    position: relative;
    z-index: 10;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
}

.section-line {
    width: 60px;
    height: 3px;
    background-color: var(--accent);
    margin: 0 auto 1.5rem auto;
    border-radius: 10px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* Products Grid & Cards */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Maximum of 3 products per row on desktop */
    gap: 2.5rem;
}

.product-card {
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
    display: flex;
    flex-direction: column;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: var(--transition-smooth);
    position: relative;
    padding: 0;
}

.product-card::before {
    display: none;
}

.product-card:hover {
    transform: translateY(-6px);
}

.product-image-wrap {
    width: 100%;
    height: 230px; /* Reduced uniform height to make product grid tighter */
    position: relative;
    overflow: visible;
    background-color: transparent; /* Seamless floating background */
    border-bottom: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: var(--transition-smooth);
}

/* Background blurred version of the image (hidden for minimalist boardless style) */
.product-image-blur {
    display: none !important;
}

/* Foreground main product image scaled down proportionally (bulletproof fallback) */
.product-image-wrap img {
    position: relative;
    z-index: 2;
    max-width: 78% !important; /* Proportional width constraint */
    max-height: 78% !important; /* Proportional height constraint */
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    padding: 0.5rem;
    filter: none !important; /* Completely flat and merged with background by default */
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}

.product-card:hover .product-image-wrap img {
    transform: scale(1.08) translateY(-8px) !important; /* Lifts up and grows slightly on hover */
    filter: drop-shadow(0 20px 24px rgba(0, 0, 0, 0.65)) !important; /* Deep soft 3D shadow appears on hover */
}

/* Adaptive Container for Product Boxes (transparent to merge with background) */
.light-bg-container {
    background-color: transparent !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    overflow: visible !important;
}

.light-bg-container img {
    max-width: 78% !important;
    max-height: 78% !important;
    filter: none !important; /* Flat by default */
    padding: 0.5rem;
}

.product-card:hover .light-bg-container img {
    transform: scale(1.08) translateY(-8px) !important;
    filter: drop-shadow(0 20px 24px rgba(0, 0, 0, 0.65)) !important;
}

.product-info {
    padding: 1.25rem 0.5rem 0 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-grow: 1;
}

.product-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    transition: var(--transition-smooth);
}

.product-card:hover .product-card-title {
    color: var(--accent);
}

.product-card-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    line-height: 1.6;
    flex-grow: 1;
    max-width: 280px;
}

.product-card-action {
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: none;
    padding-top: 0;
    margin-top: auto;
}

.btn-card-action {
    background: transparent;
    border: none;
    color: var(--accent);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-card-action:hover {
    color: var(--accent-hover);
}

.btn-card-action i {
    transition: var(--transition-smooth);
}

.btn-card-action:hover i {
    transform: translateX(4px);
}

/* Admin Page Layout Styles */
.admin-header {
    background: rgba(19, 22, 28, 0.95);
}

.admin-logo-area {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-badge {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.admin-main {
    padding-top: calc(var(--header-height) + 3rem);
    padding-bottom: 5rem;
    flex-grow: 1;
    z-index: 10;
}

.admin-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.admin-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2.5rem;
}

.admin-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.admin-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Admin Table styles */
.admin-table-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.admin-table th {
    background: rgba(0, 0, 0, 0.15);
    padding: 1.2rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-color);
}

.admin-table td {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.admin-table tbody tr {
    transition: var(--transition-smooth);
}

.admin-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.admin-table-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: #000;
}

.admin-table-title {
    font-weight: 600;
    color: #ffffff;
    font-size: 1rem;
}

.admin-table-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    max-width: 500px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.text-center {
    text-align: center;
}

/* Action Buttons in Table */
.admin-actions-cell {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.btn-table-edit {
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--accent);
    width: 38px;
    height: 38px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.btn-table-edit:hover {
    background: var(--accent);
    color: #13161c;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.2);
}

.btn-table-delete {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--danger);
    width: 38px;
    height: 38px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.btn-table-delete:hover {
    background: var(--danger);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.2);
}

/* Empty State Styles */
.empty-state {
    padding: 5rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.empty-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.1);
}

.empty-state h3 {
    color: #ffffff;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.empty-state p {
    font-size: 0.95rem;
    max-width: 300px;
    margin: 0 auto;
}

/* Modal overlays (General) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 12, 16, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 200;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: #1a1f29;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    width: 100%;
    max-width: 580px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    padding: 2.5rem;
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-card {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    transform: rotate(90deg);
}

/* PIN Modal specific styles */
.pin-modal-card {
    max-width: 400px;
    text-align: center;
    padding: 3rem 2rem;
}

.pin-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.08);
    color: var(--accent);
    border: 1px solid rgba(212, 175, 55, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.pin-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.pin-header p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.pin-input-group {
    margin-bottom: 1.5rem;
}

#pin-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1.8rem;
    letter-spacing: 0.5em;
    text-align: center;
    padding: 0.75rem;
    font-family: monospace;
    transition: var(--transition-smooth);
}

#pin-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.15);
}

.pin-error {
    color: var(--danger);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: none;
}

.pin-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 1.25rem;
}

.pin-hint span {
    font-family: monospace;
    font-weight: bold;
    color: var(--text-secondary);
}

/* Product Modal Form Styles */
.modal-header {
    margin-bottom: 2rem;
}

.modal-header h3 {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 0.4rem;
}

.modal-header p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.product-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: var(--font-heading);
}

.form-group input[type="text"],
.form-group input[type="url"],
.form-group textarea {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.form-group input[type="text"]:focus,
.form-group input[type="url"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.15);
}

/* Toggle upload vs url */
.image-source-toggle {
    display: flex;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    padding: 3px;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.btn-toggle {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-toggle.active {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.file-upload-wrapper {
    position: relative;
    width: 100%;
    height: 120px;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
    cursor: pointer;
}

.file-upload-wrapper:hover {
    border-color: var(--accent);
    background: rgba(212, 175, 55, 0.02);
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

.file-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-secondary);
}

.file-upload-placeholder i {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.file-upload-placeholder span {
    font-weight: 600;
    font-size: 0.9rem;
}

.file-upload-placeholder small {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Image Preview Styles */
.image-preview-wrapper {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.image-preview-wrapper span {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.image-preview-container {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

#image-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#no-preview-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1rem;
}

/* Footer Section */
.main-footer {
    border-top: 1px solid var(--border-color);
    background: rgba(14, 17, 22, 0.9);
    padding: 5rem 0 3rem 0;
    margin-top: auto;
    position: relative;
    z-index: 10;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-brand {
    max-width: 400px;
    margin-bottom: 2.5rem;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-divider {
    height: 1px;
    background-color: var(--border-color);
    margin-bottom: 2.5rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.developer {
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
    font-weight: 600;
    text-transform: uppercase;
}

/* Helper Utilities */
.hidden {
    display: none !important;
}

.w-100 {
    width: 100% !important;
}

/* Admin Custom Layout Additions */
.admin-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-logout {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--danger);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
}

.btn-logout:hover {
    background: var(--danger);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.admin-action-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Change PIN Form Controls */
.pin-key-icon {
    background: rgba(212, 175, 55, 0.08) !important;
    color: var(--accent) !important;
    border-color: rgba(212, 175, 55, 0.2) !important;
}

.change-pin-inputs {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin: 1.5rem 0 2rem 0;
}

.pin-form-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.pin-form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.pin-form-group input {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    color: #ffffff;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.4em;
    text-align: center;
    font-family: monospace;
    transition: var(--transition-smooth);
}

.pin-form-group input.cred-input {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: normal;
    text-align: left;
}

.pin-form-group input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.15);
}

.pin-success {
    color: var(--success);
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 0.5rem;
    text-align: center;
}

/* Media Gallery Selection Grid */
.gallery-selector-container {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    max-height: 250px;
    overflow-y: auto;
}

.gallery-selector-container::-webkit-scrollbar {
    width: 6px;
}

.gallery-selector-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.gallery-selector-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.gallery-selector-container::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 175, 55, 0.3);
}

.gallery-selector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
    gap: 0.75rem;
}

.gallery-item {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    background: #000;
    cursor: pointer;
    position: relative;
    transition: var(--transition-smooth);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item.selected {
    border-color: var(--accent);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
}

.gallery-item-delete {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.85);
    border: none;
    color: #ffffff;
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.8);
    transition: var(--transition-smooth);
    z-index: 5;
}

.gallery-item:hover .gallery-item-delete {
    opacity: 1;
    transform: scale(1);
}

.gallery-item-delete:hover {
    background: rgb(239, 68, 68);
    transform: scale(1.1) !important;
}

.gallery-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1rem;
    color: var(--text-muted);
    text-align: center;
    gap: 0.5rem;
}

.gallery-empty i {
    font-size: 1.8rem;
    opacity: 0.2;
}

.gallery-empty p {
    font-size: 0.85rem;
}

/* RECAPTCHA STYLING */
.recaptcha-form-group {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0.5rem 0 1rem 0;
    min-height: 78px;
}

#recaptcha-container {
    display: inline-block;
    margin: 0 auto;
}

/* RESPONSIVE LAYOUTS */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3.2rem;
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet screens */
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 1.5rem;
    }
    
    .nav-menu {
        gap: 1.25rem;
    }
    
    .nav-link {
        display: none; /* Hide standard links on mobile */
    }
    
    .hero-section {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .products-section {
        padding: 5rem 1.5rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .admin-container {
        padding: 0 1.5rem;
    }
    
    .admin-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .admin-table th:nth-child(3),
    .admin-table td:nth-child(3) {
        display: none; /* Hide description column on tablets/mobile */
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .modal-card {
        padding: 1.75rem;
    }
    
    .admin-table th:nth-child(1),
    .admin-table td:nth-child(1) {
        display: none; /* Hide image column on small screens */
    }
    
    .admin-actions-cell {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
}

/* Contact Section Styles */
.contact-section {
    padding: 6rem 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.contact-container {
    margin-top: 3rem;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.contact-card {
    background: rgba(26, 31, 41, 0.45);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.05) 0%, rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: -1;
}

.contact-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-color-hover);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 0 20px rgba(var(--accent-rgb), 0.05);
}

.contact-card:hover::before {
    opacity: 1;
}

.contact-icon-wrap {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.15);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
}

.contact-card:hover .contact-icon-wrap {
    background: var(--accent);
    color: #13161c;
    box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.4);
    transform: scale(1.05) rotate(5deg);
}

.contact-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.contact-value {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
}

.contact-card:hover .contact-value {
    color: #ffffff;
}

.contact-action {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
}

.contact-action i {
    transition: var(--transition-smooth);
}

.contact-card:hover .contact-action i {
    transform: translateX(4px);
}

/* WhatsApp Widget Styles */
.whatsapp-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 150;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
}

/* Floating Trigger Button */
.whatsapp-float {
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3), 0 0 0 0 rgba(37, 211, 102, 0.7);
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    animation: whatsapp-pulse 2s infinite;
    z-index: 151;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(10deg);
    background-color: #20ba5a;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* Chat Popup Window */
.whatsapp-popup {
    width: 340px;
    background: #1a1f29;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 30px rgba(var(--accent-rgb), 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.whatsapp-popup.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

/* Header */
.wa-header {
    background: linear-gradient(135deg, #075e54 0%, #128c7e 100%);
    padding: 1.25rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wa-avatar-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.wa-avatar {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.5rem;
    position: relative;
}

.wa-online-dot {
    width: 10px;
    height: 10px;
    background-color: #4caf50;
    border: 2px solid #128c7e;
    border-radius: 50%;
    position: absolute;
    bottom: 2px;
    right: 2px;
    animation: pulse-green 2s infinite;
}

.wa-brand-details {
    display: flex;
    flex-direction: column;
}

.wa-brand-name {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: #ffffff;
}

.wa-status {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

.wa-close-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.wa-close-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

/* Body */
.wa-body {
    padding: 1.5rem 1rem;
    background-image: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png');
    background-color: rgba(10, 12, 16, 0.9);
    background-blend-mode: overlay;
    background-size: contain;
    min-height: 120px;
}

.wa-msg-bubble {
    background: #202c33;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0 12px 12px 12px;
    padding: 0.75rem;
    max-width: 90%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    position: relative;
}

.wa-msg-time {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-align: right;
    margin-bottom: 0.25rem;
}

.wa-msg-text {
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--text-primary);
}

/* Footer */
.wa-footer {
    padding: 1rem;
    background: #1a1f29;
    border-top: 1px solid var(--border-color);
}

.wa-chat-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: #25d366;
    color: #ffffff;
    border-radius: 8px;
    padding: 0.75rem;
    font-weight: 600;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.2);
    transition: var(--transition-smooth);
}

.wa-chat-btn:hover {
    background-color: #20ba5a;
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.35);
    transform: translateY(-2px);
}

@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3), 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3), 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3), 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(76, 175, 80, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

/* Responsiveness for Contact Cards & Widget */
@media (max-width: 768px) {
    .contact-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .contact-section {
        padding: 4rem 1.5rem;
    }
    .whatsapp-widget {
        bottom: 1.5rem;
        right: 1.5rem;
    }
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
    }
    .whatsapp-popup {
        width: 290px;
    }
}
