/* Dodatkowe style dla strony Sklepu */

/* Cart Icon in Navigation */
.nav-container {
    position: relative;
}

.cart-icon {
    position: relative;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    margin-left: 1rem;
}

.cart-icon:hover {
    background: rgba(255,255,255,0.1);
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Hero Section - Shop */
.hero-shop {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-shop::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y=".9em" font-size="90" opacity="0.1">🛒</text></svg>') repeat;
    background-size: 150px 150px;
    opacity: 0.1;
    z-index: 1;
}

.hero-shop .container {
    position: relative;
    z-index: 2;
}

.hero-shop h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 300;
}

.hero-shop p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 0.5rem;
}

.hero-subtitle {
    font-size: 1rem !important;
    opacity: 0.8 !important;
    font-style: italic;
}

/* Filter Section */
.shop-filter {
    background: white;
    padding: 2rem 0;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 70px;
    z-index: 100;
}

.filter-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 2px solid #e5e7eb;
    color: #6b7280;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.filter-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

/* Products Section */
.products-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* Product Card */
.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.product-card.featured {
    border: 3px solid #f59e0b;
    position: relative;
}

.product-card.featured::before {
    content: '⭐ POLECANE';
    position: absolute;
    top: 10px;
    left: -30px;
    background: #f59e0b;
    color: white;
    padding: 0.3rem 2rem;
    font-size: 0.8rem;
    font-weight: bold;
    transform: rotate(-45deg);
    z-index: 10;
}

/* Product Image */
.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-overlay button {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-overlay button:hover {
    background: #2563eb;
    transform: scale(1.05);
}

/* Product Info */
.product-info {
    padding: 1.5rem;
    text-align: center;
}

.product-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.product-info p {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.product-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #3b82f6;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 350px;
    height: 100%;
    background: white;
    box-shadow: -5px 0 25px rgba(0,0,0,0.15);
    transition: right 0.4s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    font-size: 1.2rem;
    font-weight: bold;
    color: #1f2937;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.cart-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.cart-item img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    margin-right: 1rem;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h4 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    font-weight: 500;
    color: #1f2937;
}

.cart-item-info .price {
    color: #3b82f6;
    font-weight: bold;
}

.remove-item {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.remove-item:hover {
    transform: scale(1.2);
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.cart-footer .total {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #1f2937;
}

.checkout-btn {
    width: 100%;
    background: #3b82f6;
    color: white;
    border: none;
    padding: 1rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkout-btn:hover {
    background: #2563eb;
    transform: scale(1.03);
}

/* Newsletter Toast Notifications */
.newsletter-toast {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: white;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 3000;
    border-left: 4px solid #10b981;
    min-width: 300px;
}

.newsletter-toast.error {
    border-left-color: #ef4444;
}

.newsletter-toast.show {
    transform: translateX(0);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toast-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.toast-message {
    color: #374151;
    font-size: 0.95rem;
    line-height: 1.4;
}

.newsletter-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Responsive toast */
@media (max-width: 768px) {
    .newsletter-toast {
        right: 1rem;
        left: 1rem;
        transform: translateY(-100px);
        min-width: auto;
    }
    
    .newsletter-toast.show {
        transform: translateY(0);
    }
}

/* Blokada zaznaczania tekstu */
body, .no-select {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Blokada przeciągania obrazów */
img {
  -webkit-user-drag: none;
  user-drag: none;
}

/* Opcjonalnie — jeśli chcesz, żeby obrazów nie dało się klikać */
.protected-img {
  pointer-events: none;
}


