/*==============================================
  GROCERY STORE THEME - Custom Styles
  Immersive retail experience for portfolio
==============================================*/

/* Body adjustments - Removed padding since top nav is eliminated */
body {
    /* Navigation is now sidebar-only */
}

/* Sidebar Scrolling Fix */
#header {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow-y: auto !important;
    scrollbar-width: thin;
    scrollbar-color: #4CAF50 #040b14;
}

#header::-webkit-scrollbar {
    width: 6px;
}

#header::-webkit-scrollbar-track {
    background: #040b14;
}

#header::-webkit-scrollbar-thumb {
    background: #4CAF50;
    border-radius: 3px;
}

#header::-webkit-scrollbar-thumb:hover {
    background: #2E7D32;
}

.nav-menu {
    flex: 1 1 auto;
    overflow-y: visible;
    padding-bottom: 20px !important;
}

/* ===============================================
   GROCERY AISLE MARKER NAVIGATION
   Transform sidebar nav into store aisle markers
=============================================== */

/* Aisle Marker Container */
.nav-menu a {
    display: flex !important;
    align-items: center !important;
    padding: 12px 15px !important;
    margin: 8px 0 !important;
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%) !important;
    border-left: 4px solid #4CAF50 !important;
    border-radius: 8px !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.3s ease !important;
    position: relative !important;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    border-radius: 8px;
    pointer-events: none;
}

/* Aisle Number (left side) */
.nav-menu .aisle-number {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    background: #4CAF50 !important;
    color: white !important;
    font-weight: 700 !important;
    font-size: 20px !important;
    border-radius: 6px;
    margin-right: 12px;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.4);
    flex-shrink: 0;
}

/* Aisle Content (icon + name) */
.nav-menu .aisle-content {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 10px;
}

.nav-menu .aisle-content i {
    font-size: 20px !important;
    color: #fff !important;
    opacity: 0.9;
}

.nav-menu .aisle-name {
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* Hover Effects */
.nav-menu a:hover {
    transform: translateX(8px) !important;
    border-left-width: 6px !important;
    box-shadow: 0 5px 20px rgba(76, 175, 80, 0.4) !important;
    background: linear-gradient(135deg, #4CAF50 0%, #2a5298 100%) !important;
}

.nav-menu a:hover .aisle-number {
    transform: scale(1.1);
    background: #fff !important;
    color: #4CAF50 !important;
}

/* Active State */
.nav-menu .active,
.nav-menu .active:focus,
.nav-menu li:hover>a.active {
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%) !important;
    border-left-color: #FFD700 !important;
    border-left-width: 6px !important;
    box-shadow: 0 5px 25px rgba(76, 175, 80, 0.5) !important;
}

.nav-menu .active .aisle-number {
    background: #FFD700 !important;
    color: #1e3c72 !important;
    animation: pulse 2s infinite;
}

/* Specialty Aisle (Cereal Aisle) */
.nav-menu .specialty-aisle a {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%) !important;
    border-left-color: #FFD700 !important;
}

.nav-menu .specialty-aisle .aisle-number {
    background: #FFD700 !important;
    color: #f57c00 !important;
    font-size: 24px !important;
}

.nav-menu .specialty-aisle:hover a {
    background: linear-gradient(135deg, #FFD700 0%, #ff9800 100%) !important;
}

/* Pulse Animation for Active Aisle */
@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
    }

    50% {
        box-shadow: 0 2px 15px rgba(255, 215, 0, 0.8);
    }
}

/* Sliding Grocery Doors Animation */
.grocery-doors-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 9999;
    pointer-events: none;
    overflow: hidden;
}

.door {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.3);
    transition: transform 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.door-left {
    left: 0;
    border-right: 4px solid #ffd700;
    transform-origin: left center;
}

.door-right {
    right: 0;
    border-left: 4px solid #ffd700;
    transform-origin: right center;
}

.door::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 120px;
    background: linear-gradient(to right, rgba(255, 215, 0, 0.3), rgba(255, 215, 0, 0.6));
    transform: translateY(-50%);
    border-radius: 20px;
}

.door-left::before {
    right: 20px;
}

.door-right::before {
    left: 20px;
}

.doors-open .door-left {
    transform: translateX(-100%);
}

.doors-open .door-right {
    transform: translateX(100%);
}

.store-welcome {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #ffd700;
    font-family: 'Poppins', sans-serif;
    opacity: 1;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.doors-open .store-welcome {
    opacity: 0;
}

.store-welcome h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    animation: pulse 2s infinite;
}

.store-welcome p {
    font-size: 24px;
    font-weight: 300;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* Shopping Cart Navigation */
.shopping-cart-nav {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.cart-button {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    animation: float 3s ease-in-out infinite;
}

.cart-button:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 12px 35px rgba(76, 175, 80, 0.6);
}

.cart-button i {
    font-size: 32px;
    color: white;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff5722;
    color: white;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(255, 87, 34, 0.5);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Store Aisle Layout */
.aisle-section {
    position: relative;
    padding: 80px 0;
    background: linear-gradient(to bottom, #f8f9fa 0%, #e9ecef 100%);
    overflow: hidden;
}

.aisle-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: repeating-linear-gradient(90deg,
            #ffd700 0px,
            #ffd700 20px,
            transparent 20px,
            transparent 40px);
}

.aisle-header {
    text-align: center;
    margin-bottom: 60px;
}

.aisle-sign {
    display: inline-block;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: #ffd700;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 32px;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(30, 60, 114, 0.3);
    margin-bottom: 15px;
    position: relative;
}

.aisle-sign::before,
.aisle-sign::after {
    content: '→';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: #ffd700;
}

.aisle-sign::before {
    left: -40px;
}

.aisle-sign::after {
    right: -40px;
    content: '←';
}

.shelf-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    perspective: 1000px;
}

.product-shelf {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.product-shelf::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #4CAF50, #2196F3, #9C27B0);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.product-shelf:hover::before {
    transform: scaleX(1);
}

.product-shelf:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.shelf-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.product-shelf:hover .shelf-icon {
    transform: rotateY(360deg) scale(1.1);
}

.product-shelf h4 {
    color: #1e3c72;
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 20px;
}

.product-shelf p {
    color: #666;
    line-height: 1.8;
    font-size: 14px;
}

/* Planogram Interactive Display */
.planogram-display {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    margin: 40px 0;
    position: relative;
    overflow: hidden;
}

.planogram-display::before {
    content: 'PLANOGRAM';
    position: absolute;
    top: -30px;
    left: -30px;
    font-size: 120px;
    font-weight: 900;
    color: rgba(30, 60, 114, 0.03);
    transform: rotate(-15deg);
    pointer-events: none;
}

.planogram-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.planogram-item {
    aspect-ratio: 1;
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #1e3c72;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.planogram-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(76, 175, 80, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.planogram-item:hover::before {
    width: 200%;
    height: 200%;
}

.planogram-item:hover {
    border-color: #4CAF50;
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.3);
}

.planogram-item span {
    position: relative;
    z-index: 1;
    font-size: 12px;
    text-align: center;
    padding: 5px;
}

/* Grocery Store Gallery */
.grocery-gallery {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: #f8f9fa;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(30, 60, 114, 0.2);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    padding: 20px;
    background: linear-gradient(to bottom, transparent, rgba(30, 60, 114, 0.05));
}

.gallery-caption h5 {
    color: #1e3c72;
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 18px;
}

.gallery-caption h5 i {
    color: #4CAF50;
    margin-right: 8px;
}

.gallery-caption p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Analytics Dashboard Cards */
.analytics-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.analytics-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.analytics-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.4);
}

.analytics-number {
    font-size: 48px;
    font-weight: 900;
    margin: 15px 0;
    position: relative;
    z-index: 1;
}

.analytics-label {
    font-size: 16px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.analytics-trend {
    display: inline-block;
    background: rgba(76, 175, 80, 0.3);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    margin-top: 10px;
    position: relative;
    z-index: 1;
}

/* Store Floor Navigation */
.floor-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    padding: 15px 0;
    z-index: 999;
    box-shadow: 0 5px 20px rgba(30, 60, 114, 0.3);
}

.floor-nav ul {
    display: flex;
    justify-content: center;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.floor-nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.floor-nav a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 215, 0, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.floor-nav a:hover::before {
    width: 200%;
    height: 200%;
}

.floor-nav a:hover,
.floor-nav a.active {
    background: #ffd700;
    color: #1e3c72;
}

.floor-nav a span {
    position: relative;
    z-index: 1;
}

/* Shopping Experience Animations */
@keyframes slideInFromLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.slide-in-left {
    animation: slideInFromLeft 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.slide-in-right {
    animation: slideInFromRight 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Price Tag Effect */
.price-tag {
    display: inline-block;
    background: #ff5722;
    color: white;
    padding: 8px 20px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 18px;
    position: relative;
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.3);
    animation: priceHighlight 2s infinite;
}

@keyframes priceHighlight {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.price-tag::before {
    content: '→';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
}

/* Checkout Counter Style */
.checkout-section {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: white;
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.checkout-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: repeating-linear-gradient(90deg,
            #ffd700 0px,
            #ffd700 10px,
            #ff5722 10px,
            #ff5722 20px);
}

.checkout-button {
    background: white;
    color: #4CAF50;
    border: none;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.checkout-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* Barcode Scanner Effect */
.barcode-scanner {
    height: 3px;
    background: linear-gradient(90deg, transparent, #ff5722, transparent);
    animation: scan 2s linear infinite;
    margin: 20px 0;
}

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

    100% {
        transform: translateX(100%);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .store-welcome h1 {
        font-size: 32px;
    }

    .store-welcome p {
        font-size: 18px;
    }

    .aisle-sign {
        font-size: 24px;
        padding: 12px 30px;
    }

    .planogram-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .floor-nav ul {
        flex-wrap: wrap;
        gap: 10px;
    }

    .shopping-cart-nav {
        bottom: 20px;
        right: 20px;
    }

    .cart-button {
        width: 60px;
        height: 60px;
    }

    .cart-button i {
        font-size: 28px;
    }
}