html:has(.gallery-modal.active){overflow:hidden;}.product-gallery{position:relative;width:100%;}.gallery-main-container{position:relative;background:#f9f9f9;border-radius:8px;overflow:hidden;margin-bottom:20px;}.gallery-main{position:relative;width:100%;padding-bottom:100%;overflow:hidden;background:#fff;border:1px solid #e0e0e0;}.gallery-main__image{object-fit: cover !important;position:absolute;top:0;left:0;width:100%;height:100%;object-fit:contain;cursor:zoom-in;transition:transform .3s ease;}.gallery-zoom-indicator{position:absolute;top:12px;right:12px;width:32px;height:32px;background:rgba(0,0,0,.6);border-radius:4px;display:flex;align-items:center;justify-content:center;color:white;opacity:0;transition:opacity .3s ease;z-index:2;}.gallery-badge{position:absolute;top:12px;left:12px;z-index:3;}.badge{display:inline-block;padding:6px 12px;border-radius:4px;font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.5px;}.badge--new{background:#ff4757;color:white;}.badge--sale{background:#ffa502;color:white;}.badge--hot{background:#ee5a6f;color:white;}.gallery-controls{position:absolute;top:50%;left:0;right:0;transform:translateY(-50%);display:flex;justify-content:space-between;padding:0 12px;z-index:4;opacity:0;transition:opacity .3s ease;pointer-events:none;}.gallery-btn{background:rgba(0,0,0,.5);border:none;color:white;width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background .3s ease;}.gallery-btn svg{width:20px;height:20px;}.gallery-fullscreen-btn{position:absolute;bottom:12px;right:12px;width:36px;height:36px;background:rgba(0,0,0,.6);border:none;color:white;border-radius:4px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .3s ease;z-index:5;}.gallery-fullscreen-btn svg{width:18px;height:18px;}.gallery-zoom-container{position:absolute;top:0;left:0;width:100%;height:100%;background:white;z-index:10;overflow:auto;cursor:zoom-out;}.gallery-zoom-image{width:100%;height:auto;display:block;}.gallery-thumbnails-wrapper{position:relative;margin-bottom:20px;}.gallery-thumbnails{display:flex;gap:8px;overflow-x:auto;padding:8px 0;scroll-behavior:smooth;}.gallery-thumbnails::-webkit-scrollbar{height:6px;}.gallery-thumbnails::-webkit-scrollbar-track{background:#f0f0f0;border-radius:3px;}.gallery-thumbnails::-webkit-scrollbar-thumb{background:#ccc;border-radius:3px;}.gallery-thumbnail{flex:0 0 80px;width:80px;height:80px;border:2px solid transparent;border-radius:4px;background:#f9f9f9;cursor:pointer;overflow:hidden;transition:all .3s ease;padding:0;}.gallery-thumbnail img{width:100%;height:100%;object-fit:cover;display:block;}.gallery-thumbnail--active{border-color:#333;box-shadow:0 0 8px rgba(0,0,0,.15);}.gallery-thumb-nav{position:absolute;top:50%;transform:translateY(-50%);width:32px;height:32px;background:rgba(0,0,0,.5);border:none;color:white;border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .3s ease;z-index:5;}.gallery-thumb-nav--prev{left:-16px;}.gallery-thumb-nav--next{right:-16px;}.gallery-modal{position:fixed;z-index:9999999!important;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.95);z-index:1000;display:none;flex-direction:column;}.gallery-modal.active{display:flex;}.gallery-modal-header{display:flex;justify-content:space-between;align-items:center;padding:16px 24px;border-bottom:1px solid rgba(255,255,255,.1);}.gallery-modal-counter{color:white;font-size:14px;}.gallery-modal-close{background:none;border:none;color:white;cursor:pointer;width:40px;height:40px;display:flex;align-items:center;justify-content:center;transition:opacity .3s ease;}.gallery-modal-body{flex:1;display:flex;align-items:center;justify-content:center;overflow:auto;position:relative;}#modalImage{height:calc(100vh - 200px);width:auto;}.gallery-modal-controls{position:absolute;top:50%;left:0;right:0;transform:translateY(-50%);display:flex;justify-content:space-between;padding:0 24px;pointer-events:none;}.gallery-modal-btn{width:48px;height:48px;background:white;border:none;color:black;border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .3s ease;pointer-events:auto;}.gallery-modal-btn svg{width:24px;height:24px;}.gallery-modal-thumbnails{display:flex;gap:8px;padding:16px 24px;justify-content:center;overflow-x:auto;border-top:1px solid rgba(255,255,255,.1);}.gallery-modal-thumbs{scroll-behavior:smooth;}.gallery-modal-thumbs::-webkit-scrollbar{height:4px;}.gallery-modal-thumbs::-webkit-scrollbar-track{background:rgba(255,255,255,.1);}.gallery-modal-thumbs::-webkit-scrollbar-thumb{background:rgba(255,255,255,.3);}.gallery-modal-thumb{flex:0 0 60px;width:60px;height:60px;background:transparent;border:2px solid rgba(255,255,255,.3);border-radius:4px;cursor:pointer;overflow:hidden;transition:all .3s ease;padding:0;}.gallery-modal-thumb img{width:100%;height:100%;object-fit:cover;display:block;}.gallery-modal-thumb--active{border-color:white;box-shadow:0 0 16px rgba(255,255,255,.3);}@media (hover:hover){.gallery-main:hover .gallery-zoom-indicator{opacity:1}.gallery-main:hover .gallery-controls{opacity:1;pointer-events:auto}.gallery-btn:hover{background:rgba(0,0,0,.8)}.gallery-fullscreen-btn:hover{background:rgba(0,0,0,.8)}.gallery-thumbnails::-webkit-scrollbar-thumb:hover{background:#999}.gallery-thumbnail:hover{border-color:#ddd}.gallery-thumb-nav:hover{background:rgba(0,0,0,.8)}.gallery-modal-close:hover{opacity:.7}.gallery-modal-btn:hover{background:rgba(255,255,255,.3)}.gallery-modal-thumb:hover{border-color:rgba(255,255,255,.5)}.gallery-main:hover .gallery-controls{opacity:1}.gallery-main__image:hover{transform:scale(1.05)}}@media (max-width:768px){.gallery-controls{opacity:1;pointer-events:auto}.gallery-btn{width:36px;height:36px}.gallery-btn svg{width:18px;height:18px}.gallery-thumbnail{flex:0 0 70px;width:70px;height:70px}.gallery-fullscreen-btn{width:32px;height:32px}.gallery-fullscreen-btn svg{width:16px;height:16px}.gallery-zoom-indicator{width:28px;height:28px}#modalImage{max-width:calc(100vw - 20%)}}@media (max-width:480px){.gallery-thumbnail{flex:0 0 60px;width:60px;height:60px}.gallery-controls{padding:0 8px}.gallery-btn{width:32px;height:32px}.gallery-btn svg{width:16px;height:16px}.gallery-modal-header{padding:12px 16px}.gallery-modal-controls{padding:0 16px}.gallery-modal-btn{width:40px;height:40px}#modalImage{max-width:95%;max-height:85%}}